diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-24 01:51:11 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-25 09:15:05 -0500 |
commit | 95026623da32848bc93fbfb472dc8737487df450 (patch) | |
tree | 0eeaa23d744071017c4f26e36a5a6460bf2693a9 /sound | |
parent | f73d35853e9263c7c404f0d6c0fe3d83fc6fd5c0 (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')
-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 5a29699c6fdb..7f7d899ff13a 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -2891,7 +2891,7 @@ static int stac92xx_auto_create_multi_out_ctls(struct hda_codec *codec, | |||
2891 | cfg->hp_outs && !spec->multiout.hp_nid) | 2891 | cfg->hp_outs && !spec->multiout.hp_nid) |
2892 | spec->multiout.hp_nid = nid; | 2892 | spec->multiout.hp_nid = nid; |
2893 | 2893 | ||
2894 | if (cfg->hp_outs > 1) { | 2894 | if (cfg->hp_outs > 1 && cfg->line_out_type == AUTO_PIN_LINE_OUT) { |
2895 | err = stac92xx_add_control(spec, | 2895 | err = stac92xx_add_control(spec, |
2896 | STAC_CTL_WIDGET_HP_SWITCH, | 2896 | STAC_CTL_WIDGET_HP_SWITCH, |
2897 | "Headphone as Line Out Switch", | 2897 | "Headphone as Line Out Switch", |