The patch number 11264 was added via Trent Piepho <[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:
Linux Media Mailing List <[email protected]>
------
From: Trent Piepho <[email protected]>
omap24xxcam: Remove buffer type check from vidioc_s/g_parm
The v4l2-ioctl core now only allows buffer types for which the corresponding
->vidioc_try_fmt_xxx() methods are defined to be used in vidioc_(g|s)_parm.
This driver only defines ->vidioc_try_fmt_vid_cap() so only VIDEO_CAPTURE
buffers are allowed to be used with vidioc_s_parm() and vidioc_g_parm().
Priority: normal
Signed-off-by: Trent Piepho <[email protected]>
CC: Sakari Ailus <[email protected]>
---
linux/drivers/media/video/omap24xxcam.c | 6 ------
1 file changed, 6 deletions(-)
diff -r 089aaa41d473 -r c545d5d1afcc linux/drivers/media/video/omap24xxcam.c
--- a/linux/drivers/media/video/omap24xxcam.c Sat Mar 28 18:25:35 2009 -0700
+++ b/linux/drivers/media/video/omap24xxcam.c Sat Mar 28 18:25:36 2009 -0700
@@ -1285,9 +1285,6 @@ static int vidioc_g_parm(struct file *fi
struct omap24xxcam_device *cam = ofh->cam;
int rval;
- if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
- return -EINVAL;
-
mutex_lock(&cam->mutex);
rval = vidioc_int_g_parm(cam->sdev, a);
mutex_unlock(&cam->mutex);
@@ -1302,9 +1299,6 @@ static int vidioc_s_parm(struct file *fi
struct omap24xxcam_device *cam = ofh->cam;
struct v4l2_streamparm old_streamparm;
int rval;
-
- if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
- return -EINVAL;
mutex_lock(&cam->mutex);
if (cam->streaming) {
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/c545d5d1afccb0c47bbd6d602f480759d4ee669d
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits