aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-06-26 12:12:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:24:23 -0400
commit8218b0b2caecf4af55742e12e9986c15605bb197 (patch)
tree99285845e50f4b0f0a05466743a721955e26fc74 /include/media
parentbebeaea0a54869b59b45ea22a93f325ce0369d61 (diff)
V4L/DVB (5793): Tuner: remove hardware-specific info from public header
Move internal structures and debug macros to drivers/media/video/tuner-driver.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/tuner.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/include/media/tuner.h b/include/media/tuner.h
index 88eaf893020..160381c72e4 100644
--- a/include/media/tuner.h
+++ b/include/media/tuner.h
@@ -23,8 +23,6 @@
23#define _TUNER_H 23#define _TUNER_H
24 24
25#include <linux/videodev2.h> 25#include <linux/videodev2.h>
26#include <linux/i2c.h>
27#include <media/tuner-types.h>
28 26
29extern int tuner_debug; 27extern int tuner_debug;
30 28
@@ -183,72 +181,6 @@ struct tuner_setup {
183 int (*tuner_callback) (void *dev, int command,int arg); 181 int (*tuner_callback) (void *dev, int command,int arg);
184}; 182};
185 183
186struct tuner_operations {
187 void (*set_tv_freq)(struct i2c_client *c, unsigned int freq);
188 void (*set_radio_freq)(struct i2c_client *c, unsigned int freq);
189 int (*has_signal)(struct i2c_client *c);
190 int (*is_stereo)(struct i2c_client *c);
191 int (*get_afc)(struct i2c_client *c);
192 void (*tuner_status)(struct i2c_client *c);
193 void (*standby)(struct i2c_client *c);
194 void (*release)(struct i2c_client *c);
195};
196
197struct tuner {
198 /* device */
199 struct i2c_client i2c;
200
201 unsigned int type; /* chip type */
202
203 unsigned int mode;
204 unsigned int mode_mask; /* Combination of allowable modes */
205
206 unsigned int tv_freq; /* keep track of the current settings */
207 unsigned int radio_freq;
208 u16 last_div;
209 unsigned int audmode;
210 v4l2_std_id std;
211
212 int using_v4l2;
213 void *priv;
214
215 /* used by tda9887 */
216 unsigned int tda9887_config;
217
218 unsigned int config;
219 int (*tuner_callback) (void *dev, int command,int arg);
220
221 struct tuner_operations ops;
222};
223
224extern unsigned const int tuner_count;
225
226extern int microtune_init(struct i2c_client *c);
227extern int xc3028_init(struct i2c_client *c);
228extern int tda8290_init(struct i2c_client *c);
229extern int tda8290_probe(struct i2c_client *c);
230extern int default_tuner_init(struct i2c_client *c);
231
232extern int tea5767_autodetection(struct i2c_client *c);
233extern int tea5767_tuner_init(struct i2c_client *c);
234
235extern int tda9887_tuner_init(struct i2c_client *c);
236
237extern int tea5761_tuner_init(struct i2c_client *c);
238extern int tea5761_autodetection(struct i2c_client *c);
239
240#define tuner_warn(fmt, arg...) do {\
241 printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \
242 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0)
243#define tuner_info(fmt, arg...) do {\
244 printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \
245 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0)
246#define tuner_dbg(fmt, arg...) do {\
247 extern int tuner_debug; \
248 if (tuner_debug) \
249 printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \
250 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0)
251
252#endif /* __KERNEL__ */ 184#endif /* __KERNEL__ */
253 185
254#endif /* _TUNER_H */ 186#endif /* _TUNER_H */