aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2012-09-06 05:17:58 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-06 06:01:55 -0400
commit298efee7f5a20a32c9ebfa0f7469d87d84998ba1 (patch)
tree99ed9d761f13362848f06f1e17815eda9d60e856 /sound/pci/hda
parent2d7e887cbba8272a46c42d228d3ffd9a2de04168 (diff)
ALSA: hda - fix control names for multiple speaker out on IDT/STAC
For multiple speaker outs, the names were previously "Speaker,0", "Speaker,1", "Center"/"LFE", "Speaker,3". This is inconsistent, confusing, and is not picked up correctly by PulseAudio. Instead use "Front", "Surround", "Center"/"LFE", "Side" which is more standard. BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1046734 Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/patch_sigmatel.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 9db305633efe..c16d0f822b5b 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -3226,9 +3226,12 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
3226 idx = i; 3226 idx = i;
3227 break; 3227 break;
3228 case AUTO_PIN_SPEAKER_OUT: 3228 case AUTO_PIN_SPEAKER_OUT:
3229 name = "Speaker"; 3229 if (num_outs <= 1) {
3230 idx = i; 3230 name = "Speaker";
3231 break; 3231 idx = i;
3232 break;
3233 }
3234 /* Fall through in case of multi speaker outs */
3232 default: 3235 default:
3233 name = chname[i]; 3236 name = chname[i];
3234 idx = 0; 3237 idx = 0;