summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-07-31 12:43:38 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-07-31 12:43:38 +0000
commit4a8ea6c9d9b0db1de59ee4d2b9cc0125caa990c7 (patch)
treea3c6697c6de315cfab1f839191b1d62293978bca /firmware/drivers/audio
parentc2529c341d4ecb8bea28f99f0f9e28e70c311487 (diff)
Various minor clean-ups for Zen Vision
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio')
-rw-r--r--firmware/drivers/audio/tlv320.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c
index b537fd5773..dc19023521 100644
--- a/firmware/drivers/audio/tlv320.c
+++ b/firmware/drivers/audio/tlv320.c
@@ -69,14 +69,14 @@ int tenthdb2master(int db)
#define TLV320_ADDR 0x1A
#endif
-struct tlv320_info
+static struct tlv320_info
{
int vol_l;
int vol_r;
} tlv320;
/* Shadow registers */
-unsigned tlv320_regs[0xf];
+static unsigned tlv320_regs[0xf];
static void tlv320_write_reg(unsigned reg, unsigned value)
{
@@ -304,8 +304,8 @@ void audiohw_disable_recording(void)
value_pc |= PC_ADC | PC_MIC | PC_LINE; /* ADC, MIC and LINE off */
tlv320_write_reg(REG_PC, value_pc);
}
-#endif
+#ifdef HAVE_FMRADIO_IN
void audiohw_set_monitor(bool enable)
{
unsigned value_aap, value_pc;
@@ -325,3 +325,6 @@ 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 */
+