diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-23 14:11:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-23 14:11:05 -0500 |
commit | 6ac48b458769059ee6147dd8bf2767e820407292 (patch) | |
tree | 1c83bdbbd5b3b8751b922d732d1d8d40c4c47a09 /include | |
parent | 3ad96835cedec7704b1b5a211b39262bb794adaf (diff) |
V4L/DVB (3408): Included new sliced VBI types to videodev2.h and tvp5150
- Added other sliced VBI types to videodev2.h
- tvp5150 now uses standard V4L2 API codes from videodev2.h
- Implemented VIDIOC_G_SLICED_VBI_CAP for tvp5150. This is
dynamically filled based on defined VDP C-RAM values filled
by the driver.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/videodev2.h | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index ce40675324bd..27ae3d679cbe 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -949,13 +949,50 @@ struct v4l2_sliced_vbi_format | |||
949 | __u32 reserved[2]; /* must be zero */ | 949 | __u32 reserved[2]; /* must be zero */ |
950 | }; | 950 | }; |
951 | 951 | ||
952 | #define V4L2_SLICED_TELETEXT_B (0x0001) | 952 | /* Teletext WST, defined on ITU-R BT.653-2 */ |
953 | #define V4L2_SLICED_VPS (0x0400) | 953 | #define V4L2_SLICED_TELETEXT_PAL_B (0x000001) |
954 | #define V4L2_SLICED_CAPTION_525 (0x1000) | 954 | #define V4L2_SLICED_TELETEXT_PAL_C (0x000002) |
955 | #define V4L2_SLICED_WSS_625 (0x4000) | 955 | #define V4L2_SLICED_TELETEXT_NTSC_B (0x000010) |
956 | 956 | #define V4L2_SLICED_TELETEXT_SECAM (0x000020) | |
957 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) | 957 | |
958 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) | 958 | /* Teletext NABTS, defined on ITU-R BT.653-2 */ |
959 | #define V4L2_SLICED_TELETEXT_NTSC_C (0x000040) | ||
960 | #define V4L2_SLICED_TELETEXT_NTSC_D (0x000080) | ||
961 | |||
962 | /* Video Program System, defined on ETS 300 231*/ | ||
963 | #define V4L2_SLICED_VPS (0x000400) | ||
964 | |||
965 | /* Closed Caption, defined on EIA-608 */ | ||
966 | #define V4L2_SLICED_CAPTION_525 (0x001000) | ||
967 | #define V4L2_SLICED_CAPTION_625 (0x002000) | ||
968 | |||
969 | /* Wide Screen System, defined on ITU-R BT1119.1 */ | ||
970 | #define V4L2_SLICED_WSS_625 (0x004000) | ||
971 | |||
972 | /* Wide Screen System, defined on IEC 61880 */ | ||
973 | #define V4L2_SLICED_WSS_525 (0x008000) | ||
974 | |||
975 | /* Vertical Interval Timecode (VITC), defined on SMPTE 12M */ | ||
976 | #define V4l2_SLICED_VITC_625 (0x010000) | ||
977 | #define V4l2_SLICED_VITC_525 (0x020000) | ||
978 | |||
979 | /* Compat macro - Should be removed for 2.6.18 */ | ||
980 | #define V4L2_SLICED_TELETEXT_B V4L2_SLICED_TELETEXT_PAL_B | ||
981 | |||
982 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_TELETEXT_NTSC_B |\ | ||
983 | V4L2_SLICED_TELETEXT_NTSC_C |\ | ||
984 | V4L2_SLICED_TELETEXT_NTSC_D |\ | ||
985 | V4L2_SLICED_CAPTION_525 |\ | ||
986 | V4L2_SLICED_WSS_525 |\ | ||
987 | V4l2_SLICED_VITC_525) | ||
988 | |||
989 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
990 | V4L2_SLICED_TELETEXT_PAL_C |\ | ||
991 | V4L2_SLICED_TELETEXT_SECAM |\ | ||
992 | V4L2_SLICED_VPS |\ | ||
993 | V4L2_SLICED_CAPTION_625 |\ | ||
994 | V4L2_SLICED_WSS_625 |\ | ||
995 | V4l2_SLICED_VITC_625) | ||
959 | 996 | ||
960 | struct v4l2_sliced_vbi_cap | 997 | struct v4l2_sliced_vbi_cap |
961 | { | 998 | { |