]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52c11087a44cf11e132470db57a5d0631749dc76
treee467ff9a77b25967f68a315524186939af4ca2f6
parentde84fd686f883a7661e134d1f75aabc11948103d
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