Fix mic audio descriptor, fix too strict check on IAD desc. in usbd.c

This commit is contained in:
Reinhard Panhuber
2020-06-13 12:36:05 +02:00
parent d2f1bb58b3
commit 4362665fb3
5 changed files with 330 additions and 209 deletions

View File

@@ -779,7 +779,7 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num)
// IAD's first interface number and class/subclass/protocol should match with opened interface
TU_ASSERT(desc_itf_assoc->bFirstInterface == desc_itf->bInterfaceNumber &&
desc_itf_assoc->bFunctionClass == desc_itf->bInterfaceClass &&
desc_itf_assoc->bFunctionSubClass == desc_itf->bInterfaceSubClass &&
// desc_itf_assoc->bFunctionSubClass == desc_itf->bInterfaceSubClass &&
desc_itf_assoc->bFunctionProtocol == desc_itf->bInterfaceProtocol);
for(uint8_t i=1; i<desc_itf_assoc->bInterfaceCount; i++)