diff options
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_vp3030.c')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp3030.c | 49 |
1 files changed, 40 insertions, 9 deletions
diff --git a/drivers/media/dvb/mantis/mantis_vp3030.c b/drivers/media/dvb/mantis/mantis_vp3030.c index 9ca8040489dd..4b974eeefa9e 100644 --- a/drivers/media/dvb/mantis/mantis_vp3030.c +++ b/drivers/media/dvb/mantis/mantis_vp3030.c | |||
@@ -18,6 +18,18 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | ||
23 | #include <linux/sched.h> | ||
24 | #include <linux/interrupt.h> | ||
25 | |||
26 | #include "dmxdev.h" | ||
27 | #include "dvbdev.h" | ||
28 | #include "dvb_demux.h" | ||
29 | #include "dvb_frontend.h" | ||
30 | #include "dvb_net.h" | ||
31 | |||
32 | #include "zl10353.h" | ||
21 | #include "mantis_common.h" | 33 | #include "mantis_common.h" |
22 | #include "mantis_vp3030.h" | 34 | #include "mantis_vp3030.h" |
23 | 35 | ||
@@ -28,15 +40,6 @@ struct zl10353_config mantis_vp3030_config = { | |||
28 | #define MANTIS_MODEL_NAME "VP-3030" | 40 | #define MANTIS_MODEL_NAME "VP-3030" |
29 | #define MANTIS_DEV_TYPE "DVB-T" | 41 | #define MANTIS_DEV_TYPE "DVB-T" |
30 | 42 | ||
31 | struct mantis_hwconfig vp3030_mantis_config = { | ||
32 | .model_name = MANTIS_MODEL_NAME, | ||
33 | .dev_type = MANTIS_DEV_TYPE, | ||
34 | .ts_size = MANTIS_TS_188, | ||
35 | .baud_rate = MANTIS_BAUD_9600, | ||
36 | .parity = MANTIS_PARITY_NONE, | ||
37 | .bytes = 0, | ||
38 | }; | ||
39 | |||
40 | int panasonic_en57h12d5_set_params(struct dvb_frontend *fe, | 43 | int panasonic_en57h12d5_set_params(struct dvb_frontend *fe, |
41 | struct dvb_frontend_parameters *params) | 44 | struct dvb_frontend_parameters *params) |
42 | { | 45 | { |
@@ -63,3 +66,31 @@ int panasonic_en57h12d5_set_params(struct dvb_frontend *fe, | |||
63 | 66 | ||
64 | return 0; | 67 | return 0; |
65 | } | 68 | } |
69 | |||
70 | static int vp3030_frontend_init(struct mantis_pci *mantis, struct dvb_frontend *fe) | ||
71 | { | ||
72 | struct i2c_adapter *adapter = &mantis->adapter; | ||
73 | |||
74 | dprintk(MANTIS_ERROR, 1, "Probing for 10353 (DVB-T)"); | ||
75 | fe = zl10353_attach(&mantis_vp3030_config, adapter); | ||
76 | |||
77 | if (!fe) | ||
78 | return -1; | ||
79 | |||
80 | mantis->fe = fe; | ||
81 | dprintk(MANTIS_ERROR, 1, "Done!"); | ||
82 | |||
83 | return 0; | ||
84 | } | ||
85 | |||
86 | struct mantis_hwconfig vp3030_config = { | ||
87 | .model_name = MANTIS_MODEL_NAME, | ||
88 | .dev_type = MANTIS_DEV_TYPE, | ||
89 | .ts_size = MANTIS_TS_188, | ||
90 | |||
91 | .baud_rate = MANTIS_BAUD_9600, | ||
92 | .parity = MANTIS_PARITY_NONE, | ||
93 | .bytes = 0, | ||
94 | |||
95 | .frontend_init = vp3030_frontend_init, | ||
96 | }; | ||