summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 12:10:00 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 12:10:00 -0300
commit1def8c1f6f0fb108cf841f29e899253c8b8e3523 (patch)
treedf39964e6242466520983a2842af23e2e0560261 /linux/drivers/media/video/videobuf-core.c
parent85d8e4c1c7772689a1b1fc27cf448ac3a261e3ec (diff)
downloadmediapointer-dvb-s2-1def8c1f6f0fb108cf841f29e899253c8b8e3523.tar.gz
mediapointer-dvb-s2-1def8c1f6f0fb108cf841f29e899253c8b8e3523.tar.bz2
videobuf-dvb: allow its usage with videobuf-vmalloc
From: Mauro Carvalho Chehab <mchehab@infradead.org> videobuf-dvb were still using a function that were videobuf-dma-sg dependent. This patch creates a generic handler for this function. This way, videobuf-dvb can now work with all videobuf implementations. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videobuf-core.c')
-rw-r--r--linux/drivers/media/video/videobuf-core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/videobuf-core.c b/linux/drivers/media/video/videobuf-core.c
index ded07991b..367f150a9 100644
--- a/linux/drivers/media/video/videobuf-core.c
+++ b/linux/drivers/media/video/videobuf-core.c
@@ -95,6 +95,13 @@ int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
return CALL(q, iolock, q, vb, fbuf);
}
+void *videobuf_queue_to_vmalloc (struct videobuf_queue *q,
+ struct videobuf_buffer *buf)
+{
+ return CALL(q, vmalloc, buf);
+}
+EXPORT_SYMBOL_GPL(videobuf_queue_to_vmalloc);
+
/* --------------------------------------------------------------------- */