From 96d8eab5d0a1a9741a4cae1b3c125d75d1aabedf Mon Sep 17 00:00:00 2001
From: Pawel Osciak
Date: Fri, 23 Apr 2010 05:38:38 -0300
Subject: V4L/DVB: [v5,2/2] v4l: Add a mem-to-mem videobuf framework test
device
This is a virtual device driver for testing the memory-to-memory framework.
This virtual device uses in-memory buffers for both its source and destination.
It is capable of multi-instance, multi-buffer-per-transaction operation
(via the mem2mem framework).
[mchehab@redhat.com: use videobuf_queue_to_vaddr instead of the removed videobuf_queue_to_vmalloc]
Signed-off-by: Pawel Osciak
Signed-off-by: Marek Szyprowski
Signed-off-by: Kyungmin Park
Reviewed-by: Vaibhav Hiremath
Tested-by: Vaibhav Hiremath
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/video/Kconfig | 14 ++++++++++++++
1 file changed, 14 insertions(+)
(limited to 'drivers/media/video/Kconfig')
diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
index f8cbd4adebfd..16decdd6e28c 100644
--- a/drivers/media/video/Kconfig
+++ b/drivers/media/video/Kconfig
@@ -1135,3 +1135,17 @@ menuconfig V4L_MEM2MEM_DRIVERS
use system memory for both source and destination buffers, as opposed
to capture and output drivers, which use memory buffers for just
one of those.
+
+if V4L_MEM2MEM_DRIVERS
+
+config VIDEO_MEM2MEM_TESTDEV
+ tristate "Virtual test device for mem2mem framework"
+ depends on VIDEO_DEV && VIDEO_V4L2
+ select VIDEOBUF_VMALLOC
+ select V4L2_MEM2MEM_DEV
+ default n
+ ---help---
+ This is a virtual test device for the memory-to-memory driver
+ framework.
+
+endif # V4L_MEM2MEM_DRIVERS
--
cgit v1.2.2