asoc: rt5639: Test mode initialization
Scott Peterson [Mon, 9 Sep 2013 22:52:19 +0000 (15:52 -0700)]
Make sure that test mode is not left enabled when
powering up the codec.

Change-Id: Ie3643220c81764f4f26903c7e88812150f2fc223

Signed-off-by: Scott Peterson <speterson@nvidia.com>
Change-Id: I1e3b216f84f87f36d05c9693f9a97d0444b68718
Reviewed-on: http://git-master/r/273276
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit fdaf1ff6e1d21bf00a53ee76b33cd08c3dc9106e)
Reviewed-on: http://git-master/r/281661
Tested-by: Gabby Lee <galee@nvidia.com>

sound/soc/codecs/rt5639.c

index 2059385..5ac1ebc 100644 (file)
@@ -49,6 +49,10 @@ struct rt5639_init_reg {
 };
 
 static struct rt5639_init_reg init_list[] = {
+    //Make sure we are not in test mode
+    {RT5639_PRIV_INDEX  ,0x001B},   //MX6A
+    {RT5639_PRIV_DATA   ,0x0200},   //MX6C
+
        {RT5639_GEN_CTRL1       , 0x3f01},/* fa[12:13] = 1'b;
                                             fa[8~11]=1; fa[0]=1 */
        {RT5639_ADDA_CLK1       , 0x1114},/* 73[2] = 1'b */
@@ -110,6 +114,7 @@ static struct rt5639_init_reg init_list[] = {
                                        /*( if sticky set regBE : 8800 ) */
 #endif
        {RT5639_JD_CTRL         , 0x6000},/* JD2 as jack detection source */
+
 };
 #define RT5639_INIT_REG_LEN ARRAY_SIZE(init_list)