diff options
Diffstat (limited to 'firmware/target/arm/imx233/audioout-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/audioout-imx233.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c index c92804c2d4..3b6203ea44 100644 --- a/firmware/target/arm/imx233/audioout-imx233.c +++ b/firmware/target/arm/imx233/audioout-imx233.c | |||
@@ -261,6 +261,24 @@ void imx233_audioout_set_3d_effect(int val) | |||
261 | } | 261 | } |
262 | } | 262 | } |
263 | 263 | ||
264 | void imx233_audioout_enable_spkr(bool en) | ||
265 | { | ||
266 | #if IMX233_SUBTARGET >= 3780 | ||
267 | if(en) | ||
268 | { | ||
269 | BF_CLR(AUDIOOUT_PWRDN, SPEAKER); | ||
270 | BF_CLR(AUDIOOUT_SPEAKERCTRL, MUTE); | ||
271 | } | ||
272 | else | ||
273 | { | ||
274 | BF_SET(AUDIOOUT_SPEAKERCTRL, MUTE); | ||
275 | BF_SET(AUDIOOUT_PWRDN, SPEAKER); | ||
276 | } | ||
277 | #else | ||
278 | (void) en; | ||
279 | #endif | ||
280 | } | ||
281 | |||
264 | struct imx233_audioout_info_t imx233_audioout_get_info(void) | 282 | struct imx233_audioout_info_t imx233_audioout_get_info(void) |
265 | { | 283 | { |
266 | struct imx233_audioout_info_t info; | 284 | struct imx233_audioout_info_t info; |