Message ID | 1546742642-29269-1-git-send-email-saranya.gopal@intel.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | ff2a8c532c14fd22fb26a36574d9ff199afbbe54 |
Headers | show |
Series | [V3] usbcore: Select only first configuration for non-UAC3 compliant devices | expand |
diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c index 356b05c..f713cec 100644 --- a/drivers/usb/core/generic.c +++ b/drivers/usb/core/generic.c @@ -143,9 +143,12 @@ int usb_choose_configuration(struct usb_device *udev) continue; } - if (i > 0 && desc && is_audio(desc) && is_uac3_config(desc)) { - best = c; - break; + if (i > 0 && desc && is_audio(desc)) { + if (is_uac3_config(desc)) { + best = c; + break; + } + continue; } /* From the remaining configs, choose the first one whose