projects
/
GitHub
/
LineageOS
/
G12
/
android_hardware_amlogic_kernel-modules_media.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b1a47
)
v4l: clear vb2 buffer flags for next use. [1/1]
author
Nanxin Qin
<nanxin.qin@amlogic.com>
Wed, 19 Aug 2020 03:05:48 +0000
(11:05 +0800)
committer
Hui Zhang
<hui.zhang@amlogic.com>
Fri, 25 Sep 2020 08:54:37 +0000
(
01:54
-0700)
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 <nanxin.qin@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/amvdec_ports/aml_vcodec_dec.c
b/drivers/amvdec_ports/aml_vcodec_dec.c
index 55166910c18e15897e3a83d189729834ef43e38e..5338dc4cd84411d5525d92865746c1ba40a2bf28 100644
(file)
--- 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)