media: venus: vdec: Handle DRC after drain
authorFritz Koenig <frkoenig@chromium.org>
Tue, 1 Dec 2020 04:23:23 +0000 (05:23 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 13 Jan 2021 08:04:44 +0000 (09:04 +0100)
commitc8e8dabcd1a8c7aaedc514052d383a8152119084
tree9e453ab06bc3ca16d1bd74c2def5f524bafee63f
parentd5ee32d7e5929592ad9b6e7a919dcdf89d05221b
media: venus: vdec: Handle DRC after drain

If the DRC is near the end of the stream the client
may send a V4L2_DEC_CMD_STOP before the DRC occurs.
V4L2_DEC_CMD_STOP puts the driver into the
VENUS_DEC_STATE_DRAIN state.  DRC must be aware so
that after the DRC event the state can be restored
correctly.

Signed-off-by: Fritz Koenig <frkoenig@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/core.h
drivers/media/platform/qcom/venus/vdec.c