Update incomplete Host mode Audio demos to use the correct class driver Endpoint...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 6 Jun 2011 09:45:41 +0000 (09:45 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 6 Jun 2011 09:45:41 +0000 (09:45 +0000)
Demos/Host/Incomplete/AudioInputHost/AudioInputHost.c
Demos/Host/Incomplete/AudioOutputHost/AudioOutputHost.c

index 6fe869c..e364b7b 100644 (file)
@@ -185,7 +185,7 @@ void Audio_Task(void)
                                {\r
                                        .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),\r
                                        .bRequest      = AUDIO_REQ_SetCurrent,\r
-                                       .wValue        = 0x0100,\r
+                                       .wValue        = (AUDIO_EPCONTROL_SamplingFreq << 8),\r
                                        .wIndex        = StreamingEndpointAddress,\r
                                        .wLength       = sizeof(USB_Audio_SampleFreq_t),\r
                                };\r
index 98df423..15d00c0 100644 (file)
@@ -186,7 +186,7 @@ void Audio_Task(void)
                                {\r
                                        .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT),\r
                                        .bRequest      = AUDIO_REQ_SetCurrent,\r
-                                       .wValue        = 0x0100,\r
+                                       .wValue        = (AUDIO_EPCONTROL_SamplingFreq << 8),\r
                                        .wIndex        = StreamingEndpointAddress,\r
                                        .wLength       = sizeof(USB_Audio_SampleFreq_t),\r
                                };\r