Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tda9887.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <media/tuner.h>
#include "tuner-i2c.h"
#include "tda9887.h"

Go to the source code of this file.

Data Structures

struct  tda9887_priv
 
struct  tvnorm
 

Macros

#define UNSET   (-1U)
 
#define cVideoTrapBypassOFF   0x00
 
#define cVideoTrapBypassON   0x01
 
#define cAutoMuteFmInactive   0x00
 
#define cAutoMuteFmActive   0x02
 
#define cIntercarrier   0x00
 
#define cQSS   0x04
 
#define cPositiveAmTV   0x00
 
#define cFmRadio   0x08
 
#define cNegativeFmTV   0x10
 
#define cForcedMuteAudioON   0x20
 
#define cForcedMuteAudioOFF   0x00
 
#define cOutputPort1Active   0x00
 
#define cOutputPort1Inactive   0x40
 
#define cOutputPort2Active   0x00
 
#define cOutputPort2Inactive   0x80
 
#define cDeemphasisOFF   0x00
 
#define cDeemphasisON   0x20
 
#define cDeemphasis75   0x00
 
#define cDeemphasis50   0x40
 
#define cAudioGain0   0x00
 
#define cAudioGain6   0x80
 
#define cTopMask   0x1f
 
#define cTopDefault   0x10
 
#define cAudioIF_4_5   0x00
 
#define cAudioIF_5_5   0x01
 
#define cAudioIF_6_0   0x02
 
#define cAudioIF_6_5   0x03
 
#define cVideoIFMask   0x1c
 
#define cVideoIF_58_75   0x00
 
#define cVideoIF_45_75   0x04
 
#define cVideoIF_38_90   0x08
 
#define cVideoIF_38_00   0x0C
 
#define cVideoIF_33_90   0x10
 
#define cVideoIF_33_40   0x14
 
#define cRadioIF_45_75   0x18
 
#define cRadioIF_38_90   0x1C
 
#define cRadioIF_33_30   0x00
 
#define cRadioIF_41_30   0x04
 
#define cRadioAGC_SIF   0x00
 
#define cRadioAGC_FM   0x08
 
#define cTunerGainNormal   0x00
 
#define cTunerGainLow   0x20
 
#define cGating_18   0x00
 
#define cGating_36   0x40
 
#define cAgcOutON   0x80
 
#define cAgcOutOFF   0x00
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable verbose debug messages")
 
 module_param (port1, int, 0644)
 
 module_param (port2, int, 0644)
 
 module_param (qss, int, 0644)
 
 module_param (adjust, int, 0644)
 
struct dvb_frontendtda9887_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c_adap, u8 i2c_addr)
 
 EXPORT_SYMBOL_GPL (tda9887_attach)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define cAgcOutOFF   0x00

Definition at line 132 of file tda9887.c.

#define cAgcOutON   0x80

Definition at line 131 of file tda9887.c.

#define cAudioGain0   0x00

Definition at line 93 of file tda9887.c.

#define cAudioGain6   0x80

Definition at line 94 of file tda9887.c.

#define cAudioIF_4_5   0x00

Definition at line 100 of file tda9887.c.

#define cAudioIF_5_5   0x01

Definition at line 101 of file tda9887.c.

#define cAudioIF_6_0   0x02

Definition at line 102 of file tda9887.c.

#define cAudioIF_6_5   0x03

Definition at line 103 of file tda9887.c.

#define cAutoMuteFmActive   0x02

Definition at line 66 of file tda9887.c.

#define cAutoMuteFmInactive   0x00

Definition at line 65 of file tda9887.c.

#define cDeemphasis50   0x40

Definition at line 91 of file tda9887.c.

#define cDeemphasis75   0x00

Definition at line 90 of file tda9887.c.

#define cDeemphasisOFF   0x00

Definition at line 87 of file tda9887.c.

#define cDeemphasisON   0x20

Definition at line 88 of file tda9887.c.

#define cFmRadio   0x08

Definition at line 72 of file tda9887.c.

#define cForcedMuteAudioOFF   0x00

Definition at line 77 of file tda9887.c.

#define cForcedMuteAudioON   0x20

Definition at line 76 of file tda9887.c.

#define cGating_18   0x00

Definition at line 128 of file tda9887.c.

#define cGating_36   0x40

Definition at line 129 of file tda9887.c.

#define cIntercarrier   0x00

Definition at line 68 of file tda9887.c.

#define cNegativeFmTV   0x10

Definition at line 73 of file tda9887.c.

#define cOutputPort1Active   0x00

Definition at line 79 of file tda9887.c.

#define cOutputPort1Inactive   0x40

Definition at line 80 of file tda9887.c.

#define cOutputPort2Active   0x00

Definition at line 82 of file tda9887.c.

#define cOutputPort2Inactive   0x80

Definition at line 83 of file tda9887.c.

#define cPositiveAmTV   0x00

Definition at line 71 of file tda9887.c.

#define cQSS   0x04

Definition at line 69 of file tda9887.c.

#define cRadioAGC_FM   0x08

Definition at line 123 of file tda9887.c.

#define cRadioAGC_SIF   0x00

Definition at line 122 of file tda9887.c.

#define cRadioIF_33_30   0x00

Definition at line 118 of file tda9887.c.

#define cRadioIF_38_90   0x1C

Definition at line 115 of file tda9887.c.

#define cRadioIF_41_30   0x04

Definition at line 119 of file tda9887.c.

#define cRadioIF_45_75   0x18

Definition at line 114 of file tda9887.c.

#define cTopDefault   0x10

Definition at line 97 of file tda9887.c.

#define cTopMask   0x1f

Definition at line 96 of file tda9887.c.

#define cTunerGainLow   0x20

Definition at line 126 of file tda9887.c.

#define cTunerGainNormal   0x00

Definition at line 125 of file tda9887.c.

#define cVideoIF_33_40   0x14

Definition at line 113 of file tda9887.c.

#define cVideoIF_33_90   0x10

Definition at line 112 of file tda9887.c.

#define cVideoIF_38_00   0x0C

Definition at line 111 of file tda9887.c.

#define cVideoIF_38_90   0x08

Definition at line 110 of file tda9887.c.

#define cVideoIF_45_75   0x04

Definition at line 109 of file tda9887.c.

#define cVideoIF_58_75   0x00

Definition at line 108 of file tda9887.c.

#define cVideoIFMask   0x1c

Definition at line 106 of file tda9887.c.

#define cVideoTrapBypassOFF   0x00

Definition at line 62 of file tda9887.c.

#define cVideoTrapBypassON   0x01

Definition at line 63 of file tda9887.c.

#define UNSET   (-1U)

Definition at line 45 of file tda9887.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tda9887_attach  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( port1  ,
int  ,
0644   
)
module_param ( port2  ,
int  ,
0644   
)
module_param ( qss  ,
int  ,
0644   
)
module_param ( adjust  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"enable verbose debug messages"   
)
struct dvb_frontend* tda9887_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c_adap,
u8  i2c_addr 
)
read

Definition at line 674 of file tda9887.c.