projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766ddee
)
ALSA: hda/realtek - Create "Bass Speaker" for two speaker pins
author
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Dec 2011 16:14:20 +0000
(17:14 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Dec 2011 16:32:24 +0000
(17:32 +0100)
On systems with two speaker pins, the secondary speaker pin is mostly
assigned to a bass speaker instead of a surround. Thus it makes more
sense to rename the control properly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 96f5da9db5cf404c610f30d667b6a8ba583f4873..214d4f91d6af5fd6a829b2eb1e808966de9e7fcf 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-2631,6
+2631,8
@@
static const char *alc_get_line_out_pfx(struct alc_spec *spec, int ch,
case AUTO_PIN_SPEAKER_OUT:
if (cfg->line_outs == 1)
return "Speaker";
+ if (cfg->line_outs == 2)
+ return ch ? "Bass Speaker" : "Speaker";
break;
case AUTO_PIN_HP_OUT:
/* for multi-io case, only the primary out */