3 * device driver for philips saa7134 based TV cards
6 * (c) 2001-04 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <linux/init.h>
24 #include <linux/module.h>
26 #include "saa7134-reg.h"
28 #include <media/v4l2-common.h>
30 /* commly used strings */
31 static char name_mute[] = "mute";
32 static char name_radio[] = "Radio";
33 static char name_tv[] = "Television";
34 static char name_tv_mono[] = "TV (mono only)";
35 static char name_comp1[] = "Composite1";
36 static char name_comp2[] = "Composite2";
37 static char name_comp3[] = "Composite3";
38 static char name_comp4[] = "Composite4";
39 static char name_svideo[] = "S-Video";
41 /* ------------------------------------------------------------------ */
42 /* board config info */
44 struct saa7134_board saa7134_boards[] = {
45 [SAA7134_BOARD_UNKNOWN] = {
46 .name = "UNKNOWN/GENERIC",
47 .audio_clock = 0x00187de7,
48 .tuner_type = TUNER_ABSENT,
50 .tuner_addr = ADDR_UNSET,
51 .radio_addr = ADDR_UNSET,
59 [SAA7134_BOARD_PROTEUS_PRO] = {
61 .name = "Proteus Pro [philips reference design]",
62 .audio_clock = 0x00187de7,
63 .tuner_type = TUNER_PHILIPS_PAL,
65 .tuner_addr = ADDR_UNSET,
66 .radio_addr = ADDR_UNSET,
88 [SAA7134_BOARD_FLYVIDEO3000] = {
89 /* "Marco d'Itri" <md@Linux.IT> */
90 .name = "LifeView FlyVIDEO3000",
91 .audio_clock = 0x00200000,
92 .tuner_type = TUNER_PHILIPS_PAL,
94 .tuner_addr = ADDR_UNSET,
95 .radio_addr = ADDR_UNSET,
105 .name = name_tv_mono,
137 [SAA7134_BOARD_FLYVIDEO2000] = {
138 /* "TC Wan" <tcwan@cs.usm.my> */
139 .name = "LifeView/Typhoon FlyVIDEO2000",
140 .audio_clock = 0x00200000,
141 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
143 .tuner_addr = ADDR_UNSET,
144 .radio_addr = ADDR_UNSET,
180 [SAA7134_BOARD_FLYTVPLATINUM_MINI] = {
181 /* "Arnaud Quette" <aquette@free.fr> */
182 .name = "LifeView FlyTV Platinum Mini",
183 .audio_clock = 0x00200000,
184 .tuner_type = TUNER_PHILIPS_TDA8290,
186 .tuner_addr = ADDR_UNSET,
187 .radio_addr = ADDR_UNSET,
195 .name = name_comp1, /* Composite signal on S-Video input */
199 .name = name_comp2, /* Composite input */
208 [SAA7134_BOARD_FLYTVPLATINUM_FM] = {
209 /* LifeView FlyTV Platinum FM (LR214WF) */
210 /* "Peter Missel <peter.missel@onlinehome.de> */
211 .name = "LifeView FlyTV Platinum FM",
212 .audio_clock = 0x00200000,
213 .tuner_type = TUNER_PHILIPS_TDA8290,
215 .tuner_addr = ADDR_UNSET,
216 .radio_addr = ADDR_UNSET,
218 .gpiomask = 0x1E000, /* Set GP16 and unused 15,14,13 to Output */
223 .gpio = 0x10000, /* GP16=1 selects TV input */
226 /* .name = name_tv_mono,
232 */ .name = name_comp1, /* Composite signal on S-Video input */
235 /* .gpio = 0x4000, */
237 .name = name_comp2, /* Composite input */
240 /* .gpio = 0x4000, */
242 .name = name_svideo, /* S-Video signal on S-Video input */
245 /* .gpio = 0x4000, */
250 .gpio = 0x00000, /* GP16=0 selects FM radio antenna */
258 [SAA7134_BOARD_EMPRESS] = {
259 /* "Gert Vervoort" <gert.vervoort@philips.com> */
261 .audio_clock = 0x00187de7,
262 .tuner_type = TUNER_PHILIPS_PAL,
264 .tuner_addr = ADDR_UNSET,
265 .radio_addr = ADDR_UNSET,
285 .mpeg = SAA7134_MPEG_EMPRESS,
286 .video_out = CCIR656,
288 [SAA7134_BOARD_MONSTERTV] = {
289 /* "K.Ohta" <alpha292@bremen.or.jp> */
290 .name = "SKNet Monster TV",
291 .audio_clock = 0x00187de7,
292 .tuner_type = TUNER_PHILIPS_NTSC_M,
294 .tuner_addr = ADDR_UNSET,
295 .radio_addr = ADDR_UNSET,
316 [SAA7134_BOARD_MD9717] = {
317 .name = "Tevion MD 9717",
318 .audio_clock = 0x00200000,
319 .tuner_type = TUNER_PHILIPS_PAL,
321 .tuner_addr = ADDR_UNSET,
322 .radio_addr = ADDR_UNSET,
329 /* workaround for problems with normal TV sound */
330 .name = name_tv_mono,
352 [SAA7134_BOARD_TVSTATION_RDS] = {
353 /* Typhoon TV Tuner RDS: Art.Nr. 50694 */
354 .name = "KNC One TV-Station RDS / Typhoon TV Tuner RDS",
355 .audio_clock = 0x00200000,
356 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
358 .tuner_addr = ADDR_UNSET,
359 .radio_addr = ADDR_UNSET,
360 .tda9887_conf = TDA9887_PRESENT,
367 .name = name_tv_mono,
382 .name = "CVid over SVid",
391 [SAA7134_BOARD_TVSTATION_DVR] = {
392 .name = "KNC One TV-Station DVR",
393 .audio_clock = 0x00200000,
394 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
396 .tuner_addr = ADDR_UNSET,
397 .radio_addr = ADDR_UNSET,
398 .tda9887_conf = TDA9887_PRESENT,
399 .gpiomask = 0x820000,
422 .mpeg = SAA7134_MPEG_EMPRESS,
423 .video_out = CCIR656,
425 [SAA7134_BOARD_CINERGY400] = {
426 .name = "Terratec Cinergy 400 TV",
427 .audio_clock = 0x00200000,
428 .tuner_type = TUNER_PHILIPS_PAL,
430 .tuner_addr = ADDR_UNSET,
431 .radio_addr = ADDR_UNSET,
446 .name = name_comp2, /* CVideo over SVideo Connector */
451 [SAA7134_BOARD_MD5044] = {
452 .name = "Medion 5044",
453 .audio_clock = 0x00187de7, /* was: 0x00200000, */
454 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
456 .tuner_addr = ADDR_UNSET,
457 .radio_addr = ADDR_UNSET,
458 .tda9887_conf = TDA9887_PRESENT,
465 /* workaround for problems with normal TV sound */
466 .name = name_tv_mono,
488 [SAA7134_BOARD_KWORLD] = {
489 .name = "Kworld/KuroutoShikou SAA7130-TVPCI",
490 .audio_clock = 0x00187de7,
491 .tuner_type = TUNER_PHILIPS_NTSC_M,
493 .tuner_addr = ADDR_UNSET,
494 .radio_addr = ADDR_UNSET,
510 [SAA7134_BOARD_CINERGY600] = {
511 .name = "Terratec Cinergy 600 TV",
512 .audio_clock = 0x00200000,
513 .tuner_type = TUNER_PHILIPS_PAL,
515 .tuner_addr = ADDR_UNSET,
516 .radio_addr = ADDR_UNSET,
517 .tda9887_conf = TDA9887_PRESENT,
532 .name = name_comp2, /* CVideo over SVideo Connector */
541 [SAA7134_BOARD_MD7134] = {
542 .name = "Medion 7134",
543 .audio_clock = 0x00187de7,
544 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
546 .tuner_addr = ADDR_UNSET,
547 .radio_addr = ADDR_UNSET,
548 .tda9887_conf = TDA9887_PRESENT,
549 .mpeg = SAA7134_MPEG_DVB,
569 [SAA7134_BOARD_TYPHOON_90031] = {
570 /* aka Typhoon "TV+Radio", Art.Nr 90031 */
571 /* Tom Zoerner <tomzo at users sourceforge net> */
572 .name = "Typhoon TV+Radio 90031",
573 .audio_clock = 0x00200000,
574 .tuner_type = TUNER_PHILIPS_PAL,
576 .tuner_addr = ADDR_UNSET,
577 .radio_addr = ADDR_UNSET,
578 .tda9887_conf = TDA9887_PRESENT,
598 [SAA7134_BOARD_ELSA] = {
599 .name = "ELSA EX-VISION 300TV",
600 .audio_clock = 0x00187de7,
601 .tuner_type = TUNER_HITACHI_NTSC,
603 .tuner_addr = ADDR_UNSET,
604 .radio_addr = ADDR_UNSET,
620 [SAA7134_BOARD_ELSA_500TV] = {
621 .name = "ELSA EX-VISION 500TV",
622 .audio_clock = 0x00187de7,
623 .tuner_type = TUNER_HITACHI_NTSC,
625 .tuner_addr = ADDR_UNSET,
626 .radio_addr = ADDR_UNSET,
637 .name = name_tv_mono,
643 [SAA7134_BOARD_ASUSTeK_TVFM7134] = {
644 .name = "ASUS TV-FM 7134",
645 .audio_clock = 0x00187de7,
646 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
648 .tuner_addr = ADDR_UNSET,
649 .radio_addr = ADDR_UNSET,
650 .tda9887_conf = TDA9887_PRESENT,
670 [SAA7134_BOARD_ASUSTeK_TVFM7135] = {
671 .name = "ASUS TV-FM 7135",
672 .audio_clock = 0x00187de7,
673 .tuner_type = TUNER_PHILIPS_TDA8290,
675 .tuner_addr = ADDR_UNSET,
676 .radio_addr = ADDR_UNSET,
677 .gpiomask = 0x200000,
706 [SAA7134_BOARD_VA1000POWER] = {
707 .name = "AOPEN VA1000 POWER",
708 .audio_clock = 0x00187de7,
709 .tuner_type = TUNER_PHILIPS_NTSC,
711 .tuner_addr = ADDR_UNSET,
712 .radio_addr = ADDR_UNSET,
728 [SAA7134_BOARD_10MOONSTVMASTER] = {
729 /* "lilicheng" <llc@linuxfans.org> */
730 .name = "10MOONS PCI TV CAPTURE CARD",
731 .audio_clock = 0x00200000,
732 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
734 .tuner_addr = ADDR_UNSET,
735 .radio_addr = ADDR_UNSET,
770 [SAA7134_BOARD_BMK_MPEX_NOTUNER] = {
771 /* "Andrew de Quincey" <adq@lidskialf.net> */
772 .name = "BMK MPEX No Tuner",
773 .audio_clock = 0x200000,
774 .tuner_type = TUNER_ABSENT,
776 .tuner_addr = ADDR_UNSET,
777 .radio_addr = ADDR_UNSET,
799 .mpeg = SAA7134_MPEG_EMPRESS,
800 .video_out = CCIR656,
802 [SAA7134_BOARD_VIDEOMATE_TV] = {
803 .name = "Compro VideoMate TV",
804 .audio_clock = 0x00187de7,
805 .tuner_type = TUNER_PHILIPS_NTSC_M,
807 .tuner_addr = ADDR_UNSET,
808 .radio_addr = ADDR_UNSET,
824 [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS] = {
825 .name = "Compro VideoMate TV Gold+",
826 .audio_clock = 0x00187de7,
827 .tuner_type = TUNER_PHILIPS_NTSC_M,
828 .gpiomask = 0x800c0000,
830 .tuner_addr = ADDR_UNSET,
831 .radio_addr = ADDR_UNSET,
848 }}, /* radio and probably mute is missing */
850 [SAA7134_BOARD_CRONOS_PLUS] = {
859 .name = "Matrox CronosPlus",
860 .tuner_type = TUNER_ABSENT,
862 .tuner_addr = ADDR_UNSET,
863 .radio_addr = ADDR_UNSET,
887 [SAA7134_BOARD_MD2819] = {
888 .name = "AverMedia M156 / Medion 2819",
889 .audio_clock = 0x00187de7,
890 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
892 .tuner_addr = ADDR_UNSET,
893 .radio_addr = ADDR_UNSET,
894 .tda9887_conf = TDA9887_PRESENT,
918 [SAA7134_BOARD_BMK_MPEX_TUNER] = {
919 /* "Greg Wickham <greg.wickham@grangenet.net> */
920 .name = "BMK MPEX Tuner",
921 .audio_clock = 0x200000,
922 .tuner_type = TUNER_PHILIPS_PAL,
924 .tuner_addr = ADDR_UNSET,
925 .radio_addr = ADDR_UNSET,
940 .mpeg = SAA7134_MPEG_EMPRESS,
941 .video_out = CCIR656,
943 [SAA7134_BOARD_ASUSTEK_TVFM7133] = {
944 .name = "ASUS TV-FM 7133",
945 .audio_clock = 0x00187de7,
946 /* probably wrong, the 7133 one is the NTSC version ...
947 * .tuner_type = TUNER_PHILIPS_FM1236_MK3 */
948 .tuner_type = TUNER_LG_NTSC_NEW_TAPC,
950 .tuner_addr = ADDR_UNSET,
951 .radio_addr = ADDR_UNSET,
952 .tda9887_conf = TDA9887_PRESENT,
973 [SAA7134_BOARD_PINNACLE_PCTV_STEREO] = {
974 .name = "Pinnacle PCTV Stereo (saa7134)",
975 .audio_clock = 0x00187de7,
976 .tuner_type = TUNER_MT2032,
978 .tuner_addr = ADDR_UNSET,
979 .radio_addr = ADDR_UNSET,
980 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_ACTIVE,
1000 [SAA7134_BOARD_MANLI_MTV002] = {
1001 /* Ognjen Nastic <ognjen@logosoft.ba> */
1002 .name = "Manli MuchTV M-TV002/Behold TV 403 FM",
1003 .audio_clock = 0x00200000,
1004 .tuner_type = TUNER_PHILIPS_PAL,
1005 .radio_type = UNSET,
1006 .tuner_addr = ADDR_UNSET,
1007 .radio_addr = ADDR_UNSET,
1009 .name = name_svideo,
1027 [SAA7134_BOARD_MANLI_MTV001] = {
1028 /* Ognjen Nastic <ognjen@logosoft.ba> UNTESTED */
1029 .name = "Manli MuchTV M-TV001/Behold TV 401",
1030 .audio_clock = 0x00200000,
1031 .tuner_type = TUNER_PHILIPS_PAL,
1032 .radio_type = UNSET,
1033 .tuner_addr = ADDR_UNSET,
1034 .radio_addr = ADDR_UNSET,
1036 .name = name_svideo,
1054 [SAA7134_BOARD_TG3000TV] = {
1055 /* TransGear 3000TV */
1056 .name = "Nagase Sangyo TransGear 3000TV",
1057 .audio_clock = 0x00187de7,
1058 .tuner_type = TUNER_PHILIPS_NTSC_M,
1059 .radio_type = UNSET,
1060 .tuner_addr = ADDR_UNSET,
1061 .radio_addr = ADDR_UNSET,
1072 .name = name_svideo,
1077 [SAA7134_BOARD_ECS_TVP3XP] = {
1078 .name = "Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) ",
1079 .audio_clock = 0x187de7, /* xtal 32.1 MHz */
1080 .tuner_type = TUNER_PHILIPS_PAL,
1081 .radio_type = UNSET,
1082 .tuner_addr = ADDR_UNSET,
1083 .radio_addr = ADDR_UNSET,
1090 .name = name_tv_mono,
1099 .name = name_svideo,
1103 .name = "CVid over SVid",
1112 [SAA7134_BOARD_ECS_TVP3XP_4CB5] = {
1113 .name = "Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM)",
1114 .audio_clock = 0x187de7,
1115 .tuner_type = TUNER_PHILIPS_NTSC,
1116 .radio_type = UNSET,
1117 .tuner_addr = ADDR_UNSET,
1118 .radio_addr = ADDR_UNSET,
1125 .name = name_tv_mono,
1134 .name = name_svideo,
1138 .name = "CVid over SVid",
1147 [SAA7134_BOARD_AVACSSMARTTV] = {
1148 /* Roman Pszonczenko <romka@kolos.math.uni.lodz.pl> */
1149 .name = "AVACS SmartTV",
1150 .audio_clock = 0x00187de7,
1151 .tuner_type = TUNER_PHILIPS_PAL,
1152 .radio_type = UNSET,
1153 .tuner_addr = ADDR_UNSET,
1154 .radio_addr = ADDR_UNSET,
1161 .name = name_tv_mono,
1174 .name = name_svideo,
1184 [SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER] = {
1185 /* Michael Smith <msmith@cbnco.com> */
1186 .name = "AVerMedia DVD EZMaker",
1187 .audio_clock = 0x00187de7,
1188 .tuner_type = TUNER_ABSENT,
1189 .radio_type = UNSET,
1190 .tuner_addr = ADDR_UNSET,
1191 .radio_addr = ADDR_UNSET,
1196 .name = name_svideo,
1200 [SAA7134_BOARD_NOVAC_PRIMETV7133] = {
1201 /* toshii@netbsd.org */
1202 .name = "Noval Prime TV 7133",
1203 .audio_clock = 0x00200000,
1204 .tuner_type = TUNER_ALPS_TSBH1_NTSC,
1205 .radio_type = UNSET,
1206 .tuner_addr = ADDR_UNSET,
1207 .radio_addr = ADDR_UNSET,
1217 .name = name_svideo,
1221 [SAA7134_BOARD_AVERMEDIA_STUDIO_305] = {
1222 .name = "AverMedia AverTV Studio 305",
1223 .audio_clock = 0x00187de7,
1224 .tuner_type = TUNER_PHILIPS_FM1256_IH3,
1225 .radio_type = UNSET,
1226 .tuner_addr = ADDR_UNSET,
1227 .radio_addr = ADDR_UNSET,
1228 .tda9887_conf = TDA9887_PRESENT,
1243 .name = name_svideo,
1256 [SAA7134_BOARD_UPMOST_PURPLE_TV] = {
1257 .name = "UPMOST PURPLE TV",
1258 .audio_clock = 0x00187de7,
1259 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
1260 .radio_type = UNSET,
1261 .tuner_addr = ADDR_UNSET,
1262 .radio_addr = ADDR_UNSET,
1263 .tda9887_conf = TDA9887_PRESENT,
1270 .name = name_svideo,
1275 [SAA7134_BOARD_ITEMS_MTV005] = {
1276 /* Norman Jonas <normanjonas@arcor.de> */
1277 .name = "Items MuchTV Plus / IT-005",
1278 .audio_clock = 0x00187de7,
1279 .tuner_type = TUNER_PHILIPS_PAL,
1280 .radio_type = UNSET,
1281 .tuner_addr = ADDR_UNSET,
1282 .radio_addr = ADDR_UNSET,
1293 .name = name_svideo,
1302 [SAA7134_BOARD_CINERGY200] = {
1303 .name = "Terratec Cinergy 200 TV",
1304 .audio_clock = 0x00200000,
1305 .tuner_type = TUNER_PHILIPS_PAL,
1306 .radio_type = UNSET,
1307 .tuner_addr = ADDR_UNSET,
1308 .radio_addr = ADDR_UNSET,
1319 .name = name_svideo,
1323 .name = name_comp2, /* CVideo over SVideo Connector */
1332 [SAA7134_BOARD_VIDEOMATE_TV_PVR] = {
1333 /* Alain St-Denis <alain@topaze.homeip.net> */
1334 .name = "Compro VideoMate TV PVR/FM",
1335 .audio_clock = 0x00187de7,
1336 .tuner_type = TUNER_PHILIPS_NTSC_M,
1337 .radio_type = UNSET,
1338 .tuner_addr = ADDR_UNSET,
1339 .radio_addr = ADDR_UNSET,
1340 .gpiomask = 0x808c0080,
1342 .name = name_svideo,
1369 [SAA7134_BOARD_SABRENT_SBTTVFM] = {
1370 /* Michael Rodriguez-Torrent <mrtorrent@asu.edu> */
1371 .name = "Sabrent SBT-TVFM (saa7130)",
1372 .audio_clock = 0x00187de7,
1373 .tuner_type = TUNER_PHILIPS_NTSC_M,
1374 .radio_type = UNSET,
1375 .tuner_addr = ADDR_UNSET,
1376 .radio_addr = ADDR_UNSET,
1387 .name = name_svideo,
1396 [SAA7134_BOARD_ZOLID_XPERT_TV7134] = {
1397 /* Helge Jensen <helge.jensen@slog.dk> */
1398 .name = ":Zolid Xpert TV7134",
1399 .audio_clock = 0x00187de7,
1400 .tuner_type = TUNER_PHILIPS_NTSC,
1401 .radio_type = UNSET,
1402 .tuner_addr = ADDR_UNSET,
1403 .radio_addr = ADDR_UNSET,
1405 .name = name_svideo,
1419 [SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE] = {
1420 /* "Matteo Az" <matte.az@nospam.libero.it> ;-) */
1421 .name = "Empire PCI TV-Radio LE",
1422 .audio_clock = 0x00187de7,
1423 .tuner_type = TUNER_PHILIPS_PAL,
1424 .radio_type = UNSET,
1425 .tuner_addr = ADDR_UNSET,
1426 .radio_addr = ADDR_UNSET,
1429 .name = name_tv_mono,
1440 .name = name_svideo,
1456 [SAA7134_BOARD_AVERMEDIA_STUDIO_307] = {
1458 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
1459 Lots of thanks to Andrey Zolotarev <zolotarev_andrey@mail.ru>
1461 .name = "Avermedia AVerTV Studio 307",
1462 .audio_clock = 0x00187de7,
1463 .tuner_type = TUNER_PHILIPS_FM1256_IH3,
1464 .radio_type = UNSET,
1465 .tuner_addr = ADDR_UNSET,
1466 .radio_addr = ADDR_UNSET,
1467 .tda9887_conf = TDA9887_PRESENT,
1486 .name = name_svideo,
1502 [SAA7134_BOARD_AVERMEDIA_GO_007_FM] = {
1503 .name = "Avermedia AVerTV GO 007 FM",
1504 .audio_clock = 0x00187de7,
1505 .tuner_type = TUNER_PHILIPS_TDA8290,
1506 .radio_type = UNSET,
1507 .tuner_addr = ADDR_UNSET,
1508 .radio_addr = ADDR_UNSET,
1509 .gpiomask = 0x00300003,
1510 /* .gpiomask = 0x8c240003, */
1523 .name = name_svideo,
1539 [SAA7134_BOARD_AVERMEDIA_CARDBUS] = {
1540 /* Kees.Blom@cwi.nl */
1541 .name = "AVerMedia Cardbus TV/Radio (E500)",
1542 .audio_clock = 0x187de7,
1543 .tuner_type = TUNER_PHILIPS_TDA8290,
1544 .radio_type = UNSET,
1545 .tuner_addr = ADDR_UNSET,
1546 .radio_addr = ADDR_UNSET,
1557 .name = name_svideo,
1566 [SAA7134_BOARD_CINERGY400_CARDBUS] = {
1567 .name = "Terratec Cinergy 400 mobile",
1568 .audio_clock = 0x187de7,
1569 .tuner_type = TUNER_ALPS_TSBE5_PAL,
1570 .radio_type = UNSET,
1571 .tuner_addr = ADDR_UNSET,
1572 .radio_addr = ADDR_UNSET,
1573 .tda9887_conf = TDA9887_PRESENT,
1580 .name = name_tv_mono,
1589 .name = name_svideo,
1594 [SAA7134_BOARD_CINERGY600_MK3] = {
1595 .name = "Terratec Cinergy 600 TV MK3",
1596 .audio_clock = 0x00200000,
1597 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1598 .radio_type = UNSET,
1599 .tuner_addr = ADDR_UNSET,
1600 .radio_addr = ADDR_UNSET,
1601 .tda9887_conf = TDA9887_PRESENT,
1612 .name = name_svideo,
1616 .name = name_comp2, /* CVideo over SVideo Connector */
1625 [SAA7134_BOARD_VIDEOMATE_GOLD_PLUS] = {
1626 /* Dylan Walkden <dylan_walkden@hotmail.com> */
1627 .name = "Compro VideoMate Gold+ Pal",
1628 .audio_clock = 0x00187de7,
1629 .tuner_type = TUNER_PHILIPS_PAL,
1630 .radio_type = UNSET,
1631 .tuner_addr = ADDR_UNSET,
1632 .radio_addr = ADDR_UNSET,
1633 .gpiomask = 0x1ce780,
1635 .name = name_svideo,
1636 .vmux = 0, /* CVideo over SVideo Connector - ok? */
1662 [SAA7134_BOARD_PINNACLE_300I_DVBT_PAL] = {
1663 .name = "Pinnacle PCTV 300i DVB-T + PAL",
1664 .audio_clock = 0x00187de7,
1665 .tuner_type = TUNER_MT2032,
1666 .radio_type = UNSET,
1667 .tuner_addr = ADDR_UNSET,
1668 .radio_addr = ADDR_UNSET,
1669 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_ACTIVE,
1670 .mpeg = SAA7134_MPEG_DVB,
1685 .name = name_svideo,
1690 [SAA7134_BOARD_PROVIDEO_PV952] = {
1691 /* andreas.kretschmer@web.de */
1692 .name = "ProVideo PV952",
1693 .audio_clock = 0x00187de7,
1694 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1695 .radio_type = UNSET,
1696 .tuner_addr = ADDR_UNSET,
1697 .radio_addr = ADDR_UNSET,
1698 .tda9887_conf = TDA9887_PRESENT,
1709 .name = name_tv_mono,
1719 [SAA7134_BOARD_AVERMEDIA_305] = {
1720 /* much like the "studio" version but without radio
1721 * and another tuner (sirspiritus@yandex.ru) */
1722 .name = "AverMedia AverTV/305",
1723 .audio_clock = 0x00187de7,
1724 .tuner_type = TUNER_PHILIPS_FQ1216ME,
1725 .radio_type = UNSET,
1726 .tuner_addr = ADDR_UNSET,
1727 .radio_addr = ADDR_UNSET,
1728 .tda9887_conf = TDA9887_PRESENT,
1743 .name = name_svideo,
1752 [SAA7134_BOARD_FLYDVBTDUO] = {
1753 /* LifeView FlyDVB-T DUO */
1754 /* "Nico Sabbi <nsabbi@tiscali.it> Hartmut Hackmann hartmut.hackmann@t-online.de*/
1755 .name = "LifeView FlyDVB-T DUO",
1756 .audio_clock = 0x00200000,
1757 .tuner_type = TUNER_PHILIPS_TDA8290,
1758 .radio_type = UNSET,
1759 .tuner_addr = ADDR_UNSET,
1760 .radio_addr = ADDR_UNSET,
1761 .mpeg = SAA7134_MPEG_DVB,
1768 .name = name_comp1, /* Composite signal on S-Video input */
1772 .name = name_comp2, /* Composite input */
1776 .name = name_svideo, /* S-Video signal on S-Video input */
1781 [SAA7134_BOARD_PHILIPS_TOUGH] = {
1782 .name = "Philips TOUGH DVB-T reference design",
1783 .tuner_type = TUNER_ABSENT,
1784 .audio_clock = 0x00187de7,
1785 .radio_type = UNSET,
1786 .tuner_addr = ADDR_UNSET,
1787 .radio_addr = ADDR_UNSET,
1788 .mpeg = SAA7134_MPEG_DVB,
1794 .name = name_svideo,
1799 [SAA7134_BOARD_AVERMEDIA_307] = {
1801 Davydov Vladimir <vladimir@iqmedia.com>
1803 .name = "Avermedia AVerTV 307",
1804 .audio_clock = 0x00187de7,
1805 .tuner_type = TUNER_PHILIPS_FQ1216ME,
1806 .radio_type = UNSET,
1807 .tuner_addr = ADDR_UNSET,
1808 .radio_addr = ADDR_UNSET,
1809 .tda9887_conf = TDA9887_PRESENT,
1824 .name = name_svideo,
1829 [SAA7134_BOARD_ADS_INSTANT_TV] = {
1830 .name = "ADS Tech Instant TV (saa7135)",
1831 .audio_clock = 0x00187de7,
1832 .tuner_type = TUNER_PHILIPS_TDA8290,
1833 .radio_type = UNSET,
1834 .tuner_addr = ADDR_UNSET,
1835 .radio_addr = ADDR_UNSET,
1846 .name = name_svideo,
1851 [SAA7134_BOARD_KWORLD_VSTREAM_XPERT] = {
1852 .name = "Kworld/Tevion V-Stream Xpert TV PVR7134",
1853 .audio_clock = 0x00187de7,
1854 .tuner_type = TUNER_PHILIPS_PAL_I,
1855 .radio_type = UNSET,
1856 .tuner_addr = ADDR_UNSET,
1857 .radio_addr = ADDR_UNSET,
1869 .gpio = 0x200, /* gpio by DScaler */
1871 .name = name_svideo,
1887 [SAA7134_BOARD_FLYDVBT_DUO_CARDBUS] = {
1888 .name = "LifeView/Typhoon FlyDVB-T Duo Cardbus",
1889 .audio_clock = 0x00200000,
1890 .tuner_type = TUNER_PHILIPS_TDA8290,
1891 .radio_type = UNSET,
1892 .tuner_addr = ADDR_UNSET,
1893 .radio_addr = ADDR_UNSET,
1894 .mpeg = SAA7134_MPEG_DVB,
1895 .gpiomask = 0x00200000,
1900 .gpio = 0x200000, /* GPIO21=High for TV input */
1903 .name = name_svideo, /* S-Video signal on S-Video input */
1907 .name = name_comp1, /* Composite signal on S-Video input */
1911 .name = name_comp2, /* Composite input */
1918 .gpio = 0x000000, /* GPIO21=Low for FM radio antenna */
1921 [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
1922 .name = "Compro VideoMate TV Gold+II",
1923 .audio_clock = 0x002187de7,
1924 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1925 .radio_type = TUNER_TEA5767,
1928 .gpiomask = 0x8c1880,
1930 .name = name_svideo,
1957 [SAA7134_BOARD_KWORLD_XPERT] = {
1960 - Remote control doesn't initialize properly.
1961 - Audio volume starts muted,
1962 then gradually increases after channel change.
1963 - Overlay scaling problems (application error?)
1964 - Composite S-Video untested.
1965 From: Konrad Rzepecki <hannibal@megapolis.pl>
1967 .name = "Kworld Xpert TV PVR7134",
1968 .audio_clock = 0x00187de7,
1969 .tuner_type = TUNER_TENA_9533_DI,
1970 .radio_type = TUNER_TEA5767,
1984 .gpio = 0x200, /* gpio by DScaler */
1986 .name = name_svideo,
2002 [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2003 .name = "FlyTV mini Asus Digimatrix",
2004 .audio_clock = 0x00200000,
2005 .tuner_type = TUNER_LG_NTSC_TALN_MINI,
2006 .radio_type = UNSET,
2007 .tuner_addr = ADDR_UNSET,
2008 .radio_addr = ADDR_UNSET,
2015 .name = name_tv_mono,
2028 .name = name_svideo,
2033 .name = name_radio, /* radio unconfirmed */
2037 [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2038 /* Kworld V-Stream Studio TV Terminator */
2039 /* "James Webb <jrwebb@qwest.net> */
2040 .name = "V-Stream Studio TV Terminator",
2041 .audio_clock = 0x00187de7,
2042 .tuner_type = TUNER_PHILIPS_TDA8290,
2043 .radio_type = UNSET,
2044 .tuner_addr = ADDR_UNSET,
2045 .radio_addr = ADDR_UNSET,
2046 .gpiomask = 1 << 21,
2054 .name = name_comp1, /* Composite input */
2059 .name = name_svideo, /* S-Video input */
2070 [SAA7134_BOARD_YUAN_TUN900] = {
2072 * S-Video and composite sources untested.
2073 * Radio not working.
2074 * Remote control not yet implemented.
2075 * From : codemaster@webgeeks.be */
2076 .name = "Yuan TUN-900 (saa7135)",
2077 .audio_clock = 0x00187de7,
2078 .tuner_type = TUNER_PHILIPS_TDA8290,
2079 .radio_type = UNSET,
2080 .tuner_addr= ADDR_UNSET,
2081 .radio_addr= ADDR_UNSET,
2082 .gpiomask = 0x00010003,
2095 .name = name_svideo,
2111 [SAA7134_BOARD_BEHOLD_409FM] = {
2112 /* <http://tuner.beholder.ru>, Sergey <skiv@orel.ru> */
2113 .name = "Beholder BeholdTV 409 FM",
2114 .audio_clock = 0x00187de7,
2115 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
2116 .radio_type = UNSET,
2117 .tuner_addr = ADDR_UNSET,
2118 .radio_addr = ADDR_UNSET,
2119 .tda9887_conf = TDA9887_PRESENT,
2130 .name = name_svideo,
2139 [SAA7134_BOARD_GOTVIEW_7135] = {
2140 /* Mike Baikov <mike@baikov.com> */
2141 /* Andrey Cvetcov <ays14@yandex.ru> */
2142 .name = "GoTView 7135 PCI",
2143 .audio_clock = 0x00187de7,
2144 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
2145 .radio_type = UNSET,
2146 .tuner_addr = ADDR_UNSET,
2147 .radio_addr = ADDR_UNSET,
2148 .tda9887_conf = TDA9887_PRESENT,
2149 .gpiomask = 0x00200003,
2157 .name = name_tv_mono,
2167 .name = name_svideo,
2183 [SAA7134_BOARD_PHILIPS_EUROPA] = {
2184 .name = "Philips EUROPA V3 reference design",
2185 .audio_clock = 0x00187de7,
2186 .tuner_type = TUNER_PHILIPS_TD1316,
2187 .radio_type = UNSET,
2189 .radio_addr = ADDR_UNSET,
2190 .tda9887_conf = TDA9887_PRESENT,
2191 .mpeg = SAA7134_MPEG_DVB,
2202 .name = name_svideo,
2207 [SAA7134_BOARD_VIDEOMATE_DVBT_300] = {
2208 .name = "Compro Videomate DVB-T300",
2209 .audio_clock = 0x00187de7,
2210 .tuner_type = TUNER_PHILIPS_TD1316,
2211 .radio_type = UNSET,
2213 .radio_addr = ADDR_UNSET,
2214 .tda9887_conf = TDA9887_PRESENT,
2215 .mpeg = SAA7134_MPEG_DVB,
2226 .name = name_svideo,
2231 [SAA7134_BOARD_VIDEOMATE_DVBT_200] = {
2232 .name = "Compro Videomate DVB-T200",
2233 .tuner_type = TUNER_ABSENT,
2234 .audio_clock = 0x00187de7,
2235 .radio_type = UNSET,
2236 .tuner_addr = ADDR_UNSET,
2237 .radio_addr = ADDR_UNSET,
2238 .mpeg = SAA7134_MPEG_DVB,
2244 .name = name_svideo,
2249 [SAA7134_BOARD_RTD_VFG7350] = {
2250 .name = "RTD Embedded Technologies VFG7350",
2251 .audio_clock = 0x00200000,
2252 .tuner_type = TUNER_ABSENT,
2253 .radio_type = UNSET,
2254 .tuner_addr = ADDR_UNSET,
2255 .radio_addr = ADDR_UNSET,
2257 .name = "Composite 0",
2261 .name = "Composite 1",
2265 .name = "Composite 2",
2269 .name = "Composite 3",
2273 .name = "S-Video 0",
2277 .name = "S-Video 1",
2281 .mpeg = SAA7134_MPEG_EMPRESS,
2282 .video_out = CCIR656,
2283 .vid_port_opts = ( SET_T_CODE_POLARITY_NON_INVERTED |
2284 SET_CLOCK_NOT_DELAYED |
2285 SET_CLOCK_INVERTED |
2288 [SAA7134_BOARD_RTD_VFG7330] = {
2289 .name = "RTD Embedded Technologies VFG7330",
2290 .audio_clock = 0x00200000,
2291 .tuner_type = TUNER_ABSENT,
2292 .radio_type = UNSET,
2293 .tuner_addr = ADDR_UNSET,
2294 .radio_addr = ADDR_UNSET,
2296 .name = "Composite 0",
2300 .name = "Composite 1",
2304 .name = "Composite 2",
2308 .name = "Composite 3",
2312 .name = "S-Video 0",
2316 .name = "S-Video 1",
2321 [SAA7134_BOARD_FLYTVPLATINUM_MINI2] = {
2322 .name = "LifeView FlyTV Platinum Mini2",
2323 .audio_clock = 0x00200000,
2324 .tuner_type = TUNER_PHILIPS_TDA8290,
2325 .radio_type = UNSET,
2326 .tuner_addr = ADDR_UNSET,
2327 .radio_addr = ADDR_UNSET,
2335 .name = name_comp1, /* Composite signal on S-Video input */
2339 .name = name_comp2, /* Composite input */
2343 .name = name_svideo,
2348 [SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180] = {
2349 /* Michael Krufky <mkrufky@m1k.net>
2350 * Uses Alps Electric TDHU2, containing NXT2004 ATSC Decoder
2351 * AFAIK, there is no analog demod, thus,
2352 * no support for analog television.
2354 .name = "AVerMedia AVerTVHD MCE A180",
2355 .audio_clock = 0x00187de7,
2356 .tuner_type = TUNER_ABSENT,
2357 .radio_type = UNSET,
2358 .tuner_addr = ADDR_UNSET,
2359 .radio_addr = ADDR_UNSET,
2360 .mpeg = SAA7134_MPEG_DVB,
2366 .name = name_svideo,
2371 [SAA7134_BOARD_MONSTERTV_MOBILE] = {
2372 .name = "SKNet MonsterTV Mobile",
2373 .audio_clock = 0x00187de7,
2374 .tuner_type = TUNER_PHILIPS_TDA8290,
2375 .radio_type = UNSET,
2376 .tuner_addr = ADDR_UNSET,
2377 .radio_addr = ADDR_UNSET,
2389 .name = name_svideo,
2394 [SAA7134_BOARD_PINNACLE_PCTV_110i] = {
2395 .name = "Pinnacle PCTV 110i (saa7133)",
2396 .audio_clock = 0x00187de7,
2397 .tuner_type = TUNER_PHILIPS_TDA8290,
2398 .radio_type = UNSET,
2399 .tuner_addr = ADDR_UNSET,
2400 .radio_addr = ADDR_UNSET,
2401 .gpiomask = 0x080200000,
2412 .name = name_svideo,
2421 [SAA7134_BOARD_ASUSTeK_P7131_DUAL] = {
2422 .name = "ASUSTeK P7131 Dual",
2423 .audio_clock = 0x00187de7,
2424 .tuner_type = TUNER_PHILIPS_TDA8290,
2425 .radio_type = UNSET,
2426 .tuner_addr = ADDR_UNSET,
2427 .radio_addr = ADDR_UNSET,
2428 .gpiomask = 1 << 21,
2429 .mpeg = SAA7134_MPEG_DVB,
2440 .name = name_svideo,
2450 [SAA7134_BOARD_SEDNA_PC_TV_CARDBUS] = {
2451 /* Paul Tom Zalac <pzalac@gmail.com> */
2452 /* Pavel Mihaylov <bin@bash.info> */
2453 .name = "Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)",
2454 /* Sedna/MuchTV (OEM) Cardbus TV Tuner */
2455 .audio_clock = 0x00187de7,
2456 .tuner_type = TUNER_PHILIPS_TDA8290,
2457 .radio_type = UNSET,
2458 .tuner_addr = ADDR_UNSET,
2459 .radio_addr = ADDR_UNSET,
2460 .gpiomask = 0xe880c0,
2471 .name = name_svideo,
2480 [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
2481 /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
2482 .name = "ASUS Digimatrix TV",
2483 .audio_clock = 0x00200000,
2484 .tuner_type = TUNER_PHILIPS_FQ1216ME,
2485 .tda9887_conf = TDA9887_PRESENT,
2486 .radio_type = UNSET,
2487 .tuner_addr = ADDR_UNSET,
2488 .radio_addr = ADDR_UNSET,
2499 .name = name_svideo,
2504 [SAA7134_BOARD_PHILIPS_TIGER] = {
2505 .name = "Philips Tiger reference design",
2506 .audio_clock = 0x00187de7,
2507 .tuner_type = TUNER_PHILIPS_TDA8290,
2508 .radio_type = UNSET,
2509 .tuner_addr = ADDR_UNSET,
2510 .radio_addr = ADDR_UNSET,
2511 .mpeg = SAA7134_MPEG_DVB,
2512 .gpiomask = 1 << 21,
2523 .name = name_svideo,
2533 [SAA7134_BOARD_MSI_TVATANYWHERE_PLUS] = {
2534 .name = "MSI TV@Anywhere plus",
2535 .audio_clock = 0x00187de7,
2536 .tuner_type = TUNER_PHILIPS_TDA8290,
2537 .radio_type = UNSET,
2538 .tuner_addr = ADDR_UNSET,
2539 .radio_addr = ADDR_UNSET,
2550 .name = name_svideo,
2559 [SAA7134_BOARD_CINERGY250PCI] = {
2560 /* remote-control does not work. The signal about a
2561 key press comes in via gpio, but the key code
2562 doesn't. Neither does it have an i2c remote control
2564 .name = "Terratec Cinergy 250 PCI TV",
2565 .audio_clock = 0x00187de7,
2566 .tuner_type = TUNER_PHILIPS_TDA8290,
2567 .radio_type = UNSET,
2568 .tuner_addr = ADDR_UNSET,
2569 .radio_addr = ADDR_UNSET,
2570 .gpiomask = 0x80200000,
2577 .name = name_svideo, /* NOT tested */
2587 [SAA7134_BOARD_FLYDVB_TRIO] = {
2588 /* LifeView LR319 FlyDVB Trio */
2589 /* Peter Missel <peter.missel@onlinehome.de> */
2590 .name = "LifeView FlyDVB Trio",
2591 .audio_clock = 0x00200000,
2592 .tuner_type = TUNER_PHILIPS_TDA8290,
2593 .radio_type = UNSET,
2594 .tuner_addr = ADDR_UNSET,
2595 .radio_addr = ADDR_UNSET,
2596 .gpiomask = 0x00200000,
2598 .name = name_tv, /* Analog broadcast/cable TV */
2601 .gpio = 0x200000, /* GPIO21=High for TV input */
2604 .name = name_svideo, /* S-Video signal on S-Video input */
2608 .name = name_comp1, /* Composite signal on S-Video input */
2612 .name = name_comp2, /* Composite input */
2619 .gpio = 0x000000, /* GPIO21=Low for FM radio antenna */
2624 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
2626 /* ------------------------------------------------------------------ */
2627 /* PCI ids + subsystem IDs */
2629 struct pci_device_id saa7134_pci_tbl[] = {
2631 .vendor = PCI_VENDOR_ID_PHILIPS,
2632 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2633 .subvendor = PCI_VENDOR_ID_PHILIPS,
2634 .subdevice = 0x2001,
2635 .driver_data = SAA7134_BOARD_PROTEUS_PRO,
2637 .vendor = PCI_VENDOR_ID_PHILIPS,
2638 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2639 .subvendor = PCI_VENDOR_ID_PHILIPS,
2640 .subdevice = 0x2001,
2641 .driver_data = SAA7134_BOARD_PROTEUS_PRO,
2643 .vendor = PCI_VENDOR_ID_PHILIPS,
2644 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2645 .subvendor = PCI_VENDOR_ID_PHILIPS,
2646 .subdevice = 0x6752,
2647 .driver_data = SAA7134_BOARD_EMPRESS,
2649 .vendor = PCI_VENDOR_ID_PHILIPS,
2650 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2651 .subvendor = 0x1131,
2652 .subdevice = 0x4e85,
2653 .driver_data = SAA7134_BOARD_MONSTERTV,
2655 .vendor = PCI_VENDOR_ID_PHILIPS,
2656 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2657 .subvendor = 0x153b,
2658 .subdevice = 0x1142,
2659 .driver_data = SAA7134_BOARD_CINERGY400,
2661 .vendor = PCI_VENDOR_ID_PHILIPS,
2662 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2663 .subvendor = 0x153b,
2664 .subdevice = 0x1143,
2665 .driver_data = SAA7134_BOARD_CINERGY600,
2667 .vendor = PCI_VENDOR_ID_PHILIPS,
2668 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2669 .subvendor = 0x153b,
2670 .subdevice = 0x1158,
2671 .driver_data = SAA7134_BOARD_CINERGY600_MK3,
2673 .vendor = PCI_VENDOR_ID_PHILIPS,
2674 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2675 .subvendor = 0x153b,
2676 .subdevice = 0x1162,
2677 .driver_data = SAA7134_BOARD_CINERGY400_CARDBUS,
2679 .vendor = PCI_VENDOR_ID_PHILIPS,
2680 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2681 .subvendor = 0x5168,
2682 .subdevice = 0x0138,
2683 .driver_data = SAA7134_BOARD_FLYVIDEO3000,
2685 .vendor = PCI_VENDOR_ID_PHILIPS,
2686 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2687 .subvendor = 0x4e42, /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
2688 .subdevice = 0x0138,
2689 .driver_data = SAA7134_BOARD_FLYVIDEO3000,
2691 .vendor = PCI_VENDOR_ID_PHILIPS,
2692 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2693 .subvendor = 0x5168,
2694 .subdevice = 0x0138,
2695 .driver_data = SAA7134_BOARD_FLYVIDEO2000,
2697 .vendor = PCI_VENDOR_ID_PHILIPS,
2698 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2699 .subvendor = 0x4e42, /* Typhoon */
2700 .subdevice = 0x0138, /* LifeView FlyTV Prime30 OEM */
2701 .driver_data = SAA7134_BOARD_FLYVIDEO2000,
2703 .vendor = PCI_VENDOR_ID_PHILIPS,
2704 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2705 .subvendor = 0x5168,
2706 .subdevice = 0x0212, /* minipci, LR212 */
2707 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2709 .vendor = PCI_VENDOR_ID_PHILIPS,
2710 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2711 .subvendor = 0x14c0,
2712 .subdevice = 0x1212, /* minipci, LR1212 */
2713 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
2715 .vendor = PCI_VENDOR_ID_PHILIPS,
2716 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2717 .subvendor = 0x4e42,
2718 .subdevice = 0x0212, /* OEM minipci, LR212 */
2719 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2721 .vendor = PCI_VENDOR_ID_PHILIPS,
2722 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2723 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
2724 .subdevice = 0x0214, /* Standard PCI, LR214WF */
2725 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
2727 .vendor = PCI_VENDOR_ID_PHILIPS,
2728 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2729 .subvendor = 0x1489, /* KYE */
2730 .subdevice = 0x0214, /* Genius VideoWonder ProTV */
2731 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
2733 .vendor = PCI_VENDOR_ID_PHILIPS,
2734 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2735 .subvendor = 0x16be,
2736 .subdevice = 0x0003,
2737 .driver_data = SAA7134_BOARD_MD7134,
2739 .vendor = PCI_VENDOR_ID_PHILIPS,
2740 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2741 .subvendor = 0x1048,
2742 .subdevice = 0x226b,
2743 .driver_data = SAA7134_BOARD_ELSA,
2745 .vendor = PCI_VENDOR_ID_PHILIPS,
2746 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2747 .subvendor = 0x1048,
2748 .subdevice = 0x226b,
2749 .driver_data = SAA7134_BOARD_ELSA_500TV,
2751 .vendor = PCI_VENDOR_ID_PHILIPS,
2752 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2753 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2754 .subdevice = 0x4842,
2755 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2757 .vendor = PCI_VENDOR_ID_PHILIPS,
2758 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2759 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2760 .subdevice = 0x4845,
2761 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7135,
2763 .vendor = PCI_VENDOR_ID_PHILIPS,
2764 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2765 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2766 .subdevice = 0x4830,
2767 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2769 .vendor = PCI_VENDOR_ID_PHILIPS,
2770 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2771 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2772 .subdevice = 0x4843,
2773 .driver_data = SAA7134_BOARD_ASUSTEK_TVFM7133,
2775 .vendor = PCI_VENDOR_ID_PHILIPS,
2776 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2777 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2778 .subdevice = 0x4840,
2779 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2781 .vendor = PCI_VENDOR_ID_PHILIPS,
2782 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2783 .subvendor = PCI_VENDOR_ID_PHILIPS,
2784 .subdevice = 0xfe01,
2785 .driver_data = SAA7134_BOARD_TVSTATION_RDS,
2787 .vendor = PCI_VENDOR_ID_PHILIPS,
2788 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2789 .subvendor = 0x1894,
2790 .subdevice = 0xfe01,
2791 .driver_data = SAA7134_BOARD_TVSTATION_RDS,
2793 .vendor = PCI_VENDOR_ID_PHILIPS,
2794 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2795 .subvendor = 0x1894,
2796 .subdevice = 0xa006,
2797 .driver_data = SAA7134_BOARD_TVSTATION_DVR,
2799 .vendor = PCI_VENDOR_ID_PHILIPS,
2800 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2801 .subvendor = 0x1131,
2802 .subdevice = 0x7133,
2803 .driver_data = SAA7134_BOARD_VA1000POWER,
2805 .vendor = PCI_VENDOR_ID_PHILIPS,
2806 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2807 .subvendor = PCI_VENDOR_ID_PHILIPS,
2808 .subdevice = 0x2001,
2809 .driver_data = SAA7134_BOARD_10MOONSTVMASTER,
2811 .vendor = PCI_VENDOR_ID_PHILIPS,
2812 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2813 .subvendor = 0x185b,
2814 .subdevice = 0xc100,
2815 .driver_data = SAA7134_BOARD_VIDEOMATE_TV,
2817 .vendor = PCI_VENDOR_ID_PHILIPS,
2818 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2819 .subvendor = 0x185b,
2820 .subdevice = 0xc100,
2821 .driver_data = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
2823 .vendor = PCI_VENDOR_ID_PHILIPS,
2824 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2825 .subvendor = PCI_VENDOR_ID_MATROX,
2826 .subdevice = 0x48d0,
2827 .driver_data = SAA7134_BOARD_CRONOS_PLUS,
2829 .vendor = PCI_VENDOR_ID_PHILIPS,
2830 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2831 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2832 .subdevice = 0xa70b,
2833 .driver_data = SAA7134_BOARD_MD2819,
2835 .vendor = PCI_VENDOR_ID_PHILIPS,
2836 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2837 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2838 .subdevice = 0x2115,
2839 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
2841 .vendor = PCI_VENDOR_ID_PHILIPS,
2842 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2843 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2844 .subdevice = 0x2108,
2845 .driver_data = SAA7134_BOARD_AVERMEDIA_305,
2847 .vendor = PCI_VENDOR_ID_PHILIPS,
2848 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2849 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2850 .subdevice = 0x10ff,
2851 .driver_data = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
2853 /* AVerMedia CardBus */
2854 .vendor = PCI_VENDOR_ID_PHILIPS,
2855 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2856 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2857 .subdevice = 0xd6ee,
2858 .driver_data = SAA7134_BOARD_AVERMEDIA_CARDBUS,
2860 /* TransGear 3000TV */
2861 .vendor = PCI_VENDOR_ID_PHILIPS,
2862 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2863 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2864 .subdevice = 0x050c,
2865 .driver_data = SAA7134_BOARD_TG3000TV,
2867 .vendor = PCI_VENDOR_ID_PHILIPS,
2868 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2869 .subvendor = 0x11bd,
2870 .subdevice = 0x002b,
2871 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
2873 .vendor = PCI_VENDOR_ID_PHILIPS,
2874 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2875 .subvendor = 0x11bd,
2876 .subdevice = 0x002d,
2877 .driver_data = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
2879 .vendor = PCI_VENDOR_ID_PHILIPS,
2880 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2881 .subvendor = 0x1019,
2882 .subdevice = 0x4cb4,
2883 .driver_data = SAA7134_BOARD_ECS_TVP3XP,
2885 .vendor = PCI_VENDOR_ID_PHILIPS,
2886 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2887 .subvendor = 0x1019,
2888 .subdevice = 0x4cb5,
2889 .driver_data = SAA7134_BOARD_ECS_TVP3XP_4CB5,
2891 .vendor = PCI_VENDOR_ID_PHILIPS,
2892 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2893 .subvendor = 0x12ab,
2894 .subdevice = 0x0800,
2895 .driver_data = SAA7134_BOARD_UPMOST_PURPLE_TV,
2897 .vendor = PCI_VENDOR_ID_PHILIPS,
2898 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2899 .subvendor = 0x153b,
2900 .subdevice = 0x1152,
2901 .driver_data = SAA7134_BOARD_CINERGY200,
2903 .vendor = PCI_VENDOR_ID_PHILIPS,
2904 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2905 .subvendor = 0x185b,
2906 .subdevice = 0xc100,
2907 .driver_data = SAA7134_BOARD_VIDEOMATE_TV_PVR,
2909 .vendor = PCI_VENDOR_ID_PHILIPS,
2910 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2911 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2912 .subdevice = 0x9715,
2913 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
2915 .vendor = PCI_VENDOR_ID_PHILIPS,
2916 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2917 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2918 .subdevice = 0xa70a,
2919 .driver_data = SAA7134_BOARD_AVERMEDIA_307,
2921 .vendor = PCI_VENDOR_ID_PHILIPS,
2922 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2923 .subvendor = 0x185b,
2924 .subdevice = 0xc200,
2925 .driver_data = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
2927 .vendor = PCI_VENDOR_ID_PHILIPS,
2928 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2929 .subvendor = 0x1540,
2930 .subdevice = 0x9524,
2931 .driver_data = SAA7134_BOARD_PROVIDEO_PV952,
2934 .vendor = PCI_VENDOR_ID_PHILIPS,
2935 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2936 .subvendor = 0x5168,
2937 .subdevice = 0x0502, /* Cardbus version */
2938 .driver_data = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
2940 .vendor = PCI_VENDOR_ID_PHILIPS,
2941 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2942 .subvendor = 0x5168,
2943 .subdevice = 0x0306, /* PCI version */
2944 .driver_data = SAA7134_BOARD_FLYDVBTDUO,
2946 .vendor = PCI_VENDOR_ID_PHILIPS,
2947 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2948 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2949 .subdevice = 0xf31f,
2950 .driver_data = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
2953 .vendor = PCI_VENDOR_ID_PHILIPS,
2954 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2955 .subvendor = PCI_VENDOR_ID_PHILIPS,
2956 .subdevice = 0x2004,
2957 .driver_data = SAA7134_BOARD_PHILIPS_TOUGH,
2959 .vendor = PCI_VENDOR_ID_PHILIPS,
2960 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2961 .subvendor = 0x1421,
2962 .subdevice = 0x0350, /* PCI version */
2963 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2965 .vendor = PCI_VENDOR_ID_PHILIPS,
2966 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2967 .subvendor = 0x1421,
2968 .subdevice = 0x0351, /* PCI version, new revision */
2969 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2971 .vendor = PCI_VENDOR_ID_PHILIPS,
2972 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2973 .subvendor = 0x1421,
2974 .subdevice = 0x0370, /* cardbus version */
2975 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2977 .vendor = PCI_VENDOR_ID_PHILIPS,
2978 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2979 .subvendor = 0x1421,
2980 .subdevice = 0x1370, /* cardbus version */
2981 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2984 .vendor = PCI_VENDOR_ID_PHILIPS,
2985 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2986 .subvendor = 0x4e42, /* Typhoon */
2987 .subdevice = 0x0502, /* LifeView LR502 OEM */
2988 .driver_data = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
2990 .vendor = PCI_VENDOR_ID_PHILIPS,
2991 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2992 .subvendor = 0x1043,
2993 .subdevice = 0x0210, /* mini pci NTSC version */
2994 .driver_data = SAA7134_BOARD_FLYTV_DIGIMATRIX,
2996 .vendor = PCI_VENDOR_ID_PHILIPS,
2997 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2998 .subvendor = 0x1043,
2999 .subdevice = 0x0210, /* mini pci PAL/SECAM version */
3000 .driver_data = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
3003 .vendor = PCI_VENDOR_ID_PHILIPS,
3004 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3005 .subvendor = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
3006 .subdevice = 0x4091,
3007 .driver_data = SAA7134_BOARD_BEHOLD_409FM,
3009 .vendor = PCI_VENDOR_ID_PHILIPS,
3010 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3011 .subvendor = 0x5456, /* GoTView */
3012 .subdevice = 0x7135,
3013 .driver_data = SAA7134_BOARD_GOTVIEW_7135,
3015 .vendor = PCI_VENDOR_ID_PHILIPS,
3016 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3017 .subvendor = PCI_VENDOR_ID_PHILIPS,
3018 .subdevice = 0x2004,
3019 .driver_data = SAA7134_BOARD_PHILIPS_EUROPA,
3021 .vendor = PCI_VENDOR_ID_PHILIPS,
3022 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3023 .subvendor = 0x185b,
3024 .subdevice = 0xc900,
3025 .driver_data = SAA7134_BOARD_VIDEOMATE_DVBT_300,
3027 .vendor = PCI_VENDOR_ID_PHILIPS,
3028 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3029 .subvendor = 0x185b,
3030 .subdevice = 0xc901,
3031 .driver_data = SAA7134_BOARD_VIDEOMATE_DVBT_200,
3033 .vendor = PCI_VENDOR_ID_PHILIPS,
3034 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3035 .subvendor = 0x1435,
3036 .subdevice = 0x7350,
3037 .driver_data = SAA7134_BOARD_RTD_VFG7350,
3039 .vendor = PCI_VENDOR_ID_PHILIPS,
3040 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3041 .subvendor = 0x1435,
3042 .subdevice = 0x7330,
3043 .driver_data = SAA7134_BOARD_RTD_VFG7330,
3045 .vendor = PCI_VENDOR_ID_PHILIPS,
3046 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3047 .subvendor = 0x1461,
3048 .subdevice = 0x1044,
3049 .driver_data = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
3051 .vendor = PCI_VENDOR_ID_PHILIPS,
3052 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3053 .subvendor = 0x1131,
3054 .subdevice = 0x4ee9,
3055 .driver_data = SAA7134_BOARD_MONSTERTV_MOBILE,
3057 .vendor = PCI_VENDOR_ID_PHILIPS,
3058 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3059 .subvendor = 0x11bd,
3060 .subdevice = 0x002e,
3061 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_110i,
3063 .vendor = PCI_VENDOR_ID_PHILIPS,
3064 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3065 .subvendor = 0x1043,
3066 .subdevice = 0x4862,
3067 .driver_data = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3069 .vendor = PCI_VENDOR_ID_PHILIPS,
3070 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3071 .subvendor = PCI_VENDOR_ID_PHILIPS,
3072 .subdevice = 0x2018,
3073 .driver_data = SAA7134_BOARD_PHILIPS_TIGER,
3075 .vendor = PCI_VENDOR_ID_PHILIPS,
3076 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3077 .subvendor = 0x1462,
3078 .subdevice = 0x6231,
3079 .driver_data = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
3081 .vendor = PCI_VENDOR_ID_PHILIPS,
3082 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3083 .subvendor = 0x153b,
3084 .subdevice = 0x1160,
3085 .driver_data = SAA7134_BOARD_CINERGY250PCI,
3087 .vendor = PCI_VENDOR_ID_PHILIPS,
3088 .device = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA 7131E */
3089 .subvendor = 0x5168,
3090 .subdevice = 0x0319,
3091 .driver_data = SAA7134_BOARD_FLYDVB_TRIO,
3093 /* --- boards without eeprom + subsystem ID --- */
3094 .vendor = PCI_VENDOR_ID_PHILIPS,
3095 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3096 .subvendor = PCI_VENDOR_ID_PHILIPS,
3098 .driver_data = SAA7134_BOARD_NOAUTO,
3100 .vendor = PCI_VENDOR_ID_PHILIPS,
3101 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3102 .subvendor = PCI_VENDOR_ID_PHILIPS,
3104 .driver_data = SAA7134_BOARD_NOAUTO,
3107 /* --- default catch --- */
3108 .vendor = PCI_VENDOR_ID_PHILIPS,
3109 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3110 .subvendor = PCI_ANY_ID,
3111 .subdevice = PCI_ANY_ID,
3112 .driver_data = SAA7134_BOARD_UNKNOWN,
3114 .vendor = PCI_VENDOR_ID_PHILIPS,
3115 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3116 .subvendor = PCI_ANY_ID,
3117 .subdevice = PCI_ANY_ID,
3118 .driver_data = SAA7134_BOARD_UNKNOWN,
3120 .vendor = PCI_VENDOR_ID_PHILIPS,
3121 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3122 .subvendor = PCI_ANY_ID,
3123 .subdevice = PCI_ANY_ID,
3124 .driver_data = SAA7134_BOARD_UNKNOWN,
3126 .vendor = PCI_VENDOR_ID_PHILIPS,
3127 .device = PCI_DEVICE_ID_PHILIPS_SAA7135,
3128 .subvendor = PCI_ANY_ID,
3129 .subdevice = PCI_ANY_ID,
3130 .driver_data = SAA7134_BOARD_UNKNOWN,
3132 /* --- end of list --- */
3135 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
3137 /* ----------------------------------------------------------- */
3138 /* flyvideo tweaks */
3141 static void board_flyvideo(struct saa7134_dev *dev)
3143 printk("%s: there are different flyvideo cards with different tuners\n"
3144 "%s: out there, you might have to use the tuner=<nr> insmod\n"
3145 "%s: option to override the default value.\n",
3146 dev->name, dev->name, dev->name);
3149 /* ----------------------------------------------------------- */
3151 int saa7134_board_init1(struct saa7134_dev *dev)
3153 /* Always print gpio, often manufacturers encode tuner type and other info. */
3154 saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
3155 dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
3156 printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
3158 switch (dev->board) {
3159 case SAA7134_BOARD_FLYVIDEO2000:
3160 case SAA7134_BOARD_FLYVIDEO3000:
3161 dev->has_remote = SAA7134_REMOTE_GPIO;
3162 board_flyvideo(dev);
3164 case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
3165 case SAA7134_BOARD_FLYTVPLATINUM_FM:
3166 case SAA7134_BOARD_CINERGY400:
3167 case SAA7134_BOARD_CINERGY600:
3168 case SAA7134_BOARD_CINERGY600_MK3:
3169 case SAA7134_BOARD_ECS_TVP3XP:
3170 case SAA7134_BOARD_ECS_TVP3XP_4CB5:
3171 case SAA7134_BOARD_MD2819:
3172 case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
3173 case SAA7134_BOARD_KWORLD_XPERT:
3174 case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
3175 case SAA7134_BOARD_AVERMEDIA_305:
3176 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
3177 case SAA7134_BOARD_AVERMEDIA_307:
3178 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
3179 /* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */
3180 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
3181 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
3182 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
3183 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3184 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
3185 case SAA7134_BOARD_MANLI_MTV001:
3186 case SAA7134_BOARD_MANLI_MTV002:
3187 case SAA7134_BOARD_BEHOLD_409FM:
3188 case SAA7134_BOARD_AVACSSMARTTV:
3189 case SAA7134_BOARD_GOTVIEW_7135:
3190 case SAA7134_BOARD_KWORLD_TERMINATOR:
3191 case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
3192 dev->has_remote = SAA7134_REMOTE_GPIO;
3194 case SAA7134_BOARD_MD5044:
3195 printk("%s: seems there are two different versions of the MD5044\n"
3196 "%s: (with the same ID) out there. If sound doesn't work for\n"
3197 "%s: you try the audio_clock_override=0x200000 insmod option.\n",
3198 dev->name,dev->name,dev->name);
3200 case SAA7134_BOARD_CINERGY400_CARDBUS:
3201 /* power-up tuner chip */
3202 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00040000, 0x00040000);
3203 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
3204 case SAA7134_BOARD_MONSTERTV_MOBILE:
3205 /* power-up tuner chip */
3206 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00040000, 0x00040000);
3207 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
3209 case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
3210 /* turn the fan on */
3211 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
3212 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
3214 case SAA7134_BOARD_AVERMEDIA_CARDBUS:
3215 /* power-up tuner chip */
3216 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0xffffffff, 0xffffffff);
3217 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
3220 case SAA7134_BOARD_RTD_VFG7350:
3223 * Make sure Production Test Register at offset 0x1D1 is cleared
3224 * to take chip out of test mode. Clearing bit 4 (TST_EN_AOUT)
3225 * prevents pin 105 from remaining low; keeping pin 105 low
3226 * continually resets the SAA6752 chip.
3229 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
3232 case SAA7134_BOARD_PINNACLE_PCTV_110i:
3233 case SAA7134_BOARD_UPMOST_PURPLE_TV:
3234 dev->has_remote = SAA7134_REMOTE_I2C;
3240 /* stuff which needs working i2c */
3241 int saa7134_board_init2(struct saa7134_dev *dev)
3246 switch (dev->board) {
3247 case SAA7134_BOARD_BMK_MPEX_NOTUNER:
3248 case SAA7134_BOARD_BMK_MPEX_TUNER:
3249 dev->i2c_client.addr = 0x60;
3250 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
3251 ? SAA7134_BOARD_BMK_MPEX_NOTUNER
3252 : SAA7134_BOARD_BMK_MPEX_TUNER;
3253 if (board == dev->board)
3256 printk("%s: board type fixup: %s\n", dev->name,
3257 saa7134_boards[dev->board].name);
3258 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
3260 if (TUNER_ABSENT != dev->tuner_type) {
3261 struct tuner_setup tun_setup;
3263 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3264 tun_setup.type = dev->tuner_type;
3265 tun_setup.addr = ADDR_UNSET;
3267 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
3270 case SAA7134_BOARD_MD7134:
3272 struct tuner_setup tun_setup;
3277 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
3278 {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
3281 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
3283 printk(KERN_ERR "EEPROM read failure\n");
3284 } else if ((data[0] != 0) && (data[0] != 0xff)) {
3285 /* old config structure */
3286 subaddr = data[0] + 2;
3288 i2c_transfer(&dev->i2c_adap, msg, 2);
3289 tuner_t = (data[0] << 8) + data[1];
3292 dev->tuner_type = TUNER_PHILIPS_PAL;
3295 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3298 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3300 } else if ((data[1] != 0) && (data[1] != 0xff)) {
3301 /* new config structure */
3302 subaddr = data[1] + 1;
3304 i2c_transfer(&dev->i2c_adap, msg, 2);
3305 subaddr = data[0] + 1;
3307 i2c_transfer(&dev->i2c_adap, msg, 2);
3308 tuner_t = (data[1] << 8) + data[0];
3311 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3314 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
3315 printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
3318 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3321 printk(KERN_ERR "%s unexpected config structure\n", dev->name);
3324 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
3325 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
3326 dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
3327 saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
3330 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3331 tun_setup.type = dev->tuner_type;
3332 tun_setup.addr = ADDR_UNSET;
3334 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3337 case SAA7134_BOARD_PHILIPS_EUROPA:
3338 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3339 /* The Philips EUROPA based hybrid boards have the tuner connected through
3340 * the channel decoder. We have to make it transparent to find it
3343 struct tuner_setup tun_setup;
3344 u8 data[] = { 0x07, 0x02};
3345 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3346 i2c_transfer(&dev->i2c_adap, &msg, 1);
3348 tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
3349 tun_setup.type = dev->tuner_type;
3350 tun_setup.addr = dev->tuner_addr;
3352 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3355 case SAA7134_BOARD_PHILIPS_TIGER:
3356 case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
3357 /* this is a hybrid board, initialize to analog mode */
3359 u8 data[] = { 0x3c, 0x33, 0x68};
3360 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3361 i2c_transfer(&dev->i2c_adap, &msg, 1);
3368 /* ----------------------------------------------------------- */