diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-08 12:20:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-08 12:20:02 -0300 |
commit | bee12cc3dc8cc34a30ff03b084b809f5bfbb2217 (patch) | |
tree | 49ac4afe2266bad1684b34c9837abae63d7edd9a /linux/include | |
parent | 058682061fb91c532ddeab61b5889c64b31472e0 (diff) | |
download | mediapointer-dvb-s2-bee12cc3dc8cc34a30ff03b084b809f5bfbb2217.tar.gz mediapointer-dvb-s2-bee12cc3dc8cc34a30ff03b084b809f5bfbb2217.tar.bz2 |
videobuf_core init always require callback implementation
From: Mauro Carvalho Chehab <mchehab@infradead.org>
In the past, videobuf_queue_init were used to initialize PCI DMA videobuffers.
This patch renames it, to avoid confusion with the previous kernel API, doing:
s/videobuf_queue_init/void videobuf_queue_core_init/
Also, the operations is now part of the function parameter. The function will
also add a test if this is defined, otherwise producing BUG.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/videobuf-core.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/include/media/videobuf-core.h b/linux/include/media/videobuf-core.h index 6e67c2c26..43b4d5138 100644 --- a/linux/include/media/videobuf-core.h +++ b/linux/include/media/videobuf-core.h @@ -185,14 +185,15 @@ int videobuf_iolock(struct videobuf_queue* q, struct videobuf_buffer *vb, void *videobuf_alloc(struct videobuf_queue* q); -void videobuf_queue_init(struct videobuf_queue *q, +void videobuf_queue_core_init(struct videobuf_queue *q, struct videobuf_queue_ops *ops, void *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, - void *priv); + void *priv, + struct videobuf_qtype_ops *int_ops); int videobuf_queue_is_busy(struct videobuf_queue *q); void videobuf_queue_cancel(struct videobuf_queue *q); |