summaryrefslogtreecommitdiff
path: root/src/class/audio/audio_device.c
AgeCommit message (Collapse)Author
2026-07-06Merge remote-tracking branch 'origin/master' into usbtesthathach
# Conflicts: # lib/rt-thread/port/msc_device_port.c # src/device/usbd.c
2026-07-03class/audio: drop redundant clear_stall busy-clear workaround in set_interfacehathach
audiod_set_interface used usbd_edpt_clear_stall() on a non-stalled endpoint purely to drop a leftover BUSY bit ('THIS IS A WORKAROUND!'), from when ep_close() did not clear endpoint state. That premise no longer holds: by the time the workaround ran, the endpoint's ep_status (incl. BUSY) had already been zeroed - by usbd_edpt_close() on close-API ports (ip3511, rusb2) or by usbd_edpt_iso_activate() on iso-alloc ports - so the call was dead code. Verified: full audio_test capture works across stop/start streaming (arecord start -> stop -> restart, each delivering a complete buffer) on stm32f407disco (dwc2, working iso); 25 raw SET_INTERFACE alt1<->alt0 cycles leave the device responsive; behaviour is byte-identical with and without the workaround on metro_m4 (samd51, whose iso-IN stalls for a separate pre-existing reason); builds clean on iso-alloc (samd, dwc2) and close-API (lpc55, ra) ports. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HeF2gZ1M7GWkz6Av4BpKPg
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-03-11refactor(usbd): replace `_usbd_ctrl_epbuf` with `usbd_get_ctrl_buf()` for ↵hathach
cleaner abstraction and consistency across modules
2026-01-06Merge remote-tracking branch 'tinyusb/master' into ep0_directHiFiPhile
2025-12-30tusb_fifo remove item_size make it fifo of byteshathach
2025-12-14reduce code sizeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-14audio: use ep0 buffer if it is large enoughHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-12Merge branch 'refs/heads/master' into audio_openhathach
2025-12-10Merge branch 'master' into more-size-reduce-edpt-streamhathach
2025-12-10change tu_fifo_clear()/tu_edpt_stream_clear() from return bool to voidhathach
2025-12-08audio_device: use CFG_TUD_EDPT_DEDICATED_HWFIFO flag for FIFO transferZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-12-02audio: fix audiod_open with midi interfacesZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-11Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-09Merge pull request #3334 from hathach/fix-alerts-3Ha Thach
Fix more code alerts
2025-11-08fix more alertshathach
2025-11-07TypoHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-07Implement RX FIFO threshold adjustmentHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-07CleanupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-07FixupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-07Merge remote-tracking branch 'tinyusb/master' into audio_ep_in_target_fifo_sizeHiFiPhile
2025-10-31Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-10-29Implement tud_audio_set_ep_in_target_fifo_size function to set the target ↵Gabriel Chouinard
fifo size of the ep in flow control
2025-10-22Fix copilot issuesMengsk
Signed-off-by: Mengsk <[email protected]>
2025-10-22Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifocopilot-swe-agent[bot]
- Added bool is_isr parameter to usbd_edpt_xfer() and usbd_edpt_xfer_fifo() wrapper functions - These are called by class drivers to queue USB transfers - Updated all callers to pass false by default (non-ISR context) - Updated audiod_rx_xfer_isr() and audiod_tx_xfer_isr() to pass true (ISR context) - All 21 unit tests pass Co-authored-by: HiFiPhile <[email protected]>
2025-10-11Merge branch 'master' into uac1HiFiPhile
2025-10-11Move control buffer out of USB sectionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-06remove dcd_esp32sx which is replaced by dwc2hathach
2025-10-05Use one control buffer as EP0 has no concurrencyHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-04Fix descriptor loopingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-02Add UAC1 support to uac2_headset exampleHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-02Fix feedback param lagHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-02cleanupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-02Update feedback params on frequency changeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-01better EP type detectionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-01Minor fixesHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-30Remove feedback format correction since no longer neededMengsk
Signed-off-by: Mengsk <[email protected]>
2025-09-30fix descriptor walkingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-30Implement UAC1 IN flow controlHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-30Add basic UAC1 supportHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-30More descriptors workingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-29Update UAC2 namingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-27audio: simplify alt settings managementHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-08-02fix tud_audio_set_itf_close_EP_cb() typohathach
2025-07-08minor reformat codehathach
2025-07-08Merge remote-tracking branch 'origin/master' into xfer_isrhathach
# Conflicts: # examples/device/audio_4_channel_mic_freertos/src/main.c # examples/device/audio_test_freertos/src/main.c # src/class/audio/audio_device.c
2025-07-03Merge branch 'master' into fork/HiFiPhile/stm32_cachehathach
2025-06-26audio_device: Fix data IN endpoints with implicit feedbackmilek7
2025-06-14audio: remove FIFO mutex, as audio streaming is always single producer ↵HiFiPhile
single consumer Signed-off-by: HiFiPhile <[email protected]>
2025-06-14audio: move ISO transfers into xfer_isrHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>