瀏覽代碼

ALSA: hda - Avoid touching mute-VREF pin for IDT codecs

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>
Takashi Iwai 13 年之前
父節點
當前提交
542c9a0a2f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      sound/pci/hda/patch_sigmatel.c

+ 3 - 1
sound/pci/hda/patch_sigmatel.c

@@ -4441,7 +4441,9 @@ static int stac92xx_init(struct hda_codec *codec)
 		int pinctl, def_conf;
 		int pinctl, def_conf;
 
 
 		/* power on when no jack detection is available */
 		/* 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);
 			stac_toggle_power_map(codec, nid, 1);
 			continue;
 			continue;
 		}
 		}