summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiranjan H Y2019-09-03 04:44:52 -0500
committerNiranjan H Y2019-09-03 04:44:52 -0500
commitd575b6cfe0c764c35dc26cadd1d17282b897d320 (patch)
tree0fee5c65fef39a67b3d979cb7067fe8811c849c3
parent907849f40a99893296883353cb8efdfb5009b9c7 (diff)
downloadtas2562-stereo-android-driver-d575b6cfe0c764c35dc26cadd1d17282b897d320.tar.gz
tas2562-stereo-android-driver-d575b6cfe0c764c35dc26cadd1d17282b897d320.tar.xz
tas2562-stereo-android-driver-d575b6cfe0c764c35dc26cadd1d17282b897d320.zip
keep the tx line in hiZ in stereo case
-rwxr-xr-xtas2562-codec.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/tas2562-codec.c b/tas2562-codec.c
index 98ce072..e668711 100755
--- a/tas2562-codec.c
+++ b/tas2562-codec.c
@@ -975,10 +975,20 @@ static int tas2562_load_init(struct tas2562_priv *p_tas2562)
975 TAS2562_MISCCONFIGURATIONREG0, 0xcf); 975 TAS2562_MISCCONFIGURATIONREG0, 0xcf);
976 if (ret < 0) 976 if (ret < 0)
977 return ret; 977 return ret;
978 ret = p_tas2562->write(p_tas2562, channel_both, 978
979 TAS2562_TDMConfigurationReg4, 0x01); 979
980 if (ret < 0) 980 if(p_tas2562->mn_channels == 2) {
981 return ret; 981 ret = p_tas2562->write(p_tas2562, channel_both,
982 TAS2562_TDMConfigurationReg4, 0x11);
983 if (ret < 0)
984 return ret;
985 } else {
986 ret = p_tas2562->write(p_tas2562, channel_both,
987 TAS2562_TDMConfigurationReg4, 0x01);
988 if (ret < 0)
989 return ret;
990 }
991
982 ret = p_tas2562->write(p_tas2562, channel_both, 992 ret = p_tas2562->write(p_tas2562, channel_both,
983 TAS2562_CLOCKCONFIGURATION, 0x0c); 993 TAS2562_CLOCKCONFIGURATION, 0x0c);
984 if (ret < 0) 994 if (ret < 0)