summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-driver.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 11:56:04 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 11:56:04 -0200
commit6ddc0844c5e7e40b765d290ac06a93b12eda4e8b (patch)
tree0b9b10c2e844ce202209a198f45276bd8ebd6bca /linux/drivers/media/video/tuner-driver.h
parentcdd8a614f8de70d50a815bad283ceab2bfe9a625 (diff)
parentca436a99a3cc379dbd8d76c612f54971220a7ff5 (diff)
downloadmediapointer-dvb-s2-6ddc0844c5e7e40b765d290ac06a93b12eda4e8b.tar.gz
mediapointer-dvb-s2-6ddc0844c5e7e40b765d290ac06a93b12eda4e8b.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-driver.h')
-rw-r--r--linux/drivers/media/video/tuner-driver.h36
1 files changed, 8 insertions, 28 deletions
diff --git a/linux/drivers/media/video/tuner-driver.h b/linux/drivers/media/video/tuner-driver.h
index a4db32d97..65ced4350 100644
--- a/linux/drivers/media/video/tuner-driver.h
+++ b/linux/drivers/media/video/tuner-driver.h
@@ -24,16 +24,20 @@
#include <linux/videodev2.h>
#include <linux/i2c.h>
-#include "tuner-i2c.h"
#include "dvb_frontend.h"
extern unsigned const int tuner_count;
-struct tuner;
+struct analog_demod_info {
+ char *name;
+};
struct analog_tuner_ops {
- void (*set_tv_freq)(struct dvb_frontend *fe, unsigned int freq);
- void (*set_radio_freq)(struct dvb_frontend *fe, unsigned int freq);
+
+ struct analog_demod_info info;
+
+ void (*set_params)(struct dvb_frontend *fe,
+ struct analog_parameters *params);
int (*has_signal)(struct dvb_frontend *fe);
int (*is_stereo)(struct dvb_frontend *fe);
int (*get_afc)(struct dvb_frontend *fe);
@@ -69,28 +73,4 @@ struct tuner {
int (*tuner_callback) (void *dev, int command,int arg);
};
-/* ------------------------------------------------------------------------ */
-
-#define tuner_warn(fmt, arg...) do { \
- printk(KERN_WARNING "%s %d-%04x: " fmt, PREFIX, \
- i2c_adapter_id(t->i2c->adapter), t->i2c->addr, ##arg); \
- } while (0)
-
-#define tuner_info(fmt, arg...) do { \
- printk(KERN_INFO "%s %d-%04x: " fmt, PREFIX, \
- i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
- } while (0)
-
-#define tuner_err(fmt, arg...) do { \
- printk(KERN_ERR "%s %d-%04x: " fmt, PREFIX, \
- i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
- } while (0)
-
-#define tuner_dbg(fmt, arg...) do { \
- extern int tuner_debug; \
- if (tuner_debug) \
- printk(KERN_DEBUG "%s %d-%04x: " fmt, PREFIX, \
- i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
- } while (0)
-
#endif /* __TUNER_DRIVER_H__ */