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 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,
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_THYPHOON_DVBT_DUO_CARDBUS] = {
1888 .name = "Typhoon DVB-T Duo Digital/Analog 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 = 0xe000, */
1900 /* .gpio = 0x0000, */
1903 .name = name_comp1, /* Composite signal on S-Video input */
1906 /* .gpio = 0x4000, */
1908 .name = name_comp2, /* Composite input */
1911 /* .gpio = 0x4000, */
1913 .name = name_svideo, /* S-Video signal on S-Video input */
1916 /* .gpio = 0x4000, */
1927 [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
1928 .name = "Compro VideoMate TV Gold+II",
1929 .audio_clock = 0x002187de7,
1930 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1931 .radio_type = TUNER_TEA5767,
1934 .gpiomask = 0x8c1880,
1936 .name = name_svideo,
1963 [SAA7134_BOARD_KWORLD_XPERT] = {
1966 - Remote control doesn't initialize properly.
1967 - Audio volume starts muted,
1968 then gradually increases after channel change.
1969 - Overlay scaling problems (application error?)
1970 - Composite S-Video untested.
1971 From: Konrad Rzepecki <hannibal@megapolis.pl>
1973 .name = "Kworld Xpert TV PVR7134",
1974 .audio_clock = 0x00187de7,
1975 .tuner_type = TUNER_TENA_9533_DI,
1976 .radio_type = TUNER_TEA5767,
1990 .gpio = 0x200, /* gpio by DScaler */
1992 .name = name_svideo,
2008 [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2009 .name = "FlyTV mini Asus Digimatrix",
2010 .audio_clock = 0x00200000,
2011 .tuner_type = TUNER_LG_NTSC_TALN_MINI,
2012 .radio_type = UNSET,
2013 .tuner_addr = ADDR_UNSET,
2014 .radio_addr = ADDR_UNSET,
2021 .name = name_tv_mono,
2034 .name = name_svideo,
2039 .name = name_radio, /* radio unconfirmed */
2043 [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2044 /* Kworld V-Stream Studio TV Terminator */
2045 /* "James Webb <jrwebb@qwest.net> */
2046 .name = "V-Stream Studio TV Terminator",
2047 .audio_clock = 0x00187de7,
2048 .tuner_type = TUNER_PHILIPS_TDA8290,
2049 .radio_type = UNSET,
2050 .tuner_addr = ADDR_UNSET,
2051 .radio_addr = ADDR_UNSET,
2052 .gpiomask = 1 << 21,
2060 .name = name_comp1, /* Composite input */
2065 .name = name_svideo, /* S-Video input */
2076 [SAA7134_BOARD_YUAN_TUN900] = {
2078 * S-Video and composite sources untested.
2079 * Radio not working.
2080 * Remote control not yet implemented.
2081 * From : codemaster@webgeeks.be */
2082 .name = "Yuan TUN-900 (saa7135)",
2083 .audio_clock = 0x00187de7,
2084 .tuner_type = TUNER_PHILIPS_TDA8290,
2085 .radio_type = UNSET,
2086 .tuner_addr= ADDR_UNSET,
2087 .radio_addr= ADDR_UNSET,
2088 .gpiomask = 0x00010003,
2101 .name = name_svideo,
2117 [SAA7134_BOARD_BEHOLD_409FM] = {
2118 /* <http://tuner.beholder.ru>, Sergey <skiv@orel.ru> */
2119 .name = "Beholder BeholdTV 409 FM",
2120 .audio_clock = 0x00187de7,
2121 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
2122 .radio_type = UNSET,
2123 .tuner_addr = ADDR_UNSET,
2124 .radio_addr = ADDR_UNSET,
2125 .tda9887_conf = TDA9887_PRESENT,
2136 .name = name_svideo,
2145 [SAA7134_BOARD_GOTVIEW_7135] = {
2146 /* Mike Baikov <mike@baikov.com> */
2147 /* Andrey Cvetcov <ays14@yandex.ru> */
2148 .name = "GoTView 7135 PCI",
2149 .audio_clock = 0x00187de7,
2150 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
2151 .radio_type = UNSET,
2152 .tuner_addr = ADDR_UNSET,
2153 .radio_addr = ADDR_UNSET,
2154 .tda9887_conf = TDA9887_PRESENT,
2155 .gpiomask = 0x00200003,
2163 .name = name_tv_mono,
2173 .name = name_svideo,
2189 [SAA7134_BOARD_PHILIPS_EUROPA] = {
2190 .name = "Philips EUROPA V3 reference design",
2191 .audio_clock = 0x00187de7,
2192 .tuner_type = TUNER_PHILIPS_TD1316,
2193 .radio_type = UNSET,
2195 .radio_addr = ADDR_UNSET,
2196 .tda9887_conf = TDA9887_PRESENT,
2197 .mpeg = SAA7134_MPEG_DVB,
2208 .name = name_svideo,
2213 [SAA7134_BOARD_VIDEOMATE_DVBT_300] = {
2214 .name = "Compro Videomate DVB-T300",
2215 .audio_clock = 0x00187de7,
2216 .tuner_type = TUNER_PHILIPS_TD1316,
2217 .radio_type = UNSET,
2219 .radio_addr = ADDR_UNSET,
2220 .tda9887_conf = TDA9887_PRESENT,
2221 .mpeg = SAA7134_MPEG_DVB,
2232 .name = name_svideo,
2237 [SAA7134_BOARD_VIDEOMATE_DVBT_200] = {
2238 .name = "Compro Videomate DVB-T200",
2239 .tuner_type = TUNER_ABSENT,
2240 .audio_clock = 0x00187de7,
2241 .radio_type = UNSET,
2242 .tuner_addr = ADDR_UNSET,
2243 .radio_addr = ADDR_UNSET,
2244 .mpeg = SAA7134_MPEG_DVB,
2250 .name = name_svideo,
2255 [SAA7134_BOARD_RTD_VFG7350] = {
2256 .name = "RTD Embedded Technologies VFG7350",
2257 .audio_clock = 0x00200000,
2258 .tuner_type = TUNER_ABSENT,
2259 .radio_type = UNSET,
2260 .tuner_addr = ADDR_UNSET,
2261 .radio_addr = ADDR_UNSET,
2263 .name = "Composite 0",
2267 .name = "Composite 1",
2271 .name = "Composite 2",
2275 .name = "Composite 3",
2279 .name = "S-Video 0",
2283 .name = "S-Video 1",
2287 .mpeg = SAA7134_MPEG_EMPRESS,
2288 .video_out = CCIR656,
2289 .vid_port_opts = ( SET_T_CODE_POLARITY_NON_INVERTED |
2290 SET_CLOCK_NOT_DELAYED |
2291 SET_CLOCK_INVERTED |
2294 [SAA7134_BOARD_RTD_VFG7330] = {
2295 .name = "RTD Embedded Technologies VFG7330",
2296 .audio_clock = 0x00200000,
2297 .tuner_type = TUNER_ABSENT,
2298 .radio_type = UNSET,
2299 .tuner_addr = ADDR_UNSET,
2300 .radio_addr = ADDR_UNSET,
2302 .name = "Composite 0",
2306 .name = "Composite 1",
2310 .name = "Composite 2",
2314 .name = "Composite 3",
2318 .name = "S-Video 0",
2322 .name = "S-Video 1",
2327 [SAA7134_BOARD_FLYTVPLATINUM_MINI2] = {
2328 .name = "LifeView FlyTV Platinum Mini2",
2329 .audio_clock = 0x00200000,
2330 .tuner_type = TUNER_PHILIPS_TDA8290,
2331 .radio_type = UNSET,
2332 .tuner_addr = ADDR_UNSET,
2333 .radio_addr = ADDR_UNSET,
2341 .name = name_comp1, /* Composite signal on S-Video input */
2345 .name = name_comp2, /* Composite input */
2349 .name = name_svideo,
2354 [SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180] = {
2355 /* Michael Krufky <mkrufky@m1k.net>
2356 * Uses Alps Electric TDHU2, containing NXT2004 ATSC Decoder
2357 * AFAIK, there is no analog demod, thus,
2358 * no support for analog television.
2360 .name = "AVerMedia AVerTVHD MCE A180",
2361 .audio_clock = 0x00187de7,
2362 .tuner_type = TUNER_ABSENT,
2363 .radio_type = UNSET,
2364 .tuner_addr = ADDR_UNSET,
2365 .radio_addr = ADDR_UNSET,
2366 .mpeg = SAA7134_MPEG_DVB,
2372 .name = name_svideo,
2377 [SAA7134_BOARD_MONSTERTV_MOBILE] = {
2378 .name = "SKNet MonsterTV Mobile",
2379 .audio_clock = 0x00187de7,
2380 .tuner_type = TUNER_PHILIPS_TDA8290,
2381 .radio_type = UNSET,
2382 .tuner_addr = ADDR_UNSET,
2383 .radio_addr = ADDR_UNSET,
2395 .name = name_svideo,
2400 [SAA7134_BOARD_PINNACLE_PCTV_110i] = {
2401 .name = "Pinnacle PCTV 110i (saa7133)",
2402 .audio_clock = 0x00187de7,
2403 .tuner_type = TUNER_PHILIPS_TDA8290,
2404 .radio_type = UNSET,
2405 .tuner_addr = ADDR_UNSET,
2406 .radio_addr = ADDR_UNSET,
2407 .gpiomask = 0x080200000,
2418 .name = name_svideo,
2427 [SAA7134_BOARD_ASUSTeK_P7131_DUAL] = {
2428 .name = "ASUSTeK P7131 Dual",
2429 .audio_clock = 0x00187de7,
2430 .tuner_type = TUNER_PHILIPS_TDA8290,
2431 .radio_type = UNSET,
2432 .tuner_addr = ADDR_UNSET,
2433 .radio_addr = ADDR_UNSET,
2434 .gpiomask = 1 << 21,
2435 .mpeg = SAA7134_MPEG_DVB,
2446 .name = name_svideo,
2456 [SAA7134_BOARD_SEDNA_PC_TV_CARDBUS] = {
2457 /* Paul Tom Zalac <pzalac@gmail.com> */
2458 /* Pavel Mihaylov <bin@bash.info> */
2459 .name = "Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)",
2460 /* Sedna/MuchTV (OEM) Cardbus TV Tuner */
2461 .audio_clock = 0x00187de7,
2462 .tuner_type = TUNER_PHILIPS_TDA8290,
2463 .radio_type = UNSET,
2464 .tuner_addr = ADDR_UNSET,
2465 .radio_addr = ADDR_UNSET,
2466 .gpiomask = 0xe880c0,
2477 .name = name_svideo,
2486 [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
2487 /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
2488 .name = "ASUS Digimatrix TV",
2489 .audio_clock = 0x00200000,
2490 .tuner_type = TUNER_PHILIPS_FQ1216ME,
2491 .tda9887_conf = TDA9887_PRESENT,
2492 .radio_type = UNSET,
2493 .tuner_addr = ADDR_UNSET,
2494 .radio_addr = ADDR_UNSET,
2505 .name = name_svideo,
2510 [SAA7134_BOARD_PHILIPS_TIGER] = {
2511 .name = "Philips Tiger reference design",
2512 .audio_clock = 0x00187de7,
2513 .tuner_type = TUNER_PHILIPS_TDA8290,
2514 .radio_type = UNSET,
2515 .tuner_addr = ADDR_UNSET,
2516 .radio_addr = ADDR_UNSET,
2517 .mpeg = SAA7134_MPEG_DVB,
2528 .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_SAA7133,
2699 .subvendor = 0x5168,
2700 .subdevice = 0x0212, /* minipci, LR212 */
2701 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2703 .vendor = PCI_VENDOR_ID_PHILIPS,
2704 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2705 .subvendor = 0x14c0,
2706 .subdevice = 0x1212, /* minipci, LR1212 */
2707 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
2709 .vendor = PCI_VENDOR_ID_PHILIPS,
2710 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2711 .subvendor = 0x4e42,
2712 .subdevice = 0x0212, /* OEM minipci, LR212 */
2713 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2715 .vendor = PCI_VENDOR_ID_PHILIPS,
2716 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2717 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
2718 .subdevice = 0x0214, /* Standard PCI, LR214WF */
2719 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
2721 .vendor = PCI_VENDOR_ID_PHILIPS,
2722 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2723 .subvendor = 0x1489, /* KYE */
2724 .subdevice = 0x0214, /* Genius VideoWonder ProTV */
2725 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
2727 .vendor = PCI_VENDOR_ID_PHILIPS,
2728 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2729 .subvendor = 0x16be,
2730 .subdevice = 0x0003,
2731 .driver_data = SAA7134_BOARD_MD7134,
2733 .vendor = PCI_VENDOR_ID_PHILIPS,
2734 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2735 .subvendor = 0x1048,
2736 .subdevice = 0x226b,
2737 .driver_data = SAA7134_BOARD_ELSA,
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_500TV,
2745 .vendor = PCI_VENDOR_ID_PHILIPS,
2746 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2747 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2748 .subdevice = 0x4842,
2749 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2751 .vendor = PCI_VENDOR_ID_PHILIPS,
2752 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2753 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2754 .subdevice = 0x4845,
2755 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7135,
2757 .vendor = PCI_VENDOR_ID_PHILIPS,
2758 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2759 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2760 .subdevice = 0x4830,
2761 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2763 .vendor = PCI_VENDOR_ID_PHILIPS,
2764 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2765 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2766 .subdevice = 0x4843,
2767 .driver_data = SAA7134_BOARD_ASUSTEK_TVFM7133,
2769 .vendor = PCI_VENDOR_ID_PHILIPS,
2770 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2771 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2772 .subdevice = 0x4840,
2773 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2775 .vendor = PCI_VENDOR_ID_PHILIPS,
2776 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2777 .subvendor = PCI_VENDOR_ID_PHILIPS,
2778 .subdevice = 0xfe01,
2779 .driver_data = SAA7134_BOARD_TVSTATION_RDS,
2781 .vendor = PCI_VENDOR_ID_PHILIPS,
2782 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2783 .subvendor = 0x1894,
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 = 0xa006,
2791 .driver_data = SAA7134_BOARD_TVSTATION_DVR,
2793 .vendor = PCI_VENDOR_ID_PHILIPS,
2794 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2795 .subvendor = 0x1131,
2796 .subdevice = 0x7133,
2797 .driver_data = SAA7134_BOARD_VA1000POWER,
2799 .vendor = PCI_VENDOR_ID_PHILIPS,
2800 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2801 .subvendor = PCI_VENDOR_ID_PHILIPS,
2802 .subdevice = 0x2001,
2803 .driver_data = SAA7134_BOARD_10MOONSTVMASTER,
2805 .vendor = PCI_VENDOR_ID_PHILIPS,
2806 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2807 .subvendor = 0x185b,
2808 .subdevice = 0xc100,
2809 .driver_data = SAA7134_BOARD_VIDEOMATE_TV,
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_GOLD_PLUS,
2817 .vendor = PCI_VENDOR_ID_PHILIPS,
2818 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2819 .subvendor = PCI_VENDOR_ID_MATROX,
2820 .subdevice = 0x48d0,
2821 .driver_data = SAA7134_BOARD_CRONOS_PLUS,
2823 .vendor = PCI_VENDOR_ID_PHILIPS,
2824 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2825 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2826 .subdevice = 0xa70b,
2827 .driver_data = SAA7134_BOARD_MD2819,
2829 .vendor = PCI_VENDOR_ID_PHILIPS,
2830 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2831 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2832 .subdevice = 0x2115,
2833 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
2835 .vendor = PCI_VENDOR_ID_PHILIPS,
2836 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2837 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2838 .subdevice = 0x2108,
2839 .driver_data = SAA7134_BOARD_AVERMEDIA_305,
2841 .vendor = PCI_VENDOR_ID_PHILIPS,
2842 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2843 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2844 .subdevice = 0x10ff,
2845 .driver_data = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
2847 /* AVerMedia CardBus */
2848 .vendor = PCI_VENDOR_ID_PHILIPS,
2849 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2850 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2851 .subdevice = 0xd6ee,
2852 .driver_data = SAA7134_BOARD_AVERMEDIA_CARDBUS,
2854 /* TransGear 3000TV */
2855 .vendor = PCI_VENDOR_ID_PHILIPS,
2856 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2857 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2858 .subdevice = 0x050c,
2859 .driver_data = SAA7134_BOARD_TG3000TV,
2861 .vendor = PCI_VENDOR_ID_PHILIPS,
2862 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2863 .subvendor = 0x11bd,
2864 .subdevice = 0x002b,
2865 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
2867 .vendor = PCI_VENDOR_ID_PHILIPS,
2868 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2869 .subvendor = 0x11bd,
2870 .subdevice = 0x002d,
2871 .driver_data = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
2873 .vendor = PCI_VENDOR_ID_PHILIPS,
2874 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2875 .subvendor = 0x1019,
2876 .subdevice = 0x4cb4,
2877 .driver_data = SAA7134_BOARD_ECS_TVP3XP,
2879 .vendor = PCI_VENDOR_ID_PHILIPS,
2880 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2881 .subvendor = 0x1019,
2882 .subdevice = 0x4cb5,
2883 .driver_data = SAA7134_BOARD_ECS_TVP3XP_4CB5,
2885 .vendor = PCI_VENDOR_ID_PHILIPS,
2886 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2887 .subvendor = 0x12ab,
2888 .subdevice = 0x0800,
2889 .driver_data = SAA7134_BOARD_UPMOST_PURPLE_TV,
2891 .vendor = PCI_VENDOR_ID_PHILIPS,
2892 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2893 .subvendor = 0x153b,
2894 .subdevice = 0x1152,
2895 .driver_data = SAA7134_BOARD_CINERGY200,
2897 .vendor = PCI_VENDOR_ID_PHILIPS,
2898 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2899 .subvendor = 0x185b,
2900 .subdevice = 0xc100,
2901 .driver_data = SAA7134_BOARD_VIDEOMATE_TV_PVR,
2903 .vendor = PCI_VENDOR_ID_PHILIPS,
2904 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2905 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2906 .subdevice = 0x9715,
2907 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
2909 .vendor = PCI_VENDOR_ID_PHILIPS,
2910 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2911 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2912 .subdevice = 0xa70a,
2913 .driver_data = SAA7134_BOARD_AVERMEDIA_307,
2915 .vendor = PCI_VENDOR_ID_PHILIPS,
2916 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2917 .subvendor = 0x185b,
2918 .subdevice = 0xc200,
2919 .driver_data = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
2921 .vendor = PCI_VENDOR_ID_PHILIPS,
2922 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2923 .subvendor = 0x1540,
2924 .subdevice = 0x9524,
2925 .driver_data = SAA7134_BOARD_PROVIDEO_PV952,
2928 .vendor = PCI_VENDOR_ID_PHILIPS,
2929 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2930 .subvendor = 0x5168,
2931 .subdevice = 0x0502, /* Cardbus version */
2932 .driver_data = SAA7134_BOARD_FLYDVBTDUO,
2934 .vendor = PCI_VENDOR_ID_PHILIPS,
2935 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2936 .subvendor = 0x5168,
2937 .subdevice = 0x0306, /* PCI version */
2938 .driver_data = SAA7134_BOARD_FLYDVBTDUO,
2940 .vendor = PCI_VENDOR_ID_PHILIPS,
2941 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2942 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2943 .subdevice = 0xf31f,
2944 .driver_data = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
2947 .vendor = PCI_VENDOR_ID_PHILIPS,
2948 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2949 .subvendor = PCI_VENDOR_ID_PHILIPS,
2950 .subdevice = 0x2004,
2951 .driver_data = SAA7134_BOARD_PHILIPS_TOUGH,
2953 .vendor = PCI_VENDOR_ID_PHILIPS,
2954 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2955 .subvendor = 0x1421,
2956 .subdevice = 0x0350, /* PCI version */
2957 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2959 .vendor = PCI_VENDOR_ID_PHILIPS,
2960 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2961 .subvendor = 0x1421,
2962 .subdevice = 0x0351, /* PCI version, new revision */
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 = 0x0370, /* cardbus version */
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 = 0x1370, /* cardbus version */
2975 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2977 },{ /* Typhoon DVB-T Duo Digital/Analog Cardbus */
2978 .vendor = PCI_VENDOR_ID_PHILIPS,
2979 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2980 .subvendor = 0x4e42,
2981 .subdevice = 0x0502,
2982 .driver_data = SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS,
2984 .vendor = PCI_VENDOR_ID_PHILIPS,
2985 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2986 .subvendor = 0x1043,
2987 .subdevice = 0x0210, /* mini pci NTSC version */
2988 .driver_data = SAA7134_BOARD_FLYTV_DIGIMATRIX,
2990 .vendor = PCI_VENDOR_ID_PHILIPS,
2991 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2992 .subvendor = 0x1043,
2993 .subdevice = 0x0210, /* mini pci PAL/SECAM version */
2994 .driver_data = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
2997 .vendor = PCI_VENDOR_ID_PHILIPS,
2998 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2999 .subvendor = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
3000 .subdevice = 0x4091,
3001 .driver_data = SAA7134_BOARD_BEHOLD_409FM,
3003 .vendor = PCI_VENDOR_ID_PHILIPS,
3004 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3005 .subvendor = 0x5456, /* GoTView */
3006 .subdevice = 0x7135,
3007 .driver_data = SAA7134_BOARD_GOTVIEW_7135,
3009 .vendor = PCI_VENDOR_ID_PHILIPS,
3010 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3011 .subvendor = PCI_VENDOR_ID_PHILIPS,
3012 .subdevice = 0x2004,
3013 .driver_data = SAA7134_BOARD_PHILIPS_EUROPA,
3015 .vendor = PCI_VENDOR_ID_PHILIPS,
3016 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3017 .subvendor = 0x185b,
3018 .subdevice = 0xc900,
3019 .driver_data = SAA7134_BOARD_VIDEOMATE_DVBT_300,
3021 .vendor = PCI_VENDOR_ID_PHILIPS,
3022 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3023 .subvendor = 0x185b,
3024 .subdevice = 0xc901,
3025 .driver_data = SAA7134_BOARD_VIDEOMATE_DVBT_200,
3027 .vendor = PCI_VENDOR_ID_PHILIPS,
3028 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3029 .subvendor = 0x1435,
3030 .subdevice = 0x7350,
3031 .driver_data = SAA7134_BOARD_RTD_VFG7350,
3033 .vendor = PCI_VENDOR_ID_PHILIPS,
3034 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3035 .subvendor = 0x1435,
3036 .subdevice = 0x7330,
3037 .driver_data = SAA7134_BOARD_RTD_VFG7330,
3039 .vendor = PCI_VENDOR_ID_PHILIPS,
3040 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3041 .subvendor = 0x1461,
3042 .subdevice = 0x1044,
3043 .driver_data = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
3045 .vendor = PCI_VENDOR_ID_PHILIPS,
3046 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3047 .subvendor = 0x1131,
3048 .subdevice = 0x4ee9,
3049 .driver_data = SAA7134_BOARD_MONSTERTV_MOBILE,
3051 .vendor = PCI_VENDOR_ID_PHILIPS,
3052 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3053 .subvendor = 0x11bd,
3054 .subdevice = 0x002e,
3055 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_110i,
3057 .vendor = PCI_VENDOR_ID_PHILIPS,
3058 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3059 .subvendor = 0x1043,
3060 .subdevice = 0x4862,
3061 .driver_data = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3063 .vendor = PCI_VENDOR_ID_PHILIPS,
3064 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3065 .subvendor = PCI_VENDOR_ID_PHILIPS,
3066 .subdevice = 0x2018,
3067 .driver_data = SAA7134_BOARD_PHILIPS_TIGER,
3069 .vendor = PCI_VENDOR_ID_PHILIPS,
3070 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3071 .subvendor = 0x1462,
3072 .subdevice = 0x6231,
3073 .driver_data = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
3075 .vendor = PCI_VENDOR_ID_PHILIPS,
3076 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3077 .subvendor = 0x153b,
3078 .subdevice = 0x1160,
3079 .driver_data = SAA7134_BOARD_CINERGY250PCI,
3081 .vendor = PCI_VENDOR_ID_PHILIPS,
3082 .device = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA 7131E */
3083 .subvendor = 0x5168,
3084 .subdevice = 0x0319,
3085 .driver_data = SAA7134_BOARD_FLYDVB_TRIO,
3087 /* --- boards without eeprom + subsystem ID --- */
3088 .vendor = PCI_VENDOR_ID_PHILIPS,
3089 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3090 .subvendor = PCI_VENDOR_ID_PHILIPS,
3092 .driver_data = SAA7134_BOARD_NOAUTO,
3094 .vendor = PCI_VENDOR_ID_PHILIPS,
3095 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3096 .subvendor = PCI_VENDOR_ID_PHILIPS,
3098 .driver_data = SAA7134_BOARD_NOAUTO,
3101 /* --- default catch --- */
3102 .vendor = PCI_VENDOR_ID_PHILIPS,
3103 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
3104 .subvendor = PCI_ANY_ID,
3105 .subdevice = PCI_ANY_ID,
3106 .driver_data = SAA7134_BOARD_UNKNOWN,
3108 .vendor = PCI_VENDOR_ID_PHILIPS,
3109 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
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_SAA7134,
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_SAA7135,
3122 .subvendor = PCI_ANY_ID,
3123 .subdevice = PCI_ANY_ID,
3124 .driver_data = SAA7134_BOARD_UNKNOWN,
3126 /* --- end of list --- */
3129 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
3131 /* ----------------------------------------------------------- */
3132 /* flyvideo tweaks */
3135 static void board_flyvideo(struct saa7134_dev *dev)
3137 printk("%s: there are different flyvideo cards with different tuners\n"
3138 "%s: out there, you might have to use the tuner=<nr> insmod\n"
3139 "%s: option to override the default value.\n",
3140 dev->name, dev->name, dev->name);
3143 /* ----------------------------------------------------------- */
3145 int saa7134_board_init1(struct saa7134_dev *dev)
3147 /* Always print gpio, often manufacturers encode tuner type and other info. */
3148 saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
3149 dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
3150 printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
3152 switch (dev->board) {
3153 case SAA7134_BOARD_FLYVIDEO2000:
3154 case SAA7134_BOARD_FLYVIDEO3000:
3155 dev->has_remote = SAA7134_REMOTE_GPIO;
3156 board_flyvideo(dev);
3158 case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
3159 case SAA7134_BOARD_FLYTVPLATINUM_FM:
3160 case SAA7134_BOARD_CINERGY400:
3161 case SAA7134_BOARD_CINERGY600:
3162 case SAA7134_BOARD_CINERGY600_MK3:
3163 case SAA7134_BOARD_ECS_TVP3XP:
3164 case SAA7134_BOARD_ECS_TVP3XP_4CB5:
3165 case SAA7134_BOARD_MD2819:
3166 case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
3167 case SAA7134_BOARD_KWORLD_XPERT:
3168 case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
3169 case SAA7134_BOARD_AVERMEDIA_305:
3170 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
3171 case SAA7134_BOARD_AVERMEDIA_307:
3172 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
3173 /* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */
3174 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
3175 case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
3176 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
3177 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3178 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
3179 case SAA7134_BOARD_MANLI_MTV001:
3180 case SAA7134_BOARD_MANLI_MTV002:
3181 case SAA7134_BOARD_BEHOLD_409FM:
3182 case SAA7134_BOARD_AVACSSMARTTV:
3183 case SAA7134_BOARD_GOTVIEW_7135:
3184 case SAA7134_BOARD_KWORLD_TERMINATOR:
3185 case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
3186 dev->has_remote = SAA7134_REMOTE_GPIO;
3188 case SAA7134_BOARD_MD5044:
3189 printk("%s: seems there are two different versions of the MD5044\n"
3190 "%s: (with the same ID) out there. If sound doesn't work for\n"
3191 "%s: you try the audio_clock_override=0x200000 insmod option.\n",
3192 dev->name,dev->name,dev->name);
3194 case SAA7134_BOARD_CINERGY400_CARDBUS:
3195 /* power-up tuner chip */
3196 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00040000, 0x00040000);
3197 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
3198 case SAA7134_BOARD_MONSTERTV_MOBILE:
3199 /* power-up tuner chip */
3200 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00040000, 0x00040000);
3201 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
3203 case SAA7134_BOARD_FLYDVBTDUO:
3204 case SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS:
3205 /* turn the fan on */
3206 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
3207 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
3209 case SAA7134_BOARD_AVERMEDIA_CARDBUS:
3210 /* power-up tuner chip */
3211 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0xffffffff, 0xffffffff);
3212 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
3215 case SAA7134_BOARD_RTD_VFG7350:
3218 * Make sure Production Test Register at offset 0x1D1 is cleared
3219 * to take chip out of test mode. Clearing bit 4 (TST_EN_AOUT)
3220 * prevents pin 105 from remaining low; keeping pin 105 low
3221 * continually resets the SAA6752 chip.
3224 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
3227 case SAA7134_BOARD_PINNACLE_PCTV_110i:
3228 case SAA7134_BOARD_UPMOST_PURPLE_TV:
3229 dev->has_remote = SAA7134_REMOTE_I2C;
3235 /* stuff which needs working i2c */
3236 int saa7134_board_init2(struct saa7134_dev *dev)
3241 switch (dev->board) {
3242 case SAA7134_BOARD_BMK_MPEX_NOTUNER:
3243 case SAA7134_BOARD_BMK_MPEX_TUNER:
3244 dev->i2c_client.addr = 0x60;
3245 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
3246 ? SAA7134_BOARD_BMK_MPEX_NOTUNER
3247 : SAA7134_BOARD_BMK_MPEX_TUNER;
3248 if (board == dev->board)
3251 printk("%s: board type fixup: %s\n", dev->name,
3252 saa7134_boards[dev->board].name);
3253 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
3255 if (TUNER_ABSENT != dev->tuner_type) {
3256 struct tuner_setup tun_setup;
3258 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3259 tun_setup.type = dev->tuner_type;
3260 tun_setup.addr = ADDR_UNSET;
3262 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
3265 case SAA7134_BOARD_MD7134:
3267 struct tuner_setup tun_setup;
3272 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
3273 {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
3276 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
3278 printk(KERN_ERR "EEPROM read failure\n");
3279 } else if ((data[0] != 0) && (data[0] != 0xff)) {
3280 /* old config structure */
3281 subaddr = data[0] + 2;
3283 i2c_transfer(&dev->i2c_adap, msg, 2);
3284 tuner_t = (data[0] << 8) + data[1];
3287 dev->tuner_type = TUNER_PHILIPS_PAL;
3290 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3293 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3295 } else if ((data[1] != 0) && (data[1] != 0xff)) {
3296 /* new config structure */
3297 subaddr = data[1] + 1;
3299 i2c_transfer(&dev->i2c_adap, msg, 2);
3300 subaddr = data[0] + 1;
3302 i2c_transfer(&dev->i2c_adap, msg, 2);
3303 tuner_t = (data[1] << 8) + data[0];
3306 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3309 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
3310 printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
3313 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3316 printk(KERN_ERR "%s unexpected config structure\n", dev->name);
3319 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
3320 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
3321 dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
3322 saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
3325 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3326 tun_setup.type = dev->tuner_type;
3327 tun_setup.addr = ADDR_UNSET;
3329 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3332 case SAA7134_BOARD_PHILIPS_EUROPA:
3333 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3334 /* The Philips EUROPA based hybrid boards have the tuner connected through
3335 * the channel decoder. We have to make it transparent to find it
3338 struct tuner_setup tun_setup;
3339 u8 data[] = { 0x07, 0x02};
3340 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3341 i2c_transfer(&dev->i2c_adap, &msg, 1);
3343 tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
3344 tun_setup.type = dev->tuner_type;
3345 tun_setup.addr = dev->tuner_addr;
3347 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3350 case SAA7134_BOARD_PHILIPS_TIGER:
3351 case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
3352 /* this is a hybrid board, initialize to analog mode */
3354 u8 data[] = { 0x3c, 0x33, 0x68};
3355 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3356 i2c_transfer(&dev->i2c_adap, &msg, 1);
3363 /* ----------------------------------------------------------- */