OpenCloudOS-Kernel/drivers/media/platform/amphion
Ming Qian 1ade3f3f16 media: amphion: lock and check m2m_ctx in event handler
driver needs to cancel vpu before releasing the vpu instance,
so call v4l2_m2m_ctx_release() first,
to handle the redundant event triggered after m2m_ctx is released.

lock and check m2m_ctx in the event handler.

Fixes: 3cd084519c ("media: amphion: add vpu v4l2 m2m support")
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>
2022-11-25 11:27:04 +00:00
..
Kconfig media: platform: amphion: Fix build error without MAILBOX 2022-03-18 06:03:40 +01:00
Makefile
vdec.c media: amphion: decoder add support for contiguous planes 2022-11-25 11:02:53 +00:00
venc.c media: amphion: encoder add support for contiguous planes 2022-11-25 11:04:11 +00:00
vpu.h media: amphion: try to wakeup vpu core to avoid failure 2022-11-25 11:25:51 +00:00
vpu_cmds.c media: amphion: try to wakeup vpu core to avoid failure 2022-11-25 11:25:51 +00:00
vpu_cmds.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_codec.h
vpu_color.c media: amphion: add vpu v4l2 m2m support 2022-03-07 17:13:33 +01:00
vpu_core.c media: amphion: fix a bug that vpu core may not resume after suspend 2022-08-30 15:27:51 +02:00
vpu_core.h media: amphion: fix a bug that vpu core may not resume after suspend 2022-08-30 15:27:51 +02:00
vpu_dbg.c media: amphion: tell and handle contiguous and non contiguous format 2022-11-25 11:02:35 +00:00
vpu_defs.h media: amphion: handle picture skipped event 2022-05-13 11:02:19 +02:00
vpu_drv.c media: amphion: Fix error handling in vpu_driver_init() 2022-11-25 07:38:16 +00:00
vpu_helpers.c media: amphion: tell and handle contiguous and non contiguous format 2022-11-25 11:02:35 +00:00
vpu_helpers.h media: amphion: tell and handle contiguous and non contiguous format 2022-11-25 11:02:35 +00:00
vpu_imx8q.c media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_imx8q.h media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_malone.c media: amphion: try to wakeup vpu core to avoid failure 2022-11-25 11:25:51 +00:00
vpu_malone.h media: amphion: vdec check format in enum_fmt 2022-06-20 10:30:34 +01:00
vpu_mbox.c media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_mbox.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_msgs.c media: amphion: lock and check m2m_ctx in event handler 2022-11-25 11:27:04 +00:00
vpu_msgs.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_rpc.c media: amphion: vdec check format in enum_fmt 2022-06-20 10:30:34 +01:00
vpu_rpc.h media: amphion: only insert the first sequence startcode for vc1l format 2022-07-08 18:18:49 +01:00
vpu_v4l2.c media: amphion: lock and check m2m_ctx in event handler 2022-11-25 11:27:04 +00:00
vpu_v4l2.h media: amphion: tell and handle contiguous and non contiguous format 2022-11-25 11:02:35 +00:00
vpu_windsor.c media: amphion: try to wakeup vpu core to avoid failure 2022-11-25 11:25:51 +00:00
vpu_windsor.h media: amphion: implement windsor encoder rpc interface 2022-03-07 17:13:33 +01:00