mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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 commitb364a0d23c("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. Fixes:b364a0d23c("ALSA: usb-audio: Use strings in struct usb_dev for manufacturer & co") Reported-by: Jan Lentfer <jan.lentfer@web.de> Closes: https://lore.kernel.org/e7087d42-5e74-4d85-b1c5-b11eff235d41@web.de Link: https://patch.msgid.link/20260929122938.1471867-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0eee030c2c
commit
b5c4823cf3
|
|
@ -1702,10 +1702,12 @@ 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);
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user