Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx231xx-video.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/bitmap.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-chip-ident.h>
#include <media/msp3400.h>
#include <media/tuner.h>
#include "dvb_frontend.h"
#include "cx231xx.h"
#include "cx231xx-vbi.h"

Go to the source code of this file.

Macros

#define CX231XX_VERSION   "0.0.2"
 
#define DRIVER_AUTHOR   "Srinivasa Deevi <[email protected]>"
 
#define DRIVER_DESC   "Conexant cx231xx based USB video device driver"
 
#define cx231xx_videodbg(fmt, arg...)
 
#define cx231xx_isocdbg(fmt, arg...)
 

Functions

 module_param (isoc_debug, int, 0644)
 
 MODULE_PARM_DESC (isoc_debug,"enable debug messages [isoc transfers]")
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (CX231XX_VERSION)
 
 module_param_array (card, int, NULL, 0444)
 
 module_param_array (video_nr, int, NULL, 0444)
 
 module_param_array (vbi_nr, int, NULL, 0444)
 
 module_param_array (radio_nr, int, NULL, 0444)
 
 MODULE_PARM_DESC (card,"card type")
 
 MODULE_PARM_DESC (video_nr,"video device numbers")
 
 MODULE_PARM_DESC (vbi_nr,"vbi device numbers")
 
 MODULE_PARM_DESC (radio_nr,"radio device numbers")
 
 module_param (video_debug, int, 0644)
 
 MODULE_PARM_DESC (video_debug,"enable debug messages [video]")
 
u8 cx231xx_find_boundary_SAV_EAV (u8 *p_buffer, u8 *partial_buf, u32 *p_bytes_used)
 
u8 cx231xx_find_next_SAV_EAV (u8 *p_buffer, u32 buffer_size, u32 *p_bytes_used)
 
u32 cx231xx_get_video_line (struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, u8 sav_eav, u8 *p_buffer, u32 buffer_size)
 
u32 cx231xx_copy_video_line (struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, u8 *p_line, u32 length, int field_number)
 
void cx231xx_reset_video_buffer (struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q)
 
int cx231xx_do_copy (struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, u8 *p_buffer, u32 bytes_to_copy)
 
void cx231xx_swab (u16 *from, u16 *to, u16 len)
 
u8 cx231xx_is_buffer_done (struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q)
 
void video_mux (struct cx231xx *dev, int index)
 
void cx231xx_release_analog_resources (struct cx231xx *dev)
 
int cx231xx_register_analog_devices (struct cx231xx *dev)
 

Macro Definition Documentation

#define cx231xx_isocdbg (   fmt,
  arg... 
)
Value:
do {\
if (isoc_debug) { \
printk(KERN_INFO "%s %s :"fmt, \
dev->name, __func__ , ##arg); \
} \
} while (0)

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

#define CX231XX_VERSION   "0.0.2"

Definition at line 47 of file cx231xx-video.c.

#define cx231xx_videodbg (   fmt,
  arg... 
)
Value:
do {\
if (video_debug) \
printk(KERN_INFO "%s %s :"fmt, \
dev->name, __func__ , ##arg); } while (0)

Definition at line 52 of file cx231xx-video.c.

#define DRIVER_AUTHOR   "Srinivasa Deevi <[email protected]>"

Definition at line 49 of file cx231xx-video.c.

#define DRIVER_DESC   "Conexant cx231xx based USB video device driver"

Definition at line 50 of file cx231xx-video.c.

Function Documentation

u32 cx231xx_copy_video_line ( struct cx231xx dev,
struct cx231xx_dmaqueue dma_q,
u8 p_line,
u32  length,
int  field_number 
)

Definition at line 608 of file cx231xx-video.c.

int cx231xx_do_copy ( struct cx231xx dev,
struct cx231xx_dmaqueue dma_q,
u8 p_buffer,
u32  bytes_to_copy 
)

Definition at line 705 of file cx231xx-video.c.

u8 cx231xx_find_boundary_SAV_EAV ( u8 p_buffer,
u8 partial_buf,
u32 p_bytes_used 
)

Definition at line 505 of file cx231xx-video.c.

u8 cx231xx_find_next_SAV_EAV ( u8 p_buffer,
u32  buffer_size,
u32 p_bytes_used 
)

Definition at line 533 of file cx231xx-video.c.

u32 cx231xx_get_video_line ( struct cx231xx dev,
struct cx231xx_dmaqueue dma_q,
u8  sav_eav,
u8 p_buffer,
u32  buffer_size 
)

Definition at line 563 of file cx231xx-video.c.

u8 cx231xx_is_buffer_done ( struct cx231xx dev,
struct cx231xx_dmaqueue dma_q 
)

Definition at line 762 of file cx231xx-video.c.

int cx231xx_register_analog_devices ( struct cx231xx dev)

Definition at line 2584 of file cx231xx-video.c.

void cx231xx_release_analog_resources ( struct cx231xx dev)

Definition at line 2243 of file cx231xx-video.c.

void cx231xx_reset_video_buffer ( struct cx231xx dev,
struct cx231xx_dmaqueue dma_q 
)

Definition at line 673 of file cx231xx-video.c.

void cx231xx_swab ( u16 from,
u16 to,
u16  len 
)

Definition at line 751 of file cx231xx-video.c.

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_LICENSE ( "GPL"  )
module_param ( isoc_debug  ,
int  ,
0644   
)
module_param ( video_debug  ,
int  ,
0644   
)
module_param_array ( card  ,
int  ,
NULL  ,
0444   
)
module_param_array ( video_nr  ,
int  ,
NULL  ,
0444   
)
module_param_array ( vbi_nr  ,
int  ,
NULL  ,
0444   
)
module_param_array ( radio_nr  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( isoc_debug  ,
"enable debug messages "  [isoc transfers] 
)
MODULE_PARM_DESC ( card  ,
"card type  
)
MODULE_PARM_DESC ( video_nr  ,
"video device numbers"   
)
MODULE_PARM_DESC ( vbi_nr  ,
"vbi device numbers"   
)
MODULE_PARM_DESC ( radio_nr  ,
"radio device numbers"   
)
MODULE_PARM_DESC ( video_debug  ,
"enable debug messages "  [video] 
)
MODULE_VERSION ( CX231XX_VERSION  )
void video_mux ( struct cx231xx dev,
int  index 
)

Definition at line 921 of file cx231xx-video.c.