Update incomplete Host mode Audio demos to use the correct class driver Endpoint Sampling Frequency Control value constant.

pull/1469/head
Dean Camera 14 years ago
parent 1a25b6f5f1
commit 2da2b2d9fb

@ -185,7 +185,7 @@ void Audio_Task(void)
{ {
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT), .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),
.bRequest = AUDIO_REQ_SetCurrent, .bRequest = AUDIO_REQ_SetCurrent,
.wValue = 0x0100, .wValue = (AUDIO_EPCONTROL_SamplingFreq << 8),
.wIndex = StreamingEndpointAddress, .wIndex = StreamingEndpointAddress,
.wLength = sizeof(USB_Audio_SampleFreq_t), .wLength = sizeof(USB_Audio_SampleFreq_t),
}; };

@ -186,7 +186,7 @@ void Audio_Task(void)
{ {
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT), .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),
.bRequest = AUDIO_REQ_SetCurrent, .bRequest = AUDIO_REQ_SetCurrent,
.wValue = 0x0100, .wValue = (AUDIO_EPCONTROL_SamplingFreq << 8),
.wIndex = StreamingEndpointAddress, .wIndex = StreamingEndpointAddress,
.wLength = sizeof(USB_Audio_SampleFreq_t), .wLength = sizeof(USB_Audio_SampleFreq_t),
}; };

Loading…
Cancel
Save