summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-10-02 23:59:24 +0200
committerHiFiPhile <[email protected]>2025-10-02 23:59:24 +0200
commitd322207441d55f636be911899f1c7928ba6b00b7 (patch)
tree9fd1c782c50e400813f73a432bd129816c6083f0 /src/class
parent4ae26db4a9fb462cf871cdf585ba761f23cab6b4 (diff)
Add UAC1 support to uac2_headset example
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/class')
-rw-r--r--src/class/audio/audio_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index 1e001479c..4019e2850 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -912,7 +912,9 @@ uint16_t audiod_open(uint8_t rhport, tusb_desc_interface_t const *itf_desc, uint
|| tu_desc_type(p_desc) == TUSB_DESC_INTERFACE_ASSOCIATION) {
break;
} else if (tu_desc_type(p_desc) == TUSB_DESC_INTERFACE && ((tusb_desc_interface_t const *) p_desc)->bInterfaceSubClass == AUDIO_SUBCLASS_STREAMING) {
- _audiod_fct[i].p_desc_as = p_desc;
+ if (_audiod_fct[i].p_desc_as == 0) {
+ _audiod_fct[i].p_desc_as = p_desc;
+ }
}
total_len += p_desc[0];
p_desc = tu_desc_next(p_desc);