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

Go to the source code of this file.

Data Structures

struct  tea5767_priv
 

Macros

#define TEA5767_MUTE   0x80 /* Mutes output */
 
#define TEA5767_SEARCH   0x40 /* Activates station search */
 
#define TEA5767_SEARCH_UP   0x80
 
#define TEA5767_SRCH_HIGH_LVL   0x60
 
#define TEA5767_SRCH_MID_LVL   0x40
 
#define TEA5767_SRCH_LOW_LVL   0x20
 
#define TEA5767_HIGH_LO_INJECT   0x10
 
#define TEA5767_MONO   0x08
 
#define TEA5767_MUTE_RIGHT   0x04
 
#define TEA5767_MUTE_LEFT   0x02
 
#define TEA5767_PORT1_HIGH   0x01
 
#define TEA5767_PORT2_HIGH   0x80
 
#define TEA5767_STDBY   0x40
 
#define TEA5767_JAPAN_BAND   0x20
 
#define TEA5767_XTAL_32768   0x10
 
#define TEA5767_SOFT_MUTE   0x08
 
#define TEA5767_HIGH_CUT_CTRL   0x04
 
#define TEA5767_ST_NOISE_CTL   0x02
 
#define TEA5767_SRCH_IND   0x01
 
#define TEA5767_PLLREF_ENABLE   0x80
 
#define TEA5767_DEEMPH_75   0X40
 
#define TEA5767_READY_FLAG_MASK   0x80
 
#define TEA5767_BAND_LIMIT_MASK   0X40
 
#define TEA5767_STEREO_MASK   0x80
 
#define TEA5767_IF_CNTR_MASK   0x7f
 
#define TEA5767_ADC_LEVEL_MASK   0xf0
 
#define TEA5767_CHIP_ID_MASK   0x0f
 
#define TEA5767_RESERVED_MASK   0xff
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable verbose debug messages")
 
int tea5767_autodetection (struct i2c_adapter *i2c_adap, u8 i2c_addr)
 
struct dvb_frontendtea5767_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c_adap, u8 i2c_addr)
 
 EXPORT_SYMBOL_GPL (tea5767_attach)
 
 EXPORT_SYMBOL_GPL (tea5767_autodetection)
 
 MODULE_DESCRIPTION ("Philips TEA5767 FM tuner driver")
 
 MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define TEA5767_ADC_LEVEL_MASK   0xf0

Definition at line 122 of file tea5767.c.

#define TEA5767_BAND_LIMIT_MASK   0X40

Definition at line 111 of file tea5767.c.

#define TEA5767_CHIP_ID_MASK   0x0f

Definition at line 125 of file tea5767.c.

#define TEA5767_DEEMPH_75   0X40

Definition at line 103 of file tea5767.c.

#define TEA5767_HIGH_CUT_CTRL   0x04

Definition at line 89 of file tea5767.c.

#define TEA5767_HIGH_LO_INJECT   0x10

Definition at line 61 of file tea5767.c.

#define TEA5767_IF_CNTR_MASK   0x7f

Definition at line 119 of file tea5767.c.

#define TEA5767_JAPAN_BAND   0x20

Definition at line 80 of file tea5767.c.

#define TEA5767_MONO   0x08

Definition at line 64 of file tea5767.c.

#define TEA5767_MUTE   0x80 /* Mutes output */

Definition at line 39 of file tea5767.c.

#define TEA5767_MUTE_LEFT   0x02

Definition at line 70 of file tea5767.c.

#define TEA5767_MUTE_RIGHT   0x04

Definition at line 67 of file tea5767.c.

#define TEA5767_PLLREF_ENABLE   0x80

Definition at line 100 of file tea5767.c.

#define TEA5767_PORT1_HIGH   0x01

Definition at line 72 of file tea5767.c.

#define TEA5767_PORT2_HIGH   0x80

Definition at line 75 of file tea5767.c.

#define TEA5767_READY_FLAG_MASK   0x80

Definition at line 110 of file tea5767.c.

#define TEA5767_RESERVED_MASK   0xff

Definition at line 129 of file tea5767.c.

#define TEA5767_SEARCH   0x40 /* Activates station search */

Definition at line 40 of file tea5767.c.

#define TEA5767_SEARCH_UP   0x80

Definition at line 49 of file tea5767.c.

#define TEA5767_SOFT_MUTE   0x08

Definition at line 86 of file tea5767.c.

#define TEA5767_SRCH_HIGH_LVL   0x60

Definition at line 52 of file tea5767.c.

#define TEA5767_SRCH_IND   0x01

Definition at line 95 of file tea5767.c.

#define TEA5767_SRCH_LOW_LVL   0x20

Definition at line 58 of file tea5767.c.

#define TEA5767_SRCH_MID_LVL   0x40

Definition at line 55 of file tea5767.c.

#define TEA5767_ST_NOISE_CTL   0x02

Definition at line 92 of file tea5767.c.

#define TEA5767_STDBY   0x40

Definition at line 77 of file tea5767.c.

#define TEA5767_STEREO_MASK   0x80

Definition at line 118 of file tea5767.c.

#define TEA5767_XTAL_32768   0x10

Definition at line 83 of file tea5767.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tea5767_attach  )
EXPORT_SYMBOL_GPL ( tea5767_autodetection  )
MODULE_AUTHOR ( "Mauro Carvalho Chehab <[email protected]>"  )
MODULE_DESCRIPTION ( "Philips TEA5767 FM tuner driver )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"enable verbose debug messages"   
)
struct dvb_frontend* tea5767_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c_adap,
u8  i2c_addr 
)
read

Definition at line 440 of file tea5767.c.

int tea5767_autodetection ( struct i2c_adapter i2c_adap,
u8  i2c_addr 
)

Definition at line 369 of file tea5767.c.