tuner.h revision 1da177e4c3f41524e886b7f1b8a0c1fc7321cac
11da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
21da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
31da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    tuner.h - definition for different tuners
41da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
51da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de)
61da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    minor modifications by Ralph Metzler (rjkm@thp.uni-koeln.de)
71da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
81da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    This program is free software; you can redistribute it and/or modify
91da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    it under the terms of the GNU General Public License as published by
101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    the Free Software Foundation; either version 2 of the License, or
111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    (at your option) any later version.
121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    This program is distributed in the hope that it will be useful,
141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    but WITHOUT ANY WARRANTY; without even the implied warranty of
151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    GNU General Public License for more details.
171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    You should have received a copy of the GNU General Public License
191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    along with this program; if not, write to the Free Software
201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds*/
221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef _TUNER_H
241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define _TUNER_H
251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#include "id.h"
271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL     0        /* 4002 FH5 (3X 7756, 9483) */
291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_I 1
301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_NTSC  2
311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_SECAM 3		/* you must actively select B/G, L, L` */
321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ABSENT        4
341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL   5
351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_NTSC    6        /* 4032 FY5 (3X 7004, 9498, 9789)  */
361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL_I   7        /* 4062 FY5 (3X 8501, 9957)        */
371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4036FY5_NTSC 8   /* 4036 FY5 (3X 1223, 1981, 7686)  */
391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBH1_NTSC 	 9
401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBE1_PAL 	10
411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBB5_PAL_I 	11
421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBE5_PAL 	12
441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBC5_PAL 	13
451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4006FH5_PAL	14   /* 4006 FH5 (3X 9500, 9501, 7291)     */
461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSHC6_NTSC 	15
471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL_DK	16   /* 4016 FY5 (3X 1392, 1393)     */
491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_NTSC_M	17
501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4066FY5_PAL_I       18  /* 4066 FY5 (3X 7032, 7035) */
511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4006FN5_MULTI_PAL   19  /* B/G, I and D/K autodetected (3X 7595, 7606, 7657)*/
521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4009FR5_PAL         20  /* incl. FM radio (3X 7607, 7488, 7711)*/
541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4039FR5_NTSC        21  /* incl. FM radio (3X 7246, 7578, 7732)*/
551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4046FM5             22  /* you must actively select B/G, D/K, I, L, L` !  (3X 7804, 7806, 8103, 8104)*/
561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_DK		23
571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1216ME		24  /* you must actively select B/G/D/K, I, L, L` */
591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_I_FM	25
601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_I		26
611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_FM	27
621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_FM		28
641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL		29
651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4009FN5_MULTI_PAL_FM	30  /* B/G, I and D/K autodetected (3X 8155, 8160, 8163)*/
661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SHARP_2U5JF5540_NTSC  31
671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_Samsung_PAL_TCPM9091PD27 32
691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MT2032 33
701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4106FH5 	34	/* 4106 FH5 (3X 7808, 7865)*/
711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4012FY5	35	/* 4012 FY5 (3X 0971, 1099)*/
721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4136FY5	36	/* 4136 FY5 (3X 7708, 7746)*/
741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_NEW_TAPC   37
751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1216ME_MK3  38
761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_NEW_TAPC   39
771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_HITACHI_NTSC       40
791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_MK     41
801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_ATSC       42
811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1236_MK3 43
821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_4IN1       44	/* ATI TV Wonder Pro - Conexant */
841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* Microtune mergeged with Temic 12/31/1999 partially financed by Alps - these may be similar to Temic */
851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MICROTUNE_4049FM5  45
861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_TAPE       47
871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TNF_8831BGFF       48
891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MICROTUNE_4042FI5  49	/* FusionHDTV 3 Gold - 4042 FI5 (3X 8147) */
901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TCL_2002N          50
911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1256_IH3   51
921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_THOMSON_DTT7610    52
941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1286     53
951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_TDA8290    54
961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_TAPE        55    /* Hauppauge PVR-150 PAL */
971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */
991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1236A_MK4 57   /* Hauppauge PVR-500MCE NTSC */
1001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NOTUNER 0
1021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PAL     1	/* PAL_BG */
1031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PAL_I   2
1041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NTSC    3
1051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SECAM   4
1061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define ATSC    5
1071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NoTuner 0
1091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Philips 1
1101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TEMIC   2
1111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Sony    3
1121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Alps    4
1131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LGINNOTEK 5
1141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SHARP   6
1151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Samsung 7
1161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Microtune 8
1171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define HITACHI 9
1181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Panasonic 10
1191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TCL     11
1201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define THOMSON 12
1211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SET_TYPE               _IOW('t',1,int)    /* set tuner type */
1231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SET_TVFREQ             _IOW('t',2,int)    /* set tv freq */
1241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define  TDA9887_SET_CONFIG          _IOW('t',5,int)
1261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* tv card specific */
1271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PRESENT             (1<<0)
1281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT1_INACTIVE      (1<<1)
1291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT2_INACTIVE      (1<<2)
1301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_QSS                 (1<<3)
1311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_INTERCARRIER        (1<<4)
1321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT1_ACTIVE        (1<<5)
1331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT2_ACTIVE        (1<<6)
1341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* config options */
1351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_MASK     (3<<16)
1361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_NONE     (1<<16)
1371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_50       (2<<16)
1381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_75       (3<<16)
1391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_AUTOMUTE            (1<<18)
1401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef __KERNEL__
1421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define I2C_ADDR_TDA8290        0x4b
1441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define I2C_ADDR_TDA8275        0x61
1451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct tuner {
1471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	/* device */
1481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	struct i2c_client i2c;
1491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	/* state + config */
1511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int initialized;
1521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int type;            /* chip type */
1531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int freq;            /* keep track of the current settings */
1541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	v4l2_std_id  std;
1551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int          using_v4l2;
1561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	enum v4l2_tuner_type mode;
1581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int input;
1591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	/* used by MT2032 */
1611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int xogc;
1621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned int radio_if2;
1631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	/* used by tda8290 */
1651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned char i2c_easy_mode[2];
1661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	unsigned char i2c_set_freq[8];
1671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	/* function ptrs */
1691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	void (*tv_freq)(struct i2c_client *c, unsigned int freq);
1701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	void (*radio_freq)(struct i2c_client *c, unsigned int freq);
1711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int  (*has_signal)(struct i2c_client *c);
1721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int  (*is_stereo)(struct i2c_client *c);
1731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds};
1741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern unsigned int tuner_debug;
1761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern unsigned const int tuner_count;
1771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int microtune_init(struct i2c_client *c);
1791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int tda8290_init(struct i2c_client *c);
1801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int default_tuner_init(struct i2c_client *c);
1811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_warn(fmt, arg...) \
1831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg)
1841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_info(fmt, arg...) \
1851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	dev_printk(KERN_INFO , &t->i2c.dev , fmt , ## arg)
1861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_dbg(fmt, arg...) \
1871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	if (tuner_debug) dev_printk(KERN_DEBUG , &t->i2c.dev , fmt , ## arg)
1881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif /* __KERNEL__ */
1901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
1921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Overrides for Emacs so that we follow Linus's tabbing style.
1951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * ---------------------------------------------------------------------------
1961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Local variables:
1971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * c-basic-offset: 8
1981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * End:
1991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
200