ALSA: hda - Fix silent headphone output on Panasonic CF-74
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Jan 2009 15:57:14 +0000 (16:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Jan 2009 06:48:50 +0000 (07:48 +0100)
CF-74 does the headphone/speaker switching on hardware, thus the driver
shouldn't do any software-toggling of pins.  Otherwise it results in a
silent headphone output.

This patch simply resets the hp_detect flag to fix the problem.

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

index 0e6fc56fa3787c37510a8554ac4c9ef073bf715b..89ff916a0ed19619149dcb4381b952df6cfb8334 100644 (file)
@@ -4467,6 +4467,12 @@ static int patch_stac9200(struct hda_codec *codec)
                return err;
        }
 
+       /* CF-74 has no headphone detection, and the driver should *NOT*
+        * do detection and HP/speaker toggle because the hardware does it.
+        */
+       if (spec->board_config == STAC_9200_PANASONIC)
+               spec->hp_detect = 0;
+
        codec->patch_ops = stac92xx_patch_ops;
 
        return 0;