diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-24 01:51:11 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-24 01:51:11 -0500 |
commit | a9cb5c90539dd618029884701760fe79b9b83102 (patch) | |
tree | bc93f3187728c2136a90108cab7f75a85f09d9be /sound/pci/hda/patch_sigmatel.c | |
parent | 4805286bffa9d7b85223ab2038f08b4b6322a176 (diff) |
ALSA: hda - No 'Headphone as Line-out' swich without line-outs
STAC/IDT driver creates "Headphone as Line-Out" switch even if there
is no line-out pins on the machine. For devices only with headpohnes
and speaker-outs, this switch shouldn't be created.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index ce34e4dfe985..7cd395a175ef 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -2962,7 +2962,7 @@ static int stac92xx_auto_create_multi_out_ctls(struct hda_codec *codec, | |||
2962 | cfg->hp_outs && !spec->multiout.hp_nid) | 2962 | cfg->hp_outs && !spec->multiout.hp_nid) |
2963 | spec->multiout.hp_nid = nid; | 2963 | spec->multiout.hp_nid = nid; |
2964 | 2964 | ||
2965 | if (cfg->hp_outs > 1) { | 2965 | if (cfg->hp_outs > 1 && cfg->line_out_type == AUTO_PIN_LINE_OUT) { |
2966 | err = stac92xx_add_control(spec, | 2966 | err = stac92xx_add_control(spec, |
2967 | STAC_CTL_WIDGET_HP_SWITCH, | 2967 | STAC_CTL_WIDGET_HP_SWITCH, |
2968 | "Headphone as Line Out Switch", | 2968 | "Headphone as Line Out Switch", |