mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
media: chips-media: wave5: Process ready frames when CMD_STOP sent to Encoder
CMD_STOP being sent to encoder before last job is executed by device_run can lead to an occasional dropped frame. Ensure that remaining ready buffers are drained by making a call to v4l2_m2m_try_schedule. Signed-off-by: Brandon Brnich <b-brnich@ti.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
b4e26c6fc1
commit
5da0380de4
@@ -649,6 +649,8 @@ static int wave5_vpu_enc_encoder_cmd(struct file *file, void *fh, struct v4l2_en
|
||||
|
||||
m2m_ctx->last_src_buf = v4l2_m2m_last_src_buf(m2m_ctx);
|
||||
m2m_ctx->is_draining = true;
|
||||
|
||||
v4l2_m2m_try_schedule(m2m_ctx);
|
||||
break;
|
||||
case V4L2_ENC_CMD_START:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user