diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-08-21 20:27:17 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-12-12 13:11:25 +0100 |
commit | cc031d41ab89daa06789fb28c0c1992a7928847a (patch) | |
tree | 2201bed9c189a11437fd3683a75c402c09696330 | |
parent | b55adf1ca2a1f010b6ae25341919b1e78f506834 (diff) |
wm8731: document audiohw settings
Change-Id: I78ec26a00a3e14a95c591ac81d96e1b480b9138e
-rw-r--r-- | firmware/drivers/audio/wm8731.c | 2 | ||||
-rw-r--r-- | firmware/export/wm8731.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c index 18e04618bf..98155a71eb 100644 --- a/firmware/drivers/audio/wm8731.c +++ b/firmware/drivers/audio/wm8731.c @@ -268,6 +268,8 @@ void audiohw_disable_recording(void) codec_set_active(true); } +/* Line in: 0 .. 31 => Volume -34.5 .. +12 dB + * Microphone: 0 or 20 dB */ void audiohw_set_recvol(int left, int right, int type) { switch (type) 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 @@ AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -74, 6, -25) #if defined(HAVE_WM8731) && defined(HAVE_RECORDING) -/* (x - 23)/1.5 *10 */ +/* Line in: 0 .. 31 => Volume -34.5 .. +12 dB */ AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15) AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 31, 23, (val - 23) * 15) -/* 0 or 20 dB */ +/* Microphone: 0 or 20 dB */ AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 1, 0, val * 200) #endif /* defined(HAVE_WM8731) && defined(HAVE_RECORDING) */ |