#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.
|
| 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) |
|
#define cErrCorrection2Bits 0x08 |
#define cErrCorrection5Bits 0x10 |
#define cErrCorrectionNone 0x00 |
#define cErrCorrectionNoneRBDS 0x18 |
#define cFlywheelDefault 0x20 |
#define cFlywheelMaxBlocksMask 0x3F |
#define cModeInvalid 0x03 |
#define cModeReducedRequest 0x02 |
#define cModeStandard 0x00 |
#define cOscFreq_12996kHz 0x80 |
#define cOscFreq_17328kHz 0xC0 |
#define cOscFreq_4332kHz 0x00 |
#define cOscFreq_8664kHz 0x40 |
#define cPauseLevel_11mV 0x00 |
#define cPauseLevel_17mV 0x40 |
#define cPauseLevel_27mV 0x80 |
#define cPauseLevel_43mV 0xC0 |
#define cProcessingModeRBDS 0x04 |
#define cProcessingModeRDS 0x00 |
#define cQualityDetectDefault 0x0F |
#define cQualityDetectSensMask 0x1F |
#define cSelectOscFreqOFF 0x00 |
#define cSelectOscFreqON 0x20 |
#define cSigQualityContinous 0x80 |
#define cSigQualityDetectOFF 0x00 |
#define cSigQualityDetectON 0x40 |
#define cSigQualityTriggered 0x00 |
#define cSyncRestart 0x20 |
#define PREFIX "saa6588: " |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
saa6588_id |
|
|
) |
| |
module_i2c_driver |
( |
saa6588_driver |
| ) |
|
module_param |
( |
mmbs |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
plvl |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
bufblocks |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
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" |
|
|
) |
| |