summaryrefslogtreecommitdiffstats
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.tar.bz2
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)
else
{
BF_SET(AUDIOOUT_SPEAKERCTRL, MUTE);
+ /* despite what the manual says, we can perfectly set and clear this bit
+ * at will, no need for a reset */
BF_SET(AUDIOOUT_PWRDN, SPEAKER);
}
#elif IMX233_SUBTARGET >= 3700
@@ -311,6 +313,8 @@ void imx233_audioout_enable_spkr(bool en)
/** Reverse procedure */
BF_SET(AUDIOOUT_LINEOUTCTRL, MUTE);
BF_WR(AUDIOOUT_LINEOUTCTRL, CHARGE_CAP(2));
+ /* despite what the manual says, we can perfectly set and clear this bit
+ * at will, no need for a reset */
BF_SET(AUDIOOUT_PWRDN, LINEOUT);
}
#else