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>
This commit is contained in:
committed by
Felipe Balbi
parent
7ea95b1108
commit
3a83c16ef0
@@ -57,6 +57,39 @@ static inline int uvc_queue_streaming(struct uvc_video_queue *queue)
|
||||
return vb2_is_streaming(&queue->queue);
|
||||
}
|
||||
|
||||
int uvcg_queue_init(struct uvc_video_queue *queue, enum v4l2_buf_type type);
|
||||
|
||||
void uvcg_free_buffers(struct uvc_video_queue *queue);
|
||||
|
||||
int uvcg_alloc_buffers(struct uvc_video_queue *queue,
|
||||
struct v4l2_requestbuffers *rb);
|
||||
|
||||
int uvcg_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf);
|
||||
|
||||
int uvcg_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf);
|
||||
|
||||
int uvcg_dequeue_buffer(struct uvc_video_queue *queue,
|
||||
struct v4l2_buffer *buf, int nonblocking);
|
||||
|
||||
unsigned int uvcg_queue_poll(struct uvc_video_queue *queue,
|
||||
struct file *file, poll_table *wait);
|
||||
|
||||
int uvcg_queue_mmap(struct uvc_video_queue *queue, struct vm_area_struct *vma);
|
||||
|
||||
#ifndef CONFIG_MMU
|
||||
unsigned long uvcg_queue_get_unmapped_area(struct uvc_video_queue *queue,
|
||||
unsigned long pgoff);
|
||||
#endif /* CONFIG_MMU */
|
||||
|
||||
void uvcg_queue_cancel(struct uvc_video_queue *queue, int disconnect);
|
||||
|
||||
int uvcg_queue_enable(struct uvc_video_queue *queue, int enable);
|
||||
|
||||
struct uvc_buffer *uvcg_queue_next_buffer(struct uvc_video_queue *queue,
|
||||
struct uvc_buffer *buf);
|
||||
|
||||
struct uvc_buffer *uvcg_queue_head(struct uvc_video_queue *queue);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* _UVC_QUEUE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user