Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbe24c67 authored by Archit Taneja's avatar Archit Taneja Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: ti-vpe: retain v4l2_buffer flags for captured buffers



The dequed CAPTURE_MPLANE type buffers don't contain the flags that the
originally queued OUTPUT_MPLANE type buffers have. This breaks compliance.

Copy the source v4l2_buffer flags to the destination v4l2_buffer flags before
they are dequed.

Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 5269fef7
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -1280,13 +1280,12 @@ static irqreturn_t vpe_irq(int irq_vpe, void *data)
	s_buf = &s_vb->v4l2_buf;
	s_buf = &s_vb->v4l2_buf;
	d_buf = &d_vb->v4l2_buf;
	d_buf = &d_vb->v4l2_buf;


	d_buf->flags = s_buf->flags;

	d_buf->timestamp = s_buf->timestamp;
	d_buf->timestamp = s_buf->timestamp;
	d_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK;
	if (s_buf->flags & V4L2_BUF_FLAG_TIMECODE)
	d_buf->flags |= s_buf->flags & V4L2_BUF_FLAG_TSTAMP_SRC_MASK;
	if (s_buf->flags & V4L2_BUF_FLAG_TIMECODE) {
		d_buf->flags |= V4L2_BUF_FLAG_TIMECODE;
		d_buf->timecode = s_buf->timecode;
		d_buf->timecode = s_buf->timecode;
	}

	d_buf->sequence = ctx->sequence;
	d_buf->sequence = ctx->sequence;


	d_q_data = &ctx->q_data[Q_DATA_DST];
	d_q_data = &ctx->q_data[Q_DATA_DST];