The patch number 8629 was added via Hans Verkuil <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Hans Verkuil  <[EMAIL PROTECTED]>
v4l2-ioctl: do not try to handle private V4L1 ioctls


Some drivers (e.g. zoran) have private V4L1 ioctls. Do not try to
pass them to v4l1_compat_translate because then the driver will
never see them.

Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/v4l2-ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r fcf263987edf -r 19fa785a4606 linux/drivers/media/video/v4l2-ioctl.c
--- a/linux/drivers/media/video/v4l2-ioctl.c    Tue Aug 05 10:14:13 2008 -0300
+++ b/linux/drivers/media/video/v4l2-ioctl.c    Sun Jul 27 21:37:23 2008 +0200
@@ -675,7 +675,7 @@ static int __video_do_ioctl(struct inode
         __video_do_ioctl will be called again, with one or more
         V4L2 ioctls.
         ********************************************************/
-       if (_IOC_TYPE(cmd) == 'v')
+       if (_IOC_TYPE(cmd) == 'v' && _IOC_NR(cmd) < BASE_VIDIOCPRIVATE)
                return v4l_compat_translate_ioctl(inode, file, cmd, arg,
                                                __video_do_ioctl);
 #endif


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/19fa785a4606083cdfa4699253bb7ec5b310f621

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to