Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tuner-core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/i2c.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/videodev2.h>
#include <media/tuner.h>
#include <media/tuner-types.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include "mt20xx.h"
#include "tda8290.h"
#include "tea5761.h"
#include "tea5767.h"
#include "tuner-xc2028.h"
#include "tuner-simple.h"
#include "tda9887.h"
#include "xc5000.h"
#include "tda18271.h"
#include "xc4000.h"

Go to the source code of this file.

Data Structures

struct  tuner
 

Macros

#define UNSET   (-1U)
 
#define PREFIX   (t->i2c->driver->driver.name)
 
#define tuner_warn(fmt, arg...)
 
#define tuner_info(fmt, arg...)
 
#define tuner_err(fmt, arg...)
 
#define tuner_dbg(fmt, arg...)
 
#define tuner_symbol_probe(FUNCTION, ARGS...)
 

Functions

 module_param (addr, int, 0444)
 
 module_param (no_autodetect, int, 0444)
 
 module_param (show_i2c, int, 0444)
 
 module_param_named (debug, tuner_debug, int, 0644)
 
 module_param_array (tv_range, int, NULL, 0644)
 
 module_param_array (radio_range, int, NULL, 0644)
 
 module_param_string (pal, pal, sizeof(pal), 0644)
 
 module_param_string (secam, secam, sizeof(secam), 0644)
 
 module_param_string (ntsc, ntsc, sizeof(ntsc), 0644)
 
 MODULE_DEVICE_TABLE (i2c, tuner_id)
 
 module_i2c_driver (tuner_driver)
 
 MODULE_DESCRIPTION ("device driver for various TV and TV+FM radio tuners")
 
 MODULE_AUTHOR ("Ralph Metzler, Gerd Knorr, Gunther Mayer")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PREFIX   (t->i2c->driver->driver.name)

Definition at line 46 of file tuner-core.c.

#define tuner_dbg (   fmt,
  arg... 
)
Value:
do { \
if (tuner_debug) \
printk(KERN_DEBUG "%s %d-%04x: " fmt, PREFIX, \
i2c_adapter_id(t->i2c->adapter), \
t->i2c->addr, ##arg); \
} while (0)

Definition at line 105 of file tuner-core.c.

#define tuner_err (   fmt,
  arg... 
)
Value:
do { \
printk(KERN_ERR "%s %d-%04x: " fmt, PREFIX, \
i2c_adapter_id(t->i2c->adapter), \
t->i2c->addr, ##arg); \
} while (0)

Definition at line 99 of file tuner-core.c.

#define tuner_info (   fmt,
  arg... 
)
Value:
do { \
printk(KERN_INFO "%s %d-%04x: " fmt, PREFIX, \
i2c_adapter_id(t->i2c->adapter), \
t->i2c->addr, ##arg); \
} while (0)

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

#define tuner_symbol_probe (   FUNCTION,
  ARGS... 
)
Value:
({ \
FUNCTION(ARGS); \
})

Definition at line 177 of file tuner-core.c.

#define tuner_warn (   fmt,
  arg... 
)
Value:
do { \
printk(KERN_WARNING "%s %d-%04x: " fmt, PREFIX, \
i2c_adapter_id(t->i2c->adapter), \
t->i2c->addr, ##arg); \
} while (0)

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

#define UNSET   (-1U)

Definition at line 44 of file tuner-core.c.

Function Documentation

MODULE_AUTHOR ( "Ralph  Metzler,
Gerd  Knorr,
Gunther Mayer"   
)
MODULE_DESCRIPTION ( "device driver for various TV and TV+FM radio tuners )
MODULE_DEVICE_TABLE ( i2c  ,
tuner_id   
)
module_i2c_driver ( tuner_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( addr  ,
int  ,
0444   
)
module_param ( no_autodetect  ,
int  ,
0444   
)
module_param ( show_i2c  ,
int  ,
0444   
)
module_param_array ( tv_range  ,
int  ,
NULL  ,
0644   
)
module_param_array ( radio_range  ,
int  ,
NULL  ,
0644   
)
module_param_named ( debug  ,
tuner_debug  ,
int  ,
0644   
)
module_param_string ( pal  ,
pal  ,
sizeof(pal ,
0644   
)
module_param_string ( secam  ,
secam  ,
sizeof(secam)  ,
0644   
)
module_param_string ( ntsc  ,
ntsc  ,
sizeof(ntsc ,
0644   
)