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 | |
| parent | 9faabb98d4c3bd627fd62003dd8a604575af0099 (diff) | |
| download | rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.zip rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.tar.gz rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.tar.bz2 rockbox-c4f2a46e0dfee336ce7016cd62608097f15367b8.tar.xz | |
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')
| -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 7406a8d..94a1218 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c @@ -46,6 +46,7 @@ void audiohw_close(void) imx233_audioin_close(); } +/* volume in centibels */ void audiohw_set_volume(int vol_l, int vol_r) { imx233_audioout_set_hp_vol(vol_l / 5, vol_r / 5); @@ -71,6 +72,7 @@ void audiohw_disable_recording(void) imx233_audioin_close(); } +/* volume in centibels */ void audiohw_set_recvol(int left, int right, int type) { left /= 5; |