summaryrefslogtreecommitdiffstats
path: root/firmware/drivers
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-08-21 20:28:13 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-12-12 13:12:15 +0100
commit90a32ccad61c506fb021feb0e983e9c2aade8876 (patch)
tree14ab80e977f5bdf20ec2c6fb34d27a769bcb4616 /firmware/drivers
parentcc031d41ab89daa06789fb28c0c1992a7928847a (diff)
downloadrockbox-90a32ccad61c506fb021feb0e983e9c2aade8876.tar.gz
rockbox-90a32ccad61c506fb021feb0e983e9c2aade8876.tar.bz2
rockbox-90a32ccad61c506fb021feb0e983e9c2aade8876.zip
wm8751: document and fix audiohw settings
Document 3D depth range. Fix mismatch in recording volume: the displayed volume is completely off the chart Change-Id: I4c363f369e5d72f332391a6f96457b4e450404f9
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/wm8751.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c
index 7b6a2712e5..1b4af3eca8 100644
--- a/firmware/drivers/audio/wm8751.c
+++ b/firmware/drivers/audio/wm8751.c
@@ -385,7 +385,8 @@ void audiohw_set_frequency(int fsel)
#ifdef HAVE_WM8750
#ifdef AUDIOHW_HAVE_DEPTH_3D
-/* Set the depth of the 3D effect */
+/* Set the depth of the 3D effect
+ * value in 0 .. 15, corresponds to 0% .. 100% in 6.66% steps */
void audiohw_set_depth_3d(int val)
{
if (val > 0)
@@ -631,6 +632,7 @@ static int pga_gain2hw(int value)
return ((4 * value) / 300) + 23;
}
+/* volume in hundredth of dB in -1725 .. 6000 */
void audiohw_set_recvol(int vol_l, int vol_r, int type)
{
int d_vol_l = 0;