From: Philipp Zabel
Date: Fri, 29 Jun 2018 12:42:08 +0000 (-0400)
Subject: media: coda: clear hold flag on streamoff
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4d2096b4695623e3683cd41a96d6d0af6a5acf87;p=openwrt%2Fstaging%2Fblogic.git
media: coda: clear hold flag on streamoff
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
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
---
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index f41f2035204d..42f852ccc8c0 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -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)