aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-03-13 05:40:23 -0400
committerJaroslav Kysela <perex@suse.cz>2007-03-14 03:24:18 -0400
commit0a07acafd6127117db0c20e04302dd8ac9402bc0 (patch)
treeac7952fa3a0cfbb9e6a4dee829c4cdecec05097f /sound/pci/hda/patch_sigmatel.c
parent187689913d92b5b3b595486a0cb82706f9175dc6 (diff)
[ALSA] hda-codec - Fix speaker output on MacPro
Initialize the first line-out widget as the output pin in stac92xx_init(). Some devices like MacPro seem to set this widget as INPUT as default, and confuses the driver. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 4c7b03996be9..c77a6b051da2 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -1600,6 +1600,11 @@ static int stac92xx_init(struct hda_codec *codec)
1600 for (i = 0; i < cfg->hp_outs; i++) 1600 for (i = 0; i < cfg->hp_outs; i++)
1601 enable_pin_detect(codec, cfg->hp_pins[i], 1601 enable_pin_detect(codec, cfg->hp_pins[i],
1602 STAC_HP_EVENT); 1602 STAC_HP_EVENT);
1603 /* force to enable the first line-out; the others are set up
1604 * in unsol_event
1605 */
1606 stac92xx_auto_set_pinctl(codec, spec->autocfg.line_out_pins[0],
1607 AC_PINCTL_OUT_EN);
1603 stac92xx_auto_init_hp_out(codec); 1608 stac92xx_auto_init_hp_out(codec);
1604 /* fake event to set up pins */ 1609 /* fake event to set up pins */
1605 codec->patch_ops.unsol_event(codec, STAC_HP_EVENT << 26); 1610 codec->patch_ops.unsol_event(codec, STAC_HP_EVENT << 26);