summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-11-20 12:13:25 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 09:05:00 -0200
commit207705cd7f82b9f160c6ed552d5788a823701fd1 (patch)
treeb104a6ee0bf1a8fcae97b8db67d1b64c82e92808
parent7964b1b1c27dea88eb89b10f774893ec11cf973d (diff)
downloadop-kernel-dev-207705cd7f82b9f160c6ed552d5788a823701fd1.zip
op-kernel-dev-207705cd7f82b9f160c6ed552d5788a823701fd1.tar.gz
V4L/DVB (4860): Optimization of v4l1 handling
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/videodev.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 9024ea2..ad42dee 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -428,6 +428,10 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
v4l_print_ioctl(vfd->name, cmd);
}
+ if (_IOC_TYPE(cmd)=='v')
+ return v4l_compat_translate_ioctl(inode,file,cmd,arg,
+ __video_do_ioctl);
+
switch(cmd) {
/* --- capabilities ------------------------------------------ */
case VIDIOC_QUERYCAP:
@@ -1409,12 +1413,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
ret=vfd->vidioc_log_status(file, fh);
break;
}
-
- /* --- Others --------------------------------------------- */
-
- default:
- ret=v4l_compat_translate_ioctl(inode,file,cmd,arg,__video_do_ioctl);
- }
+ } /* switch */
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {
if (ret<0) {
OpenPOWER on IntegriCloud