]> git.baikalelectronics.ru Git - kernel.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)
commit732e92a2b5e394e54a68488f35ad1db41f7da2b6
tree8d0235f97e46dc95104b55c524ddd4743de2cd00
parent9d73029563a82d5351504481226bd894ef9cd7bf
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