mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ALSA: usb-audio: Handle the error from snd_usb_mixer_apply_create_quirk()
[ Upstream commit328e9f6973] The error from snd_usb_mixer_apply_create_quirk() is ignored in the current usb-audio driver code, which will continue the probing even after the error. Let's take it more serious. Fixes:7b1eda223d("ALSA: usb-mixer: factor out quirks") Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
74cc8d4b53
commit
adf1983a4f
@@ -3480,7 +3480,9 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
|
||||
if (err < 0)
|
||||
goto _error;
|
||||
|
||||
snd_usb_mixer_apply_create_quirk(mixer);
|
||||
err = snd_usb_mixer_apply_create_quirk(mixer);
|
||||
if (err < 0)
|
||||
goto _error;
|
||||
|
||||
err = snd_device_new(chip->card, SNDRV_DEV_CODEC, mixer, &dev_ops);
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user