diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-23 19:24:15 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-24 05:37:33 -0400 |
commit | 95f74c41b2e53f541f2f66c8ba3dac1601ebd409 (patch) | |
tree | b768806091ada70ed34ede093f519855a3aa6a5c /sound/pci/hda/patch_sigmatel.c | |
parent | 161ebf295e2ad7876195143342362d2cf6ffaca2 (diff) |
ALSA: hda - Fix mute LED on HP laptops in runtime suspend
When HP laptops with mute and mic-record LEDs go to runtime suspend,
these LEDs are turned on forcibly no matter whether GPIO pis are on or
off. This strange behavior seems triggered by resetting the HD-audio
bus link at azx_rutime_suspend(). So, just add a new hda_bus flag to
avoid the link reset at runtime suspend and set it for these HP
machines.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index fba0cef1c47f..69a549a82345 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -2091,8 +2091,10 @@ static void stac92hd83xxx_fixup_hp_mic_led(struct hda_codec *codec, | |||
2091 | { | 2091 | { |
2092 | struct sigmatel_spec *spec = codec->spec; | 2092 | struct sigmatel_spec *spec = codec->spec; |
2093 | 2093 | ||
2094 | if (action == HDA_FIXUP_ACT_PRE_PROBE) | 2094 | if (action == HDA_FIXUP_ACT_PRE_PROBE) { |
2095 | spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ | 2095 | spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ |
2096 | codec->bus->avoid_link_reset = 1; | ||
2097 | } | ||
2096 | } | 2098 | } |
2097 | 2099 | ||
2098 | static void stac92hd83xxx_fixup_headset_jack(struct hda_codec *codec, | 2100 | static void stac92hd83xxx_fixup_headset_jack(struct hda_codec *codec, |