summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8975.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8975.c')
-rw-r--r--firmware/drivers/audio/wm8975.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c
index 88be2cf5ce..a1af1331f2 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -296,6 +296,8 @@ void audiohw_disable_recording(void)
wm8975_write(PWRMGMT1, wm8975_regs[PWRMGMT1]);
}
+/* volume in 0 .. 63, corresponds to -17.25dB .. 30dB in steps of 0.75dB
+ * microphone has an extra 20dB boost so 0 .. 63 corresponds to 2.75dB .. 50dB */
void audiohw_set_recvol(int left, int right, int type)
{
switch (type)