From f90bff01fa3468160e9403fb488c1f319c30c6dd Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 16 Nov 2006 12:02:28 -0200 Subject: Start adding v4l2_mmap_bufs to prepare for stream From: Mauro Carvalho Chehab This method requests buffers and maps it into a mmaped memory. Still under testing. Still need other stuff to make stream to work. Signed-off-by: Mauro Carvalho Chehab --- v4l2-apps/test/driver-test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'v4l2-apps/test') diff --git a/v4l2-apps/test/driver-test.c b/v4l2-apps/test/driver-test.c index 53ce6b9d7..809ee170c 100644 --- a/v4l2-apps/test/driver-test.c +++ b/v4l2-apps/test/driver-test.c @@ -69,6 +69,9 @@ int main(void) if (v4l2_get_parm (&drv)<0) { perror("get_parm"); } + + v4l2_mmap_bufs(&drv, 2); + if (v4l2_close (&drv)<0) { perror("close"); return -1; -- cgit v1.2.3