]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ALSA: hda - Always set HP pin in unsol handler for STAC/IDT codecs
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Feb 2012 08:41:17 +0000 (09:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Feb 2012 08:41:39 +0000 (09:41 +0100)
A bug report with an old Sony laptop showed that we can't rely on BIOS
setting the pins of headphones but the driver should set always by
itself.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index 6345df131a005a7202b696ccea02fb5dbfeb0898..9dbb5735d778692c81f0010311b2958309a9fa43 100644 (file)
@@ -4629,7 +4629,7 @@ static void stac92xx_hp_detect(struct hda_codec *codec)
                unsigned int val = AC_PINCTL_OUT_EN | AC_PINCTL_HP_EN;
                if (no_hp_sensing(spec, i))
                        continue;
-               if (presence)
+               if (1 /*presence*/)
                        stac92xx_set_pinctl(codec, cfg->hp_pins[i], val);
 #if 0 /* FIXME */
 /* Resetting the pinctl like below may lead to (a sort of) regressions