Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
saa7146_video.c File Reference
#include <media/saa7146_vv.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-event.h>
#include <media/v4l2-ctrls.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define IS_CAPTURE_ACTIVE(fh)   (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh))
 
#define IS_OVERLAY_ACTIVE(fh)   (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh))
 

Functions

 module_param (max_memory, int, 0644)
 
 MODULE_PARM_DESC (max_memory,"maximum memory usage for capture buffers (default: 32Mb)")
 
struct saa7146_formatsaa7146_format_by_fourcc (struct saa7146_dev *dev, int fourcc)
 
int saa7146_start_preview (struct saa7146_fh *fh)
 
 EXPORT_SYMBOL_GPL (saa7146_start_preview)
 
int saa7146_stop_preview (struct saa7146_fh *fh)
 
 EXPORT_SYMBOL_GPL (saa7146_stop_preview)
 
int saa7146_s_ctrl (struct v4l2_ctrl *ctrl)
 

Variables

struct v4l2_ioctl_ops saa7146_video_ioctl_ops
 
struct v4l2_ioctl_ops saa7146_vbi_ioctl_ops
 
struct saa7146_use_ops saa7146_video_uops
 

Macro Definition Documentation

#define IS_CAPTURE_ACTIVE (   fh)    (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh))

Definition at line 14 of file saa7146_video.c.

#define IS_OVERLAY_ACTIVE (   fh)    (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh))

Definition at line 17 of file saa7146_video.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 1 of file saa7146_video.c.

Function Documentation

EXPORT_SYMBOL_GPL ( saa7146_start_preview  )
EXPORT_SYMBOL_GPL ( saa7146_stop_preview  )
module_param ( max_memory  ,
int  ,
0644   
)
MODULE_PARM_DESC ( max_memory  ,
"maximum memory usage for capture buffers (default: 32Mb)"   
)
struct saa7146_format* saa7146_format_by_fourcc ( struct saa7146_dev dev,
int  fourcc 
)
read

Definition at line 92 of file saa7146_video.c.

int saa7146_s_ctrl ( struct v4l2_ctrl ctrl)

Definition at line 532 of file saa7146_video.c.

int saa7146_start_preview ( struct saa7146_fh fh)

Definition at line 108 of file saa7146_video.c.

int saa7146_stop_preview ( struct saa7146_fh fh)

Definition at line 170 of file saa7146_video.c.

Variable Documentation

struct v4l2_ioctl_ops saa7146_vbi_ioctl_ops
Initial value:
= {
.vidioc_querycap = vidioc_querycap,
.vidioc_g_fmt_vbi_cap = vidioc_g_fmt_vbi_cap,
.vidioc_g_chip_ident = vidioc_g_chip_ident,
.vidioc_reqbufs = vidioc_reqbufs,
.vidioc_querybuf = vidioc_querybuf,
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_g_std = vidioc_g_std,
.vidioc_s_std = vidioc_s_std,
.vidioc_streamon = vidioc_streamon,
.vidioc_streamoff = vidioc_streamoff,
.vidioc_g_parm = vidioc_g_parm,
.vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
}

Definition at line 1039 of file saa7146_video.c.

struct v4l2_ioctl_ops saa7146_video_ioctl_ops
Initial value:
= {
.vidioc_querycap = vidioc_querycap,
.vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
.vidioc_enum_fmt_vid_overlay = vidioc_enum_fmt_vid_cap,
.vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
.vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
.vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
.vidioc_g_fmt_vid_overlay = vidioc_g_fmt_vid_overlay,
.vidioc_try_fmt_vid_overlay = vidioc_try_fmt_vid_overlay,
.vidioc_s_fmt_vid_overlay = vidioc_s_fmt_vid_overlay,
.vidioc_g_chip_ident = vidioc_g_chip_ident,
.vidioc_overlay = vidioc_overlay,
.vidioc_g_fbuf = vidioc_g_fbuf,
.vidioc_s_fbuf = vidioc_s_fbuf,
.vidioc_reqbufs = vidioc_reqbufs,
.vidioc_querybuf = vidioc_querybuf,
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_g_std = vidioc_g_std,
.vidioc_s_std = vidioc_s_std,
.vidioc_streamon = vidioc_streamon,
.vidioc_streamoff = vidioc_streamoff,
.vidioc_g_parm = vidioc_g_parm,
.vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
}

Definition at line 1011 of file saa7146_video.c.

struct saa7146_use_ops saa7146_video_uops
Initial value:
= {
.init = video_init,
.open = video_open,
.release = video_close,
.irq_done = video_irq_done,
.read = video_read,
}

Definition at line 1326 of file saa7146_video.c.