diff options
Diffstat (limited to 'firmware/export/wm8758.h')
-rw-r--r-- | firmware/export/wm8758.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h index db6dd083dd..d4194b90ee 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h | |||
@@ -32,9 +32,12 @@ AUDIOHW_SETTING(TREBLE, "dB", 0, 1, -12, 12, 0) | |||
32 | AUDIOHW_SETTING(BASS_CUTOFF, "", 0, 1, 1, 4, 1) | 32 | AUDIOHW_SETTING(BASS_CUTOFF, "", 0, 1, 1, 4, 1) |
33 | AUDIOHW_SETTING(TREBLE_CUTOFF, "", 0, 1, 1, 4, 1) | 33 | AUDIOHW_SETTING(TREBLE_CUTOFF, "", 0, 1, 1, 4, 1) |
34 | #ifdef HAVE_RECORDING | 34 | #ifdef HAVE_RECORDING |
35 | AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 63, 16, ((val - 23) * 15) / 2 + 200) | 35 | /* The input PGAs have a gain range from -12dB to +35.25dB in 0.75dB steps |
36 | AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 63, 16, ((val - 23) * 15) / 2 + 200) | 36 | * Values: 0, 1, ..., 63 |
37 | AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 63, 16, ((val - 23) * 15) / 2 + 200) | 37 | * => -12dB, -11.25dB, ..., 35.25dB */ |
38 | AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1, 0, 63, 16, ((val) * 15) / 2 - 120) | ||
39 | AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1, 0, 63, 16, ((val) * 15) / 2 - 120) | ||
40 | AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1, 0, 63, 16, ((val) * 15) / 2 - 120) | ||
38 | #endif /* HAVE_RECORDING */ | 41 | #endif /* HAVE_RECORDING */ |
39 | 42 | ||
40 | void audiohw_enable_lineout(bool enable); | 43 | void audiohw_enable_lineout(bool enable); |