]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:05 +0000 (13:15 -0500)
commit42929fe6d85ae5a3916f79d5c70792fb35d48603
tree741367c34f6a37d90daf3574a05161b1e2502e65
parent559e8bf80c9676b40f1ddcb7a90e1eaa2f3c6a2a
ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO

[ Upstream commit 3694cb2947db50753caf432db067487eafae7b9b ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_realtek.c