2019-05-27 06:55:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2008-04-28 23:24:33 +00:00
|
|
|
/*
|
|
|
|
* cx18 file operation functions
|
|
|
|
*
|
|
|
|
* Derived from ivtv-fileops.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Testing/Debugging */
|
2008-12-30 09:58:20 +00:00
|
|
|
int cx18_v4l2_open(struct file *filp);
|
2008-04-28 23:24:33 +00:00
|
|
|
ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
|
|
|
|
loff_t *pos);
|
|
|
|
ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
|
|
|
|
loff_t *pos);
|
2008-12-30 09:58:20 +00:00
|
|
|
int cx18_v4l2_close(struct file *filp);
|
2017-07-03 07:02:56 +00:00
|
|
|
__poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
|
2008-04-28 23:24:33 +00:00
|
|
|
int cx18_start_capture(struct cx18_open_id *id);
|
|
|
|
void cx18_stop_capture(struct cx18_open_id *id, int gop_end);
|
|
|
|
void cx18_mute(struct cx18 *cx);
|
|
|
|
void cx18_unmute(struct cx18 *cx);
|
2011-04-06 11:32:56 +00:00
|
|
|
int cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma);
|
2017-10-24 15:22:42 +00:00
|
|
|
void cx18_vb_timeout(struct timer_list *t);
|
2008-04-28 23:24:33 +00:00
|
|
|
|
2009-11-20 01:52:30 +00:00
|
|
|
/* Shared with cx18-alsa module */
|
|
|
|
int cx18_claim_stream(struct cx18_open_id *id, int type);
|
|
|
|
void cx18_release_stream(struct cx18_stream *s);
|