]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 7 Jan 2015 14:50:13 +0000 (15:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Jan 2015 14:57:38 +0000 (15:57 +0100)
commit33f4acd3b214fee9662cbaf569a4876b8604f152
tree8a3bf87571de7166a11d6f2bc96fff6d5cc895d8
parent3b6fe95a07a1bb13784df866aa75c7bcc28529e3
ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine

On this machine, the mic mute hotkey is connected to GPIO2. We therefore
create an extra input device for this key.

Also enable LEDs connected to GPIO3 and GPIO4.

(Note: if this patch is backported to older kernels, where KEY_MIC_MUTE is
not available, change the KEY_MIC_MUTE to KEY_F20, which was previously used
for mic mute keys.)

BugLink: https://bugs.launchpad.net/bugs/1408295
Tested-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c