]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6fcae3f8ce8b0d71d5b8918d9a057b0f626f81a
tree7c7ed8c2dcdf53a98ffbf63ccad57b4be5fb6d68
parent891624762b153a1b3a4bed1069e99de8632074fd
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