aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_conexant.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index e3df8ac37076..64df8100593d 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -1005,15 +1005,19 @@ static int patch_cxt5045(struct hda_codec *codec)
1005#endif 1005#endif
1006 } 1006 }
1007 1007
1008 /* 1008 switch (codec->subsystem_id >> 16) {
1009 * Fix max PCM level to 0 dB 1009 case 0x103c:
1010 * (originall it has 0x2b steps with 0dB offset 0x14) 1010 /* HP laptop has a really bad sound over 0dB on NID 0x17.
1011 */ 1011 * Fix max PCM level to 0 dB
1012 snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, 1012 * (originall it has 0x2b steps with 0dB offset 0x14)
1013 (0x14 << AC_AMPCAP_OFFSET_SHIFT) | 1013 */
1014 (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) | 1014 snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
1015 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | 1015 (0x14 << AC_AMPCAP_OFFSET_SHIFT) |
1016 (1 << AC_AMPCAP_MUTE_SHIFT)); 1016 (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) |
1017 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) |
1018 (1 << AC_AMPCAP_MUTE_SHIFT));
1019 break;
1020 }
1017 1021
1018 return 0; 1022 return 0;
1019} 1023}