aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/UC3/Host_UC3.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-05-30 11:07:57 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-05-30 11:07:57 +0000
commit2a26efc6912badfff9e798f5dbac57ba85ce6dd1 (patch)
tree9510c38dc53bbf95489cd10c00d5685e4d97d70b /LUFA/Drivers/USB/Core/UC3/Host_UC3.c
parent78cfaac9b4fc9ae15652f18e9abb79dcedfcd4b5 (diff)
downloadlufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.tar.gz
lufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.tar.bz2
lufa-2a26efc6912badfff9e798f5dbac57ba85ce6dd1.zip
Altered the definition of the USB_Audio_Descriptor_Format_t descriptor so that the user is now responsible for supplying the supported audio sampling rates, to allow for multiple audio interfaces with different numbers of supported rates and/or continuous sample rates.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/Host_UC3.c')
-rw-r--r--LUFA/Drivers/USB/Core/UC3/Host_UC3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/Host_UC3.c b/LUFA/Drivers/USB/Core/UC3/Host_UC3.c
index 02cb1e68e..1dd2b578b 100644
--- a/LUFA/Drivers/USB/Core/UC3/Host_UC3.c
+++ b/LUFA/Drivers/USB/Core/UC3/Host_UC3.c
@@ -351,7 +351,7 @@ uint8_t USB_Host_ClearPipeStall(const uint8_t EndpointNum)
return USB_Host_SendControlRequest(NULL);
}
-uint8_t USB_Host_SetInterfaceAltSetting(const uint8_t InterfaceNum,
+uint8_t USB_Host_SetInterfaceAltSetting(const uint8_t InterfaceIndex,
const uint8_t AltSetting)
{
USB_ControlRequest = (USB_Request_Header_t)
@@ -359,7 +359,7 @@ uint8_t USB_Host_SetInterfaceAltSetting(const uint8_t InterfaceNum,
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),
.bRequest = REQ_SetInterface,
.wValue = AltSetting,
- .wIndex = InterfaceNum,
+ .wIndex = InterfaceIndex,
.wLength = 0,
};