media: amphion: cancel vpu before release instance
authorMing Qian <ming.qian@nxp.com>
Mon, 21 Nov 2022 06:34:07 +0000 (06:34 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 11:26:15 +0000 (11:26 +0000)
commitb3dd974af9de342c733492565ad02d7e23372876
tree51559250e5966fc6ccccf1bdfe5227c41d591679
parent082744433f7b96db7214a98202ed96f367684693
media: amphion: cancel vpu before release instance

Revert "media: amphion: release m2m ctx when releasing vpu instance"
This reverts commit d91d7bc85062309aae6d8064563ddf17947cb6bc.

Call v4l2_m2m_ctx_release() to cancel vpu,
afterwards release the vpu instance.

Fixes: d91d7bc85062 ("media: amphion: release m2m ctx when releasing vpu instance")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vpu_v4l2.c