ALSA: usb-audio: Apply boot quirk for Behringer models generically
PATCH 1/1 ALSA: usb-audio: Apply boot quirk for Behringer models generically
Jan reported that a few Behringer devices became broken since the recent optimization to avoid usb_string() call at probe time at the commit b364a0d23cae ("ALSA: usb-audio: Use strings in struct usb_dev for manufacturer & co"). Interestingly, the devices seem requiring the explicit descriptor read at probing time, and the optimization above dropped it.
There is already a boot quirk for another model, Behringer CM1A (1397:1234), that adds a device descriptor read, and this seems working for them, too. As the quirk is safe and cheap, just apply the same boot quirk to all Behringer devices for avoiding the pitfall again.
---
This is a revised solution from the previous patch
https://lore.kernel.org/[email protected]
sound/usb/quirks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/usb/quirks.c +4 -2
@@ -1784,13 +1784,15 @@ int snd_usb_apply_boot_quirk_once(struct usb_device *dev,switch (id) {case USB_ID (0x07fd ,0x0008 ):/* MOTU M Series, 1st hardware version */ return snd_usb_motu_m_series_boot_quirk (dev); -case USB_ID (0x1397 ,0x1234 ):/* Behringer CM1A */ -return snd_usb_cm1a_boot_quirk (dev);case USB_ID (0x2717 ,0xd005 ):/* Xiaomi audio connector */ snd_usb_xiaomi_boot_quirk (dev);return 0 ; } +/* Behringer devices may need explicit device descriptor read at boot */ +if (USB_ID_VENDOR (id) ==0x1397 ) +return snd_usb_cm1a_boot_quirk (dev); +return 0 ; }
Signature · 1 line
2.55.0