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

Commit eb107516 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab
Browse files

[media] coda: only set buffered input queue for decoder



Allow device_run with no buffers queued after streamoff only when
the current instance is a decoder.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
[k.debski@samsung.com: Add commit description]
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>

Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 0cddc7e9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1928,7 +1928,8 @@ static int coda_start_streaming(struct vb2_queue *q, unsigned int count)
	if (!(ctx->streamon_out & ctx->streamon_cap))
		return 0;

	/* Allow device_run with no buffers queued and after streamoff */
	/* Allow decoder device_run with no new buffers queued */
	if (ctx->inst_type == CODA_INST_DECODER)
		v4l2_m2m_set_src_buffered(ctx->m2m_ctx, true);

	ctx->gopcounter = ctx->params.gop_size - 1;