summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/imx233-codec.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-13 02:38:55 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-13 02:42:17 +0200
commit352b3876e6f8e9adddb9067d0a13a7a6d73cc3d1 (patch)
tree5f5e9c31201891c6f8332262070948a2ae2218c8 /firmware/drivers/audio/imx233-codec.c
parent960788343a6e92c650b717e7ea15ca164a2ca975 (diff)
downloadrockbox-352b3876e6f8e9adddb9067d0a13a7a6d73cc3d1.tar.gz
rockbox-352b3876e6f8e9adddb9067d0a13a7a6d73cc3d1.zip
imx233: fix recording volume (tenth-dB -> half-dB)
Change-Id: I6960d3f4bd506713ffb139750fbe581ef66af947
Diffstat (limited to 'firmware/drivers/audio/imx233-codec.c')
-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 4afdfc6f8b..7406a8d076 100644
--- a/firmware/drivers/audio/imx233-codec.c
+++ b/firmware/drivers/audio/imx233-codec.c
@@ -73,6 +73,8 @@ void audiohw_disable_recording(void)
73 73
74void audiohw_set_recvol(int left, int right, int type) 74void audiohw_set_recvol(int left, int right, int type)
75{ 75{
76 left /= 5;
77 right /= 5;
76 if(type == AUDIO_GAIN_LINEIN) 78 if(type == AUDIO_GAIN_LINEIN)
77 { 79 {
78 imx233_audioin_set_vol(false, left, AUDIOIN_SELECT_LINE1); 80 imx233_audioin_set_vol(false, left, AUDIOIN_SELECT_LINE1);