V4L/DVB (4860): Optimization of v4l1 handling
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
7964b1b1c2
commit
207705cd7f
|
@ -428,6 +428,10 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
|
||||||
v4l_print_ioctl(vfd->name, cmd);
|
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) {
|
switch(cmd) {
|
||||||
/* --- capabilities ------------------------------------------ */
|
/* --- capabilities ------------------------------------------ */
|
||||||
case VIDIOC_QUERYCAP:
|
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);
|
ret=vfd->vidioc_log_status(file, fh);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} /* switch */
|
||||||
/* --- Others --------------------------------------------- */
|
|
||||||
|
|
||||||
default:
|
|
||||||
ret=v4l_compat_translate_ioctl(inode,file,cmd,arg,__video_do_ioctl);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {
|
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {
|
||||||
if (ret<0) {
|
if (ret<0) {
|
||||||
|
|
Loading…
Reference in New Issue