diff options
Diffstat (limited to 'drivers/usb/gadget/audio.c')
-rw-r--r-- | drivers/usb/gadget/audio.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c index 9f80f4e970bd..a3a0f4a27ef0 100644 --- a/drivers/usb/gadget/audio.c +++ b/drivers/usb/gadget/audio.c | |||
@@ -106,20 +106,20 @@ static int audio_set_endpoint_req(struct usb_configuration *c, | |||
106 | ctrl->bRequest, w_value, len, ep); | 106 | ctrl->bRequest, w_value, len, ep); |
107 | 107 | ||
108 | switch (ctrl->bRequest) { | 108 | switch (ctrl->bRequest) { |
109 | case SET_CUR: | 109 | case UAC_SET_CUR: |
110 | value = 0; | 110 | value = 0; |
111 | break; | 111 | break; |
112 | 112 | ||
113 | case SET_MIN: | 113 | case UAC_SET_MIN: |
114 | break; | 114 | break; |
115 | 115 | ||
116 | case SET_MAX: | 116 | case UAC_SET_MAX: |
117 | break; | 117 | break; |
118 | 118 | ||
119 | case SET_RES: | 119 | case UAC_SET_RES: |
120 | break; | 120 | break; |
121 | 121 | ||
122 | case SET_MEM: | 122 | case UAC_SET_MEM: |
123 | break; | 123 | break; |
124 | 124 | ||
125 | default: | 125 | default: |
@@ -142,13 +142,13 @@ static int audio_get_endpoint_req(struct usb_configuration *c, | |||
142 | ctrl->bRequest, w_value, len, ep); | 142 | ctrl->bRequest, w_value, len, ep); |
143 | 143 | ||
144 | switch (ctrl->bRequest) { | 144 | switch (ctrl->bRequest) { |
145 | case GET_CUR: | 145 | case UAC_GET_CUR: |
146 | case GET_MIN: | 146 | case UAC_GET_MIN: |
147 | case GET_MAX: | 147 | case UAC_GET_MAX: |
148 | case GET_RES: | 148 | case UAC_GET_RES: |
149 | value = 3; | 149 | value = 3; |
150 | break; | 150 | break; |
151 | case GET_MEM: | 151 | case UAC_GET_MEM: |
152 | break; | 152 | break; |
153 | default: | 153 | default: |
154 | break; | 154 | break; |
@@ -171,11 +171,11 @@ audio_setup(struct usb_configuration *c, const struct usb_ctrlrequest *ctrl) | |||
171 | * Audio class messages; interface activation uses set_alt(). | 171 | * Audio class messages; interface activation uses set_alt(). |
172 | */ | 172 | */ |
173 | switch (ctrl->bRequestType) { | 173 | switch (ctrl->bRequestType) { |
174 | case USB_AUDIO_SET_ENDPOINT: | 174 | case USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_ENDPOINT: |
175 | value = audio_set_endpoint_req(c, ctrl); | 175 | value = audio_set_endpoint_req(c, ctrl); |
176 | break; | 176 | break; |
177 | 177 | ||
178 | case USB_AUDIO_GET_ENDPOINT: | 178 | case USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_ENDPOINT: |
179 | value = audio_get_endpoint_req(c, ctrl); | 179 | value = audio_get_endpoint_req(c, ctrl); |
180 | break; | 180 | break; |
181 | 181 | ||