diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-10 08:33:03 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-10 08:33:03 -0200 |
commit | 0211bdd025a9d152eab4fd4643945a40bbf9cda2 (patch) | |
tree | 3b2b89a70c4fdea3dfdc7a12570c4ba06d086899 /linux/include | |
parent | bd7bb69be657ca3ab2bcb1a327ab33655077aa3b (diff) | |
download | mediapointer-dvb-s2-0211bdd025a9d152eab4fd4643945a40bbf9cda2.tar.gz mediapointer-dvb-s2-0211bdd025a9d152eab4fd4643945a40bbf9cda2.tar.bz2 |
Replace a very dirty hack on videobuf for a clean wait_event
From: Mauro Carvalho Chehab <mchehab@infradead.org>
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 <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/videobuf-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |