Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=48ecb7e879ea172a0b3fd432ad49a870d7be6a59
Commit:     48ecb7e879ea172a0b3fd432ad49a870d7be6a59
Parent:     8e9068b1c7a154246f4cee93fd68c862b81b04e1
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 14:32:49 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:37 2008 +0100

    [ALSA] hda-codec - Avoid overload of PCM volume on Cx5045 codec
    
    The PCM volume of Cx5045 codec has overload that isn't useful but
    rather harmful.  Add a hack to override the amp info to set the max
    level 0 dB.
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/hda/patch_conexant.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 68f23b8..a6916da 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to