summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-23 14:12:08 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-23 14:12:08 +0200
commitc4f2a46e0dfee336ce7016cd62608097f15367b8 (patch)
treebfb915b2336f90d43bf8af0e5ee50cffcda9daf7 /firmware/drivers
parent9faabb98d4c3bd627fd62003dd8a604575af0099 (diff)
downloadrockbox-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.c2
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;