summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorZhang, Zhenjiang <[email protected]>2026-07-17 10:40:44 +0800
committerZhang, Zhenjiang <[email protected]>2026-07-17 10:40:44 +0800
commit817807dc64ae3124a315f42d67eb00271c3846e0 (patch)
tree3564087447b54be78d0da3cab08ff1a09b12d08c /examples/host
parentf76a0f2c0addb4988da2ef7d993d3253a1667d1a (diff)
fix(class/audio): handle non-audio interface in enumeration and fix async control transfer buffer
- Stop parsing at first non-Audio interface in audioh_open to avoid claiming unrelated interfaces - Call usbh_driver_set_config_complete for AS and unknown interfaces to allow enumeration to continue - Add global ctrl endpoint buffer to audioh_epbuf_t to fix use-after-return in feature_unit_set - Add sampling_freq NULL check and initialize to 0 in tuh_audio_get_sampling_freq - Change BOARD_TUH_RHPORT from 1 to 0 in audio_host example - Add only.txt with supported MCU/family list for audio_host example
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/audio_host/only.txt32
-rw-r--r--examples/host/audio_host/src/tusb_config.h2
2 files changed, 33 insertions, 1 deletions
diff --git a/examples/host/audio_host/only.txt b/examples/host/audio_host/only.txt
new file mode 100644
index 000000000..a2ff93be5
--- /dev/null
+++ b/examples/host/audio_host/only.txt
@@ -0,0 +1,32 @@
+family:hpmicro
+family:samd21
+family:samd5x_e5x
+mcu:CH32V20X
+mcu:KINETIS_KL
+mcu:LPC175X_6X
+mcu:LPC177X_8X
+mcu:LPC18XX
+mcu:LPC40XX
+mcu:LPC43XX
+mcu:LPC54
+mcu:LPC55
+mcu:MAX3421
+mcu:MIMXRT10XX
+mcu:MIMXRT11XX
+mcu:MIMXRT1XXX
+mcu:MSP432E4
+mcu:RAXXX
+mcu:RP2040
+mcu:RW61X
+mcu:RX65X
+mcu:STM32C0
+mcu:STM32C5
+mcu:STM32F4
+mcu:STM32F7
+mcu:STM32G0
+mcu:STM32H5
+mcu:STM32H7
+mcu:STM32H7RS
+mcu:STM32N6
+mcu:STM32U3
+mcu:STM32U5
diff --git a/examples/host/audio_host/src/tusb_config.h b/examples/host/audio_host/src/tusb_config.h
index a4fb17fa5..4a7a6ad56 100644
--- a/examples/host/audio_host/src/tusb_config.h
+++ b/examples/host/audio_host/src/tusb_config.h
@@ -68,7 +68,7 @@ extern "C" {
#define CFG_TUH_MAX_SPEED BOARD_TUH_MAX_SPEED
#ifndef BOARD_TUH_RHPORT
- #define BOARD_TUH_RHPORT 1
+ #define BOARD_TUH_RHPORT 0
#endif
#ifndef BOARD_TUH_MAX_SPEED