public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/2] V4L: videodev, allow VIDIOCGMBUF
Date: Tue,  8 May 2007 20:24:46 +0200 (CEST)	[thread overview]
Message-ID: <32177258712660011096@wsc.cz> (raw)

videodev, allow VIDIOCGMBUF

this is 'v' compat ioctl handled in v4l2

Cc: Mauro Carvalho Chehab <video4linux-list@redhat.com>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>

---
commit fdc535e5e7c1b1781e903d4d21e1f657a9ac12c9
tree 8beb32a89d2679b14577762ebec8fb3c1e81fcaf
parent 94b6ccaf1ca50632014202d3eeb99a0e23185ddb
author Jiri Slaby <jirislaby@gmail.com> Sat, 05 May 2007 17:47:31 +0200
committer Jiri Slaby <jirislaby@gmail.com> 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) {

             reply	other threads:[~2007-05-08 18:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 18:24 Jiri Slaby [this message]
2007-05-08 18:25 ` [PATCH 2/2] V4L: v4l1-compat, fix VIDIOCSPICT for non-OVERLAY Jiri Slaby
2007-05-08 21:20   ` Mauro Carvalho Chehab
2007-05-08 21:15 ` [PATCH 1/2] V4L: videodev, allow VIDIOCGMBUF Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32177258712660011096@wsc.cz \
    --to=jirislaby@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox