media: venus: vdec: Make decoder return LAST flag for sufficient event
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Mon, 28 Sep 2020 16:44:30 +0000 (18:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 17:32:02 +0000 (18:32 +0100)
commita4ca67af8b831a781ac53060c5d5c3dccaf7676e
tree12cc889b00769a70eea6d4926a60a3daeae92b4a
parentacf8a57d8caf5ceabbe50774953fe04745ad1a50
media: venus: vdec: Make decoder return LAST flag for sufficient event

This makes the decoder to behaives equally for sufficient and
insufficient events. After this change the LAST buffer flag will be set
when the new resolution (in dynamic-resolution-change state) is smaller
then the old bitstream resolution.

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