From 0211bdd025a9d152eab4fd4643945a40bbf9cda2 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 10 Jan 2008 08:33:03 -0200 Subject: Replace a very dirty hack on videobuf for a clean wait_event From: Mauro Carvalho Chehab In order to videobuf_iolock to work, mmap_mapper should be called first. Otherwise, an OOPS is generated. On some cases, .mmap file handler used to took some time to be called. On those situations, mmap_mmapper() were called after iolock. This patch properly waits for mmap_mapper to be called, otherwise generating an error. Signed-off-by: Mauro Carvalho Chehab --- linux/include/media/videobuf-core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/include/media/videobuf-core.h') diff --git a/linux/include/media/videobuf-core.h b/linux/include/media/videobuf-core.h index dea9c53fe..9bb244716 100644 --- a/linux/include/media/videobuf-core.h +++ b/linux/include/media/videobuf-core.h @@ -168,6 +168,8 @@ struct videobuf_queue { unsigned int streaming:1; unsigned int reading:1; + unsigned int is_mmapped:1; + /* capture via mmap() + ioctl(QBUF/DQBUF) */ struct list_head stream; -- cgit v1.2.3