summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-14 13:41:59 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-14 13:41:59 +0000
commit680afafc23d0426038b2eeb80df9b22e005bedd9 (patch)
tree6c33d56bfbb0204d54fbc37ada1116779b1edbd4 /firmware/tuner.c
parentef65d914921f358d275949d1f6d66bbfda3efa74 (diff)
downloadrockbox-680afafc23d0426038b2eeb80df9b22e005bedd9.tar.gz
rockbox-680afafc23d0426038b2eeb80df9b22e005bedd9.tar.bz2
rockbox-680afafc23d0426038b2eeb80df9b22e005bedd9.zip
Fix all the red this time?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 85f56b8976..1ee42a5355 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -23,22 +23,6 @@
#include "tuner.h"
#include "fmradio.h"
-#ifdef CONFIG_TUNER_MULTI
-int (*tuner_set)(int setting, int value);
-int (*tuner_get)(int setting);
-
-#define TUNER_TYPE_CASE(type, set, get, region_data) \
- case type: \
- tuner_set = set; \
- tuner_get = get; \
- break;
-
-#else
-
-#define TUNER_TYPE_CASE(type, set, get, region_data)
-
-#endif /* CONFIG_TUNER_MULTI */
-
/* General region information */
const struct fm_region_data fm_region_data[TUNER_NUM_REGIONS] =
{
@@ -48,6 +32,8 @@ const struct fm_region_data fm_region_data[TUNER_NUM_REGIONS] =
[REGION_KOREA] = { 87500000, 108000000, 100000 }
};
+#ifndef SIMULATOR
+
/* Tuner-specific region information */
#if (CONFIG_TUNER & LV24020LP)
@@ -71,6 +57,18 @@ const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & TEA5767) */
+#ifdef CONFIG_TUNER_MULTI
+int (*tuner_set)(int setting, int value);
+int (*tuner_get)(int setting);
+#define TUNER_TYPE_CASE(type, set, get, region_data) \
+ case type: \
+ tuner_set = set; \
+ tuner_get = get; \
+ break;
+#else
+#define TUNER_TYPE_CASE(type, set, get, region_data)
+#endif /* CONFIG_TUNER_MULTI */
+
void tuner_init(void)
{
#ifdef CONFIG_TUNER_MULTI
@@ -97,3 +95,5 @@ void tuner_init(void)
#endif
}
}
+
+#endif /* SIMULATOR */