[media] v4l: mem2mem: add wait_{prepare,finish} ops to m2m_testdev
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 12 Jul 2011 12:46:44 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Sep 2011 11:14:46 +0000 (08:14 -0300)
commit0f910bf0008c54b33da5691278c8ee8e8700ac48
tree85fbb6f38254da3daa43482d8e8708d95d12f2ae
parent0689133b7fadd2e10f4bddca36c895223a541c6c
[media] v4l: mem2mem: add wait_{prepare,finish} ops to m2m_testdev

These are necessary to prevent dead-locks e.g. if one thread waits
in dqbuf at one end and another tries to queue a buffer at the
other end.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Pawel Osciak <pawel@osciak.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mem2mem_testdev.c