diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-01-31 11:34:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-03-19 22:11:14 +0100 |
commit | 643e83501461763032ae51e4d540176e6a887d31 (patch) | |
tree | 9852c1ded347e56beb8a21505d9a99d7667348c1 /drivers/media/pci/cx18/cx18-fileops.h | |
parent | media: v4l2-dev.c: check for V4L2_CAP_STREAMING to enable streaming ioctls (diff) | |
download | linux-643e83501461763032ae51e4d540176e6a887d31.tar.xz linux-643e83501461763032ae51e4d540176e6a887d31.zip |
media: cx18: convert to vb2
This patch converts cx18 from the old deprecated videobuf framework
to the 'new' vb2 framework.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/pci/cx18/cx18-fileops.h')
-rw-r--r-- | drivers/media/pci/cx18/cx18-fileops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-fileops.h b/drivers/media/pci/cx18/cx18-fileops.h index 1985d6422347..943057b83d94 100644 --- a/drivers/media/pci/cx18/cx18-fileops.h +++ b/drivers/media/pci/cx18/cx18-fileops.h @@ -16,10 +16,11 @@ ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, int cx18_v4l2_close(struct file *filp); __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); int cx18_start_capture(struct cx18_open_id *id); -void cx18_stop_capture(struct cx18_open_id *id, int gop_end); +void cx18_stop_capture(struct cx18_stream *s, int gop_end); void cx18_mute(struct cx18 *cx); void cx18_unmute(struct cx18 *cx); int cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma); +void cx18_clear_queue(struct cx18_stream *s, enum vb2_buffer_state state); void cx18_vb_timeout(struct timer_list *t); /* Shared with cx18-alsa module */ |