diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-07 21:57:16 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-07 21:57:16 +0000 |
commit | 4e965b4b6c22a4ed206eed418c0e1b9296cc2113 (patch) | |
tree | d440a630bd43b4baab72138588bab8fa674a163b /firmware/tuner.c | |
parent | 8d4d4610b6814c0c4a4abe9523b4b6b2b80ac9a4 (diff) | |
download | rockbox-4e965b4b6c22a4ed206eed418c0e1b9296cc2113.tar.gz 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.c | 16 |
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] = | |||
49 | }; | 49 | }; |
50 | #endif /* (CONFIG_TUNER & LV24020LP) */ | 50 | #endif /* (CONFIG_TUNER & LV24020LP) */ |
51 | 51 | ||
52 | #if (CONFIG_TUNER & TEA5760) | ||
53 | const struct tea5760_region_data tea5760_region_data[TUNER_NUM_REGIONS] = | ||
54 | { | ||
55 | [REGION_EUROPE] = { 1, 0 }, /* 50uS, US/Europe band */ | ||
56 | [REGION_US_CANADA] = { 0, 0 }, /* 75uS, US/Europe band */ | ||
57 | [REGION_JAPAN] = { 1, 1 }, /* 50uS, Japanese band */ | ||
58 | [REGION_KOREA] = { 1, 0 }, /* 50uS, US/Europe band */ | ||
59 | }; | ||
60 | #endif /* (CONFIG_TUNER & TEA5760) */ | ||
61 | |||
52 | #if (CONFIG_TUNER & TEA5767) | 62 | #if (CONFIG_TUNER & TEA5767) |
53 | const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] = | 63 | const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] = |
54 | { | 64 | { |
@@ -95,6 +105,12 @@ void tuner_init(void) | |||
95 | lv24020lp_get, | 105 | lv24020lp_get, |
96 | lv24020lp_init()) | 106 | lv24020lp_init()) |
97 | #endif | 107 | #endif |
108 | #if (CONFIG_TUNER & TEA5760) | ||
109 | TUNER_TYPE_CASE(TEA5760, | ||
110 | tea5760_set, | ||
111 | tea5760_get, | ||
112 | tea5760_init()) | ||
113 | #endif | ||
98 | #if (CONFIG_TUNER & TEA5767) | 114 | #if (CONFIG_TUNER & TEA5767) |
99 | TUNER_TYPE_CASE(TEA5767, | 115 | TUNER_TYPE_CASE(TEA5767, |
100 | tea5767_set, | 116 | tea5767_set, |