summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/audioout-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-14 01:12:16 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-14 01:17:25 +0100
commitc41a929119e22561dcc5432eea42b4764a23a7d7 (patch)
tree133c6d79f2c9ebf71c74d7a87c183dde15b99c84 /firmware/target/arm/imx233/audioout-imx233.c
parentfd2629422ca8e3f351ddfc79a63e77fea177261e (diff)
downloadrockbox-c41a929119e22561dcc5432eea42b4764a23a7d7.tar.gz
rockbox-c41a929119e22561dcc5432eea42b4764a23a7d7.zip
imx233: add note about power down bits in audioout
Change-Id: I204acff8ee697d70fd16f9828010646b10a8f11b
Diffstat (limited to 'firmware/target/arm/imx233/audioout-imx233.c')
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c
index a4c353c88e..4e26fe1349 100644
--- a/firmware/target/arm/imx233/audioout-imx233.c
+++ b/firmware/target/arm/imx233/audioout-imx233.c
@@ -279,6 +279,8 @@ void imx233_audioout_enable_spkr(bool en)
279 else 279 else
280 { 280 {
281 BF_SET(AUDIOOUT_SPEAKERCTRL, MUTE); 281 BF_SET(AUDIOOUT_SPEAKERCTRL, MUTE);
282 /* despite what the manual says, we can perfectly set and clear this bit
283 * at will, no need for a reset */
282 BF_SET(AUDIOOUT_PWRDN, SPEAKER); 284 BF_SET(AUDIOOUT_PWRDN, SPEAKER);
283 } 285 }
284#elif IMX233_SUBTARGET >= 3700 286#elif IMX233_SUBTARGET >= 3700
@@ -311,6 +313,8 @@ void imx233_audioout_enable_spkr(bool en)
311 /** Reverse procedure */ 313 /** Reverse procedure */
312 BF_SET(AUDIOOUT_LINEOUTCTRL, MUTE); 314 BF_SET(AUDIOOUT_LINEOUTCTRL, MUTE);
313 BF_WR(AUDIOOUT_LINEOUTCTRL, CHARGE_CAP(2)); 315 BF_WR(AUDIOOUT_LINEOUTCTRL, CHARGE_CAP(2));
316 /* despite what the manual says, we can perfectly set and clear this bit
317 * at will, no need for a reset */
314 BF_SET(AUDIOOUT_PWRDN, LINEOUT); 318 BF_SET(AUDIOOUT_PWRDN, LINEOUT);
315 } 319 }
316#else 320#else