diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-09-08 19:02:09 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-09-09 10:49:12 -0400 |
commit | 3a83c16ef0e03e2ca2f1ce547a7cba53a62d0e0d (patch) | |
tree | d3a9d1a68a4e6db7ae626a896f0dcd37f212300c /drivers/usb/gadget/function/uvc_queue.h | |
parent | 7ea95b110811fa8e41f5960c278bcfc80b8b21c1 (diff) |
usb: gadget: uvc: separately compile some components of f_uvc
Compile uvc_queue, uvc_v4l2, uvc_video separately so that later they can
be all combined in a separately compiled f_uvc.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Tested-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
[Make uvc_v4l2_ioctl_ops non-static]
[Rename __UVC__V4L2__H__ and __UVC__VIDEO__H__]
[Update MAINTAINERS]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_queue.h')
-rw-r--r-- | drivers/usb/gadget/function/uvc_queue.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/uvc_queue.h b/drivers/usb/gadget/function/uvc_queue.h index 8e76ce982f1e..03919c724961 100644 --- a/drivers/usb/gadget/function/uvc_queue.h +++ b/drivers/usb/gadget/function/uvc_queue.h | |||
@@ -57,6 +57,39 @@ static inline int uvc_queue_streaming(struct uvc_video_queue *queue) | |||
57 | return vb2_is_streaming(&queue->queue); | 57 | return vb2_is_streaming(&queue->queue); |
58 | } | 58 | } |
59 | 59 | ||
60 | int uvcg_queue_init(struct uvc_video_queue *queue, enum v4l2_buf_type type); | ||
61 | |||
62 | void uvcg_free_buffers(struct uvc_video_queue *queue); | ||
63 | |||
64 | int uvcg_alloc_buffers(struct uvc_video_queue *queue, | ||
65 | struct v4l2_requestbuffers *rb); | ||
66 | |||
67 | int uvcg_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf); | ||
68 | |||
69 | int uvcg_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf); | ||
70 | |||
71 | int uvcg_dequeue_buffer(struct uvc_video_queue *queue, | ||
72 | struct v4l2_buffer *buf, int nonblocking); | ||
73 | |||
74 | unsigned int uvcg_queue_poll(struct uvc_video_queue *queue, | ||
75 | struct file *file, poll_table *wait); | ||
76 | |||
77 | int uvcg_queue_mmap(struct uvc_video_queue *queue, struct vm_area_struct *vma); | ||
78 | |||
79 | #ifndef CONFIG_MMU | ||
80 | unsigned long uvcg_queue_get_unmapped_area(struct uvc_video_queue *queue, | ||
81 | unsigned long pgoff); | ||
82 | #endif /* CONFIG_MMU */ | ||
83 | |||
84 | void uvcg_queue_cancel(struct uvc_video_queue *queue, int disconnect); | ||
85 | |||
86 | int uvcg_queue_enable(struct uvc_video_queue *queue, int enable); | ||
87 | |||
88 | struct uvc_buffer *uvcg_queue_next_buffer(struct uvc_video_queue *queue, | ||
89 | struct uvc_buffer *buf); | ||
90 | |||
91 | struct uvc_buffer *uvcg_queue_head(struct uvc_video_queue *queue); | ||
92 | |||
60 | #endif /* __KERNEL__ */ | 93 | #endif /* __KERNEL__ */ |
61 | 94 | ||
62 | #endif /* _UVC_QUEUE_H_ */ | 95 | #endif /* _UVC_QUEUE_H_ */ |