Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tda18271-fe.c File Reference
#include <linux/delay.h>
#include <linux/videodev2.h>
#include "tda18271-priv.h"

Go to the source code of this file.

Macros

#define RF1   0
 
#define RF2   1
 
#define RF3   2
 
#define tda18271_update_std(std_cfg, name)
 
#define tda18271_dump_std_item(std_cfg, name)
 

Functions

 module_param_named (debug, tda18271_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"set debug level ""(info=1, map=2, reg=4, adv=8, cal=16 (or-able))")
 
 module_param_named (cal, tda18271_cal_on_startup, int, 0644)
 
 MODULE_PARM_DESC (cal,"perform RF tracking filter calibration on startup")
 
struct dvb_frontendtda18271_attach (struct dvb_frontend *fe, u8 addr, struct i2c_adapter *i2c, struct tda18271_config *cfg)
 
 EXPORT_SYMBOL_GPL (tda18271_attach)
 
 MODULE_DESCRIPTION ("NXP TDA18271HD analog / digital tuner driver")
 
 MODULE_AUTHOR ("Michael Krufky <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.4")
 

Variables

int tda18271_debug
 

Macro Definition Documentation

#define RF1   0
#define RF2   1
#define RF3   2
#define tda18271_dump_std_item (   std_cfg,
  name 
)
Value:
do { \
tda_dbg("(%s) if_freq = %d, agc_mode = %d, std = %d, " \
"if_lvl = %d, rfagc_top = 0x%02x\n", \
name, std->std_cfg.if_freq, \
std->std_cfg.agc_mode, std->std_cfg.std, \
std->std_cfg.if_lvl, std->std_cfg.rfagc_top); \
} while (0)

Definition at line 1098 of file tda18271-fe.c.

#define tda18271_update_std (   std_cfg,
  name 
)
Value:
do { \
if (map->std_cfg.if_freq + \
map->std_cfg.agc_mode + map->std_cfg.std + \
map->std_cfg.if_lvl + map->std_cfg.rfagc_top > 0) { \
tda_dbg("Using custom std config for %s\n", name); \
memcpy(&std->std_cfg, &map->std_cfg, \
sizeof(struct tda18271_std_map_item)); \
} } while (0)

Definition at line 1089 of file tda18271-fe.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tda18271_attach  )
MODULE_AUTHOR ( "Michael Krufky <[email protected]>"  )
MODULE_DESCRIPTION ( "NXP TDA18271HD analog / digital tuner driver )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
tda18271_debug  ,
int  ,
0644   
)
module_param_named ( cal  ,
tda18271_cal_on_startup  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"set debug level ""(info=1, map=2, reg=4, adv=8, cal=16 (or-able))"   
)
MODULE_PARM_DESC ( cal  ,
"perform RF tracking filter calibration on startup"   
)
MODULE_VERSION ( "0.4"  )
struct dvb_frontend* tda18271_attach ( struct dvb_frontend fe,
u8  addr,
struct i2c_adapter i2c,
struct tda18271_config cfg 
)
read

Definition at line 1257 of file tda18271-fe.c.

Variable Documentation

int tda18271_debug

Definition at line 25 of file tda18271-fe.c.