[media] vb2: add thread support
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 14 Apr 2014 10:33:00 +0000 (07:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 16 Apr 2014 21:57:25 +0000 (18:57 -0300)
commit3415a89f48dce655ae353bc70a8e292764e8e931
tree5e14b498a4f12817dce2ca2666aa05477ad0f755
parent5f26f2501b81190b60a0b72d611668fb6a59dd24
[media] vb2: add thread support

In order to implement vb2 DVB support you need to be able to start
a kernel thread that queues and dequeues buffers, calling a callback
function for every buffer. This patch adds support for that.

It's based on drivers/media/v4l2-core/videobuf-dvb.c, but with all the DVB
specific stuff stripped out, thus making it much more generic.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
include/media/videobuf2-core.h