diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/audio/wm8731.c | 4 | ||||
-rw-r--r-- | firmware/drivers/pcf50605.c | 1 |
2 files changed, 5 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 */ + diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c index 9192ec11b5..a76c1dbc3c 100644 --- a/firmware/drivers/pcf50605.c +++ b/firmware/drivers/pcf50605.c @@ -32,6 +32,7 @@ #endif #include "rtc.h" #include "pcf5060x.h" +#include "pcf50605.h" unsigned char pcf50605_wakeup_flags = 0; |