summaryrefslogtreecommitdiff
path: root/examples/host/audio_host/src
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/audio_host/src
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/audio_host/src')
-rw-r--r--examples/host/audio_host/src/tusb_config.h2
1 files changed, 1 insertions, 1 deletions
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