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

Go to the source code of this file.

Data Structures

struct  tuner_simple_priv
 

Macros

#define TUNER_SIMPLE_MAX   64
 
#define TEMIC_SET_PAL_I   0x05
 
#define TEMIC_SET_PAL_DK   0x09
 
#define TEMIC_SET_PAL_L   0x0a /* SECAM ? */
 
#define TEMIC_SET_PAL_L2   0x0b /* change IF ! */
 
#define TEMIC_SET_PAL_BG   0x0c
 
#define PHILIPS_SET_PAL_I   0x01 /* Bit 2 always zero !*/
 
#define PHILIPS_SET_PAL_BGDK   0x09
 
#define PHILIPS_SET_PAL_L2   0x0a
 
#define PHILIPS_SET_PAL_L   0x0b
 
#define PHILIPS_MF_SET_STD_BG   0x01 /* Bit 2 must be zero, Bit 3 is system output */
 
#define PHILIPS_MF_SET_STD_L   0x03 /* Used on Secam France */
 
#define PHILIPS_MF_SET_STD_LC   0x02 /* Used on SECAM L' */
 
#define TUNER_RATIO_MASK   0x06 /* Bit cb1:cb2 */
 
#define TUNER_RATIO_SELECT_50   0x00
 
#define TUNER_RATIO_SELECT_32   0x02
 
#define TUNER_RATIO_SELECT_166   0x04
 
#define TUNER_RATIO_SELECT_62   0x06
 
#define TUNER_CHARGE_PUMP   0x40 /* Bit cb6 */
 
#define TUNER_POR   0x80
 
#define TUNER_FL   0x40
 
#define TUNER_MODE   0x38
 
#define TUNER_AFC   0x07
 
#define TUNER_SIGNAL   0x07
 
#define TUNER_STEREO   0x10
 
#define TUNER_PLL_LOCKED   0x40
 
#define TUNER_STEREO_MK3   0x04
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable verbose debug messages")
 
 module_param (offset, int, 0664)
 
 MODULE_PARM_DESC (offset,"Allows to specify an offset for tuner")
 
 module_param_array (atv_input, int, NULL, 0644)
 
 module_param_array (dtv_input, int, NULL, 0644)
 
 MODULE_PARM_DESC (atv_input,"specify atv rf input, 0 for autoselect")
 
 MODULE_PARM_DESC (dtv_input,"specify dtv rf input, 0 for autoselect")
 
struct dvb_frontendsimple_tuner_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c_adap, u8 i2c_addr, unsigned int type)
 
 EXPORT_SYMBOL_GPL (simple_tuner_attach)
 
 MODULE_DESCRIPTION ("Simple 4-control-bytes style tuner driver")
 
 MODULE_AUTHOR ("Ralph Metzler, Gerd Knorr, Gunther Mayer")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PHILIPS_MF_SET_STD_BG   0x01 /* Bit 2 must be zero, Bit 3 is system output */

Definition at line 77 of file tuner-simple.c.

#define PHILIPS_MF_SET_STD_L   0x03 /* Used on Secam France */

Definition at line 78 of file tuner-simple.c.

#define PHILIPS_MF_SET_STD_LC   0x02 /* Used on SECAM L' */

Definition at line 79 of file tuner-simple.c.

#define PHILIPS_SET_PAL_BGDK   0x09

Definition at line 64 of file tuner-simple.c.

#define PHILIPS_SET_PAL_I   0x01 /* Bit 2 always zero !*/

Definition at line 63 of file tuner-simple.c.

#define PHILIPS_SET_PAL_L   0x0b

Definition at line 66 of file tuner-simple.c.

#define PHILIPS_SET_PAL_L2   0x0a

Definition at line 65 of file tuner-simple.c.

#define TEMIC_SET_PAL_BG   0x0c

Definition at line 51 of file tuner-simple.c.

#define TEMIC_SET_PAL_DK   0x09

Definition at line 48 of file tuner-simple.c.

#define TEMIC_SET_PAL_I   0x05

Definition at line 47 of file tuner-simple.c.

#define TEMIC_SET_PAL_L   0x0a /* SECAM ? */

Definition at line 49 of file tuner-simple.c.

#define TEMIC_SET_PAL_L2   0x0b /* change IF ! */

Definition at line 50 of file tuner-simple.c.

#define TUNER_AFC   0x07

Definition at line 96 of file tuner-simple.c.

#define TUNER_CHARGE_PUMP   0x40 /* Bit cb6 */

Definition at line 89 of file tuner-simple.c.

#define TUNER_FL   0x40

Definition at line 94 of file tuner-simple.c.

#define TUNER_MODE   0x38

Definition at line 95 of file tuner-simple.c.

#define TUNER_PLL_LOCKED   0x40

Definition at line 100 of file tuner-simple.c.

#define TUNER_POR   0x80

Definition at line 93 of file tuner-simple.c.

#define TUNER_RATIO_MASK   0x06 /* Bit cb1:cb2 */

Definition at line 83 of file tuner-simple.c.

#define TUNER_RATIO_SELECT_166   0x04

Definition at line 86 of file tuner-simple.c.

#define TUNER_RATIO_SELECT_32   0x02

Definition at line 85 of file tuner-simple.c.

#define TUNER_RATIO_SELECT_50   0x00

Definition at line 84 of file tuner-simple.c.

#define TUNER_RATIO_SELECT_62   0x06

Definition at line 87 of file tuner-simple.c.

#define TUNER_SIGNAL   0x07

Definition at line 97 of file tuner-simple.c.

#define TUNER_SIMPLE_MAX   64

Definition at line 20 of file tuner-simple.c.

#define TUNER_STEREO   0x10

Definition at line 98 of file tuner-simple.c.

#define TUNER_STEREO_MK3   0x04

Definition at line 101 of file tuner-simple.c.

Function Documentation

EXPORT_SYMBOL_GPL ( simple_tuner_attach  )
MODULE_AUTHOR ( "Ralph  Metzler,
Gerd  Knorr,
Gunther Mayer"   
)
MODULE_DESCRIPTION ( "Simple 4-control-bytes style tuner driver )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( offset  ,
int  ,
0664   
)
module_param_array ( atv_input  ,
int  ,
NULL  ,
0644   
)
module_param_array ( dtv_input  ,
int  ,
NULL  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"enable verbose debug messages"   
)
MODULE_PARM_DESC ( offset  ,
"Allows to specify an offset for tuner  
)
MODULE_PARM_DESC ( atv_input  ,
"specify atv rf  input,
0 for autoselect"   
)
MODULE_PARM_DESC ( dtv_input  ,
"specify dtv rf  input,
0 for autoselect"   
)
struct dvb_frontend* simple_tuner_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c_adap,
u8  i2c_addr,
unsigned int  type 
)
read

Definition at line 1048 of file tuner-simple.c.