summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-07-16 11:02:14 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-07-16 11:02:14 +0000
commita12894c6dc53156ac6af2d270f1ce31f45a2aa17 (patch)
tree137c44085ed515db43cdfa6348453e34fcf6f509 /firmware/drivers
parenteb66b559e1566ffaf9ee7af6d19f7ea9b55fd2e5 (diff)
Ensure consistency between header file and implementation for iPod drivers, by #including the appropriate header file and #ifdef'fing out unused code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/wm8731.c4
-rw-r--r--firmware/drivers/pcf50605.c1
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;