Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: rockchip: rga: fix field in OUTPUT buffers

Returned buffers shouldn't contain V4L2_FIELD_ANY as field. Set the
field to V4L2_FIELD_NONE, if it isn't set.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Michael Tretter and committed by
Hans Verkuil
1e7bd962 9c1cde7e

+7
+7
drivers/media/platform/rockchip/rga/rga-buf.c
··· 119 119 if (IS_ERR(f)) 120 120 return PTR_ERR(f); 121 121 122 + if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { 123 + if (vbuf->field == V4L2_FIELD_ANY) 124 + vbuf->field = V4L2_FIELD_NONE; 125 + if (vbuf->field != V4L2_FIELD_NONE) 126 + return -EINVAL; 127 + } 128 + 122 129 for (i = 0; i < vb->num_planes; i++) { 123 130 vb2_set_plane_payload(vb, i, f->pix.plane_fmt[i].sizeimage); 124 131