[alsa-devel] [PATCH] ALSA: hda: Fix 0 dB for Lenovo models using Conexant CX20549 (Venice)
Takashi Iwai
tiwai at suse.de
Tue May 11 08:19:09 CEST 2010
At Mon, 10 May 2010 21:56:36 +0200,
Daniel Chen wrote:
>
> Hi,
>
> Attached please find a patch against sound-2.6 (also applicable to
> stable trees) that fixes the reported distortion for Lenovo models on
> CX20549.
Applied now. Thanks.
Takashi
>
> Best,
> -Dan
> [2 0001-ALSA-hda-Fix-0-dB-for-Lenovo-models-using-Conexant-C.patch <text/x-diff; US-ASCII (base64)>]
> From 1e7c9f5188c8e110b90e42f820b15f4c3c7034b0 Mon Sep 17 00:00:00 2001
> From: Daniel T Chen <crimsun at ubuntu.com>
> Date: Mon, 10 May 2010 21:50:04 +0200
> Subject: [PATCH] ALSA: hda: Fix 0 dB for Lenovo models using Conexant CX20549 (Venice)
>
> 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 at wikimedia.org>
> Cc: <stable at kernel.org>
> Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>
> ---
> 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 c8e83f5..e863649 100644
> --- a/sound/pci/hda/patch_conexant.c
> +++ b/sound/pci/hda/patch_conexant.c
> @@ -1198,9 +1198,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) |
> --
> 1.7.0.4
>
More information about the Alsa-devel
mailing list