diff options
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c | 2 | ||||
-rw-r--r-- | Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c index 6fe869cda..e364b7bca 100644 --- a/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c +++ b/Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c @@ -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),
};
diff --git a/Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c b/Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c index 98df42372..15d00c0e1 100644 --- a/Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c +++ b/Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c @@ -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),
};
|