mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
V4L/DVB: videobuf: add ext_lock argument to the queue init functions
Add an ext_lock argument to the videobuf init functions. This allows drivers to pass the vdev->lock pointer (or any other externally held lock) to videobuf. For now all drivers just pass NULL. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
9739768788
commit
08bff03ed6
28 changed files with 48 additions and 37 deletions
|
|
@ -198,7 +198,8 @@ void videobuf_queue_core_init(struct videobuf_queue *q,
|
|||
enum v4l2_field field,
|
||||
unsigned int msize,
|
||||
void *priv,
|
||||
struct videobuf_qtype_ops *int_ops);
|
||||
struct videobuf_qtype_ops *int_ops,
|
||||
struct mutex *ext_lock);
|
||||
int videobuf_queue_is_busy(struct videobuf_queue *q);
|
||||
void videobuf_queue_cancel(struct videobuf_queue *q);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ void videobuf_queue_dma_contig_init(struct videobuf_queue *q,
|
|||
enum v4l2_buf_type type,
|
||||
enum v4l2_field field,
|
||||
unsigned int msize,
|
||||
void *priv);
|
||||
void *priv,
|
||||
struct mutex *ext_lock);
|
||||
|
||||
dma_addr_t videobuf_to_dma_contig(struct videobuf_buffer *buf);
|
||||
void videobuf_dma_contig_free(struct videobuf_queue *q,
|
||||
|
|
|
|||
|
|
@ -103,7 +103,8 @@ void videobuf_queue_sg_init(struct videobuf_queue *q,
|
|||
enum v4l2_buf_type type,
|
||||
enum v4l2_field field,
|
||||
unsigned int msize,
|
||||
void *priv);
|
||||
void *priv,
|
||||
struct mutex *ext_lock);
|
||||
|
||||
#endif /* _VIDEOBUF_DMA_SG_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@ void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
|
|||
enum v4l2_buf_type type,
|
||||
enum v4l2_field field,
|
||||
unsigned int msize,
|
||||
void *priv);
|
||||
void *priv,
|
||||
struct mutex *ext_lock);
|
||||
|
||||
void *videobuf_to_vmalloc(struct videobuf_buffer *buf);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue