tuner.h revision 56fc08ca375491b965cb76fad65bfb98973e80d8
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 2856fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define ADDR_UNSET (255) 2956fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab 301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ 311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_I 1 321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_NTSC 2 331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_SECAM 3 /* you must actively select B/G, L, L` */ 341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ABSENT 4 361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL 5 371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_NTSC 6 /* 4032 FY5 (3X 7004, 9498, 9789) */ 381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL_I 7 /* 4062 FY5 (3X 8501, 9957) */ 391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4036FY5_NTSC 8 /* 4036 FY5 (3X 1223, 1981, 7686) */ 411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBH1_NTSC 9 421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBE1_PAL 10 431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBB5_PAL_I 11 441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBE5_PAL 12 461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSBC5_PAL 13 471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4006FH5_PAL 14 /* 4006 FH5 (3X 9500, 9501, 7291) */ 481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_ALPS_TSHC6_NTSC 15 491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_PAL_DK 16 /* 4016 FY5 (3X 1392, 1393) */ 511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_NTSC_M 17 521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4066FY5_PAL_I 18 /* 4066 FY5 (3X 7032, 7035) */ 531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4006FN5_MULTI_PAL 19 /* B/G, I and D/K autodetected (3X 7595, 7606, 7657)*/ 541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4009FR5_PAL 20 /* incl. FM radio (3X 7607, 7488, 7711)*/ 561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4039FR5_NTSC 21 /* incl. FM radio (3X 7246, 7578, 7732)*/ 571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4046FM5 22 /* you must actively select B/G, D/K, I, L, L` ! (3X 7804, 7806, 8103, 8104)*/ 581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_DK 23 591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1216ME 24 /* you must actively select B/G/D/K, I, L, L` */ 611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_I_FM 25 621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_I 26 631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_FM 27 641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_FM 28 661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL 29 671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4009FN5_MULTI_PAL_FM 30 /* B/G, I and D/K autodetected (3X 8155, 8160, 8163)*/ 681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SHARP_2U5JF5540_NTSC 31 691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_Samsung_PAL_TCPM9091PD27 32 711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MT2032 33 721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4106FH5 34 /* 4106 FH5 (3X 7808, 7865)*/ 731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4012FY5 35 /* 4012 FY5 (3X 0971, 1099)*/ 741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TEMIC_4136FY5 36 /* 4136 FY5 (3X 7708, 7746)*/ 761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_NEW_TAPC 37 771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1216ME_MK3 38 781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_NEW_TAPC 39 791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_HITACHI_NTSC 40 811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_PAL_MK 41 821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_ATSC 42 831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1236_MK3 43 841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_4IN1 44 /* ATI TV Wonder Pro - Conexant */ 861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* Microtune mergeged with Temic 12/31/1999 partially financed by Alps - these may be similar to Temic */ 871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MICROTUNE_4049FM5 45 881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_NTSC_TAPE 47 891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TNF_8831BGFF 48 911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_MICROTUNE_4042FI5 49 /* FusionHDTV 3 Gold - 4042 FI5 (3X 8147) */ 921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_TCL_2002N 50 931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FM1256_IH3 51 941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_THOMSON_DTT7610 52 961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1286 53 971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_TDA8290 54 981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */ 991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ 1011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ 1021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 103391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab#define TUNER_YMEC_TVF_8531MF 58 104391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab#define TUNER_YMEC_TVF_5533MF 59 /* Pixelview Pro Ultra NTSC */ 10556fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define TUNER_THOMSON_DTT7611 60 10656fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define TUNER_TENA_9533_DI 61 10756fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define TUNER_TEA5767 62 /* Only FM Radio Tuner */ 10856fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab 10956fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define TEA5767_TUNER_NAME "Philips TEA5767HN FM Radio" 110391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab 1113c1d0185db6a44b6304c404f4da1a1a98746ca46Michael Krufky#define TUNER_THOMSON_DTT7611 60 1123c1d0185db6a44b6304c404f4da1a1a98746ca46Michael Krufky 1131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NOTUNER 0 1141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PAL 1 /* PAL_BG */ 1151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PAL_I 2 1161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NTSC 3 1171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SECAM 4 1181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define ATSC 5 11956fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define RADIO 6 1201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NoTuner 0 1221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Philips 1 1231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TEMIC 2 1241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Sony 3 1251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Alps 4 1261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LGINNOTEK 5 1271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SHARP 6 1281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Samsung 7 1291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Microtune 8 1301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define HITACHI 9 1311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define Panasonic 10 1321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TCL 11 1331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define THOMSON 12 1341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 13556fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehabenum v4l_radio_tuner { 13656fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab TEA5767_LOW_LO_32768 = 0, 13756fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab TEA5767_HIGH_LO_32768 = 1, 13856fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab TEA5767_LOW_LO_13MHz = 2, 13956fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab TEA5767_HIGH_LO_13MHz = 3, 14056fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab}; 14156fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab 14256fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab 1431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */ 1441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */ 14556fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab#define TUNER_SET_TYPE_ADDR _IOW('T',3,int) /* set tuner type and I2C addr */ 1461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TDA9887_SET_CONFIG _IOW('t',5,int) 148391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab 1491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* tv card specific */ 1501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PRESENT (1<<0) 1511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT1_INACTIVE (1<<1) 1521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT2_INACTIVE (1<<2) 1531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_QSS (1<<3) 1541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_INTERCARRIER (1<<4) 1551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT1_ACTIVE (1<<5) 1561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_PORT2_ACTIVE (1<<6) 1571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* config options */ 1581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_MASK (3<<16) 1591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_NONE (1<<16) 1601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_50 (2<<16) 1611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_DEEMPHASIS_75 (3<<16) 1621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# define TDA9887_AUTOMUTE (1<<18) 1631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef __KERNEL__ 1651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define I2C_ADDR_TDA8290 0x4b 1671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define I2C_ADDR_TDA8275 0x61 1681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 169391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehabstruct tuner_addr { 17056fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab enum v4l2_tuner_type v4l2_tuner; 17156fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab unsigned int type; 17256fc08ca375491b965cb76fad65bfb98973e80d8Mauro Carvalho Chehab unsigned short addr; 173391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab}; 174391cd727eac2e10be7685efd739a3ea9de87393cMauro Carvalho Chehab 1751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct tuner { 1761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds /* device */ 1771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds struct i2c_client i2c; 1781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds /* state + config */ 1801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int initialized; 1811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int type; /* chip type */ 1821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int freq; /* keep track of the current settings */ 1831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds v4l2_std_id std; 1841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds int using_v4l2; 1851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds enum v4l2_tuner_type mode; 1871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int input; 1881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds /* used by MT2032 */ 1901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int xogc; 1911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned int radio_if2; 1921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds /* used by tda8290 */ 1941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned char i2c_easy_mode[2]; 1951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds unsigned char i2c_set_freq[8]; 1961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds /* function ptrs */ 1981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds void (*tv_freq)(struct i2c_client *c, unsigned int freq); 1991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds void (*radio_freq)(struct i2c_client *c, unsigned int freq); 2001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds int (*has_signal)(struct i2c_client *c); 2011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds int (*is_stereo)(struct i2c_client *c); 2021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds}; 2031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern unsigned int tuner_debug; 2051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern unsigned const int tuner_count; 2061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int microtune_init(struct i2c_client *c); 2081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int tda8290_init(struct i2c_client *c); 2091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsextern int default_tuner_init(struct i2c_client *c); 2101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_warn(fmt, arg...) \ 2121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg) 2131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_info(fmt, arg...) \ 2141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds dev_printk(KERN_INFO , &t->i2c.dev , fmt , ## arg) 2151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define tuner_dbg(fmt, arg...) \ 2161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds if (tuner_debug) dev_printk(KERN_DEBUG , &t->i2c.dev , fmt , ## arg) 2171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif /* __KERNEL__ */ 2191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif 2211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* 2231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Overrides for Emacs so that we follow Linus's tabbing style. 2241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * --------------------------------------------------------------------------- 2251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Local variables: 2261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * c-basic-offset: 8 2271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * End: 2281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */ 229