1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * General tuner functions
11 * Copyright (C) 2007 by Michael Sevakis
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
28 /* General region information */
29 const struct fm_region_data fm_region_data
[TUNER_NUM_REGIONS
] =
31 [REGION_EUROPE
] = { 87500000, 108000000, 100000, 50 },
32 [REGION_US_CANADA
] = { 87900000, 107900000, 200000, 75 },
33 [REGION_JAPAN
] = { 76000000, 90000000, 100000, 50 },
34 [REGION_KOREA
] = { 87500000, 108000000, 200000, 50 },
35 [REGION_ITALY
] = { 87500000, 108000000, 50000, 50 },
36 [REGION_OTHER
] = { 87500000, 108000000, 50000, 50 }
41 #ifdef CONFIG_TUNER_MULTI
42 int (*tuner_set
)(int setting
, int value
);
43 int (*tuner_get
)(int setting
);
45 #define TUNER_TYPE_CASE(type, set, get, ...) \
52 #define TUNER_TYPE_CASE(type, set, get, ...) \
54 #endif /* CONFIG_TUNER_MULTI */
58 #ifdef CONFIG_TUNER_MULTI
59 switch (tuner_detect_type())
62 #if (CONFIG_TUNER & LV24020LP)
63 TUNER_TYPE_CASE(LV24020LP
,
68 #if (CONFIG_TUNER & TEA5760)
69 TUNER_TYPE_CASE(TEA5760
,
74 #if (CONFIG_TUNER & TEA5767)
75 TUNER_TYPE_CASE(TEA5767
,
79 #if (CONFIG_TUNER & S1A0903X01)
80 TUNER_TYPE_CASE(S1A0903X01
,
84 #if (CONFIG_TUNER & SI4700)
85 TUNER_TYPE_CASE(SI4700
,
90 #if (CONFIG_TUNER & RDA5802)
91 TUNER_TYPE_CASE(RDA5802
,
98 #endif /* SIMULATOR */