diff options
| -rw-r--r-- | sound/pci/hda/patch_realtek.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 07fbf7db69e3..00ed1268f274 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
| @@ -6017,7 +6017,14 @@ static int alc260_auto_create_multi_out_ctls(struct alc_spec *spec, | |||
| 6017 | 6017 | ||
| 6018 | nid = cfg->line_out_pins[0]; | 6018 | nid = cfg->line_out_pins[0]; |
| 6019 | if (nid) { | 6019 | if (nid) { |
| 6020 | err = alc260_add_playback_controls(spec, nid, "Front", &vols); | 6020 | const char *pfx; |
| 6021 | if (!cfg->speaker_pins[0] && !cfg->hp_pins[0]) | ||
| 6022 | pfx = "Master"; | ||
| 6023 | else if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) | ||
| 6024 | pfx = "Speaker"; | ||
| 6025 | else | ||
| 6026 | pfx = "Front"; | ||
| 6027 | err = alc260_add_playback_controls(spec, nid, pfx, &vols); | ||
| 6021 | if (err < 0) | 6028 | if (err < 0) |
| 6022 | return err; | 6029 | return err; |
| 6023 | } | 6030 | } |
