summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-28 18:25:36 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2009-03-28 18:25:36 -0700
commit3a35050c66a731aa86d6cb3a7578e19036879be1 (patch)
tree3af7a72748ec10136de9e13ccd6cf7115f76a505 /linux/drivers/media
parent57f3110ab60dcf436b20b31c6e7764f0024040ca (diff)
downloadmediapointer-dvb-s2-3a35050c66a731aa86d6cb3a7578e19036879be1.tar.gz
mediapointer-dvb-s2-3a35050c66a731aa86d6cb3a7578e19036879be1.tar.bz2
omap24xxcam: Remove buffer type check from vidioc_s/g_parm
From: Trent Piepho <xyzzy@speakeasy.org> 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 <xyzzy@speakeasy.org> CC: Sakari Ailus <sakari.ailus@nokia.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/omap24xxcam.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/video/omap24xxcam.c b/linux/drivers/media/video/omap24xxcam.c
index 61f3c83db..d828597ba 100644
--- a/linux/drivers/media/video/omap24xxcam.c
+++ b/linux/drivers/media/video/omap24xxcam.c
@@ -1285,9 +1285,6 @@ static int vidioc_g_parm(struct file *file, void *fh,
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);
@@ -1303,9 +1300,6 @@ static int vidioc_s_parm(struct file *file, void *fh,
struct v4l2_streamparm old_streamparm;
int rval;
- if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
- return -EINVAL;
-
mutex_lock(&cam->mutex);
if (cam->streaming) {
rval = -EBUSY;