summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora02204102016-06-02 05:44:51 -0500
committera02204102016-06-02 05:44:51 -0500
commite148ae60566ada095256835a324ff85ff604958e (patch)
tree5c44b578ef369c95138e7c693c52cbba649a4289
parentad04f0d002b859cfd736d4f3366ddec661414f7f (diff)
downloadtas2555-android-driver-e148ae60566ada095256835a324ff85ff604958e.tar.gz
tas2555-android-driver-e148ae60566ada095256835a324ff85ff604958e.tar.xz
tas2555-android-driver-e148ae60566ada095256835a324ff85ff604958e.zip
update power down sequence to minimize pop noise
-rwxr-xr-xtas2555-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tas2555-core.c b/tas2555-core.c
index 0c53891..b64801e 100755
--- a/tas2555-core.c
+++ b/tas2555-core.c
@@ -117,10 +117,12 @@ static unsigned int p_tas2555_unmute_data[] = {
117}; 117};
118 118
119static unsigned int p_tas2555_shutdown_data[] = { 119static unsigned int p_tas2555_shutdown_data[] = {
120 TAS2555_SOFT_MUTE_REG, 0x01, //soft mute
121 TAS2555_UDELAY, 10000, //delay 10ms
120 TAS2555_MUTE_REG, 0x03, //mute 122 TAS2555_MUTE_REG, 0x03, //mute
121 TAS2555_PLL_CLKIN_REG, 0x0F, //PLL clock input = osc 123 TAS2555_PLL_CLKIN_REG, 0x0F, //PLL clock input = osc
122 TAS2555_POWER_CTRL1_REG, 0x60, //DSP power down 124 TAS2555_POWER_CTRL1_REG, 0x60, //DSP power down
123 TAS2555_UDELAY, 0xFF, //delay 125 TAS2555_UDELAY, 2000, //delay 2ms
124 TAS2555_POWER_CTRL2_REG, 0x00, //Class-D, Boost power down 126 TAS2555_POWER_CTRL2_REG, 0x00, //Class-D, Boost power down
125 TAS2555_POWER_CTRL1_REG, 0x00, //all power down 127 TAS2555_POWER_CTRL1_REG, 0x00, //all power down
126 0xFFFFFFFF, 0xFFFFFFFF 128 0xFFFFFFFF, 0xFFFFFFFF