ALSA: hda - Fix a failure of micmute led when having multi adcs
authorHui Wang <hui.wang@canonical.com>
Tue, 11 Oct 2016 02:48:58 +0000 (10:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:01:30 +0000 (03:01 -0400)
commitb3f1735ba466d2fc38ebc6c750ed2cade16dee2d
tree2088e7430423713d9e15ccbdac218593d9fcc20d
parent9058e7d70cd70205a508966cd75c18fcf8745e87
ALSA: hda - Fix a failure of micmute led when having multi adcs

commit 4875a5f7218068cdeea5f998330dfa3d118b2fea upstream.

On a Dell laptop, there is no global adcs for all input devices, so
the input devices use the different adc, as a result, dyn_adc_switch
is set to true.

In this situation, it is safe to control the micmute led according to
user's choice of muting/unmuting the current input device, since only
current input device path is active, while other input device paths
are inactive and powered down.

Fixes: 00ef99408b6c ('ALSA: hda - add mic mute led hook for dell machines')
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/dell_wmi_helper.c
sound/pci/hda/thinkpad_helper.c