Skip to content

Commit

Permalink
ALSA: HDA: Fix volume control naming for surround speakers on Realtek…
Browse files Browse the repository at this point in the history
… auto-parser

When more than one pair of internal speakers is present, allow names
according to their channels.

Tested-by: Bartłomiej Żogała <nusch88@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Mar 10, 2011
1 parent 32eea38 commit ebbeb3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ebbeb3d

Please sign in to comment.