ALSA: hda/realtek: Enable HP amp and mute LED on HP Folio 9480m [v3]
authorKeith Packard <keithp@keithp.com>
Wed, 15 Jul 2015 19:14:39 +0000 (12:14 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Sat, 20 Aug 2016 03:07:58 +0000 (23:07 -0400)
commit6cdb1649f74423f61f7425d7447f3182a676d76b
tree2b076d02b9defd2d5cb8410b61664202749bcc5f
parentbaea0d65a4810802ee865d123c84436c52b416fd
ALSA: hda/realtek: Enable HP amp and mute LED on HP Folio 9480m [v3]

[ Upstream commit 98973f2f083a5ec580da8bbb685e6baa93613546 ]

This laptop needs GPIO4 pulled high to enable the headphone amplifier,
and has a mute LED on GPIO3. I modelled the patch on the existing
GPIO4 code which pulls the line low for the same purpose; this time,
the HP amp line is pulled high.

v2: Disable the headphone amplifier when no headphone is connected.
    Don't disable power savings to preserve the LED state.

v3: Remove headset-specific hooks and code; this is just a headphone.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
sound/pci/hda/patch_realtek.c