summaryrefslogtreecommitdiff
path: root/firmware/tuner.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-07-26 20:15:16 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-07-26 20:15:16 +0000
commitadc472bec522e5b8bd34302cb3267cfb9a12d12c (patch)
tree394ca78314cb2ece1fd5412f8870868e608be813 /firmware/tuner.c
parent6087d8960328b427f495d46d74664a4b0e32af17 (diff)
FM tuner region code cleanup - FS #11492 by me.
This removes the tuner-specific region structs and makes each driver use the common one (which is now extended with a deemphasis field) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/tuner.c')
-rw-r--r--firmware/tuner.c88
1 files changed, 6 insertions, 82 deletions
diff --git a/firmware/tuner.c b/firmware/tuner.c
index 3232147bbb..e08cef46ff 100644
--- a/firmware/tuner.c
+++ b/firmware/tuner.c
@@ -28,92 +28,16 @@
/* General region information */
const struct fm_region_data fm_region_data[TUNER_NUM_REGIONS] =
{
- [REGION_EUROPE] = { 87500000, 108000000, 100000 },
- [REGION_US_CANADA] = { 87900000, 107900000, 200000 },
- [REGION_JAPAN] = { 76000000, 90000000, 100000 },
- [REGION_KOREA] = { 87500000, 108000000, 200000 },
- [REGION_ITALY] = { 87500000, 108000000, 50000 },
- [REGION_OTHER] = { 87500000, 108000000, 50000 }
+ [REGION_EUROPE] = { 87500000, 108000000, 100000, 50 },
+ [REGION_US_CANADA] = { 87900000, 107900000, 200000, 75 },
+ [REGION_JAPAN] = { 76000000, 90000000, 100000, 50 },
+ [REGION_KOREA] = { 87500000, 108000000, 200000, 50 },
+ [REGION_ITALY] = { 87500000, 108000000, 50000, 50 },
+ [REGION_OTHER] = { 87500000, 108000000, 50000, 50 }
};
#ifndef SIMULATOR
-/* Tuner-specific region information */
-
-#if (CONFIG_TUNER & LV24020LP)
-/* deemphasis setting for region */
-const unsigned char lv24020lp_region_data[TUNER_NUM_REGIONS] =
-{
- [REGION_EUROPE] = 0, /* 50uS */
- [REGION_US_CANADA] = 1, /* 75uS */
- [REGION_JAPAN] = 0, /* 50uS */
- [REGION_KOREA] = 0, /* 50uS */
- [REGION_ITALY] = 0, /* 50uS */
- [REGION_OTHER] = 0, /* 50uS */
-};
-#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 */
- [REGION_ITALY] = { 1, 0 }, /* 50uS, US/Europe band */
- [REGION_OTHER] = { 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] =
-{
- [REGION_EUROPE] = { 0, 0 }, /* 50uS, US/Europe band */
- [REGION_US_CANADA] = { 1, 0 }, /* 75uS, US/Europe band */
- [REGION_JAPAN] = { 0, 1 }, /* 50uS, Japanese band */
- [REGION_KOREA] = { 0, 0 }, /* 50uS, US/Europe band */
- [REGION_ITALY] = { 0, 0 }, /* 50uS, US/Europe band */
- [REGION_OTHER] = { 0, 0 }, /* 50uS, US/Europe band */
-};
-#endif /* (CONFIG_TUNER & TEA5767) */
-
-#if (CONFIG_TUNER & SI4700)
-const struct si4700_region_data si4700_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 & SI4700) */
-
-#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 */
- [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 & RDA5802) */
-
-#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);