media: mediatek: vcodec: Use ctx vb2_queue mutex instead of device mutex
authorIrui Wang <irui.wang@mediatek.com>
Wed, 20 Jul 2022 08:57:31 +0000 (10:57 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 12:32:39 +0000 (14:32 +0200)
commit58037ad43f2d33746d0d7d16514de44d6e8f566e
tree5aaf3389cd537362135969a045a4101b61fd670f
parentcd61f3c6794bea2b717fe6083ca2ad189db75418
media: mediatek: vcodec: Use ctx vb2_queue mutex instead of device mutex

There is only one device mutex to lock vb2_queue when running
multi-instance encoding, it can be set by each encoder context.

[hverkuil: fix q_mutex documentation in the header]

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c