From: Michael Olbrich Date: Fri, 11 Jul 2014 09:36:30 +0000 (-0300) Subject: [media] coda: try to schedule a decode run after a stop command X-Git-Tag: firefly_0821_release~176^2~2474^2~1124 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3497dad92cf2bf713b31b05c6b504a1135cc97c;p=firefly-linux-kernel-4.4.55.git [media] coda: try to schedule a decode run after a stop command In case no further buffers are queued after the stop command, restart job scheduling explicitly. Signed-off-by: Michael Olbrich Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 43349d94c93e..4ce17ac15fa0 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -907,6 +907,8 @@ static int coda_decoder_cmd(struct file *file, void *fh, /* If this context is currently running, update the hardware flag */ coda_write(dev, ctx->bit_stream_param, CODA_REG_BIT_BIT_STREAM_PARAM); } + ctx->prescan_failed = false; + v4l2_m2m_try_schedule(ctx->fh.m2m_ctx); return 0; }