diff options
author | Scott Peterson <speterson@nvidia.com> | 2013-09-09 15:52:19 -0700 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-10-06 22:40:54 -0700 |
commit | 985f7b6b29eb515ad1f01bea7e5d914be6739a50 (patch) | |
tree | d51fe71ae667f965d2fc506b0361c445b87f856d /sound | |
parent | 258b9267be53985236452406a403c2a42025ab1e (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>
(cherry picked from commit fdaf1ff6e1d21bf00a53ee76b33cd08c3dc9106e)
Reviewed-on: http://git-master/r/281661
Tested-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 2059385ec29b..5ac1ebcd4263 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) |