[alsa-devel] [PATCH 4/30] ALSA: HDA VIA: Limit VT1702 AA-Path max volume

LoganLi at viatech.com.cn LoganLi at viatech.com.cn
Fri Oct 9 12:40:09 CEST 2009


From: Lydia Wang <lydiawang at viatech.com.cn>
Subject: 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 at viatech.com.cn>
Signed-off-by: Logan Li <loganli at viatech.com.cn>

---
 pci/hda/patch_via.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/pci/hda/patch_via.c
+++ b/pci/hda/patch_via.c
@@ -3165,6 +3165,12 @@
 	err = vt1702_auto_create_hp_ctls(spec,
spec->autocfg.hp_pins[0]);
 	if (err < 0)
 		return err;
+	/* limit AA path volume to 0 dB */
+	snd_hda_override_amp_caps(codec, 0x1A, HDA_INPUT,
+				  (0x17 << AC_AMPCAP_OFFSET_SHIFT) |
+				  (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) |
+				  (0x5 << AC_AMPCAP_STEP_SIZE_SHIFT) |
+				  (1 << AC_AMPCAP_MUTE_SHIFT));
 	err = vt1702_auto_create_analog_input_ctls(spec,
&spec->autocfg);
 	if (err < 0)
 		return err;


More information about the Alsa-devel mailing list