diff options
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 4 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-empress.c | 4 | ||||
-rw-r--r-- | drivers/media/video/videodev.c | 1 | ||||
-rw-r--r-- | include/linux/videodev2.h | 9 |
4 files changed, 16 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index 9fa1ddbe3fd8..6e945de1f20a 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -805,10 +805,14 @@ static int mpeg_do_ioctl(struct inode *inode, struct file *file, | |||
805 | { | 805 | { |
806 | struct v4l2_mpeg_compression *f = arg; | 806 | struct v4l2_mpeg_compression *f = arg; |
807 | 807 | ||
808 | printk(KERN_WARNING "VIDIOC_G_MPEGCOMP is obsolete. " | ||
809 | "Replace with VIDIOC_G_EXT_CTRLS!"); | ||
808 | memcpy(f,&default_mpeg_params,sizeof(*f)); | 810 | memcpy(f,&default_mpeg_params,sizeof(*f)); |
809 | return 0; | 811 | return 0; |
810 | } | 812 | } |
811 | case VIDIOC_S_MPEGCOMP: | 813 | case VIDIOC_S_MPEGCOMP: |
814 | printk(KERN_WARNING "VIDIOC_S_MPEGCOMP is obsolete. " | ||
815 | "Replace with VIDIOC_S_EXT_CTRLS!"); | ||
812 | return 0; | 816 | return 0; |
813 | case VIDIOC_G_EXT_CTRLS: | 817 | case VIDIOC_G_EXT_CTRLS: |
814 | { | 818 | { |
diff --git a/drivers/media/video/saa7134/saa7134-empress.c b/drivers/media/video/saa7134/saa7134-empress.c index bc743b9253fd..65d044086ce9 100644 --- a/drivers/media/video/saa7134/saa7134-empress.c +++ b/drivers/media/video/saa7134/saa7134-empress.c | |||
@@ -281,10 +281,14 @@ static int ts_do_ioctl(struct inode *inode, struct file *file, | |||
281 | return saa7134_common_ioctl(dev, cmd, arg); | 281 | return saa7134_common_ioctl(dev, cmd, arg); |
282 | 282 | ||
283 | case VIDIOC_S_MPEGCOMP: | 283 | case VIDIOC_S_MPEGCOMP: |
284 | printk(KERN_WARNING "VIDIOC_S_MPEGCOMP is obsolete. " | ||
285 | "Replace with VIDIOC_S_EXT_CTRLS!"); | ||
284 | saa7134_i2c_call_clients(dev, VIDIOC_S_MPEGCOMP, arg); | 286 | saa7134_i2c_call_clients(dev, VIDIOC_S_MPEGCOMP, arg); |
285 | ts_init_encoder(dev); | 287 | ts_init_encoder(dev); |
286 | return 0; | 288 | return 0; |
287 | case VIDIOC_G_MPEGCOMP: | 289 | case VIDIOC_G_MPEGCOMP: |
290 | printk(KERN_WARNING "VIDIOC_G_MPEGCOMP is obsolete. " | ||
291 | "Replace with VIDIOC_G_EXT_CTRLS!"); | ||
288 | saa7134_i2c_call_clients(dev, VIDIOC_G_MPEGCOMP, arg); | 292 | saa7134_i2c_call_clients(dev, VIDIOC_G_MPEGCOMP, arg); |
289 | return 0; | 293 | return 0; |
290 | case VIDIOC_S_EXT_CTRLS: | 294 | case VIDIOC_S_EXT_CTRLS: |
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 763e178555d0..2dfa7f23d0ca 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -1216,6 +1216,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, | |||
1216 | case VIDIOC_G_MPEGCOMP: | 1216 | case VIDIOC_G_MPEGCOMP: |
1217 | { | 1217 | { |
1218 | struct v4l2_mpeg_compression *p=arg; | 1218 | struct v4l2_mpeg_compression *p=arg; |
1219 | |||
1219 | /*FIXME: Several fields not shown */ | 1220 | /*FIXME: Several fields not shown */ |
1220 | if (!vfd->vidioc_g_mpegcomp) | 1221 | if (!vfd->vidioc_g_mpegcomp) |
1221 | break; | 1222 | break; |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 337c31409cd7..260ff6787ad4 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -306,11 +306,13 @@ struct v4l2_timecode | |||
306 | #define V4L2_TC_USERBITS_8BITCHARS 0x0008 | 306 | #define V4L2_TC_USERBITS_8BITCHARS 0x0008 |
307 | /* The above is based on SMPTE timecodes */ | 307 | /* The above is based on SMPTE timecodes */ |
308 | 308 | ||
309 | #ifdef __KERNEL__ | ||
309 | /* | 310 | /* |
310 | * M P E G C O M P R E S S I O N P A R A M E T E R S | 311 | * M P E G C O M P R E S S I O N P A R A M E T E R S |
311 | * | 312 | * |
312 | * ### WARNING: this is still work-in-progress right now, most likely | 313 | * ### WARNING: This experimental MPEG compression API is obsolete. |
313 | * ### there will be some incompatible changes. | 314 | * ### It is replaced by the MPEG controls API. |
315 | * ### This old API will disappear in the near future! | ||
314 | * | 316 | * |
315 | */ | 317 | */ |
316 | enum v4l2_bitrate_mode { | 318 | enum v4l2_bitrate_mode { |
@@ -390,6 +392,7 @@ struct v4l2_mpeg_compression { | |||
390 | /* I don't expect the above being perfect yet ;) */ | 392 | /* I don't expect the above being perfect yet ;) */ |
391 | __u32 reserved_5[8]; | 393 | __u32 reserved_5[8]; |
392 | }; | 394 | }; |
395 | #endif | ||
393 | 396 | ||
394 | struct v4l2_jpegcompression | 397 | struct v4l2_jpegcompression |
395 | { | 398 | { |
@@ -1185,8 +1188,10 @@ struct v4l2_streamparm | |||
1185 | #define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc) | 1188 | #define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc) |
1186 | #define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format) | 1189 | #define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format) |
1187 | #define VIDIOC_S_FMT _IOWR ('V', 5, struct v4l2_format) | 1190 | #define VIDIOC_S_FMT _IOWR ('V', 5, struct v4l2_format) |
1191 | #ifdef __KERNEL__ | ||
1188 | #define VIDIOC_G_MPEGCOMP _IOR ('V', 6, struct v4l2_mpeg_compression) | 1192 | #define VIDIOC_G_MPEGCOMP _IOR ('V', 6, struct v4l2_mpeg_compression) |
1189 | #define VIDIOC_S_MPEGCOMP _IOW ('V', 7, struct v4l2_mpeg_compression) | 1193 | #define VIDIOC_S_MPEGCOMP _IOW ('V', 7, struct v4l2_mpeg_compression) |
1194 | #endif | ||
1190 | #define VIDIOC_REQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers) | 1195 | #define VIDIOC_REQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers) |
1191 | #define VIDIOC_QUERYBUF _IOWR ('V', 9, struct v4l2_buffer) | 1196 | #define VIDIOC_QUERYBUF _IOWR ('V', 9, struct v4l2_buffer) |
1192 | #define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer) | 1197 | #define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer) |