diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2011-06-20 14:17:56 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-21 07:24:56 +0200 |
commit | e905a83acd7bf8989c3d5ba3099b72675f5d7d29 (patch) | |
tree | 8530a8eb9f577b2280bd70c06e75db6ab0f963b1 /sound | |
parent | ba31a60d0fd8a3976d44d32f2b82491c62646b2a (diff) | |
download | linux-e905a83acd7bf8989c3d5ba3099b72675f5d7d29.tar.gz linux-e905a83acd7bf8989c3d5ba3099b72675f5d7d29.tar.bz2 linux-e905a83acd7bf8989c3d5ba3099b72675f5d7d29.zip |
ALSA: VIA HDA: Create a master amplifier control for VT1718S.
Create a master volume and mute control of playback for VT1718S.
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_via.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index f1a80cd6afe4..f43bb0eaed8b 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -4462,6 +4462,19 @@ static int vt1718S_auto_create_multi_out_ctls(struct via_spec *spec, if (err < 0) return err; } else if (i == AUTO_SEQ_FRONT) { + /* add control to mixer index 0 */ + err = via_add_control(spec, VIA_CTL_WIDGET_VOL, + "Master Front Playback Volume", + HDA_COMPOSE_AMP_VAL(0x21, 3, 5, + HDA_INPUT)); + if (err < 0) + return err; + err = via_add_control(spec, VIA_CTL_WIDGET_MUTE, + "Master Front Playback Switch", + HDA_COMPOSE_AMP_VAL(0x21, 3, 5, + HDA_INPUT)); + if (err < 0) + return err; /* Front */ sprintf(name, "%s Playback Volume", chname[i]); err = via_add_control( |