diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-05 14:50:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:05:05 -0500 |
commit | 27c685a4b09b5e391023d769cddb97e4fcb3b9e1 (patch) | |
tree | af296caf5de933e90f7c82170f0cc2e57dd062f0 /drivers/media/dvb/frontends/xc5000.h | |
parent | dfc1c08aab447d49230dacb390d3f2263584d28f (diff) |
V4L/DVB (7042): xc5000: Tuner analog support
From Zhang: This an updated patch that adds analog support for
the xc5000 tuner driver. it was tested on a Pinnacle PCTV HD 800i
card (patches to follow).
Patch commited as-is, cleanup to follow ... Steve.
Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/xc5000.h')
-rw-r--r-- | drivers/media/dvb/frontends/xc5000.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/xc5000.h b/drivers/media/dvb/frontends/xc5000.h index 941b31948133..85b2d438fa41 100644 --- a/drivers/media/dvb/frontends/xc5000.h +++ b/drivers/media/dvb/frontends/xc5000.h | |||
@@ -28,13 +28,15 @@ struct dvb_frontend; | |||
28 | struct i2c_adapter; | 28 | struct i2c_adapter; |
29 | 29 | ||
30 | struct xc5000_config { | 30 | struct xc5000_config { |
31 | u8 i2c_address; | 31 | u8 i2c_address; |
32 | u32 if_khz; | 32 | u32 if_khz; |
33 | int (*request_firmware)(struct dvb_frontend *fe, | 33 | void *video_dev; |
34 | const struct firmware **fw, char *name); | 34 | int (*tuner_callback) (void *dev, int command, int arg); |
35 | int (*tuner_reset)(struct dvb_frontend* fe); | ||
36 | }; | 35 | }; |
37 | 36 | ||
37 | /* xc5000 callback command */ | ||
38 | #define XC5000_TUNER_RESET 0 | ||
39 | |||
38 | #if defined(CONFIG_DVB_TUNER_XC5000) || defined(CONFIG_DVB_TUNER_XC5000_MODULE) | 40 | #if defined(CONFIG_DVB_TUNER_XC5000) || defined(CONFIG_DVB_TUNER_XC5000_MODULE) |
39 | extern struct dvb_frontend* xc5000_attach(struct dvb_frontend *fe, | 41 | extern struct dvb_frontend* xc5000_attach(struct dvb_frontend *fe, |
40 | struct i2c_adapter *i2c, | 42 | struct i2c_adapter *i2c, |