media: videobuf2-v4l2: integrate with media requests
This implements the V4L2 part of the request support. The main change is that vb2_qbuf and vb2_prepare_buf now have a new media_device pointer. This required changes to several drivers that did not use the vb2_ioctl_qbuf/prepare_buf helper functions. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
fd89e0bb6e
commit
394dc58880
@@ -943,7 +943,7 @@ static int s3c_camif_qbuf(struct file *file, void *priv,
|
||||
if (vp->owner && vp->owner != priv)
|
||||
return -EBUSY;
|
||||
|
||||
return vb2_qbuf(&vp->vb_queue, buf);
|
||||
return vb2_qbuf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, buf);
|
||||
}
|
||||
|
||||
static int s3c_camif_dqbuf(struct file *file, void *priv,
|
||||
@@ -981,7 +981,7 @@ static int s3c_camif_prepare_buf(struct file *file, void *priv,
|
||||
struct v4l2_buffer *b)
|
||||
{
|
||||
struct camif_vp *vp = video_drvdata(file);
|
||||
return vb2_prepare_buf(&vp->vb_queue, b);
|
||||
return vb2_prepare_buf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, b);
|
||||
}
|
||||
|
||||
static int s3c_camif_g_selection(struct file *file, void *priv,
|
||||
|
Reference in New Issue
Block a user