diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-08-20 21:28:50 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-12-12 12:15:24 +0100 |
commit | af81cc4a935753d3ba6c692b7e928691f0155355 (patch) | |
tree | 8fcfa1c0f27545256a7c305d4fb73d6f9ef7feac /firmware/drivers | |
parent | bfd3b0831268b24a1f3e54fbc1d5978409882a91 (diff) | |
download | rockbox-af81cc4a935753d3ba6c692b7e928691f0155355.tar.gz rockbox-af81cc4a935753d3ba6c692b7e928691f0155355.zip |
imx233: slightly rework 3D audio setting
The old code made the setting appear as 0dB, 1.5dB, 3dB and 4.5dB when
in fact it is 0dB, 3dB, 4.5dB and 6dB. This commit clarifies the code and
also fix this at the same time. This imx233 3D enhancement is complete crap anyway
but now you can satisfy yourself with 6 dB of pure crap, clearly an enhancement.
Change-Id: Ia3e088987c1ff0cdde228905ff70f46476a499a2
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/audio/imx233-codec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/drivers/audio/imx233-codec.c b/firmware/drivers/audio/imx233-codec.c index 357aa33bb5..d56eb44d57 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c | |||
@@ -93,9 +93,7 @@ void audiohw_set_recvol(int left, int right, int type) | |||
93 | 93 | ||
94 | void audiohw_set_depth_3d(int val) | 94 | void audiohw_set_depth_3d(int val) |
95 | { | 95 | { |
96 | /* input is raw value ranging from 0dB to 6dB in tenth of dB | 96 | imx233_audioout_set_3d_effect(val); |
97 | * convert to value in 1.5dB steps */ | ||
98 | imx233_audioout_set_3d_effect(val / 15); | ||
99 | } | 97 | } |
100 | 98 | ||
101 | void audiohw_set_monitor(bool enable) | 99 | void audiohw_set_monitor(bool enable) |