OSDN Git Service

media: venus: preserve DRC state across seeks
authorAlexandre Courbot <acourbot@chromium.org>
Wed, 2 Dec 2020 05:34:24 +0000 (06:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 18:18:03 +0000 (19:18 +0100)
commitd5ee32d7e5929592ad9b6e7a919dcdf89d05221b
treee467ff9a77b25967f68a315524186939af4ca2f6
parent21560ddf782688ca7f6acbdbf4efc68fa55f353b
media: venus: preserve DRC state across seeks

DRC events can happen virtually at anytime, including when we are
starting a seek. Should this happen, we must make sure to return to the
DRC state, otherwise the firmware will expect buffers of the new
resolution whereas userspace will still work with the old one.

Returning to the DRC state upon resume for seeking makes sure that the
client will get the DRC event and will reallocate the buffers to fit the
firmware's expectations.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
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