Skip to content

Commit

Permalink
ALSA: hda - Avoid touching mute-VREF pin for IDT codecs
Browse files Browse the repository at this point in the history
Some HP laptops use a pin VREF for controlling the mute LED, and such a
pin shouldn't be powered off.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 29, 2011
1 parent ae7cc70 commit 542c9a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4441,7 +4441,9 @@ static int stac92xx_init(struct hda_codec *codec)
int pinctl, def_conf;

/* power on when no jack detection is available */
if (!spec->hp_detect) {
/* or when the VREF is used for controlling LED */
if (!spec->hp_detect ||
(spec->gpio_led > 8 && spec->gpio_led == nid)) {
stac_toggle_power_map(codec, nid, 1);
continue;
}
Expand Down

0 comments on commit 542c9a0

Please sign in to comment.