treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / platform / vivid / vivid-meta-cap.h
blob4670d00d1576df0e41a961ad5d5040d92787dfa1
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * vivid-meta-cap.h - meta capture support functions.
4 */
5 #ifndef _VIVID_META_CAP_H_
6 #define _VIVID_META_CAP_H_
8 #define VIVID_META_CLOCK_UNIT 10 /* 100 MHz */
10 struct vivid_uvc_meta_buf {
11 __u64 ns;
12 __u16 sof;
13 __u8 length;
14 __u8 flags;
15 __u8 buf[10]; /* PTS(4)+STC(4)+SOF(2) */
16 } __packed;
18 void vivid_meta_cap_fillbuff(struct vivid_dev *dev,
19 struct vivid_buffer *buf, u64 soe);
21 int vidioc_enum_fmt_meta_cap(struct file *file, void *priv,
22 struct v4l2_fmtdesc *f);
24 int vidioc_g_fmt_meta_cap(struct file *file, void *priv,
25 struct v4l2_format *f);
27 extern const struct vb2_ops vivid_meta_cap_qops;
29 #endif