diff options
Diffstat (limited to 'drivers/media/dvb/frontends/tda1002x.h')
-rw-r--r-- | drivers/media/dvb/frontends/tda1002x.h | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/tda1002x.h b/drivers/media/dvb/frontends/tda1002x.h index 1bcc0d44b90b..4522b7ef53c9 100644 --- a/drivers/media/dvb/frontends/tda1002x.h +++ b/drivers/media/dvb/frontends/tda1002x.h | |||
@@ -26,11 +26,25 @@ | |||
26 | 26 | ||
27 | #include <linux/dvb/frontend.h> | 27 | #include <linux/dvb/frontend.h> |
28 | 28 | ||
29 | struct tda1002x_config | 29 | struct tda1002x_config { |
30 | { | 30 | /* the demodulator's i2c address */ |
31 | u8 demod_address; | ||
32 | u8 invert; | ||
33 | }; | ||
34 | |||
35 | struct tda10023_config { | ||
31 | /* the demodulator's i2c address */ | 36 | /* the demodulator's i2c address */ |
32 | u8 demod_address; | 37 | u8 demod_address; |
33 | u8 invert; | 38 | u8 invert; |
39 | |||
40 | /* clock settings */ | ||
41 | u32 xtal; /* defaults: 28920000 */ | ||
42 | u8 pll_m; /* defaults: 8 */ | ||
43 | u8 pll_p; /* defaults: 4 */ | ||
44 | u8 pll_n; /* defaults: 1 */ | ||
45 | |||
46 | /* input freq offset + baseband conversion type */ | ||
47 | u16 deltaf; | ||
34 | }; | 48 | }; |
35 | 49 | ||
36 | #if defined(CONFIG_DVB_TDA10021) || (defined(CONFIG_DVB_TDA10021_MODULE) && defined(MODULE)) | 50 | #if defined(CONFIG_DVB_TDA10021) || (defined(CONFIG_DVB_TDA10021_MODULE) && defined(MODULE)) |
@@ -45,12 +59,15 @@ static inline struct dvb_frontend* tda10021_attach(const struct tda1002x_config* | |||
45 | } | 59 | } |
46 | #endif // CONFIG_DVB_TDA10021 | 60 | #endif // CONFIG_DVB_TDA10021 |
47 | 61 | ||
48 | #if defined(CONFIG_DVB_TDA10023) || (defined(CONFIG_DVB_TDA10023_MODULE) && defined(MODULE)) | 62 | #if defined(CONFIG_DVB_TDA10023) || \ |
49 | extern struct dvb_frontend* tda10023_attach(const struct tda1002x_config* config, | 63 | (defined(CONFIG_DVB_TDA10023_MODULE) && defined(MODULE)) |
50 | struct i2c_adapter* i2c, u8 pwm); | 64 | extern struct dvb_frontend *tda10023_attach( |
65 | const struct tda10023_config *config, | ||
66 | struct i2c_adapter *i2c, u8 pwm); | ||
51 | #else | 67 | #else |
52 | static inline struct dvb_frontend* tda10023_attach(const struct tda1002x_config* config, | 68 | static inline struct dvb_frontend *tda10023_attach( |
53 | struct i2c_adapter* i2c, u8 pwm) | 69 | const struct tda1002x_config *config, |
70 | struct i2c_adapter *i2c, u8 pwm) | ||
54 | { | 71 | { |
55 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 72 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
56 | return NULL; | 73 | return NULL; |