[PATCH 2/4] ALSA: HDA: Fix volume control naming for surround speakers on Realtek auto-parser

David Henningsson david.henningsson at canonical.com
Fri Mar 4 14:08:30 CET 2011


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

Tested-by: Bartłomiej Żogała <nusch88 at gmail.com>
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 sound/pci/hda/patch_realtek.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index ed4873c..fe45c61 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5150,7 +5150,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:
-- 
1.7.1


--------------070904000204070302040307
Content-Type: text/x-patch;
 name="0003-ALSA-HDA-Fixup-unnecessary-volume-control-index-on-R.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
 filename*0="0003-ALSA-HDA-Fixup-unnecessary-volume-control-index-on-R.pa";
 filename*1="tch"



More information about the Alsa-devel mailing list