summaryrefslogtreecommitdiffstats
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-07-07 21:57:16 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-07-07 21:57:16 +0000
commit4e965b4b6c22a4ed206eed418c0e1b9296cc2113 (patch)
treed440a630bd43b4baab72138588bab8fa674a163b /firmware/tuner.c
parent8d4d4610b6814c0c4a4abe9523b4b6b2b80ac9a4 (diff)
downloadrockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.tar.gz
rockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.tar.bz2
rockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.zip
Meizu: implement i2c for the meizu fmradio and update the tea5760 tuner driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21703 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index c5da27079c..a471c4e970 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -49,6 +49,16 @@ const unsigned char lv24020lp_region_data[TUNER_NUM_REGIONS] =
};
#endif /* (CONFIG_TUNER & LV24020LP) */
+#if (CONFIG_TUNER & TEA5760)
+const struct tea5760_region_data tea5760_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 */
+};
+#endif /* (CONFIG_TUNER & TEA5760) */
+
#if (CONFIG_TUNER & TEA5767)
const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] =
{
@@ -95,6 +105,12 @@ void tuner_init(void)
lv24020lp_get,
lv24020lp_init())
#endif
+ #if (CONFIG_TUNER & TEA5760)
+ TUNER_TYPE_CASE(TEA5760,
+ tea5760_set,
+ tea5760_get,
+ tea5760_init())
+ #endif
#if (CONFIG_TUNER & TEA5767)
TUNER_TYPE_CASE(TEA5767,
tea5767_set,