Skip to content

Commit

Permalink
usb: gadget: audio: remove c->highpseed = true from f_midi and uac1
Browse files Browse the repository at this point in the history
Whether highspeed configuration is valid or not is something that
composite decides and not the gadget. That gadget can only provide the
required descriptors for it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Oct 31, 2012
1 parent e79cc61 commit 1377af2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/usb/gadget/f_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,6 @@ f_midi_bind(struct usb_configuration *c, struct usb_function *f)
*/
/* copy descriptors, and track endpoint copies */
if (gadget_is_dualspeed(c->cdev->gadget)) {
c->highspeed = true;
bulk_in_desc.wMaxPacketSize = cpu_to_le16(512);
bulk_out_desc.wMaxPacketSize = cpu_to_le16(512);
f->hs_descriptors = usb_copy_descriptors(midi_function);
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/gadget/f_uac1.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
* both speeds
*/
if (gadget_is_dualspeed(c->cdev->gadget)) {
c->highspeed = true;
f->hs_descriptors = usb_copy_descriptors(f_audio_desc);
}

Expand Down

0 comments on commit 1377af2

Please sign in to comment.