media: venus: do not queue internal buffers from previous sequence
authorVikash Garodia <quic_vgarodia@quicinc.com>
Tue, 12 Apr 2022 13:15:10 +0000 (14:15 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:31:38 +0000 (08:31 +0100)
commit73664f107c0fafb59cd91e576b81c986adb74610
tree7c7ed8c2dcdf53a98ffbf63ccad57b4be5fb6d68
parent86594f6af867b5165d2ba7b5a71fae3a5961e56c
media: venus: do not queue internal buffers from previous sequence

During reconfig (DRC) event from firmware, it is not guaranteed that
all the DPB(internal) buffers would be released by the firmware. Some
buffers might be released gradually while processing frames from the
new sequence. These buffers now stay idle in the dpblist.
In subsequent call to queue the DPBs to firmware, these idle buffers
should not be queued. The fix identifies those buffers and free them.

Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Tested-by: Fritz Koenig <frkoenig@chromium.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/venus/helpers.c