[media] coda: try to schedule a decode run after a stop command
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 11 Jul 2014 09:36:30 +0000 (06:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 15:07:27 +0000 (12:07 -0300)
In case no further buffers are queued after the stop command, restart
job scheduling explicitly.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c

index 43349d94c93ecbf01f98ac171e4e6bd0948239a8..4ce17ac15fa0fc79c0357cdf7b692ae311ee5a36 100644 (file)
@@ -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;
 }