Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
saa6588.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/wait.h>
#include <asm/uaccess.h>
#include <media/saa6588.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>

Go to the source code of this file.

Data Structures

struct  saa6588
 

Macros

#define UNSET   (-1U)
 
#define PREFIX   "saa6588: "
 
#define dprintk   if (debug) printk
 
#define cModeStandard   0x00
 
#define cModeFastPI   0x01
 
#define cModeReducedRequest   0x02
 
#define cModeInvalid   0x03
 
#define cProcessingModeRDS   0x00
 
#define cProcessingModeRBDS   0x04
 
#define cErrCorrectionNone   0x00
 
#define cErrCorrection2Bits   0x08
 
#define cErrCorrection5Bits   0x10
 
#define cErrCorrectionNoneRBDS   0x18
 
#define cSyncNormal   0x00
 
#define cSyncRestart   0x20
 
#define cSigQualityDetectOFF   0x00
 
#define cSigQualityDetectON   0x40
 
#define cSigQualityTriggered   0x00
 
#define cSigQualityContinous   0x80
 
#define cFlywheelMaxBlocksMask   0x3F
 
#define cFlywheelDefault   0x20
 
#define cPauseLevel_11mV   0x00
 
#define cPauseLevel_17mV   0x40
 
#define cPauseLevel_27mV   0x80
 
#define cPauseLevel_43mV   0xC0
 
#define cQualityDetectSensMask   0x1F
 
#define cQualityDetectDefault   0x0F
 
#define cSelectOscFreqOFF   0x00
 
#define cSelectOscFreqON   0x20
 
#define cOscFreq_4332kHz   0x00
 
#define cOscFreq_8664kHz   0x40
 
#define cOscFreq_12996kHz   0x80
 
#define cOscFreq_17328kHz   0xC0
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable debug messages")
 
 module_param (xtal, int, 0)
 
 MODULE_PARM_DESC (xtal,"select oscillator frequency (0..3), default 0")
 
 module_param (mmbs, int, 0)
 
 MODULE_PARM_DESC (mmbs,"enable MMBS mode: 0=off (default), 1=on")
 
 module_param (plvl, int, 0)
 
 MODULE_PARM_DESC (plvl,"select pause level (0..3), default 0")
 
 module_param (bufblocks, int, 0)
 
 MODULE_PARM_DESC (bufblocks,"number of buffered blocks, default 100")
 
 MODULE_DESCRIPTION ("v4l2 driver module for SAA6588 RDS decoder")
 
 MODULE_AUTHOR ("Hans J. Koch <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (i2c, saa6588_id)
 
 module_i2c_driver (saa6588_driver)
 

Macro Definition Documentation

#define cErrCorrection2Bits   0x08

Definition at line 108 of file saa6588.c.

#define cErrCorrection5Bits   0x10

Definition at line 109 of file saa6588.c.

#define cErrCorrectionNone   0x00

Definition at line 107 of file saa6588.c.

#define cErrCorrectionNoneRBDS   0x18

Definition at line 110 of file saa6588.c.

#define cFlywheelDefault   0x20

Definition at line 128 of file saa6588.c.

#define cFlywheelMaxBlocksMask   0x3F

Definition at line 127 of file saa6588.c.

#define cModeFastPI   0x01

Definition at line 98 of file saa6588.c.

#define cModeInvalid   0x03

Definition at line 100 of file saa6588.c.

#define cModeReducedRequest   0x02

Definition at line 99 of file saa6588.c.

#define cModeStandard   0x00

Definition at line 97 of file saa6588.c.

#define cOscFreq_12996kHz   0x80

Definition at line 149 of file saa6588.c.

#define cOscFreq_17328kHz   0xC0

Definition at line 150 of file saa6588.c.

#define cOscFreq_4332kHz   0x00

Definition at line 147 of file saa6588.c.

#define cOscFreq_8664kHz   0x40

Definition at line 148 of file saa6588.c.

#define cPauseLevel_11mV   0x00

Definition at line 131 of file saa6588.c.

#define cPauseLevel_17mV   0x40

Definition at line 132 of file saa6588.c.

#define cPauseLevel_27mV   0x80

Definition at line 133 of file saa6588.c.

#define cPauseLevel_43mV   0xC0

Definition at line 134 of file saa6588.c.

#define cProcessingModeRBDS   0x04

Definition at line 104 of file saa6588.c.

#define cProcessingModeRDS   0x00

Definition at line 103 of file saa6588.c.

#define cQualityDetectDefault   0x0F

Definition at line 140 of file saa6588.c.

#define cQualityDetectSensMask   0x1F

Definition at line 139 of file saa6588.c.

#define cSelectOscFreqOFF   0x00

Definition at line 143 of file saa6588.c.

#define cSelectOscFreqON   0x20

Definition at line 144 of file saa6588.c.

#define cSigQualityContinous   0x80

Definition at line 122 of file saa6588.c.

#define cSigQualityDetectOFF   0x00

Definition at line 117 of file saa6588.c.

#define cSigQualityDetectON   0x40

Definition at line 118 of file saa6588.c.

#define cSigQualityTriggered   0x00

Definition at line 121 of file saa6588.c.

#define cSyncNormal   0x00

Definition at line 113 of file saa6588.c.

#define cSyncRestart   0x20

Definition at line 114 of file saa6588.c.

#define dprintk   if (debug) printk

Definition at line 66 of file saa6588.c.

#define PREFIX   "saa6588: "

Definition at line 65 of file saa6588.c.

#define UNSET   (-1U)

Definition at line 64 of file saa6588.c.

Function Documentation

MODULE_AUTHOR ( "Hans J. Koch <[email protected]>"  )
MODULE_DESCRIPTION ( "v4l2 driver module for SAA6588 RDS decoder"  )
MODULE_DEVICE_TABLE ( i2c  ,
saa6588_id   
)
module_i2c_driver ( saa6588_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( xtal  ,
int  ,
 
)
module_param ( mmbs  ,
int  ,
 
)
module_param ( plvl  ,
int  ,
 
)
module_param ( bufblocks  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"enable debug messages"   
)
MODULE_PARM_DESC ( xtal  ,
"select oscillator frequency   0..3,
default 0"   
)
MODULE_PARM_DESC ( mmbs  ,
"enable MMBS mode:  0 = off (default) 
)
MODULE_PARM_DESC ( plvl  ,
"select pause level   0..3,
default 0"   
)
MODULE_PARM_DESC ( bufblocks  ,
"number of buffered  blocks,
default 100"   
)