Commit ef7f584c authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: audio: actually support both speeds

While testing g_audio with HighSpeed UDC on a
FS Hub, we had no configurations to present to
the host. That's because both speeds where
mutually exclusive.
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 6532c7fd
...@@ -681,17 +681,18 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f) ...@@ -681,17 +681,18 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
status = -ENOMEM; status = -ENOMEM;
/* supcard all relevant hardware speeds... we expect that when /* copy descriptors, and track endpoint copies */
f->descriptors = usb_copy_descriptors(f_audio_desc);
/*
* support all relevant hardware speeds... we expect that when
* hardware is dual speed, all bulk-capable endpoints work at * hardware is dual speed, all bulk-capable endpoints work at
* both speeds * both speeds
*/ */
/* copy descriptors, and track endpoint copies */
if (gadget_is_dualspeed(c->cdev->gadget)) { if (gadget_is_dualspeed(c->cdev->gadget)) {
c->highspeed = true; c->highspeed = true;
f->hs_descriptors = usb_copy_descriptors(f_audio_desc); f->hs_descriptors = usb_copy_descriptors(f_audio_desc);
} else }
f->descriptors = usb_copy_descriptors(f_audio_desc);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment