summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorLaurent Gautier <creposucre@rockbox.org>2009-12-01 17:54:40 +0000
committerLaurent Gautier <creposucre@rockbox.org>2009-12-01 17:54:40 +0000
commit0260852771aef7a6e9045684f0c3d0d7e01909f7 (patch)
tree6fa4b42230d1289857f84405defad94cc2de86b8 /firmware/tuner.c
parent63d79148fd07aebd2b425c0414b7b9622b312399 (diff)
downloadrockbox-0260852771aef7a6e9045684f0c3d0d7e01909f7.tar.gz
rockbox-0260852771aef7a6e9045684f0c3d0d7e01909f7.tar.bz2
rockbox-0260852771aef7a6e9045684f0c3d0d7e01909f7.zip
Add support for the ipod FM remote to the 4G, Color, 5G, nano 1G with RDS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 5fd7fa1f38..cca5cf2491 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -89,17 +89,31 @@ const struct si4700_region_data si4700_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & SI4700) */
+#if (CONFIG_TUNER & IPOD_REMOTE_TUNER)
+const struct rmt_tuner_region_data
+ rmt_tuner_region_data[TUNER_NUM_REGIONS] =
+{
+ [REGION_EUROPE] = { 1, 0, 1 }, /* 50uS, US/Europe band, 100kHz spacing */
+ [REGION_US_CANADA] = { 0, 0, 0 }, /* 75uS, US/Europe band, 200kHz spacing */
+ [REGION_JAPAN] = { 1, 2, 1 }, /* 50uS, Japanese band, 100kHz spacing */
+ [REGION_KOREA] = { 1, 0, 0 }, /* 50uS, US/Europe band, 200kHz spacing */
+ [REGION_ITALY] = { 1, 0, 2 }, /* 50uS, US/Europe band, 50kHz spacing */
+ [REGION_OTHER] = { 1, 0, 2 }, /* 50uS, US/Europe band, 50kHz spacing */
+};
+#endif /* (CONFIG_TUNER & IPOD_REMOTE_TUNER) */
+
#ifdef CONFIG_TUNER_MULTI
int (*tuner_set)(int setting, int value);
int (*tuner_get)(int setting);
-#define TUNER_TYPE_CASE(type, set, get, ...) \
+
+#define TUNER_TYPE_CASE(type, set, get, ...) \
case type: \
tuner_set = set; \
tuner_get = get; \
__VA_ARGS__; \
break;
#else
-#define TUNER_TYPE_CASE(type, set, get, ...) \
+#define TUNER_TYPE_CASE(type, set, get, ...) \
__VA_ARGS__;
#endif /* CONFIG_TUNER_MULTI */
@@ -139,5 +153,4 @@ void tuner_init(void)
#endif
}
}
-
#endif /* SIMULATOR */