diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-06-06 09:45:41 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-06-06 09:45:41 +0000 |
| commit | e47f73c6acba6a876ce88243d743121ffbe1620c (patch) | |
| tree | 859128a13fbff02e5d3b5da3f37a0ce55f766915 /Demos | |
| parent | 2c3c248a0eb50d1edf64c894e6e1add2110edfed (diff) | |
Update incomplete Host mode Audio demos to use the correct class driver Endpoint Sampling Frequency Control value constant.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1784 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos')
| -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 6fe869cd..e364b7bc 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 98df4237..15d00c0e 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),
};
|
