diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-23 14:12:08 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-23 14:12:08 +0200 |
commit | c4f2a46e0dfee336ce7016cd62608097f15367b8 (patch) | |
tree | bfb915b2336f90d43bf8af0e5ee50cffcda9daf7 /firmware/drivers/audio/imx233-codec.c | |
parent | 9faabb98d4c3bd627fd62003dd8a604575af0099 (diff) | |
download | rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.tar.gz rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.zip |
imx233: revert volumes to 1dB resolution
Using a better resolution causes havoc in the user interface
because it doesn't properly handle steps and people start to
believe I am responsible for all this mess.
Change-Id: I02b68dce5802692efde3da226eeeb49e4995f97a
Diffstat (limited to 'firmware/drivers/audio/imx233-codec.c')
-rw-r--r-- | firmware/drivers/audio/imx233-codec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/audio/imx233-codec.c b/firmware/drivers/audio/imx233-codec.c index 7406a8d076..94a1218d5e 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c | |||
@@ -46,6 +46,7 @@ void audiohw_close(void) | |||
46 | imx233_audioin_close(); | 46 | imx233_audioin_close(); |
47 | } | 47 | } |
48 | 48 | ||
49 | /* volume in centibels */ | ||
49 | void audiohw_set_volume(int vol_l, int vol_r) | 50 | void audiohw_set_volume(int vol_l, int vol_r) |
50 | { | 51 | { |
51 | imx233_audioout_set_hp_vol(vol_l / 5, vol_r / 5); | 52 | imx233_audioout_set_hp_vol(vol_l / 5, vol_r / 5); |
@@ -71,6 +72,7 @@ void audiohw_disable_recording(void) | |||
71 | imx233_audioin_close(); | 72 | imx233_audioin_close(); |
72 | } | 73 | } |
73 | 74 | ||
75 | /* volume in centibels */ | ||
74 | void audiohw_set_recvol(int left, int right, int type) | 76 | void audiohw_set_recvol(int left, int right, int type) |
75 | { | 77 | { |
76 | left /= 5; | 78 | left /= 5; |