diff options
-rw-r--r-- | firmware/drivers/audio/wm8731l.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8731l.c b/firmware/drivers/audio/wm8731l.c index dcf7c4eca0..ba575c1bb7 100644 --- a/firmware/drivers/audio/wm8731l.c +++ b/firmware/drivers/audio/wm8731l.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * KIND, either express or implied. | 23 | * KIND, either express or implied. |
24 | * | 24 | * |
25 | ****************************************************************************/ | 25 | ****************************************************************************/ |
26 | #include "config.h" | ||
26 | #include "logf.h" | 27 | #include "logf.h" |
27 | #include "system.h" | 28 | #include "system.h" |
28 | #include "string.h" | 29 | #include "string.h" |
@@ -45,9 +46,11 @@ const struct sound_settings_info audiohw_settings[] = { | |||
45 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | 46 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, |
46 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | 47 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, |
47 | [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, | 48 | [SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100}, |
49 | #ifdef HAVE_RECORDING | ||
48 | [SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0}, | 50 | [SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0}, |
49 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0}, | 51 | [SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0}, |
50 | [SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16}, | 52 | [SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16}, |
53 | #endif | ||
51 | }; | 54 | }; |
52 | 55 | ||
53 | /* convert tenth of dB volume (-730..60) to master volume register value */ | 56 | /* convert tenth of dB volume (-730..60) to master volume register value */ |