]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: hda - Fix remaining VREF mute-LED NID check in post-3.1 changes
authorTakashi Iwai <tiwai@suse.de>
Tue, 6 Dec 2011 12:17:23 +0000 (13:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Dec 2011 12:21:43 +0000 (13:21 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index ea1f157ca38b11b2b3aa6fb916c2efd8ab532fe9..eeb25d529e30b51bebbb42924a4733c6308dc2df 100644 (file)
@@ -4442,7 +4442,7 @@ static int stac92xx_init(struct hda_codec *codec)
                /* power on when no jack detection is available */
                /* or when the VREF is used for controlling LED */
                if (!spec->hp_detect ||
-                   (spec->gpio_led > 8 && spec->gpio_led == nid)) {
+                   spec->vref_mute_led_nid == nid) {
                        stac_toggle_power_map(codec, nid, 1);
                        continue;
                }