]> asedeno.scripts.mit.edu Git - linux.git/commit
media: mem2mem: Require capture and output mutexes to match
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 18 Oct 2018 18:02:20 +0000 (14:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:35:21 +0000 (06:35 -0500)
commit913f3ec280abddc111a49287a59b658b6b181c4c
tree8d0235f97e46dc95104b55c524ddd4743de2cd00
parentfe5a2bbb6333e7dc9202eb6a1c574d356a528de6
media: mem2mem: Require capture and output mutexes to match

Currently, all the mem2mem driver either use a single mutex
to lock the capture and output videobuf2 queues, or don't
set any mutex.

This means the mutexes match, and so the mem2mem framework
is able to set the m2m context lock.

Enforce this by making it mandatory for drivers to set
the same capture and output mutex, or not set any mutex at all.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-mem2mem.c