media: coda: clear hold flag on streamoff
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 29 Jun 2018 12:42:08 +0000 (08:42 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 12:21:41 +0000 (08:21 -0400)
If new buffers are queued after streamoff, the flag will be cleared
anyway, so this is mostly for the purpose of correctness.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c

index f41f2035204d2f9f963bb8189cfbfe2fca00eb37..42f852ccc8c0d772e999c88a4d4f5aecc33b8889 100644 (file)
@@ -1703,6 +1703,7 @@ static void coda_stop_streaming(struct vb2_queue *q)
                        ctx->bitstream.vaddr, ctx->bitstream.size);
                ctx->runcounter = 0;
                ctx->aborting = 0;
+               ctx->hold = false;
        }
 
        if (!ctx->streamon_out && !ctx->streamon_cap)