Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
saa7134-video.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sort.h>
#include "saa7134-reg.h"
#include "saa7134.h"
#include <media/v4l2-common.h>
#include <media/saa6588.h>

Go to the source code of this file.

Data Structures

struct  cliplist
 

Macros

#define dprintk(fmt, arg...)
 
#define VP_T_CODE_P_NON_INVERTED   0x00
 
#define VP_T_CODE_P_INVERTED   0x01
 
#define VP_CLK_CTRL2_NOT_DELAYED   0x00
 
#define VP_CLK_CTRL2_DELAYED   0x04
 
#define VP_CLK_CTRL1_NON_INVERTED   0x00
 
#define VP_CLK_CTRL1_INVERTED   0x02
 
#define VP_VS_TYPE_MASK   0x07
 
#define VP_VS_TYPE_OFF   0x00
 
#define VP_VS_TYPE_V123   0x01
 
#define VP_VS_TYPE_V_ITU   0x02
 
#define VP_VS_TYPE_VGATE_L   0x03
 
#define VP_VS_TYPE_RESERVED1   0x04
 
#define VP_VS_TYPE_RESERVED2   0x05
 
#define VP_VS_TYPE_F_ITU   0x06
 
#define VP_VS_TYPE_SC_FID   0x07
 
#define FORMATS   ARRAY_SIZE(formats)
 
#define NORM_625_50
 
#define NORM_525_60
 
#define TVNORMS   ARRAY_SIZE(tvnorms)
 
#define V4L2_CID_PRIVATE_INVERT   (V4L2_CID_PRIVATE_BASE + 0)
 
#define V4L2_CID_PRIVATE_Y_ODD   (V4L2_CID_PRIVATE_BASE + 1)
 
#define V4L2_CID_PRIVATE_Y_EVEN   (V4L2_CID_PRIVATE_BASE + 2)
 
#define V4L2_CID_PRIVATE_AUTOMUTE   (V4L2_CID_PRIVATE_BASE + 3)
 
#define V4L2_CID_PRIVATE_LASTP1   (V4L2_CID_PRIVATE_BASE + 4)
 

Functions

 module_param (video_debug, int, 0644)
 
 MODULE_PARM_DESC (video_debug,"enable debug messages [video]")
 
 module_param (gbuffers, int, 0444)
 
 MODULE_PARM_DESC (gbuffers,"number of capture buffers, range 2-32")
 
 module_param (noninterlaced, int, 0644)
 
 MODULE_PARM_DESC (noninterlaced,"capture non interlaced video")
 
 module_param_string (secam, secam, sizeof(secam), 0644)
 
 MODULE_PARM_DESC (secam,"force SECAM variant, either DK,L or Lc")
 
void saa7134_set_tvnorm_hw (struct saa7134_dev *dev)
 
int saa7134_g_ctrl_internal (struct saa7134_dev *dev, struct saa7134_fh *fh, struct v4l2_control *c)
 
 EXPORT_SYMBOL_GPL (saa7134_g_ctrl_internal)
 
int saa7134_s_ctrl_internal (struct saa7134_dev *dev, struct saa7134_fh *fh, struct v4l2_control *c)
 
 EXPORT_SYMBOL_GPL (saa7134_s_ctrl_internal)
 
int saa7134_queryctrl (struct file *file, void *priv, struct v4l2_queryctrl *c)
 
 EXPORT_SYMBOL_GPL (saa7134_queryctrl)
 
int saa7134_s_std_internal (struct saa7134_dev *dev, struct saa7134_fh *fh, v4l2_std_id *id)
 
 EXPORT_SYMBOL_GPL (saa7134_s_std_internal)
 
int saa7134_video_init1 (struct saa7134_dev *dev)
 
int saa7134_videoport_init (struct saa7134_dev *dev)
 
int saa7134_video_init2 (struct saa7134_dev *dev)
 
void saa7134_irq_video_signalchange (struct saa7134_dev *dev)
 
void saa7134_irq_video_done (struct saa7134_dev *dev, unsigned long status)
 

Variables

unsigned int video_debug
 
struct video_device saa7134_video_template
 
struct video_device saa7134_radio_template
 

Macro Definition Documentation

#define dprintk (   fmt,
  arg... 
)
Value:
if (video_debug&0x04) \
printk(KERN_DEBUG "%s/video: " fmt, dev->name , ## arg)

Definition at line 53 of file saa7134-video.c.

#define FORMATS   ARRAY_SIZE(formats)

Definition at line 194 of file saa7134-video.c.

#define NORM_525_60
Value:
.h_start = 0, \
.h_stop = 719, \
.video_v_start = 23, \
.video_v_stop = 262, \
.vbi_v_start_0 = 10, \
.vbi_v_stop_0 = 21, \
.vbi_v_start_1 = 273, \
.src_timing = 7

Definition at line 206 of file saa7134-video.c.

#define NORM_625_50
Value:
.h_start = 0, \
.h_stop = 719, \
.video_v_start = 24, \
.video_v_stop = 311, \
.vbi_v_start_0 = 7, \
.vbi_v_stop_0 = 22, \
.vbi_v_start_1 = 319, \
.src_timing = 4

Definition at line 196 of file saa7134-video.c.

#define TVNORMS   ARRAY_SIZE(tvnorms)

Definition at line 370 of file saa7134-video.c.

#define V4L2_CID_PRIVATE_AUTOMUTE   (V4L2_CID_PRIVATE_BASE + 3)

Definition at line 375 of file saa7134-video.c.

#define V4L2_CID_PRIVATE_INVERT   (V4L2_CID_PRIVATE_BASE + 0)

Definition at line 372 of file saa7134-video.c.

#define V4L2_CID_PRIVATE_LASTP1   (V4L2_CID_PRIVATE_BASE + 4)

Definition at line 376 of file saa7134-video.c.

#define V4L2_CID_PRIVATE_Y_EVEN   (V4L2_CID_PRIVATE_BASE + 2)

Definition at line 374 of file saa7134-video.c.

#define V4L2_CID_PRIVATE_Y_ODD   (V4L2_CID_PRIVATE_BASE + 1)

Definition at line 373 of file saa7134-video.c.

#define VP_CLK_CTRL1_INVERTED   0x02

Definition at line 75 of file saa7134-video.c.

#define VP_CLK_CTRL1_NON_INVERTED   0x00

Definition at line 74 of file saa7134-video.c.

#define VP_CLK_CTRL2_DELAYED   0x04

Definition at line 70 of file saa7134-video.c.

#define VP_CLK_CTRL2_NOT_DELAYED   0x00

Definition at line 69 of file saa7134-video.c.

#define VP_T_CODE_P_INVERTED   0x01

Definition at line 62 of file saa7134-video.c.

#define VP_T_CODE_P_NON_INVERTED   0x00

Definition at line 61 of file saa7134-video.c.

#define VP_VS_TYPE_F_ITU   0x06

Definition at line 90 of file saa7134-video.c.

#define VP_VS_TYPE_MASK   0x07

Definition at line 82 of file saa7134-video.c.

#define VP_VS_TYPE_OFF   0x00

Definition at line 84 of file saa7134-video.c.

#define VP_VS_TYPE_RESERVED1   0x04

Definition at line 88 of file saa7134-video.c.

#define VP_VS_TYPE_RESERVED2   0x05

Definition at line 89 of file saa7134-video.c.

#define VP_VS_TYPE_SC_FID   0x07

Definition at line 91 of file saa7134-video.c.

#define VP_VS_TYPE_V123   0x01

Definition at line 85 of file saa7134-video.c.

#define VP_VS_TYPE_V_ITU   0x02

Definition at line 86 of file saa7134-video.c.

#define VP_VS_TYPE_VGATE_L   0x03

Definition at line 87 of file saa7134-video.c.

Function Documentation

EXPORT_SYMBOL_GPL ( saa7134_g_ctrl_internal  )
EXPORT_SYMBOL_GPL ( saa7134_s_ctrl_internal  )
EXPORT_SYMBOL_GPL ( saa7134_queryctrl  )
EXPORT_SYMBOL_GPL ( saa7134_s_std_internal  )
module_param ( video_debug  ,
int  ,
0644   
)
module_param ( gbuffers  ,
int  ,
0444   
)
module_param ( noninterlaced  ,
int  ,
0644   
)
module_param_string ( secam  ,
secam  ,
sizeof(secam)  ,
0644   
)
MODULE_PARM_DESC ( video_debug  ,
"enable debug messages "  [video] 
)
MODULE_PARM_DESC ( gbuffers  ,
"number of capture  buffers,
range 2-32"   
)
MODULE_PARM_DESC ( noninterlaced  ,
"capture non interlaced video"   
)
MODULE_PARM_DESC ( secam  ,
"force SECAM  variant,
either  DK,
L or Lc"   
)
int saa7134_g_ctrl_internal ( struct saa7134_dev dev,
struct saa7134_fh fh,
struct v4l2_control c 
)

Definition at line 1117 of file saa7134-video.c.

void saa7134_irq_video_done ( struct saa7134_dev dev,
unsigned long  status 
)

Definition at line 2624 of file saa7134-video.c.

void saa7134_irq_video_signalchange ( struct saa7134_dev dev)

Definition at line 2590 of file saa7134-video.c.

int saa7134_queryctrl ( struct file file,
void priv,
struct v4l2_queryctrl c 
)

Definition at line 1726 of file saa7134-video.c.

int saa7134_s_ctrl_internal ( struct saa7134_dev dev,
struct saa7134_fh fh,
struct v4l2_control c 
)

Definition at line 1172 of file saa7134-video.c.

int saa7134_s_std_internal ( struct saa7134_dev dev,
struct saa7134_fh fh,
v4l2_std_id id 
)

Definition at line 1831 of file saa7134-video.c.

void saa7134_set_tvnorm_hw ( struct saa7134_dev dev)

Definition at line 623 of file saa7134-video.c.

int saa7134_video_init1 ( struct saa7134_dev dev)

Definition at line 2509 of file saa7134-video.c.

int saa7134_video_init2 ( struct saa7134_dev dev)

Definition at line 2580 of file saa7134-video.c.

int saa7134_videoport_init ( struct saa7134_dev dev)

Definition at line 2544 of file saa7134-video.c.

Variable Documentation

struct video_device saa7134_radio_template
Initial value:
= {
.name = "saa7134-radio",
.fops = &radio_fops,
.ioctl_ops = &radio_ioctl_ops,
}

Definition at line 2503 of file saa7134-video.c.

struct video_device saa7134_video_template
Initial value:
= {
.name = "saa7134-video",
.fops = &video_fops,
.ioctl_ops = &video_ioctl_ops,
.tvnorms = SAA7134_NORMS,
.current_norm = V4L2_STD_PAL,
}

Definition at line 2495 of file saa7134-video.c.

unsigned int video_debug

Definition at line 37 of file saa7134-video.c.