summaryrefslogtreecommitdiff
path: root/src/class/audio
AgeCommit message (Collapse)Author
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-06-18class/audio: remove unused audio20_control_request_thathach
After the UAC2 examples switched to tusb_control_request_t with TU_U16_HIGH/LOW() extraction, audio20_control_request_t is no longer referenced anywhere in the tree. It is a byte-overlay of the setup packet whose bChannelNumber/bControlSelector/bInterface/bEntityID sub-byte fields silently misread on big-endian once wValue/wIndex are converted to host order (tu_le16toh in dcd.h), so leaving it in the public header is a latent BE trap; the BE bitfield guard previously added to its bmRequestType_bit only masked that by guarding byte 0. Drop the struct entirely. Callers should use tusb_control_request_t and TU_U16_LOW/HIGH(wValue|wIndex), matching audio_device.c and the examples. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-04-25fix: add BE bitfield guards for audio and fix UAC2 example endian-safe field ↵copilot-swe-agent[bot]
extraction - Add TU_BITFIELD_ORDER guards for audio10_desc_as_iso_data_ep_t.bmAttributes in audio.h - Add TU_BITFIELD_ORDER guards for audio20_control_request_t.bmRequestType_bit in audio.h - Fix cdc_uac2/src/uac2_app.c: replace alias cast with TU_U16_LOW/HIGH field extraction - Fix uac2_headset/src/main.c: replace alias cast with TU_U16_LOW/HIGH field extraction - Fix uac2_speaker_fb/src/main.c: replace alias cast with TU_U16_LOW/HIGH field extraction Addresses review comment: https://github.com/hathach/tinyusb/pull/3597#issuecomment-4320042007 Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/8b695271-74b3-4a26-b3d8-c48ecdf2e481 Co-authored-by: HiFiPhile <[email protected]>
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-07Merge pull request #3321 from gabChouin/audio_ep_in_target_fifo_sizeZixun LI
audio: Implement support for variable EP in flow control fifo level
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-11-03fixing alert by scanning toolhathach
2025-11-03fix alert using input in gh action. fix some conversion inthathach
2025-10-31Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-10-30Merge branch 'master' into uac1HiFiPhile
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-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-24Merge remote-tracking branch 'upstream/master' into uac1HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
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-14improve cmake warning flags, fix various warnings in exampleshathach
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]>