summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuebing Wang <xbing6@gmail.com>2014-12-10 16:28:14 +0800
committerFelipe Balbi <balbi@ti.com>2015-01-12 12:13:26 -0600
commit625763d101c7aa706b35f052cd978a61f1ef26bc (patch)
treea36478a2c2eeb05049e8a20a532f11f5c7a228cc
parent90f9e53345d307f53b040e7a50193f20f88ab87a (diff)
usb: gadget: f_uac1: configure endpoint before using it
UAC1 forget to do it. Signed-off-by: Xuebing Wang <xbing6@gmail.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/function/f_uac1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_uac1.c b/drivers/usb/gadget/function/f_uac1.c
index f7b203293205..380b13778556 100644
--- a/drivers/usb/gadget/function/f_uac1.c
+++ b/drivers/usb/gadget/function/f_uac1.c
@@ -584,6 +584,7 @@ static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
if (intf == 1) {
if (alt == 1) {
+ config_ep_by_speed(cdev->gadget, f, out_ep);
usb_ep_enable(out_ep);
out_ep->driver_data = audio;
audio->copy_buf = f_audio_buffer_alloc(audio_buf_size);