wm8731: document audiohw settings
Change-Id: I78ec26a00a3e14a95c591ac81d96e1b480b9138e
This commit is contained in:
parent
b55adf1ca2
commit
cc031d41ab
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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) */
|
||||
|
||||
|
|
Loading…
Reference in a new issue