summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-08-21 20:27:17 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-12-12 13:11:25 +0100
commitcc031d41ab89daa06789fb28c0c1992a7928847a (patch)
tree2201bed9c189a11437fd3683a75c402c09696330 /firmware/export
parentb55adf1ca2a1f010b6ae25341919b1e78f506834 (diff)
downloadrockbox-cc031d41ab89daa06789fb28c0c1992a7928847a.tar.gz
rockbox-cc031d41ab89daa06789fb28c0c1992a7928847a.zip
wm8731: document audiohw settings
Change-Id: I78ec26a00a3e14a95c591ac81d96e1b480b9138e
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/wm8731.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/wm8731.h b/firmware/export/wm8731.h
index 10925880c3..a725a87484 100644
--- a/firmware/export/wm8731.h
+++ b/firmware/export/wm8731.h
@@ -28,10 +28,10 @@
28 28
29AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -74, 6, -25) 29AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -74, 6, -25)
30#if defined(HAVE_WM8731) && defined(HAVE_RECORDING) 30#if defined(HAVE_WM8731) && defined(HAVE_RECORDING)
31/* (x - 23)/1.5 *10 */ 31/* Line in: 0 .. 31 => Volume -34.5 .. +12 dB */
32AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15) 32AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15)
33AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15) 33AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15)
34/* 0 or 20 dB */ 34/* Microphone: 0 or 20 dB */
35AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 0, val * 200) 35AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 0, val * 200)
36#endif /* defined(HAVE_WM8731) && defined(HAVE_RECORDING) */ 36#endif /* defined(HAVE_WM8731) && defined(HAVE_RECORDING) */
37 37