summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/audio/wm8731.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r--firmware/drivers/audio/wm8731.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index b9de5d4cf0..66bdfe014c 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -34,6 +34,7 @@
#include "wmcodec.h"
#include "audiohw.h"
#include "i2s.h"
+#include "sound.h"
const struct sound_settings_info audiohw_settings[] = {
[SOUND_VOLUME] = {"dB", 0, 1, -74, 6, -25},
@@ -236,6 +237,7 @@ void audiohw_set_sample_rate(int sampling_control)
codec_set_active(true);
}
+#ifdef HAVE_RECORDING
void audiohw_enable_recording(bool source_mic)
{
codec_set_active(false);
@@ -331,3 +333,5 @@ void audiohw_set_monitor(bool enable)
wm8731_write_or(PDCTRL, PDCTRL_LINEINPD);
}
}
+#endif /* HAVE_RECORDING */
+