summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-09-30 23:16:44 +0200
committerHiFiPhile <[email protected]>2025-10-01 09:42:13 +0200
commitd5108589b6f3bb1139523765c9cc625c56b08832 (patch)
treef7155035df73ab9f6a20c5a6909a3727956b9f35 /src/device
parent7867fa6c7d3ebe8324c168e7177a42b8f54a5a99 (diff)
Minor fixes
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index f1065a649..9d241c168 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1101,7 +1101,7 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num)
AUDIO10_CS_AC_INTERFACE_HEADER == ((audio10_desc_cs_ac_interface_1_t const *) p)->bDescriptorSubType) {
audio10_desc_cs_ac_interface_1_t const * p_header = (audio10_desc_cs_ac_interface_1_t const *) p;
// AC + AS interfaces
- assoc_itf_count = tu_le16toh(p_header->bInCollection) + 1;
+ assoc_itf_count = p_header->bInCollection + 1;
break;
}
p = tu_desc_next(p);