]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21935f5c02a26d1452f6bee4866cf2679c8eef0e
tree5aaf3389cd537362135969a045a4101b61fd670f
parent19733c01cb56796cf95b4c159301fe75d81b0cfa
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