ALSA: usb-audio: ignore broken processing/extension unit
authorTom Yan <tom.ty89@gmail.com>
Mon, 17 Aug 2020 17:20:11 +0000 (01:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:34 +0000 (11:29 +0200)
commit8e6025686c8a00d08c710938488aa1618d570252
tree1718f1b45117724a2a88a3d7cab53e74ad434406
parentee4dd74d08725c1abc9052e6e900c3105e9e7edc
ALSA: usb-audio: ignore broken processing/extension unit

[ Upstream commit d8d0db7bb358ef65d60726a61bfcd08eccff0bc0 ]

Some devices have broken extension unit where getting current value
doesn't work. Attempt that once when creating mixer control for it. If
it fails, just ignore it, so that it won't cripple the device entirely
(and/or make the error floods).

Signed-off-by: Tom Yan <tom.ty89@gmail.com>
Link: https://lore.kernel.org/r/5f3abc52.1c69fb81.9cf2.fe91@mx.google.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/usb/mixer.c