From: Lydia Wang Date: Tue, 21 Jun 2011 08:11:11 +0000 (+0800) Subject: ALSA: hda - Fix creations of playback volume controls in patch_via.c X-Git-Tag: MMI-PSA29.97-13-9~18103^2~124^2~69^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a00a5fad9ddbabc7cd03d143520b9a4730edc75d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Takashi Iwai --- 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, 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; }