]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/patch_realtek.c
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)
commit3694cb2947db50753caf432db067487eafae7b9b
tree93079de07d5d8c5acb8a7fb47c043bd54767a6ec
parent0fb0b822d157325b66c503d23332f64899bfb828
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