]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Register card again for iface over delayed_register option
authorTakashi Iwai <tiwai@suse.de>
Wed, 31 Aug 2022 12:59:01 +0000 (14:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Sep 2022 08:23:18 +0000 (10:23 +0200)
commit4728a7a8e881897a5e198f50b3a2c95379538301
treec86122fef2c7e2927d2b9f076f4a8e68a70b8bc0
parent6be9c529040d2227e996bc7d2db51c011c009691
ALSA: usb-audio: Register card again for iface over delayed_register option

When the delayed registration is specified via either delayed_register
option or the quirk, we delay the invocation of snd_card_register()
until the given interface.  But if a wrong value has been set there
and there are more interfaces over the given interface number,
snd_card_register() call would be missing for those interfaces.

This patch catches up those missing calls by fixing the comparison of
the interface number.  Now the call is skipped only if the processed
interface is less than the given interface, instead of the exact
match.

Fixes: 0d1d58f0e4d1 ("ALSA: usb-audio: Add delayed_register option")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216082
Link: https://lore.kernel.org/r/20220831125901.4660-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/quirks.c