diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-29 12:41:14 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-29 12:41:14 +0000 |
commit | ea922c98d187eb74c31535afa3334ead5bd50526 (patch) | |
tree | 0add2892e10e4686e555ddf1d98c9110ebb4ba9f /LUFA/Drivers/USB/Class/Device/Audio.c | |
parent | cc9b190919abbc567cd179b31afeef565efb1f17 (diff) | |
download | lufa-ea922c98d187eb74c31535afa3334ead5bd50526.tar.gz lufa-ea922c98d187eb74c31535afa3334ead5bd50526.tar.bz2 lufa-ea922c98d187eb74c31535afa3334ead5bd50526.zip |
Added new incomplete AudioInputHost Host LowLevel demo.
Added missing Audio class control request definitions.
Added support for the Audio class GET STATUS request so that it is correctly ACKed when sent by the host.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/Audio.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/Audio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/Audio.c b/LUFA/Drivers/USB/Class/Device/Audio.c index f18db7456..8c5c9960d 100644 --- a/LUFA/Drivers/USB/Class/Device/Audio.c +++ b/LUFA/Drivers/USB/Class/Device/Audio.c @@ -57,6 +57,13 @@ void Audio_Device_ProcessControlRequest(USB_ClassInfo_Audio_Device_t* const Audi } break; + case AUDIO_REQ_GetStatus: + if ((USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE)) || + (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_ENDPOINT))) + { + Endpoint_ClearSETUP(); + Endpoint_ClearStatusStage(); + } } } |