diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-dvb.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index a7a077196fc9..1236cb11d83a 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -45,6 +45,9 @@ | |||
45 | #ifdef HAVE_LGDT330X | 45 | #ifdef HAVE_LGDT330X |
46 | # include "lgdt330x.h" | 46 | # include "lgdt330x.h" |
47 | #endif | 47 | #endif |
48 | #ifdef HAVE_NXT200X | ||
49 | # include "nxt200x.h" | ||
50 | #endif | ||
48 | 51 | ||
49 | MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); | 52 | MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); |
50 | MODULE_AUTHOR("Chris Pascoe <c.pascoe@itee.uq.edu.au>"); | 53 | MODULE_AUTHOR("Chris Pascoe <c.pascoe@itee.uq.edu.au>"); |
@@ -284,6 +287,23 @@ static struct lgdt330x_config fusionhdtv_5_gold = { | |||
284 | }; | 287 | }; |
285 | #endif | 288 | #endif |
286 | 289 | ||
290 | #ifdef HAVE_NXT200X | ||
291 | static int nxt200x_set_ts_param(struct dvb_frontend* fe, | ||
292 | int is_punctured) | ||
293 | { | ||
294 | struct cx8802_dev *dev= fe->dvb->priv; | ||
295 | dev->ts_gen_cntrl = is_punctured ? 0x04 : 0x00; | ||
296 | return 0; | ||
297 | } | ||
298 | |||
299 | static struct nxt200x_config ati_hdtvwonder = { | ||
300 | .demod_address = 0x0a, | ||
301 | .pll_address = 0x61, | ||
302 | .pll_desc = &dvb_pll_tuv1236d, | ||
303 | .set_ts_params = nxt200x_set_ts_param, | ||
304 | }; | ||
305 | #endif | ||
306 | |||
287 | static int dvb_register(struct cx8802_dev *dev) | 307 | static int dvb_register(struct cx8802_dev *dev) |
288 | { | 308 | { |
289 | /* init struct videobuf_dvb */ | 309 | /* init struct videobuf_dvb */ |
@@ -385,6 +405,12 @@ static int dvb_register(struct cx8802_dev *dev) | |||
385 | } | 405 | } |
386 | break; | 406 | break; |
387 | #endif | 407 | #endif |
408 | #ifdef HAVE_NXT200X | ||
409 | case CX88_BOARD_ATI_HDTVWONDER: | ||
410 | dev->dvb.frontend = nxt200x_attach(&ati_hdtvwonder, | ||
411 | &dev->core->i2c_adap); | ||
412 | break; | ||
413 | #endif | ||
388 | default: | 414 | default: |
389 | printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n", | 415 | printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n", |
390 | dev->core->name); | 416 | dev->core->name); |