]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO
authorKailang <kailang@realtek.com>
Mon, 28 Dec 2015 03:35:24 +0000 (11:35 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Dec 2015 09:03:27 +0000 (10:03 +0100)
commit2ee680c2cf006c2e6dbd281b6f69b31cf93f5c59
tree93079de07d5d8c5acb8a7fb47c043bd54767a6ec
parent9f7506fdb86c0f10a71f03077ffe8e70b1cc8b26
ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO

The Lenovo ThinkCenter AIO uses Line2 (NID 0x1b) to implement the
micmute hotkey, here we register an input device and use Line2 unsol
event to collect the hotkey pressing or releasing.

In the meanwhile, the micmute led is controlled by GPIO2, so we
use an existing function alc_fixup_gpio_mic_mute_hook() to control
the led.

[Hui: And there are two places to register the input device, to make
the code simple and clean, move the two same code sections into a
function.]

Cc: <stable@vger.kernel.org>
Signed-off-by: Kailang <kailang@realtek.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c