diff options
author | Dean Camera <[email protected]> | 2012-03-14 22:12:40 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2012-03-14 22:12:40 +0000 |
commit | 77adb2ba529973b99383fd4571f67eede3afcda4 (patch) | |
tree | 792fa510f9643f2e82ea81bc890c83c630ce9d1b /LUFA/Drivers/USB/Class/Device/AudioClassDevice.c | |
parent | c0f763db0474e6441ed313c208eaf9b34a2ca6b1 (diff) | |
download | qmk_firmware-77adb2ba529973b99383fd4571f67eede3afcda4.tar.gz qmk_firmware-77adb2ba529973b99383fd4571f67eede3afcda4.zip |
Audio Device Class driver changed to also require the index of the Audio Control interface within the device, for SET/GET/CUR/MIN/MAX/RES property adjustments.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/AudioClassDevice.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/AudioClassDevice.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c b/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c index 1e91a61340..4f3cfd62df 100644 --- a/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c +++ b/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c @@ -44,7 +44,11 @@ void Audio_Device_ProcessControlRequest(USB_ClassInfo_Audio_Device_t* const Audi if ((USB_ControlRequest.bmRequestType & CONTROL_REQTYPE_RECIPIENT) == REQREC_INTERFACE) { - if ((USB_ControlRequest.wIndex & 0xFF) != AudioInterfaceInfo->Config.StreamingInterfaceNumber) + uint8_t InterfaceIndex = (USB_ControlRequest.wIndex & 0xFF); + + if ((InterfaceIndex != AudioInterfaceInfo->Config.ControlInterfaceNumber) && + (InterfaceIndex != AudioInterfaceInfo->Config.StreamingInterfaceNumber)) + return; } else if ((USB_ControlRequest.bmRequestType & CONTROL_REQTYPE_RECIPIENT) == REQREC_ENDPOINT) |