linux/drivers/media/common/saa7146/saa7146_video.c

#define pr_fmt(fmt)

#include <media/drv-intf/saa7146_vv.h>
#include <media/v4l2-event.h>
#include <media/v4l2-ctrls.h>
#include <linux/module.h>
#include <linux/kernel.h>

/* format descriptions for capture and preview */
static struct saa7146_format formats[] =;

/* unfortunately, the saa7146 contains a bug which prevents it from doing on-the-fly byte swaps.
   due to this, it's impossible to provide additional *packed* formats, which are simply byte swapped
   (like V4L2_PIX_FMT_YUYV) ... 8-( */

struct saa7146_format* saa7146_format_by_fourcc(struct saa7146_dev *dev, int fourcc)
{}

/********************************************************************************/
/* common pagetable functions */

static int saa7146_pgtable_build(struct saa7146_dev *dev, struct saa7146_buf *buf)
{}


/********************************************************************************/
/* file operations */

static int video_begin(struct saa7146_dev *dev)
{}

static void video_end(struct saa7146_dev *dev)
{}

static int vidioc_querycap(struct file *file, void *fh, struct v4l2_capability *cap)
{}

static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f)
{}

int saa7146_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static int vidioc_g_parm(struct file *file, void *fh,
		struct v4l2_streamparm *parm)
{}

static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f)
{}

static int vidioc_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f)
{}

static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f)
{}

static int vidioc_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f)
{}

static int vidioc_g_std(struct file *file, void *fh, v4l2_std_id *norm)
{}

static int vidioc_s_std(struct file *file, void *fh, v4l2_std_id id)
{}

const struct v4l2_ioctl_ops saa7146_video_ioctl_ops =;

const struct v4l2_ioctl_ops saa7146_vbi_ioctl_ops =;

/*********************************************************************************/
/* buffer handling functions                                                  */

static int buffer_activate (struct saa7146_dev *dev,
		     struct saa7146_buf *buf,
		     struct saa7146_buf *next)
{}

static void release_all_pagetables(struct saa7146_dev *dev, struct saa7146_buf *buf)
{}

static int queue_setup(struct vb2_queue *q,
		       unsigned int *num_buffers, unsigned int *num_planes,
		       unsigned int sizes[], struct device *alloc_devs[])
{}

static void buf_queue(struct vb2_buffer *vb)
{}

static int buf_init(struct vb2_buffer *vb)
{}

static int buf_prepare(struct vb2_buffer *vb)
{}

static void buf_cleanup(struct vb2_buffer *vb)
{}

static void return_buffers(struct vb2_queue *q, int state)
{}

static int start_streaming(struct vb2_queue *q, unsigned int count)
{}

static void stop_streaming(struct vb2_queue *q)
{}

const struct vb2_ops video_qops =;

/********************************************************************************/
/* file operations */

static void video_init(struct saa7146_dev *dev, struct saa7146_vv *vv)
{}

static void video_irq_done(struct saa7146_dev *dev, unsigned long st)
{}

const struct saa7146_use_ops saa7146_video_uops =;