aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_conexant.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-12-17 08:32:49 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:37 -0500
commit48ecb7e879ea172a0b3fd432ad49a870d7be6a59 (patch)
tree748c4a6db3fe6cc05c063343cc4ae5592998618b /sound/pci/hda/patch_conexant.c
parent8e9068b1c7a154246f4cee93fd68c862b81b04e1 (diff)
[ALSA] hda-codec - Avoid overload of PCM volume on Cx5045 codec
The PCM volume of Cx5045 codec has overload that isn't useful but rather harmful. Add a hack to override the amp info to set the max level 0 dB. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r--sound/pci/hda/patch_conexant.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 68f23b823e25..a6916da73c46 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_codec *codec)
826 spec->init_verbs[0] = cxt5045_test_init_verbs; 826 spec->init_verbs[0] = cxt5045_test_init_verbs;
827#endif 827#endif
828 } 828 }
829
830 /*
831 * Fix max PCM level to 0 dB
832 * (originall it has 0x2b steps with 0dB offset 0x14)
833 */
834 snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
835 (0x14 << AC_AMPCAP_OFFSET_SHIFT) |
836 (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
837 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
838 (1 << AC_AMPCAP_MUTE_SHIFT));
839
829 return 0; 840 return 0;
830} 841}
831 842