upstream: [media] vb2: add thread support
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 14 Apr 2014 10:33:00 +0000 (07:33 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:49 +0000 (14:26 +0900)
commit4fe3170a4d4f6452808d4583f7138bdc9ab7f946
treedaa5f3a72be23fa9fa362e4d8bace1cdb50b3135
parentcbe193b43245807c89b2e1909e1ecc5436565024
upstream: [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