summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorTakashi Iwai2008-03-14 09:18:32 +0100
committerTakashi Iwai2008-04-24 12:00:24 +0200
commit2626a263ffc2369499442933b1c313de0a066ede (patch)
tree620a20f4b1b92a36170aeb635aac1a8b52e7ae38 /sound/pci/hda/patch_sigmatel.c
parent[ALSA] hda: 92HD73xxx distortion fix (diff)
downloadkernel-qcow2-linux-2626a263ffc2369499442933b1c313de0a066ede.tar.gz
kernel-qcow2-linux-2626a263ffc2369499442933b1c313de0a066ede.tar.xz
kernel-qcow2-linux-2626a263ffc2369499442933b1c313de0a066ede.zip
[ALSA] hda-codec - Fix orphan Headphone controls in STAC codecs
Currently, the headphone controls are created as Master wrongly in some cases, and this prevents the virtual master controls. The patch fixes the problem by simply using "Headphone" always for headphone controls. 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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index b75bf3475653..b8e69a1b93f0 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -2509,12 +2509,8 @@ static int stac92xx_auto_create_hp_ctls(struct hda_codec *codec,
return err;
}
if (spec->multiout.hp_nid) {
- const char *pfx;
- if (old_num_dacs == spec->multiout.num_dacs)
- pfx = "Master";
- else
- pfx = "Headphone";
- err = create_controls(spec, pfx, spec->multiout.hp_nid, 3);
+ err = create_controls(spec, "Headphone",
+ spec->multiout.hp_nid, 3);
if (err < 0)
return err;
}