videodev, allow VIDIOCGMBUF
this is 'v' compat ioctl handled in v4l2
Cc: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
---
commit fdc535e5e7c1b1781e903d4d21e1f657a9ac12c9
tree 8beb32a89d2679b14577762ebec8fb3c1e81fcaf
parent 94b6ccaf1ca50632014202d3eeb99a0e23185ddb
author Jiri Slaby <[email protected]> Sat, 05 May 2007 17:47:31 +0200
committer Jiri Slaby <[email protected]> Sat, 05 May 2007 17:47:31 +0200
drivers/media/video/videodev.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index a3cef80..099ad99 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -438,7 +438,10 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
}
if (_IOC_TYPE(cmd)=='v')
- return v4l_compat_translate_ioctl(inode,file,cmd,arg,
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
+ if (cmd != VIDIOCGMBUF) /* <-- handled below vvv */
+#endif
+ return v4l_compat_translate_ioctl(inode,file,cmd,arg,
__video_do_ioctl);
switch(cmd) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]