projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e3679d
)
ALSA: hda - Fix creations of playback volume controls in patch_via.c
author
Lydia Wang
<lydiawang@viatech.com.cn>
Tue, 21 Jun 2011 08:11:11 +0000
(16:11 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 21 Jun 2011 08:24:18 +0000
(10:24 +0200)
Fix a issue to create playback volume control if pin has amplifier capability
but not DAC.
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index e445a4d247787dc2d677dbc8a45645bceb3eb3ae..853d24411d533a853cd7a14a859f78b014667d8b 100644
(file)
--- a/
sound/pci/hda/patch_via.c
+++ b/
sound/pci/hda/patch_via.c
@@
-1631,7
+1631,7
@@
static int create_ch_ctls(struct hda_codec *codec, const char *pfx,
if (nid) {
sprintf(name, "%s Playback Volume", pfx);
err = via_add_control(spec, VIA_CTL_WIDGET_VOL, name,
- HDA_COMPOSE_AMP_VAL(
dac
, chs, 0, HDA_OUTPUT));
+ HDA_COMPOSE_AMP_VAL(
nid
, chs, 0, HDA_OUTPUT));
if (err < 0)
return err;
}