Commit 2da2b2d9 authored by Dean Camera's avatar Dean Camera
Browse files

Update incomplete Host mode Audio demos to use the correct class driver...

Update incomplete Host mode Audio demos to use the correct class driver Endpoint Sampling Frequency Control value constant.
parent 1a25b6f5
......@@ -185,7 +185,7 @@ void Audio_Task(void)
{
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),
.bRequest = AUDIO_REQ_SetCurrent,
.wValue = 0x0100,
.wValue = (AUDIO_EPCONTROL_SamplingFreq << 8),
.wIndex = StreamingEndpointAddress,
.wLength = sizeof(USB_Audio_SampleFreq_t),
};
......
......@@ -186,7 +186,7 @@ void Audio_Task(void)
{
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),
.bRequest = AUDIO_REQ_SetCurrent,
.wValue = 0x0100,
.wValue = (AUDIO_EPCONTROL_SamplingFreq << 8),
.wIndex = StreamingEndpointAddress,
.wLength = sizeof(USB_Audio_SampleFreq_t),
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment