[media] media: videobuf2: Change queue_setup argument
Replace struct v4l2_format * with void * to make queue_setup() for common use. And then, modify all device drivers related with this change. Signed-off-by: Junghak Sung <jh1009.sung@samsung.com> Signed-off-by: Geunyoung Kim <nenggun.kim@samsung.com> Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: fix missing const in fimc-lite.c] Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Этот коммит содержится в:

коммит произвёл
Mauro Carvalho Chehab

родитель
4d0b0ed636
Коммит
33119e80c3
@@ -435,10 +435,11 @@ static void stop_streaming(struct vb2_queue *vq)
|
||||
camif_stop_capture(vp);
|
||||
}
|
||||
|
||||
static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt,
|
||||
static int queue_setup(struct vb2_queue *vq, const void *parg,
|
||||
unsigned int *num_buffers, unsigned int *num_planes,
|
||||
unsigned int sizes[], void *allocators[])
|
||||
{
|
||||
const struct v4l2_format *pfmt = parg;
|
||||
const struct v4l2_pix_format *pix = NULL;
|
||||
struct camif_vp *vp = vb2_get_drv_priv(vq);
|
||||
struct camif_dev *camif = vp->camif;
|
||||
|
Ссылка в новой задаче
Block a user