]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: vdec: update output buffer size during vdec_s_fmt()
authorMansur Alisha Shaik <mansur@codeaurora.org>
Wed, 25 Aug 2021 08:44:34 +0000 (10:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 09:26:13 +0000 (11:26 +0200)
commit3d3ded39ca2a1a7d38cf668634333e55c1c7ed3a
tree4100067609388979d7b75e80d4fbb4c773f077a7
parentb4c25e829440f45a1ac30b0f8e4cd11f19cf7441
media: venus: vdec: update output buffer size during vdec_s_fmt()

Video driver maintains an internal context for the output buffer size.
During S_fmt() on capture plane, the output buffer size is not updated
in driver context. As a result, during buf_prepare(), the size of the
vb2_plane and internal size of the buffer, as maintained by the driver,
does not match. This leads to buf_prepare() failure.
Update the instance context for the output buffer size during s_fmt().

Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.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