提交 4d2096b4 编写于 作者: P Philipp Zabel 提交者: Mauro Carvalho Chehab

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: NPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 83a72953
...@@ -1703,6 +1703,7 @@ static void coda_stop_streaming(struct vb2_queue *q) ...@@ -1703,6 +1703,7 @@ static void coda_stop_streaming(struct vb2_queue *q)
ctx->bitstream.vaddr, ctx->bitstream.size); ctx->bitstream.vaddr, ctx->bitstream.size);
ctx->runcounter = 0; ctx->runcounter = 0;
ctx->aborting = 0; ctx->aborting = 0;
ctx->hold = false;
} }
if (!ctx->streamon_out && !ctx->streamon_cap) if (!ctx->streamon_out && !ctx->streamon_cap)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册