diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 5d2f40fe5b7d..a4f4958699b1 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -50,6 +50,13 @@ | |||
50 | /* ----------------------------------------------------------- */ | 50 | /* ----------------------------------------------------------- */ |
51 | /* defines and enums */ | 51 | /* defines and enums */ |
52 | 52 | ||
53 | /* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */ | ||
54 | #define CX88_NORMS (\ | ||
55 | V4L2_STD_NTSC_M| V4L2_STD_NTSC_M_JP| V4L2_STD_NTSC_443 | \ | ||
56 | V4L2_STD_PAL_BG| V4L2_STD_PAL_DK | V4L2_STD_PAL_I | \ | ||
57 | V4L2_STD_PAL_M | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | \ | ||
58 | V4L2_STD_PAL_60| V4L2_STD_SECAM_L | V4L2_STD_SECAM_DK ) | ||
59 | |||
53 | #define FORMAT_FLAGS_PACKED 0x01 | 60 | #define FORMAT_FLAGS_PACKED 0x01 |
54 | #define FORMAT_FLAGS_PLANAR 0x02 | 61 | #define FORMAT_FLAGS_PLANAR 0x02 |
55 | 62 | ||
@@ -82,15 +89,15 @@ enum cx8802_board_access { | |||
82 | /* ----------------------------------------------------------- */ | 89 | /* ----------------------------------------------------------- */ |
83 | /* tv norms */ | 90 | /* tv norms */ |
84 | 91 | ||
85 | static unsigned int inline norm_maxw(struct v4l2_tvnorm *norm) | 92 | static unsigned int inline norm_maxw(v4l2_std_id norm) |
86 | { | 93 | { |
87 | return (norm->id & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 720 : 768; | 94 | return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 720 : 768; |
88 | } | 95 | } |
89 | 96 | ||
90 | 97 | ||
91 | static unsigned int inline norm_maxh(struct v4l2_tvnorm *norm) | 98 | static unsigned int inline norm_maxh(v4l2_std_id norm) |
92 | { | 99 | { |
93 | return (norm->id & V4L2_STD_625_50) ? 576 : 480; | 100 | return (norm & V4L2_STD_625_50) ? 576 : 480; |
94 | } | 101 | } |
95 | 102 | ||
96 | /* ----------------------------------------------------------- */ | 103 | /* ----------------------------------------------------------- */ |
@@ -312,7 +319,7 @@ struct cx88_core { | |||
312 | 319 | ||
313 | /* state info */ | 320 | /* state info */ |
314 | struct task_struct *kthread; | 321 | struct task_struct *kthread; |
315 | struct v4l2_tvnorm *tvnorm; | 322 | v4l2_std_id tvnorm; |
316 | u32 tvaudio; | 323 | u32 tvaudio; |
317 | u32 audiomode_manual; | 324 | u32 audiomode_manual; |
318 | u32 audiomode_current; | 325 | u32 audiomode_current; |
@@ -529,7 +536,7 @@ extern void cx88_sram_channel_dump(struct cx88_core *core, | |||
529 | 536 | ||
530 | extern int cx88_set_scale(struct cx88_core *core, unsigned int width, | 537 | extern int cx88_set_scale(struct cx88_core *core, unsigned int width, |
531 | unsigned int height, enum v4l2_field field); | 538 | unsigned int height, enum v4l2_field field); |
532 | extern int cx88_set_tvnorm(struct cx88_core *core, struct v4l2_tvnorm *norm); | 539 | extern int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm); |
533 | 540 | ||
534 | extern struct video_device *cx88_vdev_init(struct cx88_core *core, | 541 | extern struct video_device *cx88_vdev_init(struct cx88_core *core, |
535 | struct pci_dev *pci, | 542 | struct pci_dev *pci, |
@@ -630,8 +637,6 @@ int cx8802_resume_common(struct pci_dev *pci_dev); | |||
630 | 637 | ||
631 | /* ----------------------------------------------------------- */ | 638 | /* ----------------------------------------------------------- */ |
632 | /* cx88-video.c*/ | 639 | /* cx88-video.c*/ |
633 | extern unsigned int cx88_tvnormsize; | ||
634 | extern struct v4l2_tvnorm cx88_tvnorms[]; | ||
635 | extern const u32 cx88_user_ctrls[]; | 640 | extern const u32 cx88_user_ctrls[]; |
636 | extern int cx8800_ctrl_query(struct v4l2_queryctrl *qctrl); | 641 | extern int cx8800_ctrl_query(struct v4l2_queryctrl *qctrl); |
637 | int cx88_enum_input (struct cx88_core *core,struct v4l2_input *i); | 642 | int cx88_enum_input (struct cx88_core *core,struct v4l2_input *i); |