From 5ae2296c2f0f30a778553911ee0227c118c020c9 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 17 Dec 2007 14:32:49 +0100 Subject: [PATCH] --- yaml --- r: 81563 b: refs/heads/master c: 48ecb7e879ea172a0b3fd432ad49a870d7be6a59 h: refs/heads/master i: 81561: 5a59fcdbf3532fbc37a3188680b61a20af7c6a21 81559: 4495972e32c26b5b1eb1802da5b3d18e34c8b621 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_conexant.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 949b6b490ad2..801cc30be3a0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8e9068b1c7a154246f4cee93fd68c862b81b04e1 +refs/heads/master: 48ecb7e879ea172a0b3fd432ad49a870d7be6a59 diff --git a/trunk/sound/pci/hda/patch_conexant.c b/trunk/sound/pci/hda/patch_conexant.c index 68f23b823e25..a6916da73c46 100644 --- a/trunk/sound/pci/hda/patch_conexant.c +++ b/trunk/sound/pci/hda/patch_conexant.c @@ -826,6 +826,17 @@ static int patch_cxt5045(struct hda_codec *codec) spec->init_verbs[0] = cxt5045_test_init_verbs; #endif } + + /* + * Fix max PCM level to 0 dB + * (originall it has 0x2b steps with 0dB offset 0x14) + */ + snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, + (0x14 << AC_AMPCAP_OFFSET_SHIFT) | + (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) | + (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | + (1 << AC_AMPCAP_MUTE_SHIFT)); + return 0; }