diff options
author | Brandon Philips <brandon@ifup.org> | 2008-04-02 11:10:59 -0700 |
---|---|---|
committer | Brandon Philips <brandon@ifup.org> | 2008-04-02 11:10:59 -0700 |
commit | 12d05113a10be2078e72039a301b3d3902d29248 (patch) | |
tree | cfe42c1a425ec1fa570fcd183cc02dfb34cf1638 /linux/drivers/media/dvb/b2c2/flexcop.c | |
parent | e2c76fa02753f7c3ed102dbca09fdf17926e6085 (diff) | |
download | mediapointer-dvb-s2-12d05113a10be2078e72039a301b3d3902d29248.tar.gz mediapointer-dvb-s2-12d05113a10be2078e72039a301b3d3902d29248.tar.bz2 |
videobuf-vmalloc.c: Fix hack of postponing mmap on remap failure
In videobuf-vmalloc.c remap_vmalloc_range is failing when applications are
trying to mmap buffers immediately after reqbuf. It fails because the vmalloc
area isn't setup until the first QBUF when drivers call iolock.
This patch introduces mmap_setup to the qtype_ops and it is called in
__videobuf_mmap_setup if the buffer type is mmap. In the case of vmalloc
buffers this calls iolock, and sets the state to idle.
I don't think this is needed for dma-sg buffers and it defaults to a no-op for
everything but vmalloc.
Signed-off-by: Brandon Philips <bphilips@suse.de>
---
linux/drivers/media/video/videobuf-core.c | 29 +++++++-----------
linux/drivers/media/video/videobuf-vmalloc.c | 43 +++++++++++++--------------
linux/include/media/videobuf-core.h | 3 +
3 files changed, 35 insertions(+), 40 deletions(-)
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/flexcop.c')
0 files changed, 0 insertions, 0 deletions