diff options
author | Scott Peterson <speterson@nvidia.com> | 2013-09-09 15:52:19 -0700 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-09-11 22:50:26 -0700 |
commit | fdaf1ff6e1d21bf00a53ee76b33cd08c3dc9106e (patch) | |
tree | 48ad0424306da33140d064b37bcfd2fedd044c63 /sound | |
parent | 231878c245ff1e4f4e457c5a3c1094275f77b850 (diff) |
asoc: rt5639: Test mode initialization
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5639.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c index 7df0fd691cf1..d815fe36a6bd 100644 --- a/sound/soc/codecs/rt5639.c +++ b/sound/soc/codecs/rt5639.c @@ -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) |