diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-20 13:13:25 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-20 13:13:25 -0200 |
commit | 879cc80f662158ef1a7e0549e5c6efd3380642df (patch) | |
tree | ec0d8724613fd5db52b302df3708ffe26f818022 /linux/drivers/media/video/videodev.c | |
parent | 6ccca5385e7178cfa2ac1d492b54ec3adef8ef7d (diff) | |
download | mediapointer-dvb-s2-879cc80f662158ef1a7e0549e5c6efd3380642df.tar.gz mediapointer-dvb-s2-879cc80f662158ef1a7e0549e5c6efd3380642df.tar.bz2 |
Optimization of v4l1 handling
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r-- | linux/drivers/media/video/videodev.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index 51cf59917..5e4858945 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -447,6 +447,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: @@ -1428,12 +1432,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) { |