summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-06-16 20:29:08 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-06-16 20:29:08 +0000
commitff8e76e9e534dde1e6a57a84d49b89dad847cafd (patch)
tree3fdbb6307e1c1350d13bb205a96e0a5d7df3ad01 /firmware/tuner.c
parent60d5f5050b00e05385cbe55a9d639a56e013ff3f (diff)
downloadrockbox-ff8e76e9e534dde1e6a57a84d49b89dad847cafd.tar.gz
rockbox-ff8e76e9e534dde1e6a57a84d49b89dad847cafd.tar.bz2
rockbox-ff8e76e9e534dde1e6a57a84d49b89dad847cafd.zip
The mystery FM chip in some Sansa Clip+ players has been identified as a RDA5802, so rename files and functions. Also fix several bugs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 4d3866dc8e..3232147bbb 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -89,8 +89,8 @@ 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] =
+#if (CONFIG_TUNER & RDA5802)
+const struct rda5802_region_data rda5802_region_data[TUNER_NUM_REGIONS] =
{
[REGION_EUROPE] = { 1, 0 }, /* 50uS, US/Europe band */
[REGION_US_CANADA] = { 0, 0 }, /* 75uS, US/Europe band */
@@ -99,7 +99,7 @@ const struct fmclipplus_region_data fmclipplus_region_data[TUNER_NUM_REGIONS] =
[REGION_ITALY] = { 1, 0 }, /* 50uS, US/Europe band */
[REGION_OTHER] = { 1, 0 }, /* 50uS, US/Europe band */
};
-#endif /* (CONFIG_TUNER & FMCLIPPLUS) */
+#endif /* (CONFIG_TUNER & RDA5802) */
#if (CONFIG_TUNER & IPOD_REMOTE_TUNER)
const struct rmt_tuner_region_data
@@ -163,11 +163,11 @@ void tuner_init(void)
si4700_get,
si4700_init())
#endif
- #if (CONFIG_TUNER & FMCLIPPLUS)
- TUNER_TYPE_CASE(FMCLIPPLUS,
- fmclipplus_set,
- fmclipplus_get,
- fmclipplus_init())
+ #if (CONFIG_TUNER & RDA5802)
+ TUNER_TYPE_CASE(RDA5802,
+ rda5802_set,
+ rda5802_get,
+ rda5802_init())
#endif
}
}