Commit 8a805f1e authored by David Henningsson's avatar David Henningsson Committed by Greg Kroah-Hartman

ALSA: HDA: Fix volume control naming for surround speakers on Realtek auto-parser

commit ebbeb3d6 upstream.

When more than one pair of internal speakers is present, allow names
according to their channels.
Tested-by: default avatarBartłomiej Żogała <nusch88@gmail.com>
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3e3aecb4
......@@ -5151,7 +5151,9 @@ static const char *alc_get_line_out_pfx(const struct auto_pin_cfg *cfg,
switch (cfg->line_out_type) {
case AUTO_PIN_SPEAKER_OUT:
return "Speaker";
if (cfg->line_outs == 1)
return "Speaker";
break;
case AUTO_PIN_HP_OUT:
return "Headphone";
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment