OSDN Git Service

media: venus: vdec: Fix non reliable setting of LAST flag
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Mon, 28 Sep 2020 16:44:29 +0000 (18:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 17:27:04 +0000 (18:27 +0100)
commitacf8a57d8caf5ceabbe50774953fe04745ad1a50
treee41851f96884d412da42a24353b2ef4cda5801e3
parentcc82fd691a3a7e8b46bd94fe7cacb2835015df22
media: venus: vdec: Fix non reliable setting of LAST flag

In real use of dynamic-resolution-change it is observed that the
LAST buffer flag (which marks the last decoded buffer with the
resolution before the resolution-change event) is not reliably set.

Fix this by set the LAST buffer flag on next queued capture buffer
after the resolution-change event.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/helpers.c
drivers/media/platform/qcom/venus/vdec.c