From: Xuebing Wang <[email protected]>

UAC1 forget to do it.

Signed-off-by: Xuebing Wang <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
---
 drivers/usb/gadget/function/f_uac1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/function/f_uac1.c 
b/drivers/usb/gadget/function/f_uac1.c
index 0827731..6cf5169 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);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to