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:01:11 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-14 01:17:25 +0100
commitfd2629422ca8e3f351ddfc79a63e77fea177261e (patch)
treecedfbd5aff1208d653514723b897da82c53894b8 /firmware/target/arm/imx233/audioout-imx233.c
parent637c7414a91c33e2627f99fee7b4c9cbf04abdb4 (diff)
downloadrockbox-fd2629422ca8e3f351ddfc79a63e77fea177261e.tar.gz
rockbox-fd2629422ca8e3f351ddfc79a63e77fea177261e.tar.bz2
rockbox-fd2629422ca8e3f351ddfc79a63e77fea177261e.zip
imx233: fix speaker enable/disable code
Change-Id: I6540f2f8ba09bc79b80d71e5f3b0adebd9fce727
Diffstat (limited to 'firmware/target/arm/imx233/audioout-imx233.c')
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c
index 6c2c579536..a4c353c88e 100644
--- a/firmware/target/arm/imx233/audioout-imx233.c
+++ b/firmware/target/arm/imx233/audioout-imx233.c
@@ -269,7 +269,7 @@ void imx233_audioout_enable_spkr(bool en)
static bool spkr_en = false;
if(en == spkr_en)
return;
- spkr_en = true;
+ spkr_en = en;
#if IMX233_SUBTARGET >= 3780
if(en)
{