]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add connector notifier delegation
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2020 11:33:20 +0000 (13:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2020 11:33:46 +0000 (13:33 +0200)
commit209a562ec140220b9aa72c831ad5ffdcc34ce31d
tree594893da67c65757f5b2d11516fee10c730e609b
parenta4280d664da9244ac41193d5d241904ce0a0c3f3
ALSA: usb-audio: Add connector notifier delegation

It turned out that ALC1220-VB USB-audio device gives the interrupt
event to some PCM terminals while those don't allow the connector
state request but only the actual I/O terminals return the request.
The recent commit a8cfa5f6d386 ("ALSA: usb-audio: Don't create jack
controls for PCM terminals") excluded those phantom terminals, so
those events are ignored, too.

My first thought was that this could be easily deduced from the
associated terminals, but some of them have even no associate terminal
ID, hence it's not too trivial to figure out.

Since the number of such terminals are small and limited, this patch
implements another quirk table for the simple mapping of the
connectors.  It's not really scalable, but let's hope that there will
be not many such funky devices in future.

Fixes: a8cfa5f6d386 ("ALSA: usb-audio: Don't create jack controls for PCM terminals")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206873
Link: https://lore.kernel.org/r/20200422113320.26664-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c
sound/usb/mixer.h
sound/usb/mixer_maps.c