From: David Henningsson Date: Fri, 4 Mar 2011 13:08:30 +0000 (+0100) Subject: ALSA: HDA: Fix volume control naming for surround speakers on Realtek auto-parser X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebbeb3d6aa22433c218da6f29fd7b3ebc89b87ea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: HDA: Fix volume control naming for surround speakers on Realtek auto-parser When more than one pair of internal speakers is present, allow names according to their channels. Tested-by: Bartłomiej Żogała Cc: Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index b4a22dd775a2..6f59bccb104c 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5080,7 +5080,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: