diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-03-29 20:01:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:56 -0400 |
commit | ca06fa79a5babc21f0240979e5b1dd34dcc3c6e4 (patch) | |
tree | 363a53a37c8ac6dd30b11ca2ce825a37fd40de15 /drivers/media/dvb/frontends/cx24123.h | |
parent | 6394cf53abc0b3a2db9e8b947ef5c77b16861ec8 (diff) |
V4L/DVB (7470): CX24123: preparing support for CX24113 tuner
To support a new device based on CX24123 (using the CX24113-tuner) the following was done:
- added two parameters to de-select the internal PLL-driver (for CX24108) and a AGC-function callback.
- added a virtual i2c-adapter which allow simple access behind the i2c-gate
- cleanup up some code
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24123.h')
-rw-r--r-- | drivers/media/dvb/frontends/cx24123.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.h b/drivers/media/dvb/frontends/cx24123.h index 84f9e4f5c15e..81ebc3d2f19f 100644 --- a/drivers/media/dvb/frontends/cx24123.h +++ b/drivers/media/dvb/frontends/cx24123.h | |||
@@ -33,16 +33,27 @@ struct cx24123_config | |||
33 | 33 | ||
34 | /* 0 = LNB voltage normal, 1 = LNB voltage inverted */ | 34 | /* 0 = LNB voltage normal, 1 = LNB voltage inverted */ |
35 | int lnb_polarity; | 35 | int lnb_polarity; |
36 | |||
37 | /* this device has another tuner */ | ||
38 | u8 dont_use_pll; | ||
39 | void (*agc_callback) (struct dvb_frontend *); | ||
36 | }; | 40 | }; |
37 | 41 | ||
38 | #if defined(CONFIG_DVB_CX24123) || (defined(CONFIG_DVB_CX24123_MODULE) && defined(MODULE)) | 42 | #if defined(CONFIG_DVB_CX24123) || (defined(CONFIG_DVB_CX24123_MODULE) && defined(MODULE)) |
39 | extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | 43 | extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config, |
40 | struct i2c_adapter* i2c); | 44 | struct i2c_adapter *i2c); |
45 | extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *); | ||
41 | #else | 46 | #else |
42 | static inline struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | 47 | static inline struct dvb_frontend *cx24123_attach( |
43 | struct i2c_adapter* i2c) | 48 | const struct cx24123_config *config, struct i2c_adapter *i2c) |
49 | { | ||
50 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | ||
51 | return NULL; | ||
52 | } | ||
53 | static struct i2c_adapter * | ||
54 | cx24123_get_tuner_i2c_adapter(struct dvb_frontend *fe) | ||
44 | { | 55 | { |
45 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | 56 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
46 | return NULL; | 57 | return NULL; |
47 | } | 58 | } |
48 | #endif // CONFIG_DVB_CX24123 | 59 | #endif // CONFIG_DVB_CX24123 |