1dacca5f0SHans Verkuil /* SPDX-License-Identifier: GPL-2.0-only */ 2dacca5f0SHans Verkuil /* 3dacca5f0SHans Verkuil * vivid-vbi-cap.h - vbi capture support functions. 4dacca5f0SHans Verkuil * 5dacca5f0SHans Verkuil * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 6dacca5f0SHans Verkuil */ 7dacca5f0SHans Verkuil 8dacca5f0SHans Verkuil #ifndef _VIVID_VBI_CAP_H_ 9dacca5f0SHans Verkuil #define _VIVID_VBI_CAP_H_ 10dacca5f0SHans Verkuil 11dacca5f0SHans Verkuil void vivid_fill_time_of_day_packet(u8 *packet); 12dacca5f0SHans Verkuil void vivid_raw_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf); 13dacca5f0SHans Verkuil void vivid_sliced_vbi_cap_process(struct vivid_dev *dev, struct vivid_buffer *buf); 14dacca5f0SHans Verkuil void vivid_sliced_vbi_out_process(struct vivid_dev *dev, struct vivid_buffer *buf); 15dacca5f0SHans Verkuil int vidioc_g_fmt_vbi_cap(struct file *file, void *priv, 16dacca5f0SHans Verkuil struct v4l2_format *f); 17dacca5f0SHans Verkuil int vidioc_s_fmt_vbi_cap(struct file *file, void *priv, 18dacca5f0SHans Verkuil struct v4l2_format *f); 19dacca5f0SHans Verkuil int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 20dacca5f0SHans Verkuil int vidioc_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 21dacca5f0SHans Verkuil int vidioc_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt); 22dacca5f0SHans Verkuil int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap); 23dacca5f0SHans Verkuil 24dacca5f0SHans Verkuil void vivid_fill_service_lines(struct v4l2_sliced_vbi_format *vbi, u32 service_set); 25dacca5f0SHans Verkuil 26dacca5f0SHans Verkuil extern const struct vb2_ops vivid_vbi_cap_qops; 27dacca5f0SHans Verkuil 28dacca5f0SHans Verkuil #endif 29