diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-03-29 22:01:12 +0100 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2008-03-29 22:01:12 +0100 |
commit | d8580b741f3e97d4ab9882286ca68143258df6a6 (patch) | |
tree | e1acf5459edba3d0780e16b99ea964b81871857f /linux/drivers/media/dvb/frontends/cx24123.h | |
parent | 1be90df9422b4ee4d6343477eda998c5d3e3e488 (diff) | |
download | mediapointer-dvb-s2-d8580b741f3e97d4ab9882286ca68143258df6a6.tar.gz mediapointer-dvb-s2-d8580b741f3e97d4ab9882286ca68143258df6a6.tar.bz2 |
CX24123: preparing support for CX24113 tuner
From: Patrick Boettcher <pb@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/cx24123.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx24123.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24123.h b/linux/drivers/media/dvb/frontends/cx24123.h index 84f9e4f5c..81ebc3d2f 100644 --- a/linux/drivers/media/dvb/frontends/cx24123.h +++ b/linux/drivers/media/dvb/frontends/cx24123.h @@ -33,16 +33,27 @@ struct cx24123_config /* 0 = LNB voltage normal, 1 = LNB voltage inverted */ int lnb_polarity; + + /* this device has another tuner */ + u8 dont_use_pll; + void (*agc_callback) (struct dvb_frontend *); }; #if defined(CONFIG_DVB_CX24123) || (defined(CONFIG_DVB_CX24123_MODULE) && defined(MODULE)) -extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, - struct i2c_adapter* i2c); +extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config, + struct i2c_adapter *i2c); +extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *); #else -static inline struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, - struct i2c_adapter* i2c) +static inline struct dvb_frontend *cx24123_attach( + const struct cx24123_config *config, struct i2c_adapter *i2c) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); + return NULL; +} +static struct i2c_adapter * + cx24123_get_tuner_i2c_adapter(struct dvb_frontend *fe) { - printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); return NULL; } #endif // CONFIG_DVB_CX24123 |