#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
#include <media/tuner.h>
#include "tuner-i2c.h"
#include "tea5761.h"
static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
struct tea5761_priv { … };
#define TEA5761_INTREG_IFFLAG …
#define TEA5761_INTREG_LEVFLAG …
#define TEA5761_INTREG_FRRFLAG …
#define TEA5761_INTREG_BLFLAG …
#define TEA5761_INTREG_IFMSK …
#define TEA5761_INTREG_LEVMSK …
#define TEA5761_INTREG_FRMSK …
#define TEA5761_INTREG_BLMSK …
#define TEA5761_FRQSET_SEARCH_UP …
#define TEA5761_FRQSET_SEARCH_MODE …
#define TEA5761_TNCTRL_PUPD_0 …
#define TEA5761_TNCTRL_BLIM …
#define TEA5761_TNCTRL_SWPM …
#define TEA5761_TNCTRL_IFCTC …
#define TEA5761_TNCTRL_AFM …
#define TEA5761_TNCTRL_SMUTE …
#define TEA5761_TNCTRL_SNC …
#define TEA5761_TNCTRL_MU …
#define TEA5761_TNCTRL_SSL_1 …
#define TEA5761_TNCTRL_SSL_0 …
#define TEA5761_TNCTRL_HLSI …
#define TEA5761_TNCTRL_MST …
#define TEA5761_TNCTRL_SWP …
#define TEA5761_TNCTRL_DTC …
#define TEA5761_TNCTRL_AHLSI …
#define TEA5761_TUNCHECK_IF_MASK …
#define TEA5761_TUNCHECK_TUNTO …
#define TEA5761_TUNCHECK_LEV_MASK …
#define TEA5761_TUNCHECK_LD …
#define TEA5761_TUNCHECK_STEREO …
#define TEA5767_MANID_VERSION_MASK …
#define TEA5767_MANID_ID_MSB_MASK …
#define TEA5767_MANID_ID_LSB_MASK …
#define TEA5767_MANID_IDAV …
#define FREQ_OFFSET …
static void tea5761_status_dump(unsigned char *buffer)
{ … }
static int __set_radio_freq(struct dvb_frontend *fe,
unsigned int freq,
bool mono)
{ … }
static int set_radio_freq(struct dvb_frontend *fe,
struct analog_parameters *params)
{ … }
static int set_radio_sleep(struct dvb_frontend *fe)
{ … }
static int tea5761_read_status(struct dvb_frontend *fe, char *buffer)
{ … }
static inline int tea5761_signal(struct dvb_frontend *fe, const char *buffer)
{ … }
static inline int tea5761_stereo(struct dvb_frontend *fe, const char *buffer)
{ … }
static int tea5761_get_status(struct dvb_frontend *fe, u32 *status)
{ … }
static int tea5761_get_rf_strength(struct dvb_frontend *fe, u16 *strength)
{ … }
int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr)
{ … }
static void tea5761_release(struct dvb_frontend *fe)
{ … }
static int tea5761_get_frequency(struct dvb_frontend *fe, u32 *frequency)
{ … }
static const struct dvb_tuner_ops tea5761_tuner_ops = …;
struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
struct i2c_adapter* i2c_adap,
u8 i2c_addr)
{ … }
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;