mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
c41a929119
commit
79e8cd4cfe
1 changed files with 3 additions and 3 deletions
|
|
@ -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.spkrmute[0] = info.spkrmute[1] = BF_RD(AUDIOOUT_SPKRVOL, MUTE);
|
||||||
info.spkr = !BF_RD(AUDIOOUT_PWRDN, SPEAKER);
|
info.spkr = !BF_RD(AUDIOOUT_PWRDN, SPEAKER);
|
||||||
#else
|
#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.spkrvol[0] = info.spkrvol[1] = 0;
|
||||||
info.spkrmute[0] = info.spkrmute[1] = true;
|
info.spkrmute[0] = info.spkrmute[1] = BF_RD(AUDIOOUT_LINEOUTCTRL, MUTE);
|
||||||
info.spkr = false;
|
info.spkr = !BF_RD(AUDIOOUT_PWRDN, LINEOUT);
|
||||||
#endif
|
#endif
|
||||||
info.ss3d = BF_RD(AUDIOOUT_CTRL, SS3D_EFFECT);
|
info.ss3d = BF_RD(AUDIOOUT_CTRL, SS3D_EFFECT);
|
||||||
info.ss3d = info.ss3d == 0 ? 0 : 15 * (1 + info.ss3d);
|
info.ss3d = info.ss3d == 0 ? 0 : 15 * (1 + info.ss3d);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue