summaryrefslogtreecommitdiff
path: root/src/class/audio/audio_device.c
AgeCommit message (Collapse)Author
2026-08-04audio_device: enforce the documented FIFO minimum in the EP-IN flow-control ↵rt-rtos
guard The comment above audiod_tx_packet_size() states flow control needs a FIFO of at least 4*Navg, but the guard tests nominal_size[1] <= fifo_depth * 4 - true for any FIFO larger than a quarter packet - instead of nominal_size[1] * 4 <= fifo_depth. As written, flow control engages on FIFOs far below its own documented minimum, where the depth/2 setpoint sits within one packet of empty and the packet_size = 0 branch (a zero-length packet, i.e. an audible 1 ms dropout for audio-class hosts) is reachable from ordinary scheduling jitter rather than only from gross clock deviation. With the guard corrected, undersized FIFOs fall back to the plain min(count, max) path as intended.
2026-07-09audio: drop stale EP-busy note in audiod_set_interfacehathach
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]>