summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-06-15 20:57:48 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-06-15 20:57:48 +0000
commitfcea117d21102383b35124a9e2513a51971a3fb5 (patch)
treeed21491ee9b061dedd07908a939a2e3eff2f0149 /firmware/tuner.c
parent267a446887dbeafe02a4e1991af4489979fbb044 (diff)
downloadrockbox-fcea117d21102383b35124a9e2513a51971a3fb5.tar.gz
rockbox-fcea117d21102383b35124a9e2513a51971a3fb5.tar.bz2
rockbox-fcea117d21102383b35124a9e2513a51971a3fb5.zip
Support for mystery FM chip in some Sansa Clip+, FS #11403 by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index cca5cf2491..4d3866dc8e 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -89,6 +89,18 @@ const struct si4700_region_data si4700_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & SI4700) */
+#if (CONFIG_TUNER & FMCLIPPLUS)
+const struct fmclipplus_region_data fmclipplus_region_data[TUNER_NUM_REGIONS] =
+{
+ [REGION_EUROPE] = { 1, 0 }, /* 50uS, US/Europe band */
+ [REGION_US_CANADA] = { 0, 0 }, /* 75uS, US/Europe band */
+ [REGION_JAPAN] = { 1, 1 }, /* 50uS, Japanese band */
+ [REGION_KOREA] = { 1, 0 }, /* 50uS, US/Europe band */
+ [REGION_ITALY] = { 1, 0 }, /* 50uS, US/Europe band */
+ [REGION_OTHER] = { 1, 0 }, /* 50uS, US/Europe band */
+};
+#endif /* (CONFIG_TUNER & FMCLIPPLUS) */
+
#if (CONFIG_TUNER & IPOD_REMOTE_TUNER)
const struct rmt_tuner_region_data
rmt_tuner_region_data[TUNER_NUM_REGIONS] =
@@ -151,6 +163,12 @@ void tuner_init(void)
si4700_get,
si4700_init())
#endif
+ #if (CONFIG_TUNER & FMCLIPPLUS)
+ TUNER_TYPE_CASE(FMCLIPPLUS,
+ fmclipplus_set,
+ fmclipplus_get,
+ fmclipplus_init())
+ #endif
}
}
#endif /* SIMULATOR */