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

This commit is contained in:
Dean Camera 2011-06-06 09:45:41 +00:00
parent 1a25b6f5f1
commit 2da2b2d9fb
2 changed files with 2 additions and 2 deletions

View File

@ -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),
};

View File

@ -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),
};