]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
4e850ade2ad99c21991724fd301b61661c4be380
[thirdparty/kernel/stable-queue.git] /
1 From 0b587fc4d35afb1bc0fc3d890084bb14c78372dc Mon Sep 17 00:00:00 2001
2 From: Daniel T Chen <crimsun@ubuntu.com>
3 Date: Wed, 25 Nov 2009 18:27:20 -0500
4 Subject: ALSA: hda: Fix max PCM level to 0 dB for Fujitsu-Siemens laptops using CX20549 (Venice)
5
6 From: Daniel T Chen <crimsun@ubuntu.com>
7
8 commit 0b587fc4d35afb1bc0fc3d890084bb14c78372dc upstream.
9
10 BugLink: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4792
11
12 Cristian reported that these models have really bad sound above 6 dB
13 and proposed the original patch. I've updated the comment to reflect
14 this change.
15
16 Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
17 Reported-by: Cristian Klein
18 Signed-off-by: Takashi Iwai <tiwai@suse.de>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20
21 ---
22 sound/pci/hda/patch_conexant.c | 7 ++++---
23 1 file changed, 4 insertions(+), 3 deletions(-)
24
25 --- a/sound/pci/hda/patch_conexant.c
26 +++ b/sound/pci/hda/patch_conexant.c
27 @@ -1175,9 +1175,10 @@ static int patch_cxt5045(struct hda_code
28
29 switch (codec->subsystem_id >> 16) {
30 case 0x103c:
31 - /* HP laptop has a really bad sound over 0dB on NID 0x17.
32 - * Fix max PCM level to 0 dB
33 - * (originall it has 0x2b steps with 0dB offset 0x14)
34 + case 0x1734:
35 + /* HP & Fujitsu-Siemens laptops have really bad sound over 0dB
36 + * on NID 0x17. Fix max PCM level to 0 dB
37 + * (originally it has 0x2b steps with 0dB offset 0x14)
38 */
39 snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT,
40 (0x14 << AC_AMPCAP_OFFSET_SHIFT) |