ALSA: usb-audio: Yet more regression for for the delayed card registration
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2022 06:58:23 +0000 (07:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2022 06:59:30 +0000 (07:59 +0100)
commit971cb608d1c5d95533a43b549bb8ec9637f10043
tree810f6fdcb9e2e18fcf4b9527147504f881e7e2c7
parent0c423e2ffa7edd3f8f9bcf17ce73fa9c7509b99e
ALSA: usb-audio: Yet more regression for for the delayed card registration

Although we tried to fix the regression for the recent changes with
the delayed card registration, it doesn't seem covering the all
cases; e.g. on Roland EDIROL M-100FX, where the generic quirk for
Roland devices is applied, it misses the card registration because the
detection of the last interface (apparently for MIDI) fails.

This patch is an attempt to recover from those failures by calling the
card register also at the error path for the secondary interfaces.
The card register condition is also extended to match with the old
check in the previous patch, too (i.e. the simple check of the
interface number) for catching the probe with errors.

Fixes: 39efc9c8a973 ("ALSA: usb-audio: Fix last interface check for registration")
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.suse.com/show_bug.cgi?id=1205111
Link: https://lore.kernel.org/r/20221108065824.14418-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c