ALSA: usb-audio: Check mapping at creating connector controls, too
authorTakashi Iwai <tiwai@suse.de>
Sun, 12 Apr 2020 08:13:31 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:39 +0000 (09:06 +0200)
commit7eefe1f2056c7a53586ff943309cfdb4a5562934
tree7b9d73ff0b6fdcd500b51f520a849ff801d027f4
parent6bd82d427fb0b55bc4788ad7f7df9d3bd2f1f290
ALSA: usb-audio: Check mapping at creating connector controls, too

commit 934b96594ed66b07dbc7e576d28814466df3a494 upstream.

Add the mapping check to build_connector_control() so that the device
specific quirk can provide the node to skip for the badly behaving
connector controls.  As an example, ALC1220-VB-based codec implements
the skip entry for the broken SPDIF connector detection.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206873
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200412081331.4742-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c
sound/usb/mixer_maps.c