Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bttv-vbi.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/kdev_t.h>
#include <media/v4l2-ioctl.h>
#include <asm/io.h>
#include "bttvp.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define VBI_OFFSET   244
 
#define VBI_BPL   2048
 
#define VBI_DEFLINES   16
 
#define dprintk(fmt,...)
 
#define IMAGE_SIZE(fmt)   (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line)
 

Functions

 module_param (vbibufs, int, 0444)
 
 module_param (vbi_debug, int, 0644)
 
 MODULE_PARM_DESC (vbibufs,"number of vbi buffers, range 2-32, default 4")
 
 MODULE_PARM_DESC (vbi_debug,"vbi code debug messages, default is 0 (no)")
 
int bttv_try_fmt_vbi_cap (struct file *file, void *f, struct v4l2_format *frt)
 
int bttv_s_fmt_vbi_cap (struct file *file, void *f, struct v4l2_format *frt)
 
int bttv_g_fmt_vbi_cap (struct file *file, void *f, struct v4l2_format *frt)
 
void bttv_vbi_fmt_reset (struct bttv_vbi_fmt *f, unsigned int norm)
 

Variables

struct videobuf_queue_ops bttv_vbi_qops
 

Macro Definition Documentation

#define dprintk (   fmt,
  ... 
)
Value:
do { \
if (vbi_debug) \
pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \
} while (0)

Definition at line 70 of file bttv-vbi.c.

#define IMAGE_SIZE (   fmt)    (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line)

Definition at line 76 of file bttv-vbi.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file bttv-vbi.c.

#define VBI_BPL   2048

Definition at line 54 of file bttv-vbi.c.

#define VBI_DEFLINES   16

Definition at line 57 of file bttv-vbi.c.

#define VBI_OFFSET   244

Definition at line 47 of file bttv-vbi.c.

Function Documentation

int bttv_g_fmt_vbi_cap ( struct file file,
void f,
struct v4l2_format frt 
)

Definition at line 378 of file bttv-vbi.c.

int bttv_s_fmt_vbi_cap ( struct file file,
void f,
struct v4l2_format frt 
)

Definition at line 330 of file bttv-vbi.c.

int bttv_try_fmt_vbi_cap ( struct file file,
void f,
struct v4l2_format frt 
)

Definition at line 312 of file bttv-vbi.c.

void bttv_vbi_fmt_reset ( struct bttv_vbi_fmt *  f,
unsigned int  norm 
)

Definition at line 419 of file bttv-vbi.c.

module_param ( vbibufs  ,
int  ,
0444   
)
module_param ( vbi_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( vbibufs  ,
"number of vbi  buffers,
range 2-  32,
default 4"   
)
MODULE_PARM_DESC ( vbi_debug  ,
"vbi code debug  messages,
default is 0(no)"   
)

Variable Documentation

struct videobuf_queue_ops bttv_vbi_qops
Initial value:
= {
.buf_setup = vbi_buffer_setup,
.buf_prepare = vbi_buffer_prepare,
.buf_queue = vbi_buffer_queue,
.buf_release = vbi_buffer_release,
}

Definition at line 236 of file bttv-vbi.c.