]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Oct 2016 18:07:25 +0000 (20:07 +0200)
commit07e2a75a297dbfaa627849343527a484f74ea0c9
tree30a64cb5f6c98b0ed47668adb0fb0283bac17d18
parent2c62cde64f07297328cdb631dc71bb8e5a4a1a28
ALSA: hda - Fix a failure of micmute led when having multi adcs

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: 64b493e1b6e5 ('ALSA: hda - add mic mute led hook for dell machines')
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/dell_wmi_helper.c
sound/pci/hda/thinkpad_helper.c