CHROMIUM: ALSA: hda/ca0132: Set the default configuration for the mic pin.
authorChih-Chung Chang <chihchung@chromium.org>
Tue, 2 Oct 2012 07:25:55 +0000 (15:25 +0800)
committerGerrit <chrome-bot@google.com>
Wed, 3 Oct 2012 14:33:17 +0000 (07:33 -0700)
Because the value set in BIOS will be reset after ct extension is enabled.

BUG=chrome-os-partner:14154
TEST=use "hda-verb /dev/snd/hwC0D0 0x12 GET_CONFIG_DEFAULT 0" the check the value.

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

index aec08bb..f1e45ed 100644 (file)
@@ -4326,6 +4326,13 @@ static struct hda_verb ca0132_init_verbs0[] = {
 static struct hda_verb ca0132_init_verbs1[] = {
        {0x10, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | UNSOL_TAG_HP},
        {0x12, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | UNSOL_TAG_AMIC1},
+       /* Set the default configuration for the mic pin because the
+        * value set in BIOS will be reset after ct extension is enabled.
+        */
+       {0x12, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0xf0},
+       {0x12, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0x10},
+       {0x12, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0xa1},
+       {0x12, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x03},
        /* config EAPD */
        {0x0b, 0x78D, 0x00},
        /*{0x0b, AC_VERB_SET_EAPD_BTLENABLE, 0x02},*/