From 6a46e12bb2b6862dc994e531e8b42ecea0dbfc16 Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Wed, 19 Aug 2020 11:05:48 +0800 Subject: [PATCH] v4l: clear vb2 buffer flags for next use. [1/1] PD#SWPL-31953 Problem: V4L2 Buffer flag is not cleared when streamoff. Solution: clear vb2 buffer flags for next use when cmd streamoff. Verify: w400 Change-Id: Ib4bc1fb3c9f8ed21ce740af9ddffd984fd9e5da9 Signed-off-by: Nanxin Qin --- drivers/amvdec_ports/aml_vcodec_dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amvdec_ports/aml_vcodec_dec.c b/drivers/amvdec_ports/aml_vcodec_dec.c index 5516691..5338dc4 100644 --- a/drivers/amvdec_ports/aml_vcodec_dec.c +++ b/drivers/amvdec_ports/aml_vcodec_dec.c @@ -2361,6 +2361,7 @@ static void vb2ops_vdec_stop_streaming(struct vb2_queue *q) buf = container_of(vb2_v4l2, struct aml_video_dec_buf, vb); buf->frame_buffer.status = FB_ST_NORMAL; buf->que_in_m2m = false; + buf->vb.flags = 0; ctx->cap_pool.seq[i] = 0; if (vb2_v4l2->vb2_buf.state == VB2_BUF_STATE_ACTIVE) -- 2.20.1