diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2009-10-10 07:07:32 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-10-11 11:54:28 -0400 |
commit | c2c02ea326d3683f551120e74a297b354a223357 (patch) | |
tree | bdd442f72ff0a83922f0357b4df5f7736bbb7315 /sound/pci/hda/patch_via.c | |
parent | 518bf3ba753ad93644e7c6cf95c043c918d9429b (diff) |
ALSA: HDA VIA: Limit VT1702 AA-Path max volume
according to customer request, VT1702 AA-Path max volume (12 dB) is too
high, so limit to 0 dB.
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Logan Li <loganli@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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 4d9ffd6f190..e6269898428 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -3166,6 +3166,12 @@ static int vt1702_parse_auto_config(struct hda_codec *codec) | |||
3166 | err = vt1702_auto_create_hp_ctls(spec, spec->autocfg.hp_pins[0]); | 3166 | err = vt1702_auto_create_hp_ctls(spec, spec->autocfg.hp_pins[0]); |
3167 | if (err < 0) | 3167 | if (err < 0) |
3168 | return err; | 3168 | return err; |
3169 | /* limit AA path volume to 0 dB */ | ||
3170 | snd_hda_override_amp_caps(codec, 0x1A, HDA_INPUT, | ||
3171 | (0x17 << AC_AMPCAP_OFFSET_SHIFT) | | ||
3172 | (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | | ||
3173 | (0x5 << AC_AMPCAP_STEP_SIZE_SHIFT) | | ||
3174 | (1 << AC_AMPCAP_MUTE_SHIFT)); | ||
3169 | err = vt1702_auto_create_analog_input_ctls(spec, &spec->autocfg); | 3175 | err = vt1702_auto_create_analog_input_ctls(spec, &spec->autocfg); |
3170 | if (err < 0) | 3176 | if (err < 0) |
3171 | return err; | 3177 | return err; |