]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: ALSA: hda/ca0132 - Add key-click reduction feature.
authorChih-Chung Chang <chihchung@chromium.org>
Wed, 16 Jan 2013 03:28:56 +0000 (11:28 +0800)
committerChromeBot <chrome-bot@google.com>
Fri, 25 Jan 2013 16:43:13 +0000 (08:43 -0800)
This patch is provided by Creative.

BUG=chrome-os-partner:17241
TEST=check there is an additional mixer control in "alsamixer -c 0"

Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Change-Id: Ifcb523a234d0d7ee9908911714b90dbcc4783ec1
Reviewed-on: https://gerrit.chromium.org/gerrit/41349
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/pci/hda/patch_ca0132.c

index 54f443163d4d028eb0d36a41219d59b543e347b1..03871d3907933536927a27c1d48ecfd98276ccee 100644 (file)
@@ -151,6 +151,7 @@ enum {
        VOICE_FOCUS,
        MIC_SVM,
        NOISE_REDUCTION,
+       KEY_CLICK,
        IN_EFFECT_END_NID,
 #define IN_EFFECTS_COUNT  (IN_EFFECT_END_NID - IN_EFFECT_START_NID)
 
@@ -265,6 +266,14 @@ static struct ct_effect ca0132_effects[EFFECTS_COUNT] = {
                1,
                {0x3F800000, 0x3F000000}
        },
+       { "Key-Click Reduction",
+               KEY_CLICK,
+               71,
+               {0},
+               1,
+               0,
+               {0x3F800000}
+       },
        { "VoiceFX",
                VOICEFX,
                0x95,