diff options
author | Daniel T Chen <crimsun@ubuntu.com> | 2010-05-10 21:50:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-26 14:32:08 -0700 |
commit | dc96a775c1a8e72a4a96d59b8afedc0eeb0c3b21 (patch) | |
tree | 7160fa9870f66ac3e12900b848f6b3dcf2eb135b /sound | |
parent | 6bf3f4c3fd9d370c02495a435708ad2f3094120a (diff) | |
download | lwn-dc96a775c1a8e72a4a96d59b8afedc0eeb0c3b21.tar.gz lwn-dc96a775c1a8e72a4a96d59b8afedc0eeb0c3b21.zip |
ALSA: hda: Fix 0 dB for Lenovo models using Conexant CX20549 (Venice)
commit 0ebf9e3692d640917fb792a7494d05e1f5b1058f upstream.
Reference: http://mailman.alsa-project.org/pipermail/alsa-devel/2010-May/027525.html
As reported on the mailing list, we also need to cap to the 0 dB offset
for Lenovo models, else the sound will be distorted.
Reported-and-Tested-by: Tim Starling <tstarling@wikimedia.org>
Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 1a97c81b254c..a978645e1124 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -1176,9 +1176,10 @@ static int patch_cxt5045(struct hda_codec *codec) case 0x103c: case 0x1631: case 0x1734: - /* HP, Packard Bell, & Fujitsu-Siemens laptops have really bad - * sound over 0dB on NID 0x17. Fix max PCM level to 0 dB - * (originally it has 0x2b steps with 0dB offset 0x14) + case 0x17aa: + /* HP, Packard Bell, Fujitsu-Siemens & Lenovo laptops have + * really bad sound over 0dB on NID 0x17. Fix max PCM level to + * 0 dB (originally it has 0x2b steps with 0dB offset 0x14) */ snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, (0x14 << AC_AMPCAP_OFFSET_SHIFT) | |