diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2011-06-21 04:11:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-21 04:24:18 -0400 |
commit | a00a5fad9ddbabc7cd03d143520b9a4730edc75d (patch) | |
tree | 013e4df1990ce9aef53531449c24e25ce606f7f5 /sound/pci/hda/patch_via.c | |
parent | 8e3679dca200a326426a92d998b63cab5a17c52d (diff) |
ALSA: hda - Fix creations of playback volume controls in patch_via.c
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>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r-- | sound/pci/hda/patch_via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index e445a4d24778..853d24411d53 100644 --- 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, | |||
1631 | if (nid) { | 1631 | if (nid) { |
1632 | sprintf(name, "%s Playback Volume", pfx); | 1632 | sprintf(name, "%s Playback Volume", pfx); |
1633 | err = via_add_control(spec, VIA_CTL_WIDGET_VOL, name, | 1633 | err = via_add_control(spec, VIA_CTL_WIDGET_VOL, name, |
1634 | HDA_COMPOSE_AMP_VAL(dac, chs, 0, HDA_OUTPUT)); | 1634 | HDA_COMPOSE_AMP_VAL(nid, chs, 0, HDA_OUTPUT)); |
1635 | if (err < 0) | 1635 | if (err < 0) |
1636 | return err; | 1636 | return err; |
1637 | } | 1637 | } |