aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-24 05:27:22 -0400
committerTakashi Iwai <tiwai@suse.de>2011-06-24 05:27:22 -0400
commit2e925ddeb90ed13b2908c90c4ec31f17efe84359 (patch)
treeb61b3487634cf6c80844bc528d91708f9d70b65b /sound/pci/hda/patch_realtek.c
parent6843ca16f5e381ae80fc563931f8c74bda9fa29a (diff)
ALSA: hda - Use alc_get_pfx_name() for all Realtek codecs
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 7858da5675f..cb8afdab834 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -7184,12 +7184,8 @@ static int alc260_auto_create_multi_out_ctls(struct alc_spec *spec,
7184 nid = cfg->line_out_pins[0]; 7184 nid = cfg->line_out_pins[0];
7185 if (nid) { 7185 if (nid) {
7186 const char *pfx; 7186 const char *pfx;
7187 if (!cfg->speaker_pins[0] && !cfg->hp_pins[0]) 7187 int index;
7188 pfx = "Master"; 7188 pfx = alc_get_line_out_pfx(spec, 0, true, &index);
7189 else if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT)
7190 pfx = "Speaker";
7191 else
7192 pfx = "Front";
7193 err = alc260_add_playback_controls(spec, nid, pfx, &vols); 7189 err = alc260_add_playback_controls(spec, nid, pfx, &vols);
7194 if (err < 0) 7190 if (err < 0)
7195 return err; 7191 return err;
@@ -13639,10 +13635,8 @@ static int alc268_auto_create_multi_out_ctls(struct alc_spec *spec,
13639 nid = cfg->line_out_pins[0]; 13635 nid = cfg->line_out_pins[0];
13640 if (nid) { 13636 if (nid) {
13641 const char *name; 13637 const char *name;
13642 if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) 13638 int index;
13643 name = "Speaker"; 13639 name = alc_get_line_out_pfx(spec, 0, true, &index);
13644 else
13645 name = "Front";
13646 err = alc268_new_analog_output(spec, nid, name, 0); 13640 err = alc268_new_analog_output(spec, nid, name, 0);
13647 if (err < 0) 13641 if (err < 0)
13648 return err; 13642 return err;
@@ -19871,10 +19865,8 @@ static int alc680_auto_create_multi_out_ctls(struct alc_spec *spec,
19871 nid = cfg->line_out_pins[0]; 19865 nid = cfg->line_out_pins[0];
19872 if (nid) { 19866 if (nid) {
19873 const char *name; 19867 const char *name;
19874 if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) 19868 int index;
19875 name = "Speaker"; 19869 name = alc_get_line_out_pfx(spec, 0, true, &index);
19876 else
19877 name = "Front";
19878 err = alc680_new_analog_output(spec, nid, name, 0); 19870 err = alc680_new_analog_output(spec, nid, name, 0);
19879 if (err < 0) 19871 if (err < 0)
19880 return err; 19872 return err;