diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-10-14 01:52:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-22 10:01:42 -0400 |
commit | 7717cbedd90381f4e60b1e230dfdfd7565c7efda (patch) | |
tree | 10695fe29589f7e6b5d1478fbab700b885f040c7 /drivers/media/video/cx88 | |
parent | ea63d0b11ebb296b3daca4fcb74931604ee3ce78 (diff) |
V4L/DVB (6332): cx88: Only include the blackbird fields if blackbird is selected
Add some ifdefs around fields only used for blackbird support, similar to the
way the dvb fields are only included with dvb support.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-mpeg.c | 8 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c index a652f294d23d..1b1418241b42 100644 --- a/drivers/media/video/cx88/cx88-mpeg.c +++ b/drivers/media/video/cx88/cx88-mpeg.c | |||
@@ -79,7 +79,8 @@ static int cx8802_start_dma(struct cx8802_dev *dev, | |||
79 | { | 79 | { |
80 | struct cx88_core *core = dev->core; | 80 | struct cx88_core *core = dev->core; |
81 | 81 | ||
82 | dprintk(1, "cx8802_start_dma w: %d, h: %d, f: %d\n", dev->width, dev->height, buf->vb.field); | 82 | dprintk(1, "cx8802_start_dma w: %d, h: %d, f: %d\n", |
83 | buf->vb.width, buf->vb.height, buf->vb.field); | ||
83 | 84 | ||
84 | /* setup fifo + format */ | 85 | /* setup fifo + format */ |
85 | cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28], | 86 | cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28], |
@@ -572,6 +573,8 @@ int cx8802_resume_common(struct pci_dev *pci_dev) | |||
572 | return 0; | 573 | return 0; |
573 | } | 574 | } |
574 | 575 | ||
576 | #if defined(CONFIG_VIDEO_CX88_BLACKBIRD) || \ | ||
577 | defined(CONFIG_VIDEO_CX88_BLACKBIRD_MODULE) | ||
575 | struct cx8802_dev * cx8802_get_device(struct inode *inode) | 578 | struct cx8802_dev * cx8802_get_device(struct inode *inode) |
576 | { | 579 | { |
577 | int minor = iminor(inode); | 580 | int minor = iminor(inode); |
@@ -586,6 +589,8 @@ struct cx8802_dev * cx8802_get_device(struct inode *inode) | |||
586 | 589 | ||
587 | return NULL; | 590 | return NULL; |
588 | } | 591 | } |
592 | EXPORT_SYMBOL(cx8802_get_device); | ||
593 | #endif | ||
589 | 594 | ||
590 | struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board_type btype) | 595 | struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board_type btype) |
591 | { | 596 | { |
@@ -901,7 +906,6 @@ EXPORT_SYMBOL(cx8802_fini_common); | |||
901 | 906 | ||
902 | EXPORT_SYMBOL(cx8802_register_driver); | 907 | EXPORT_SYMBOL(cx8802_register_driver); |
903 | EXPORT_SYMBOL(cx8802_unregister_driver); | 908 | EXPORT_SYMBOL(cx8802_unregister_driver); |
904 | EXPORT_SYMBOL(cx8802_get_device); | ||
905 | EXPORT_SYMBOL(cx8802_get_driver); | 909 | EXPORT_SYMBOL(cx8802_get_driver); |
906 | /* ----------------------------------------------------------- */ | 910 | /* ----------------------------------------------------------- */ |
907 | /* | 911 | /* |
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 42e0a9b8c550..43ba75ba94b4 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -453,11 +453,17 @@ struct cx8802_dev { | |||
453 | 453 | ||
454 | /* for blackbird only */ | 454 | /* for blackbird only */ |
455 | struct list_head devlist; | 455 | struct list_head devlist; |
456 | #if defined(CONFIG_VIDEO_CX88_BLACKBIRD) || \ | ||
457 | defined(CONFIG_VIDEO_CX88_BLACKBIRD_MODULE) | ||
456 | struct video_device *mpeg_dev; | 458 | struct video_device *mpeg_dev; |
457 | u32 mailbox; | 459 | u32 mailbox; |
458 | int width; | 460 | int width; |
459 | int height; | 461 | int height; |
460 | 462 | ||
463 | /* mpeg params */ | ||
464 | struct cx2341x_mpeg_params params; | ||
465 | #endif | ||
466 | |||
461 | #if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) | 467 | #if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) |
462 | /* for dvb only */ | 468 | /* for dvb only */ |
463 | struct videobuf_dvb dvb; | 469 | struct videobuf_dvb dvb; |
@@ -467,13 +473,9 @@ struct cx8802_dev { | |||
467 | /* for switching modulation types */ | 473 | /* for switching modulation types */ |
468 | unsigned char ts_gen_cntrl; | 474 | unsigned char ts_gen_cntrl; |
469 | 475 | ||
470 | /* mpeg params */ | ||
471 | struct cx2341x_mpeg_params params; | ||
472 | |||
473 | /* List of attached drivers */ | 476 | /* List of attached drivers */ |
474 | struct cx8802_driver drvlist; | 477 | struct cx8802_driver drvlist; |
475 | struct work_struct request_module_wk; | 478 | struct work_struct request_module_wk; |
476 | |||
477 | }; | 479 | }; |
478 | 480 | ||
479 | /* ----------------------------------------------------------- */ | 481 | /* ----------------------------------------------------------- */ |