1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Tuner abstraction layer
11 * Copyright (C) 2004 Jörg Hohensohn
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 /** Settings to the tuner layer **/
31 RADIO_ALL
= -1, /* debug */
38 /* Put new general-purpose settings above this line */
39 __RADIO_SET_STANDARD_LAST
42 /** Readback from the tuner layer **/
48 /* RADIO_EVENT is an event that requests a screen update */
54 /* Put new general-purpose readback values above this line */
55 __RADIO_GET_STANDARD_LAST
59 /** Readback from the tuner RDS layer **/
65 /* Put new general-purpose readback values above this line */
66 __RADIO_GET_RDS_INFO_STANDARD_LAST
72 /* Basic region information */
82 /* Add new regions above this line */
91 int deemphasis
; /* in microseconds, usually 50 or 75 */
94 extern const struct fm_region_data fm_region_data
[TUNER_NUM_REGIONS
];
98 #if !defined(SIMULATOR) && defined(CONFIG_TUNER_MULTI)
99 extern int tuner_detect_type(void);
100 extern int (*tuner_set
)(int setting
, int value
);
101 extern int (*tuner_get
)(int setting
);
102 #endif /* CONFIG_TUNER_MULTI */
104 /** Sanyo LV24020LP **/
105 #if (CONFIG_TUNER & LV24020LP)
106 /* Sansa c200, e200 */
107 #include "lv24020lp.h"
110 /** Samsung S1A0903X01 **/
111 #if (CONFIG_TUNER & S1A0903X01)
112 /* Ondio FM, FM Recorder */
113 #include "s1a0903x01.h"
116 /** Philips TEA5760 **/
117 #if (CONFIG_TUNER & TEA5760)
121 /** Philips TEA5767 **/
122 #if (CONFIG_TUNER & TEA5767)
123 /* Ondio FM, FM Recorder, Recorder V2, iRiver h100/h300, iAudio x5 */
127 /* Silicon Labs 4700 */
128 #if (CONFIG_TUNER & SI4700)
132 /* RDA micro RDA5802 */
133 #if (CONFIG_TUNER & RDA5802)
137 /* Apple remote tuner */
138 #if (CONFIG_TUNER & IPOD_REMOTE_TUNER)
139 #include "ipod_remote_tuner.h"
142 /* SigmaTel/Freescale STFM1000 */
143 #if (CONFIG_TUNER & STFM1000)
144 #include "stfm1000.h"
147 #if defined(SIMULATOR)
149 int tuner_set(int setting
, int value
);
151 int tuner_get(int setting
);
156 /* Additional messages that get enumerated after tuner driver headers */
161 __RADIO_SET_ADDITIONAL_START
= __RADIO_SET_STANDARD_LAST
-1,
162 #ifdef HAVE_RADIO_REGION
172 __RADIO_GET_ADDITIONAL_START
= __RADIO_GET_STANDARD_LAST
-1,
179 void tuner_init(void) INIT_ATTR
;
181 #endif /* #if CONFIG_TUNER */
183 #endif /* __TUNER_H__ */