[PATCH 1/2] V4L: videodev, allow VIDIOCGMBUF

From: Jiri Slaby
Date: Tue May 08 2007 - 14:24:56 EST


videodev, allow VIDIOCGMBUF

this is 'v' compat ioctl handled in v4l2

Cc: Mauro Carvalho Chehab <video4linux-list@xxxxxxxxxx>
Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>

---
commit fdc535e5e7c1b1781e903d4d21e1f657a9ac12c9
tree 8beb32a89d2679b14577762ebec8fb3c1e81fcaf
parent 94b6ccaf1ca50632014202d3eeb99a0e23185ddb
author Jiri Slaby <jirislaby@xxxxxxxxx> Sat, 05 May 2007 17:47:31 +0200
committer Jiri Slaby <jirislaby@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/