#include "vivid-core.h"
#include "vivid-kthread-touch.h"
#include "vivid-vid-common.h"
#include "vivid-touch-cap.h"
static int touch_cap_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers,
unsigned int *nplanes, unsigned int sizes[],
struct device *alloc_devs[])
{ … }
static int touch_cap_buf_prepare(struct vb2_buffer *vb)
{ … }
static void touch_cap_buf_queue(struct vb2_buffer *vb)
{ … }
static int touch_cap_start_streaming(struct vb2_queue *vq, unsigned int count)
{ … }
static void touch_cap_stop_streaming(struct vb2_queue *vq)
{ … }
static void touch_cap_buf_request_complete(struct vb2_buffer *vb)
{ … }
const struct vb2_ops vivid_touch_cap_qops = …;
int vivid_enum_fmt_tch(struct file *file, void *priv, struct v4l2_fmtdesc *f)
{ … }
int vivid_g_fmt_tch(struct file *file, void *priv, struct v4l2_format *f)
{ … }
int vivid_g_fmt_tch_mplane(struct file *file, void *priv, struct v4l2_format *f)
{ … }
int vivid_g_parm_tch(struct file *file, void *priv,
struct v4l2_streamparm *parm)
{ … }
int vivid_enum_input_tch(struct file *file, void *priv, struct v4l2_input *inp)
{ … }
int vivid_g_input_tch(struct file *file, void *priv, unsigned int *i)
{ … }
int vivid_set_touch(struct vivid_dev *dev, unsigned int i)
{ … }
int vivid_s_input_tch(struct file *file, void *priv, unsigned int i)
{ … }
static void vivid_fill_buff_noise(__s16 *tch_buf, int size)
{ … }
static inline int get_random_pressure(void)
{ … }
static void vivid_tch_buf_set(struct v4l2_pix_format *f,
__s16 *tch_buf,
int index)
{ … }
void vivid_fillbuff_tch(struct vivid_dev *dev, struct vivid_buffer *buf)
{ … }