summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-07-31 13:01:52 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-07-31 13:01:52 +0000
commit38e0918eb5822e3f7b36cc88606f61c99003d82f (patch)
treece6a6eb0f579c460ba8d278edc55876af052d60a /firmware
parentd7cb3b13fbb0f6ccec0bfabd3b618b2b9b8a870d (diff)
downloadrockbox-38e0918eb5822e3f7b36cc88606f61c99003d82f.tar.gz
rockbox-38e0918eb5822e3f7b36cc88606f61c99003d82f.tar.bz2
rockbox-38e0918eb5822e3f7b36cc88606f61c99003d82f.zip
Fix condition for compiling audiohw_set_monitor (should fix red)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27638 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/tlv320.c2
-rw-r--r--firmware/export/audiohw.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c
index dc19023521..6b96ed212f 100644
--- a/firmware/drivers/audio/tlv320.c
+++ b/firmware/drivers/audio/tlv320.c
@@ -305,7 +305,6 @@ void audiohw_disable_recording(void)
tlv320_write_reg(REG_PC, value_pc);
}
-#ifdef HAVE_FMRADIO_IN
void audiohw_set_monitor(bool enable)
{
unsigned value_aap, value_pc;
@@ -325,6 +324,5 @@ void audiohw_set_monitor(bool enable)
tlv320_write_reg(REG_AAP, value_aap);
tlv320_write_reg(REG_PC, value_pc);
}
-#endif /* HAVE_FMRADIO_IN */
#endif /* HAVE_RECORDING */
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h
index 05fdb67e1e..d4861aac5a 100644
--- a/firmware/export/audiohw.h
+++ b/firmware/export/audiohw.h
@@ -529,17 +529,13 @@ void audiohw_disable_recording(void);
*/
void audiohw_set_recvol(int left, int right, int type);
-#endif /*HAVE_RECORDING*/
-
-#if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN)
-
/**
* Enable or disable recording monitor.
* @param enable ture or false.
*/
void audiohw_set_monitor(bool enable);
-#endif /* HAVE_RECORDING || HAVE_FMRADIO_IN */
+#endif /* HAVE_RECORDING */
#if CONFIG_CODEC != SWCODEC