diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dvb/audio.h | 13 | ||||
-rw-r--r-- | include/linux/dvb/video.h | 13 | ||||
-rw-r--r-- | include/linux/videodev2.h | 84 |
3 files changed, 101 insertions, 9 deletions
diff --git a/include/linux/dvb/audio.h b/include/linux/dvb/audio.h index 2b8797084685..0874a67c6b92 100644 --- a/include/linux/dvb/audio.h +++ b/include/linux/dvb/audio.h | |||
@@ -121,4 +121,17 @@ typedef uint16_t audio_attributes_t; | |||
121 | #define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t) | 121 | #define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t) |
122 | #define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t) | 122 | #define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t) |
123 | 123 | ||
124 | /** | ||
125 | * AUDIO_GET_PTS | ||
126 | * | ||
127 | * Read the 33 bit presentation time stamp as defined | ||
128 | * in ITU T-REC-H.222.0 / ISO/IEC 13818-1. | ||
129 | * | ||
130 | * The PTS should belong to the currently played | ||
131 | * frame if possible, but may also be a value close to it | ||
132 | * like the PTS of the last decoded frame or the last PTS | ||
133 | * extracted by the PES parser. | ||
134 | */ | ||
135 | #define AUDIO_GET_PTS _IOR('o', 19, __u64) | ||
136 | |||
124 | #endif /* _DVBAUDIO_H_ */ | 137 | #endif /* _DVBAUDIO_H_ */ |
diff --git a/include/linux/dvb/video.h b/include/linux/dvb/video.h index b81e58b2ebf8..faebfda397ff 100644 --- a/include/linux/dvb/video.h +++ b/include/linux/dvb/video.h | |||
@@ -200,4 +200,17 @@ typedef uint16_t video_attributes_t; | |||
200 | #define VIDEO_GET_SIZE _IOR('o', 55, video_size_t) | 200 | #define VIDEO_GET_SIZE _IOR('o', 55, video_size_t) |
201 | #define VIDEO_GET_FRAME_RATE _IOR('o', 56, unsigned int) | 201 | #define VIDEO_GET_FRAME_RATE _IOR('o', 56, unsigned int) |
202 | 202 | ||
203 | /** | ||
204 | * VIDEO_GET_PTS | ||
205 | * | ||
206 | * Read the 33 bit presentation time stamp as defined | ||
207 | * in ITU T-REC-H.222.0 / ISO/IEC 13818-1. | ||
208 | * | ||
209 | * The PTS should belong to the currently played | ||
210 | * frame if possible, but may also be a value close to it | ||
211 | * like the PTS of the last decoded frame or the last PTS | ||
212 | * extracted by the PES parser. | ||
213 | */ | ||
214 | #define VIDEO_GET_PTS _IOR('o', 57, __u64) | ||
215 | |||
203 | #endif /*_DVBVIDEO_H_*/ | 216 | #endif /*_DVBVIDEO_H_*/ |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 5208b12d5550..724cfbf54b8a 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -17,11 +17,12 @@ | |||
17 | #include <linux/time.h> /* need struct timeval */ | 17 | #include <linux/time.h> /* need struct timeval */ |
18 | #include <linux/poll.h> | 18 | #include <linux/poll.h> |
19 | #include <linux/device.h> | 19 | #include <linux/device.h> |
20 | #include <linux/mutex.h> | ||
20 | #endif | 21 | #endif |
21 | #include <linux/compiler.h> /* need __user */ | 22 | #include <linux/compiler.h> /* need __user */ |
22 | 23 | ||
23 | 24 | ||
24 | #define OBSOLETE_OWNER 1 /* It will be removed for 2.6.15 */ | 25 | #define OBSOLETE_OWNER 1 /* It will be removed for 2.6.17 */ |
25 | #define HAVE_V4L2 1 | 26 | #define HAVE_V4L2 1 |
26 | 27 | ||
27 | /* | 28 | /* |
@@ -48,6 +49,16 @@ | |||
48 | 49 | ||
49 | #ifdef __KERNEL__ | 50 | #ifdef __KERNEL__ |
50 | 51 | ||
52 | /* Minor device allocation */ | ||
53 | #define MINOR_VFL_TYPE_GRABBER_MIN 0 | ||
54 | #define MINOR_VFL_TYPE_GRABBER_MAX 63 | ||
55 | #define MINOR_VFL_TYPE_RADIO_MIN 64 | ||
56 | #define MINOR_VFL_TYPE_RADIO_MAX 127 | ||
57 | #define MINOR_VFL_TYPE_VTX_MIN 192 | ||
58 | #define MINOR_VFL_TYPE_VTX_MAX 223 | ||
59 | #define MINOR_VFL_TYPE_VBI_MIN 224 | ||
60 | #define MINOR_VFL_TYPE_VBI_MAX 255 | ||
61 | |||
51 | #define VFL_TYPE_GRABBER 0 | 62 | #define VFL_TYPE_GRABBER 0 |
52 | #define VFL_TYPE_VBI 1 | 63 | #define VFL_TYPE_VBI 1 |
53 | #define VFL_TYPE_RADIO 2 | 64 | #define VFL_TYPE_RADIO 2 |
@@ -80,7 +91,7 @@ struct video_device | |||
80 | 91 | ||
81 | /* for videodev.c intenal usage -- please don't touch */ | 92 | /* for videodev.c intenal usage -- please don't touch */ |
82 | int users; /* video_exclusive_{open|close} ... */ | 93 | int users; /* video_exclusive_{open|close} ... */ |
83 | struct semaphore lock; /* ... helper function uses these */ | 94 | struct mutex lock; /* ... helper function uses these */ |
84 | char devfs_name[64]; /* devfs */ | 95 | char devfs_name[64]; /* devfs */ |
85 | struct class_device class_dev; /* sysfs */ | 96 | struct class_device class_dev; /* sysfs */ |
86 | }; | 97 | }; |
@@ -952,13 +963,68 @@ struct v4l2_sliced_vbi_format | |||
952 | __u32 reserved[2]; /* must be zero */ | 963 | __u32 reserved[2]; /* must be zero */ |
953 | }; | 964 | }; |
954 | 965 | ||
955 | #define V4L2_SLICED_TELETEXT_B (0x0001) | 966 | /* Teletext World System Teletext |
956 | #define V4L2_SLICED_VPS (0x0400) | 967 | (WST), defined on ITU-R BT.653-2 */ |
957 | #define V4L2_SLICED_CAPTION_525 (0x1000) | 968 | #define V4L2_SLICED_TELETEXT_PAL_B (0x000001) |
958 | #define V4L2_SLICED_WSS_625 (0x4000) | 969 | #define V4L2_SLICED_TELETEXT_PAL_C (0x000002) |
959 | 970 | #define V4L2_SLICED_TELETEXT_NTSC_B (0x000010) | |
960 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525) | 971 | #define V4L2_SLICED_TELETEXT_SECAM (0x000020) |
961 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625) | 972 | |
973 | /* Teletext North American Broadcast Teletext Specification | ||
974 | (NABTS), defined on ITU-R BT.653-2 */ | ||
975 | #define V4L2_SLICED_TELETEXT_NTSC_C (0x000040) | ||
976 | #define V4L2_SLICED_TELETEXT_NTSC_D (0x000080) | ||
977 | |||
978 | /* Video Program System, defined on ETS 300 231*/ | ||
979 | #define V4L2_SLICED_VPS (0x000400) | ||
980 | |||
981 | /* Closed Caption, defined on EIA-608 */ | ||
982 | #define V4L2_SLICED_CAPTION_525 (0x001000) | ||
983 | #define V4L2_SLICED_CAPTION_625 (0x002000) | ||
984 | |||
985 | /* Wide Screen System, defined on ITU-R BT1119.1 */ | ||
986 | #define V4L2_SLICED_WSS_625 (0x004000) | ||
987 | |||
988 | /* Wide Screen System, defined on IEC 61880 */ | ||
989 | #define V4L2_SLICED_WSS_525 (0x008000) | ||
990 | |||
991 | /* Vertical Interval Timecode (VITC), defined on SMPTE 12M */ | ||
992 | #define V4l2_SLICED_VITC_625 (0x010000) | ||
993 | #define V4l2_SLICED_VITC_525 (0x020000) | ||
994 | |||
995 | #define V4L2_SLICED_TELETEXT_B (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
996 | V4L2_SLICED_TELETEXT_NTSC_B) | ||
997 | |||
998 | #define V4L2_SLICED_TELETEXT (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
999 | V4L2_SLICED_TELETEXT_PAL_C |\ | ||
1000 | V4L2_SLICED_TELETEXT_SECAM |\ | ||
1001 | V4L2_SLICED_TELETEXT_NTSC_B |\ | ||
1002 | V4L2_SLICED_TELETEXT_NTSC_C |\ | ||
1003 | V4L2_SLICED_TELETEXT_NTSC_D) | ||
1004 | |||
1005 | #define V4L2_SLICED_CAPTION (V4L2_SLICED_CAPTION_525 |\ | ||
1006 | V4L2_SLICED_CAPTION_625) | ||
1007 | |||
1008 | #define V4L2_SLICED_WSS (V4L2_SLICED_WSS_525 |\ | ||
1009 | V4L2_SLICED_WSS_625) | ||
1010 | |||
1011 | #define V4L2_SLICED_VITC (V4L2_SLICED_VITC_525 |\ | ||
1012 | V4L2_SLICED_VITC_625) | ||
1013 | |||
1014 | #define V4L2_SLICED_VBI_525 (V4L2_SLICED_TELETEXT_NTSC_B |\ | ||
1015 | V4L2_SLICED_TELETEXT_NTSC_C |\ | ||
1016 | V4L2_SLICED_TELETEXT_NTSC_D |\ | ||
1017 | V4L2_SLICED_CAPTION_525 |\ | ||
1018 | V4L2_SLICED_WSS_525 |\ | ||
1019 | V4l2_SLICED_VITC_525) | ||
1020 | |||
1021 | #define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_PAL_B |\ | ||
1022 | V4L2_SLICED_TELETEXT_PAL_C |\ | ||
1023 | V4L2_SLICED_TELETEXT_SECAM |\ | ||
1024 | V4L2_SLICED_VPS |\ | ||
1025 | V4L2_SLICED_CAPTION_625 |\ | ||
1026 | V4L2_SLICED_WSS_625 |\ | ||
1027 | V4l2_SLICED_VITC_625) | ||
962 | 1028 | ||
963 | struct v4l2_sliced_vbi_cap | 1029 | struct v4l2_sliced_vbi_cap |
964 | { | 1030 | { |