diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-14 01:12:42 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-14 01:17:25 +0100 |
commit | 79e8cd4cfe852836c46bea5216ab308439688689 (patch) | |
tree | ef030fbf32217b09c3cf652818df34ae9214a929 /firmware/target | |
parent | c41a929119e22561dcc5432eea42b4764a23a7d7 (diff) |
imx233: fix audio debug screen on stmp3700
On STMP3700 there is no dedicated speaker amplifier but speaker is always on
lineout so it makes sense to report volume and power down of lineout.
Change-Id: If666bccf36d3a5ecc6d892823522d023f3206184
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/imx233/audioout-imx233.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c index 4e26fe1349..a33e3c8a2a 100644 --- a/firmware/target/arm/imx233/audioout-imx233.c +++ b/firmware/target/arm/imx233/audioout-imx233.c @@ -348,10 +348,10 @@ struct imx233_audioout_info_t imx233_audioout_get_info(void) info.spkrmute[0] = info.spkrmute[1] = BF_RD(AUDIOOUT_SPKRVOL, MUTE); info.spkr = !BF_RD(AUDIOOUT_PWRDN, SPEAKER); #else - /* STMP3700/3770 has not speaker amplifier */ + /* STMP3700/3770 has not speaker amplifier, assume it is on lineout */ info.spkrvol[0] = info.spkrvol[1] = 0; - info.spkrmute[0] = info.spkrmute[1] = true; - info.spkr = false; + info.spkrmute[0] = info.spkrmute[1] = BF_RD(AUDIOOUT_LINEOUTCTRL, MUTE); + info.spkr = !BF_RD(AUDIOOUT_PWRDN, LINEOUT); #endif info.ss3d = BF_RD(AUDIOOUT_CTRL, SS3D_EFFECT); info.ss3d = info.ss3d == 0 ? 0 : 15 * (1 + info.ss3d); |