diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-27 21:37:23 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-27 21:37:23 +0200 |
commit | 4e47a6a81e12b9e49561c88bd1c2dce9c7d565d5 (patch) | |
tree | 8707b47898ddfe6ba3861644a13e1e2c3dcc5509 /linux/drivers/media/video/v4l2-ioctl.c | |
parent | d2dbf570f863476560875eda98a939a77984aa40 (diff) | |
download | mediapointer-dvb-s2-4e47a6a81e12b9e49561c88bd1c2dce9c7d565d5.tar.gz mediapointer-dvb-s2-4e47a6a81e12b9e49561c88bd1c2dce9c7d565d5.tar.bz2 |
v4l2-ioctl: do not try to handle private V4L1 ioctls
From: Hans Verkuil <hverkuil@xs4all.nl>
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 <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/v4l2-ioctl.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l2-ioctl.c b/linux/drivers/media/video/v4l2-ioctl.c index a56e3643b..1c8fa257d 100644 --- a/linux/drivers/media/video/v4l2-ioctl.c +++ b/linux/drivers/media/video/v4l2-ioctl.c @@ -675,7 +675,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, __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 |