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>
Mon, 22 Aug 2016 16:23:25 +0000 (12:23 -0400)
commit0ff4673f9a19ca80e982d03fb0983a57a41c883f
tree44a0040cd1bf29024bda7123c2576c5f9c41db31
parentb8463d761945b76bcd49cf9c9f3f4671ea59aa3f
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