]> 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)
commit7af097eb345178e4aa41b417f255286963472ec9
tree7c7ed8c2dcdf53a98ffbf63ccad57b4be5fb6d68
parent75ad2663d251245e379dbf94873457ffeb141894
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