Commit 5bac3de7 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Greg Kroah-Hartman
Browse files

media: venus: preserve DRC state across seeks



[ Upstream commit d5ee32d7 ]

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: default avatarAlexandre Courbot <acourbot@chromium.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 50248ad9 ("media: venus: dec: Fix handling of the start cmd")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4c123927
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment