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"
29 /* commly used strings */
30 static char name_mute[] = "mute";
31 static char name_radio[] = "Radio";
32 static char name_tv[] = "Television";
33 static char name_tv_mono[] = "TV (mono only)";
34 static char name_comp1[] = "Composite1";
35 static char name_comp2[] = "Composite2";
36 static char name_comp3[] = "Composite3";
37 static char name_comp4[] = "Composite4";
38 static char name_svideo[] = "S-Video";
40 /* ------------------------------------------------------------------ */
41 /* board config info */
43 struct saa7134_board saa7134_boards[] = {
44 [SAA7134_BOARD_UNKNOWN] = {
45 .name = "UNKNOWN/GENERIC",
46 .audio_clock = 0x00187de7,
47 .tuner_type = TUNER_ABSENT,
49 .tuner_addr = ADDR_UNSET,
50 .radio_addr = ADDR_UNSET,
58 [SAA7134_BOARD_PROTEUS_PRO] = {
60 .name = "Proteus Pro [philips reference design]",
61 .audio_clock = 0x00187de7,
62 .tuner_type = TUNER_PHILIPS_PAL,
64 .tuner_addr = ADDR_UNSET,
65 .radio_addr = ADDR_UNSET,
87 [SAA7134_BOARD_FLYVIDEO3000] = {
88 /* "Marco d'Itri" <md@Linux.IT> */
89 .name = "LifeView FlyVIDEO3000",
90 .audio_clock = 0x00200000,
91 .tuner_type = TUNER_PHILIPS_PAL,
93 .tuner_addr = ADDR_UNSET,
94 .radio_addr = ADDR_UNSET,
104 .name = name_tv_mono,
136 [SAA7134_BOARD_FLYVIDEO2000] = {
137 /* "TC Wan" <tcwan@cs.usm.my> */
138 .name = "LifeView FlyVIDEO2000",
139 .audio_clock = 0x00200000,
140 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
142 .tuner_addr = ADDR_UNSET,
143 .radio_addr = ADDR_UNSET,
179 [SAA7134_BOARD_FLYTVPLATINUM_MINI] = {
180 /* "Arnaud Quette" <aquette@free.fr> */
181 .name = "LifeView FlyTV Platinum Mini",
182 .audio_clock = 0x00200000,
183 .tuner_type = TUNER_PHILIPS_TDA8290,
185 .tuner_addr = ADDR_UNSET,
186 .radio_addr = ADDR_UNSET,
203 [SAA7134_BOARD_FLYTVPLATINUM_FM] = {
204 /* LifeView FlyTV Platinum FM (LR214WF) */
205 /* "Peter Missel <peter.missel@onlinehome.de> */
206 .name = "LifeView FlyTV Platinum FM",
207 .audio_clock = 0x00200000,
208 .tuner_type = TUNER_PHILIPS_TDA8290,
210 .tuner_addr = ADDR_UNSET,
211 .radio_addr = ADDR_UNSET,
213 .gpiomask = 0x1E000, /* Set GP16 and unused 15,14,13 to Output */
218 .gpio = 0x10000, /* GP16=1 selects TV input */
221 /* .name = name_tv_mono,
227 */ .name = name_comp1, /* Composite signal on S-Video input */
230 /* .gpio = 0x4000, */
232 .name = name_comp2, /* Composite input */
235 /* .gpio = 0x4000, */
237 .name = name_svideo, /* S-Video signal on S-Video input */
240 /* .gpio = 0x4000, */
245 .gpio = 0x00000, /* GP16=0 selects FM radio antenna */
253 [SAA7134_BOARD_EMPRESS] = {
254 /* "Gert Vervoort" <gert.vervoort@philips.com> */
256 .audio_clock = 0x00187de7,
257 .tuner_type = TUNER_PHILIPS_PAL,
259 .tuner_addr = ADDR_UNSET,
260 .radio_addr = ADDR_UNSET,
280 .mpeg = SAA7134_MPEG_EMPRESS,
281 .video_out = CCIR656,
283 [SAA7134_BOARD_MONSTERTV] = {
284 /* "K.Ohta" <alpha292@bremen.or.jp> */
285 .name = "SKNet Monster TV",
286 .audio_clock = 0x00187de7,
287 .tuner_type = TUNER_PHILIPS_NTSC_M,
289 .tuner_addr = ADDR_UNSET,
290 .radio_addr = ADDR_UNSET,
311 [SAA7134_BOARD_MD9717] = {
312 .name = "Tevion MD 9717",
313 .audio_clock = 0x00200000,
314 .tuner_type = TUNER_PHILIPS_PAL,
316 .tuner_addr = ADDR_UNSET,
317 .radio_addr = ADDR_UNSET,
324 /* workaround for problems with normal TV sound */
325 .name = name_tv_mono,
347 [SAA7134_BOARD_TVSTATION_RDS] = {
348 /* Typhoon TV Tuner RDS: Art.Nr. 50694 */
349 .name = "KNC One TV-Station RDS / Typhoon TV Tuner RDS",
350 .audio_clock = 0x00200000,
351 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
353 .tuner_addr = ADDR_UNSET,
354 .radio_addr = ADDR_UNSET,
355 .tda9887_conf = TDA9887_PRESENT,
362 .name = name_tv_mono,
377 .name = "CVid over SVid",
386 [SAA7134_BOARD_TVSTATION_DVR] = {
387 .name = "KNC One TV-Station DVR",
388 .audio_clock = 0x00200000,
389 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
391 .tuner_addr = ADDR_UNSET,
392 .radio_addr = ADDR_UNSET,
393 .tda9887_conf = TDA9887_PRESENT,
394 .gpiomask = 0x820000,
417 .mpeg = SAA7134_MPEG_EMPRESS,
418 .video_out = CCIR656,
420 [SAA7134_BOARD_CINERGY400] = {
421 .name = "Terratec Cinergy 400 TV",
422 .audio_clock = 0x00200000,
423 .tuner_type = TUNER_PHILIPS_PAL,
425 .tuner_addr = ADDR_UNSET,
426 .radio_addr = ADDR_UNSET,
441 .name = name_comp2, /* CVideo over SVideo Connector */
446 [SAA7134_BOARD_MD5044] = {
447 .name = "Medion 5044",
448 .audio_clock = 0x00187de7, /* was: 0x00200000, */
449 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
451 .tuner_addr = ADDR_UNSET,
452 .radio_addr = ADDR_UNSET,
453 .tda9887_conf = TDA9887_PRESENT,
460 /* workaround for problems with normal TV sound */
461 .name = name_tv_mono,
483 [SAA7134_BOARD_KWORLD] = {
484 .name = "Kworld/KuroutoShikou SAA7130-TVPCI",
485 .audio_clock = 0x00187de7,
486 .tuner_type = TUNER_PHILIPS_NTSC_M,
488 .tuner_addr = ADDR_UNSET,
489 .radio_addr = ADDR_UNSET,
505 [SAA7134_BOARD_CINERGY600] = {
506 .name = "Terratec Cinergy 600 TV",
507 .audio_clock = 0x00200000,
508 .tuner_type = TUNER_PHILIPS_PAL,
510 .tuner_addr = ADDR_UNSET,
511 .radio_addr = ADDR_UNSET,
512 .tda9887_conf = TDA9887_PRESENT,
527 .name = name_comp2, /* CVideo over SVideo Connector */
536 [SAA7134_BOARD_MD7134] = {
537 .name = "Medion 7134",
538 .audio_clock = 0x00187de7,
539 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
541 .tuner_addr = ADDR_UNSET,
542 .radio_addr = ADDR_UNSET,
543 .tda9887_conf = TDA9887_PRESENT,
544 .mpeg = SAA7134_MPEG_DVB,
564 [SAA7134_BOARD_TYPHOON_90031] = {
565 /* aka Typhoon "TV+Radio", Art.Nr 90031 */
566 /* Tom Zoerner <tomzo at users sourceforge net> */
567 .name = "Typhoon TV+Radio 90031",
568 .audio_clock = 0x00200000,
569 .tuner_type = TUNER_PHILIPS_PAL,
571 .tuner_addr = ADDR_UNSET,
572 .radio_addr = ADDR_UNSET,
573 .tda9887_conf = TDA9887_PRESENT,
593 [SAA7134_BOARD_ELSA] = {
594 .name = "ELSA EX-VISION 300TV",
595 .audio_clock = 0x00187de7,
596 .tuner_type = TUNER_HITACHI_NTSC,
598 .tuner_addr = ADDR_UNSET,
599 .radio_addr = ADDR_UNSET,
615 [SAA7134_BOARD_ELSA_500TV] = {
616 .name = "ELSA EX-VISION 500TV",
617 .audio_clock = 0x00187de7,
618 .tuner_type = TUNER_HITACHI_NTSC,
620 .tuner_addr = ADDR_UNSET,
621 .radio_addr = ADDR_UNSET,
632 .name = name_tv_mono,
638 [SAA7134_BOARD_ASUSTeK_TVFM7134] = {
639 .name = "ASUS TV-FM 7134",
640 .audio_clock = 0x00187de7,
641 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
643 .tuner_addr = ADDR_UNSET,
644 .radio_addr = ADDR_UNSET,
645 .tda9887_conf = TDA9887_PRESENT,
665 [SAA7134_BOARD_ASUSTeK_TVFM7135] = {
666 .name = "ASUS TV-FM 7135",
667 .audio_clock = 0x00187de7,
668 .tuner_type = TUNER_PHILIPS_TDA8290,
670 .tuner_addr = ADDR_UNSET,
671 .radio_addr = ADDR_UNSET,
672 .gpiomask = 0x200000,
701 [SAA7134_BOARD_VA1000POWER] = {
702 .name = "AOPEN VA1000 POWER",
703 .audio_clock = 0x00187de7,
704 .tuner_type = TUNER_PHILIPS_NTSC,
706 .tuner_addr = ADDR_UNSET,
707 .radio_addr = ADDR_UNSET,
723 [SAA7134_BOARD_10MOONSTVMASTER] = {
724 /* "lilicheng" <llc@linuxfans.org> */
725 .name = "10MOONS PCI TV CAPTURE CARD",
726 .audio_clock = 0x00200000,
727 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
729 .tuner_addr = ADDR_UNSET,
730 .radio_addr = ADDR_UNSET,
765 [SAA7134_BOARD_BMK_MPEX_NOTUNER] = {
766 /* "Andrew de Quincey" <adq@lidskialf.net> */
767 .name = "BMK MPEX No Tuner",
768 .audio_clock = 0x200000,
769 .tuner_type = TUNER_ABSENT,
771 .tuner_addr = ADDR_UNSET,
772 .radio_addr = ADDR_UNSET,
794 .mpeg = SAA7134_MPEG_EMPRESS,
795 .video_out = CCIR656,
797 [SAA7134_BOARD_VIDEOMATE_TV] = {
798 .name = "Compro VideoMate TV",
799 .audio_clock = 0x00187de7,
800 .tuner_type = TUNER_PHILIPS_NTSC_M,
802 .tuner_addr = ADDR_UNSET,
803 .radio_addr = ADDR_UNSET,
819 [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS] = {
820 .name = "Compro VideoMate TV Gold+",
821 .audio_clock = 0x00187de7,
822 .tuner_type = TUNER_PHILIPS_NTSC_M,
823 .gpiomask = 0x800c0000,
825 .tuner_addr = ADDR_UNSET,
826 .radio_addr = ADDR_UNSET,
843 }}, /* radio and probably mute is missing */
845 [SAA7134_BOARD_CRONOS_PLUS] = {
854 .name = "Matrox CronosPlus",
855 .tuner_type = TUNER_ABSENT,
857 .tuner_addr = ADDR_UNSET,
858 .radio_addr = ADDR_UNSET,
882 [SAA7134_BOARD_MD2819] = {
883 .name = "AverMedia M156 / Medion 2819",
884 .audio_clock = 0x00187de7,
885 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
887 .tuner_addr = ADDR_UNSET,
888 .radio_addr = ADDR_UNSET,
889 .tda9887_conf = TDA9887_PRESENT,
913 [SAA7134_BOARD_BMK_MPEX_TUNER] = {
914 /* "Greg Wickham <greg.wickham@grangenet.net> */
915 .name = "BMK MPEX Tuner",
916 .audio_clock = 0x200000,
917 .tuner_type = TUNER_PHILIPS_PAL,
919 .tuner_addr = ADDR_UNSET,
920 .radio_addr = ADDR_UNSET,
935 .mpeg = SAA7134_MPEG_EMPRESS,
936 .video_out = CCIR656,
938 [SAA7134_BOARD_ASUSTEK_TVFM7133] = {
939 .name = "ASUS TV-FM 7133",
940 .audio_clock = 0x00187de7,
941 /* probably wrong, the 7133 one is the NTSC version ...
942 * .tuner_type = TUNER_PHILIPS_FM1236_MK3 */
943 .tuner_type = TUNER_LG_NTSC_NEW_TAPC,
945 .tuner_addr = ADDR_UNSET,
946 .radio_addr = ADDR_UNSET,
947 .tda9887_conf = TDA9887_PRESENT,
968 [SAA7134_BOARD_PINNACLE_PCTV_STEREO] = {
969 .name = "Pinnacle PCTV Stereo (saa7134)",
970 .audio_clock = 0x00187de7,
971 .tuner_type = TUNER_MT2032,
973 .tuner_addr = ADDR_UNSET,
974 .radio_addr = ADDR_UNSET,
975 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
995 [SAA7134_BOARD_MANLI_MTV002] = {
996 /* Ognjen Nastic <ognjen@logosoft.ba> */
997 .name = "Manli MuchTV M-TV002/Behold TV 403 FM",
998 .audio_clock = 0x00200000,
999 .tuner_type = TUNER_PHILIPS_PAL,
1000 .radio_type = UNSET,
1001 .tuner_addr = ADDR_UNSET,
1002 .radio_addr = ADDR_UNSET,
1004 .name = name_svideo,
1022 [SAA7134_BOARD_MANLI_MTV001] = {
1023 /* Ognjen Nastic <ognjen@logosoft.ba> UNTESTED */
1024 .name = "Manli MuchTV M-TV001/Behold TV 401",
1025 .audio_clock = 0x00200000,
1026 .tuner_type = TUNER_PHILIPS_PAL,
1027 .radio_type = UNSET,
1028 .tuner_addr = ADDR_UNSET,
1029 .radio_addr = ADDR_UNSET,
1031 .name = name_svideo,
1049 [SAA7134_BOARD_TG3000TV] = {
1050 /* TransGear 3000TV */
1051 .name = "Nagase Sangyo TransGear 3000TV",
1052 .audio_clock = 0x00187de7,
1053 .tuner_type = TUNER_PHILIPS_NTSC_M,
1054 .radio_type = UNSET,
1055 .tuner_addr = ADDR_UNSET,
1056 .radio_addr = ADDR_UNSET,
1067 .name = name_svideo,
1072 [SAA7134_BOARD_ECS_TVP3XP] = {
1073 .name = "Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) ",
1074 .audio_clock = 0x187de7, /* xtal 32.1 MHz */
1075 .tuner_type = TUNER_PHILIPS_PAL,
1076 .radio_type = UNSET,
1077 .tuner_addr = ADDR_UNSET,
1078 .radio_addr = ADDR_UNSET,
1085 .name = name_tv_mono,
1094 .name = name_svideo,
1098 .name = "CVid over SVid",
1107 [SAA7134_BOARD_ECS_TVP3XP_4CB5] = {
1108 .name = "Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM)",
1109 .audio_clock = 0x187de7,
1110 .tuner_type = TUNER_PHILIPS_NTSC,
1111 .radio_type = UNSET,
1112 .tuner_addr = ADDR_UNSET,
1113 .radio_addr = ADDR_UNSET,
1120 .name = name_tv_mono,
1129 .name = name_svideo,
1133 .name = "CVid over SVid",
1142 [SAA7134_BOARD_AVACSSMARTTV] = {
1143 /* Roman Pszonczenko <romka@kolos.math.uni.lodz.pl> */
1144 .name = "AVACS SmartTV",
1145 .audio_clock = 0x00187de7,
1146 .tuner_type = TUNER_PHILIPS_PAL,
1147 .radio_type = UNSET,
1148 .tuner_addr = ADDR_UNSET,
1149 .radio_addr = ADDR_UNSET,
1156 .name = name_tv_mono,
1169 .name = name_svideo,
1179 [SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER] = {
1180 /* Michael Smith <msmith@cbnco.com> */
1181 .name = "AVerMedia DVD EZMaker",
1182 .audio_clock = 0x00187de7,
1183 .tuner_type = TUNER_ABSENT,
1184 .radio_type = UNSET,
1185 .tuner_addr = ADDR_UNSET,
1186 .radio_addr = ADDR_UNSET,
1191 .name = name_svideo,
1195 [SAA7134_BOARD_NOVAC_PRIMETV7133] = {
1196 /* toshii@netbsd.org */
1197 .name = "Noval Prime TV 7133",
1198 .audio_clock = 0x00200000,
1199 .tuner_type = TUNER_ALPS_TSBH1_NTSC,
1200 .radio_type = UNSET,
1201 .tuner_addr = ADDR_UNSET,
1202 .radio_addr = ADDR_UNSET,
1212 .name = name_svideo,
1216 [SAA7134_BOARD_AVERMEDIA_STUDIO_305] = {
1217 .name = "AverMedia AverTV Studio 305",
1218 .audio_clock = 0x00187de7,
1219 .tuner_type = TUNER_PHILIPS_FM1256_IH3,
1220 .radio_type = UNSET,
1221 .tuner_addr = ADDR_UNSET,
1222 .radio_addr = ADDR_UNSET,
1223 .tda9887_conf = TDA9887_PRESENT,
1238 .name = name_svideo,
1251 [SAA7134_BOARD_UPMOST_PURPLE_TV] = {
1252 .name = "UPMOST PURPLE TV",
1253 .audio_clock = 0x00187de7,
1254 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
1255 .radio_type = UNSET,
1256 .tuner_addr = ADDR_UNSET,
1257 .radio_addr = ADDR_UNSET,
1258 .tda9887_conf = TDA9887_PRESENT,
1265 .name = name_svideo,
1270 [SAA7134_BOARD_ITEMS_MTV005] = {
1271 /* Norman Jonas <normanjonas@arcor.de> */
1272 .name = "Items MuchTV Plus / IT-005",
1273 .audio_clock = 0x00187de7,
1274 .tuner_type = TUNER_PHILIPS_PAL,
1275 .radio_type = UNSET,
1276 .tuner_addr = ADDR_UNSET,
1277 .radio_addr = ADDR_UNSET,
1288 .name = name_svideo,
1297 [SAA7134_BOARD_CINERGY200] = {
1298 .name = "Terratec Cinergy 200 TV",
1299 .audio_clock = 0x00200000,
1300 .tuner_type = TUNER_PHILIPS_PAL,
1301 .radio_type = UNSET,
1302 .tuner_addr = ADDR_UNSET,
1303 .radio_addr = ADDR_UNSET,
1314 .name = name_svideo,
1318 .name = name_comp2, /* CVideo over SVideo Connector */
1327 [SAA7134_BOARD_VIDEOMATE_TV_PVR] = {
1328 /* Alain St-Denis <alain@topaze.homeip.net> */
1329 .name = "Compro VideoMate TV PVR/FM",
1330 .audio_clock = 0x00187de7,
1331 .tuner_type = TUNER_PHILIPS_NTSC_M,
1332 .radio_type = UNSET,
1333 .tuner_addr = ADDR_UNSET,
1334 .radio_addr = ADDR_UNSET,
1335 .gpiomask = 0x808c0080,
1337 .name = name_svideo,
1364 [SAA7134_BOARD_SABRENT_SBTTVFM] = {
1365 /* Michael Rodriguez-Torrent <mrtorrent@asu.edu> */
1366 .name = "Sabrent SBT-TVFM (saa7130)",
1367 .audio_clock = 0x00187de7,
1368 .tuner_type = TUNER_PHILIPS_NTSC_M,
1369 .radio_type = UNSET,
1370 .tuner_addr = ADDR_UNSET,
1371 .radio_addr = ADDR_UNSET,
1382 .name = name_svideo,
1391 [SAA7134_BOARD_ZOLID_XPERT_TV7134] = {
1392 /* Helge Jensen <helge.jensen@slog.dk> */
1393 .name = ":Zolid Xpert TV7134",
1394 .audio_clock = 0x00187de7,
1395 .tuner_type = TUNER_PHILIPS_NTSC,
1396 .radio_type = UNSET,
1397 .tuner_addr = ADDR_UNSET,
1398 .radio_addr = ADDR_UNSET,
1400 .name = name_svideo,
1414 [SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE] = {
1415 /* "Matteo Az" <matte.az@nospam.libero.it> ;-) */
1416 .name = "Empire PCI TV-Radio LE",
1417 .audio_clock = 0x00187de7,
1418 .tuner_type = TUNER_PHILIPS_PAL,
1419 .radio_type = UNSET,
1420 .tuner_addr = ADDR_UNSET,
1421 .radio_addr = ADDR_UNSET,
1424 .name = name_tv_mono,
1435 .name = name_svideo,
1451 [SAA7134_BOARD_AVERMEDIA_STUDIO_307] = {
1453 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
1454 Lots of thanks to Andrey Zolotarev <zolotarev_andrey@mail.ru>
1456 .name = "Avermedia AVerTV Studio 307",
1457 .audio_clock = 0x00187de7,
1458 .tuner_type = TUNER_PHILIPS_FM1256_IH3,
1459 .radio_type = UNSET,
1460 .tuner_addr = ADDR_UNSET,
1461 .radio_addr = ADDR_UNSET,
1462 .tda9887_conf = TDA9887_PRESENT,
1481 .name = name_svideo,
1497 [SAA7134_BOARD_AVERMEDIA_GO_007_FM] = {
1498 .name = "Avermedia AVerTV GO 007 FM",
1499 .audio_clock = 0x00187de7,
1500 .tuner_type = TUNER_PHILIPS_TDA8290,
1501 .radio_type = UNSET,
1502 .tuner_addr = ADDR_UNSET,
1503 .radio_addr = ADDR_UNSET,
1504 .gpiomask = 0x00300003,
1505 /* .gpiomask = 0x8c240003, */
1518 .name = name_svideo,
1534 [SAA7134_BOARD_AVERMEDIA_CARDBUS] = {
1535 /* Kees.Blom@cwi.nl */
1536 .name = "AVerMedia Cardbus TV/Radio (E500)",
1537 .audio_clock = 0x187de7,
1538 .tuner_type = TUNER_PHILIPS_TDA8290,
1539 .radio_type = UNSET,
1540 .tuner_addr = ADDR_UNSET,
1541 .radio_addr = ADDR_UNSET,
1552 .name = name_svideo,
1561 [SAA7134_BOARD_CINERGY400_CARDBUS] = {
1562 .name = "Terratec Cinergy 400 mobile",
1563 .audio_clock = 0x187de7,
1564 .tuner_type = TUNER_ALPS_TSBE5_PAL,
1565 .radio_type = UNSET,
1566 .tuner_addr = ADDR_UNSET,
1567 .radio_addr = ADDR_UNSET,
1568 .tda9887_conf = TDA9887_PRESENT,
1575 .name = name_tv_mono,
1584 .name = name_svideo,
1589 [SAA7134_BOARD_CINERGY600_MK3] = {
1590 .name = "Terratec Cinergy 600 TV MK3",
1591 .audio_clock = 0x00200000,
1592 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1593 .radio_type = UNSET,
1594 .tuner_addr = ADDR_UNSET,
1595 .radio_addr = ADDR_UNSET,
1596 .tda9887_conf = TDA9887_PRESENT,
1607 .name = name_svideo,
1611 .name = name_comp2, /* CVideo over SVideo Connector */
1620 [SAA7134_BOARD_VIDEOMATE_GOLD_PLUS] = {
1621 /* Dylan Walkden <dylan_walkden@hotmail.com> */
1622 .name = "Compro VideoMate Gold+ Pal",
1623 .audio_clock = 0x00187de7,
1624 .tuner_type = TUNER_PHILIPS_PAL,
1625 .radio_type = UNSET,
1626 .tuner_addr = ADDR_UNSET,
1627 .radio_addr = ADDR_UNSET,
1628 .gpiomask = 0x1ce780,
1630 .name = name_svideo,
1631 .vmux = 0, /* CVideo over SVideo Connector - ok? */
1657 [SAA7134_BOARD_PINNACLE_300I_DVBT_PAL] = {
1658 .name = "Pinnacle PCTV 300i DVB-T + PAL",
1659 .audio_clock = 0x00187de7,
1660 .tuner_type = TUNER_MT2032,
1661 .radio_type = UNSET,
1662 .tuner_addr = ADDR_UNSET,
1663 .radio_addr = ADDR_UNSET,
1664 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
1665 .mpeg = SAA7134_MPEG_DVB,
1680 .name = name_svideo,
1685 [SAA7134_BOARD_PROVIDEO_PV952] = {
1686 /* andreas.kretschmer@web.de */
1687 .name = "ProVideo PV952",
1688 .audio_clock = 0x00187de7,
1689 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1690 .radio_type = UNSET,
1691 .tuner_addr = ADDR_UNSET,
1692 .radio_addr = ADDR_UNSET,
1693 .tda9887_conf = TDA9887_PRESENT,
1704 .name = name_tv_mono,
1714 [SAA7134_BOARD_AVERMEDIA_305] = {
1715 /* much like the "studio" version but without radio
1716 * and another tuner (sirspiritus@yandex.ru) */
1717 .name = "AverMedia AverTV/305",
1718 .audio_clock = 0x00187de7,
1719 .tuner_type = TUNER_PHILIPS_FQ1216ME,
1720 .radio_type = UNSET,
1721 .tuner_addr = ADDR_UNSET,
1722 .radio_addr = ADDR_UNSET,
1723 .tda9887_conf = TDA9887_PRESENT,
1738 .name = name_svideo,
1747 [SAA7134_BOARD_FLYDVBTDUO] = {
1748 /* LifeView FlyDVB-T DUO */
1749 /* "Nico Sabbi <nsabbi@tiscali.it> Hartmut Hackmann hartmut.hackmann@t-online.de*/
1750 .name = "LifeView FlyDVB-T DUO",
1751 .audio_clock = 0x00200000,
1752 .tuner_type = TUNER_PHILIPS_TDA8290,
1753 .radio_type = UNSET,
1754 .tuner_addr = ADDR_UNSET,
1755 .radio_addr = ADDR_UNSET,
1756 .mpeg = SAA7134_MPEG_DVB,
1763 .name = name_comp1, /* Composite signal on S-Video input */
1767 .name = name_comp2, /* Composite input */
1771 .name = name_svideo, /* S-Video signal on S-Video input */
1776 [SAA7134_BOARD_PHILIPS_TOUGH] = {
1777 .name = "Philips TOUGH DVB-T reference design",
1778 .tuner_type = TUNER_ABSENT,
1779 .audio_clock = 0x00187de7,
1780 .radio_type = UNSET,
1781 .tuner_addr = ADDR_UNSET,
1782 .radio_addr = ADDR_UNSET,
1783 .mpeg = SAA7134_MPEG_DVB,
1789 .name = name_svideo,
1794 [SAA7134_BOARD_AVERMEDIA_307] = {
1796 Davydov Vladimir <vladimir@iqmedia.com>
1798 .name = "Avermedia AVerTV 307",
1799 .audio_clock = 0x00187de7,
1800 .tuner_type = TUNER_PHILIPS_FQ1216ME,
1801 .radio_type = UNSET,
1802 .tuner_addr = ADDR_UNSET,
1803 .radio_addr = ADDR_UNSET,
1804 .tda9887_conf = TDA9887_PRESENT,
1819 .name = name_svideo,
1824 [SAA7134_BOARD_ADS_INSTANT_TV] = {
1825 .name = "ADS Tech Instant TV (saa7135)",
1826 .audio_clock = 0x00187de7,
1827 .tuner_type = TUNER_PHILIPS_TDA8290,
1828 .radio_type = UNSET,
1829 .tuner_addr = ADDR_UNSET,
1830 .radio_addr = ADDR_UNSET,
1841 .name = name_svideo,
1846 [SAA7134_BOARD_KWORLD_VSTREAM_XPERT] = {
1847 .name = "Kworld/Tevion V-Stream Xpert TV PVR7134",
1848 .audio_clock = 0x00187de7,
1849 .tuner_type = TUNER_PHILIPS_PAL_I,
1850 .radio_type = UNSET,
1851 .tuner_addr = ADDR_UNSET,
1852 .radio_addr = ADDR_UNSET,
1864 .gpio = 0x200, /* gpio by DScaler */
1866 .name = name_svideo,
1882 [SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS] = {
1883 .name = "Typhoon DVB-T Duo Digital/Analog Cardbus",
1884 .audio_clock = 0x00200000,
1885 .tuner_type = TUNER_PHILIPS_TDA8290,
1886 .radio_type = UNSET,
1887 .tuner_addr = ADDR_UNSET,
1888 .radio_addr = ADDR_UNSET,
1889 .mpeg = SAA7134_MPEG_DVB,
1890 /* .gpiomask = 0xe000, */
1895 /* .gpio = 0x0000, */
1898 .name = name_comp1, /* Composite signal on S-Video input */
1901 /* .gpio = 0x4000, */
1903 .name = name_comp2, /* Composite input */
1906 /* .gpio = 0x4000, */
1908 .name = name_svideo, /* S-Video signal on S-Video input */
1911 /* .gpio = 0x4000, */
1922 [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
1923 .name = "Compro VideoMate TV Gold+II",
1924 .audio_clock = 0x002187de7,
1925 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1926 .radio_type = TUNER_TEA5767,
1929 .gpiomask = 0x8c1880,
1931 .name = name_svideo,
1958 [SAA7134_BOARD_KWORLD_XPERT] = {
1961 - Remote control doesn't initialize properly.
1962 - Audio volume starts muted,
1963 then gradually increases after channel change.
1964 - Overlay scaling problems (application error?)
1965 - Composite S-Video untested.
1966 From: Konrad Rzepecki <hannibal@megapolis.pl>
1968 .name = "Kworld Xpert TV PVR7134",
1969 .audio_clock = 0x00187de7,
1970 .tuner_type = TUNER_TENA_9533_DI,
1971 .radio_type = TUNER_TEA5767,
1985 .gpio = 0x200, /* gpio by DScaler */
1987 .name = name_svideo,
2003 [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2004 .name = "FlyTV mini Asus Digimatrix",
2005 .audio_clock = 0x00200000,
2006 .tuner_type = TUNER_LG_NTSC_TALN_MINI,
2007 .radio_type = UNSET,
2008 .tuner_addr = ADDR_UNSET,
2009 .radio_addr = ADDR_UNSET,
2016 .name = name_tv_mono,
2029 .name = name_svideo,
2034 .name = name_radio, /* radio unconfirmed */
2038 [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2039 /* Kworld V-Stream Studio TV Terminator */
2040 /* "James Webb <jrwebb@qwest.net> */
2041 .name = "V-Stream Studio TV Terminator",
2042 .audio_clock = 0x00187de7,
2043 .tuner_type = TUNER_PHILIPS_TDA8290,
2044 .radio_type = UNSET,
2045 .tuner_addr = ADDR_UNSET,
2046 .radio_addr = ADDR_UNSET,
2047 .gpiomask = 1 << 21,
2055 .name = name_comp1, /* Composite input */
2060 .name = name_svideo, /* S-Video input */
2071 [SAA7134_BOARD_YUAN_TUN900] = {
2073 * S-Video and composite sources untested.
2074 * Radio not working.
2075 * Remote control not yet implemented.
2076 * From : codemaster@webgeeks.be */
2077 .name = "Yuan TUN-900 (saa7135)",
2078 .audio_clock = 0x00187de7,
2079 .tuner_type = TUNER_PHILIPS_TDA8290,
2080 .radio_type = UNSET,
2081 .tuner_addr= ADDR_UNSET,
2082 .radio_addr= ADDR_UNSET,
2083 .gpiomask = 0x00010003,
2096 .name = name_svideo,
2115 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
2117 /* ------------------------------------------------------------------ */
2118 /* PCI ids + subsystem IDs */
2120 struct pci_device_id saa7134_pci_tbl[] = {
2122 .vendor = PCI_VENDOR_ID_PHILIPS,
2123 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2124 .subvendor = PCI_VENDOR_ID_PHILIPS,
2125 .subdevice = 0x2001,
2126 .driver_data = SAA7134_BOARD_PROTEUS_PRO,
2128 .vendor = PCI_VENDOR_ID_PHILIPS,
2129 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2130 .subvendor = PCI_VENDOR_ID_PHILIPS,
2131 .subdevice = 0x2001,
2132 .driver_data = SAA7134_BOARD_PROTEUS_PRO,
2134 .vendor = PCI_VENDOR_ID_PHILIPS,
2135 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2136 .subvendor = PCI_VENDOR_ID_PHILIPS,
2137 .subdevice = 0x6752,
2138 .driver_data = SAA7134_BOARD_EMPRESS,
2140 .vendor = PCI_VENDOR_ID_PHILIPS,
2141 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2142 .subvendor = 0x1131,
2143 .subdevice = 0x4e85,
2144 .driver_data = SAA7134_BOARD_MONSTERTV,
2146 .vendor = PCI_VENDOR_ID_PHILIPS,
2147 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2148 .subvendor = 0x153B,
2149 .subdevice = 0x1142,
2150 .driver_data = SAA7134_BOARD_CINERGY400,
2152 .vendor = PCI_VENDOR_ID_PHILIPS,
2153 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2154 .subvendor = 0x153B,
2155 .subdevice = 0x1143,
2156 .driver_data = SAA7134_BOARD_CINERGY600,
2158 .vendor = PCI_VENDOR_ID_PHILIPS,
2159 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2160 .subvendor = 0x153B,
2161 .subdevice = 0x1158,
2162 .driver_data = SAA7134_BOARD_CINERGY600_MK3,
2164 .vendor = PCI_VENDOR_ID_PHILIPS,
2165 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2166 .subvendor = 0x153b,
2167 .subdevice = 0x1162,
2168 .driver_data = SAA7134_BOARD_CINERGY400_CARDBUS,
2170 .vendor = PCI_VENDOR_ID_PHILIPS,
2171 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2172 .subvendor = 0x5168,
2173 .subdevice = 0x0138,
2174 .driver_data = SAA7134_BOARD_FLYVIDEO3000,
2176 .vendor = PCI_VENDOR_ID_PHILIPS,
2177 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2178 .subvendor = 0x4e42, /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
2179 .subdevice = 0x0138,
2180 .driver_data = SAA7134_BOARD_FLYVIDEO3000,
2182 .vendor = PCI_VENDOR_ID_PHILIPS,
2183 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2184 .subvendor = 0x5168,
2185 .subdevice = 0x0138,
2186 .driver_data = SAA7134_BOARD_FLYVIDEO2000,
2188 .vendor = PCI_VENDOR_ID_PHILIPS,
2189 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2190 .subvendor = 0x5168,
2191 .subdevice = 0x0212, /* minipci, LR212 */
2192 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2194 .vendor = PCI_VENDOR_ID_PHILIPS,
2195 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2196 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
2197 .subdevice = 0x0214, /* Standard PCI, LR214WF */
2198 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
2200 .vendor = PCI_VENDOR_ID_PHILIPS,
2201 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2202 .subvendor = 0x1489, /* KYE */
2203 .subdevice = 0x0214, /* Genius VideoWonder ProTV */
2204 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
2206 .vendor = PCI_VENDOR_ID_PHILIPS,
2207 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2208 .subvendor = 0x16be,
2209 .subdevice = 0x0003,
2210 .driver_data = SAA7134_BOARD_MD7134,
2212 .vendor = PCI_VENDOR_ID_PHILIPS,
2213 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2214 .subvendor = 0x1048,
2215 .subdevice = 0x226b,
2216 .driver_data = SAA7134_BOARD_ELSA,
2218 .vendor = PCI_VENDOR_ID_PHILIPS,
2219 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2220 .subvendor = 0x1048,
2221 .subdevice = 0x226b,
2222 .driver_data = SAA7134_BOARD_ELSA_500TV,
2224 .vendor = PCI_VENDOR_ID_PHILIPS,
2225 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2226 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2227 .subdevice = 0x4842,
2228 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2230 .vendor = PCI_VENDOR_ID_PHILIPS,
2231 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2232 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2233 .subdevice = 0x4845,
2234 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7135,
2236 .vendor = PCI_VENDOR_ID_PHILIPS,
2237 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2238 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2239 .subdevice = 0x4830,
2240 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2242 .vendor = PCI_VENDOR_ID_PHILIPS,
2243 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2244 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2245 .subdevice = 0x4843,
2246 .driver_data = SAA7134_BOARD_ASUSTEK_TVFM7133,
2248 .vendor = PCI_VENDOR_ID_PHILIPS,
2249 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2250 .subvendor = PCI_VENDOR_ID_ASUSTEK,
2251 .subdevice = 0x4840,
2252 .driver_data = SAA7134_BOARD_ASUSTeK_TVFM7134,
2254 .vendor = PCI_VENDOR_ID_PHILIPS,
2255 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2256 .subvendor = PCI_VENDOR_ID_PHILIPS,
2257 .subdevice = 0xfe01,
2258 .driver_data = SAA7134_BOARD_TVSTATION_RDS,
2260 .vendor = PCI_VENDOR_ID_PHILIPS,
2261 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2262 .subvendor = 0x1894,
2263 .subdevice = 0xfe01,
2264 .driver_data = SAA7134_BOARD_TVSTATION_RDS,
2266 .vendor = PCI_VENDOR_ID_PHILIPS,
2267 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2268 .subvendor = 0x1894,
2269 .subdevice = 0xa006,
2270 .driver_data = SAA7134_BOARD_TVSTATION_DVR,
2272 .vendor = PCI_VENDOR_ID_PHILIPS,
2273 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2274 .subvendor = 0x1131,
2275 .subdevice = 0x7133,
2276 .driver_data = SAA7134_BOARD_VA1000POWER,
2278 .vendor = PCI_VENDOR_ID_PHILIPS,
2279 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2280 .subvendor = PCI_VENDOR_ID_PHILIPS,
2281 .subdevice = 0x2001,
2282 .driver_data = SAA7134_BOARD_10MOONSTVMASTER,
2284 .vendor = PCI_VENDOR_ID_PHILIPS,
2285 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2286 .subvendor = 0x185b,
2287 .subdevice = 0xc100,
2288 .driver_data = SAA7134_BOARD_VIDEOMATE_TV,
2290 .vendor = PCI_VENDOR_ID_PHILIPS,
2291 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2292 .subvendor = 0x185b,
2293 .subdevice = 0xc100,
2294 .driver_data = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
2296 .vendor = PCI_VENDOR_ID_PHILIPS,
2297 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2298 .subvendor = PCI_VENDOR_ID_MATROX,
2299 .subdevice = 0x48d0,
2300 .driver_data = SAA7134_BOARD_CRONOS_PLUS,
2302 .vendor = PCI_VENDOR_ID_PHILIPS,
2303 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2304 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2305 .subdevice = 0xa70b,
2306 .driver_data = SAA7134_BOARD_MD2819,
2308 .vendor = PCI_VENDOR_ID_PHILIPS,
2309 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2310 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2311 .subdevice = 0x2115,
2312 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
2314 .vendor = PCI_VENDOR_ID_PHILIPS,
2315 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2316 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2317 .subdevice = 0x2108,
2318 .driver_data = SAA7134_BOARD_AVERMEDIA_305,
2320 .vendor = PCI_VENDOR_ID_PHILIPS,
2321 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2322 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2323 .subdevice = 0x10ff,
2324 .driver_data = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
2326 /* AVerMedia CardBus */
2327 .vendor = PCI_VENDOR_ID_PHILIPS,
2328 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2329 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2330 .subdevice = 0xd6ee,
2331 .driver_data = SAA7134_BOARD_AVERMEDIA_CARDBUS,
2333 /* TransGear 3000TV */
2334 .vendor = PCI_VENDOR_ID_PHILIPS,
2335 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2336 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2337 .subdevice = 0x050c,
2338 .driver_data = SAA7134_BOARD_TG3000TV,
2340 .vendor = PCI_VENDOR_ID_PHILIPS,
2341 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2342 .subvendor = 0x11bd,
2343 .subdevice = 0x002b,
2344 .driver_data = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
2346 .vendor = PCI_VENDOR_ID_PHILIPS,
2347 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2348 .subvendor = 0x11bd,
2349 .subdevice = 0x002d,
2350 .driver_data = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
2352 .vendor = PCI_VENDOR_ID_PHILIPS,
2353 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2354 .subvendor = 0x1019,
2355 .subdevice = 0x4cb4,
2356 .driver_data = SAA7134_BOARD_ECS_TVP3XP,
2358 .vendor = PCI_VENDOR_ID_PHILIPS,
2359 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2360 .subvendor = 0x1019,
2361 .subdevice = 0x4cb5,
2362 .driver_data = SAA7134_BOARD_ECS_TVP3XP_4CB5,
2364 .vendor = PCI_VENDOR_ID_PHILIPS,
2365 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2366 .subvendor = 0x12ab,
2367 .subdevice = 0x0800,
2368 .driver_data = SAA7134_BOARD_UPMOST_PURPLE_TV,
2370 .vendor = PCI_VENDOR_ID_PHILIPS,
2371 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2372 .subvendor = 0x153B,
2373 .subdevice = 0x1152,
2374 .driver_data = SAA7134_BOARD_CINERGY200,
2376 .vendor = PCI_VENDOR_ID_PHILIPS,
2377 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2378 .subvendor = 0x185b,
2379 .subdevice = 0xc100,
2380 .driver_data = SAA7134_BOARD_VIDEOMATE_TV_PVR,
2382 .vendor = PCI_VENDOR_ID_PHILIPS,
2383 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2384 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2385 .subdevice = 0x9715,
2386 .driver_data = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
2388 .vendor = PCI_VENDOR_ID_PHILIPS,
2389 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2390 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2391 .subdevice = 0xa70a,
2392 .driver_data = SAA7134_BOARD_AVERMEDIA_307,
2394 .vendor = PCI_VENDOR_ID_PHILIPS,
2395 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2396 .subvendor = 0x185b,
2397 .subdevice = 0xc200,
2398 .driver_data = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
2400 .vendor = PCI_VENDOR_ID_PHILIPS,
2401 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2402 .subvendor = 0x1540,
2403 .subdevice = 0x9524,
2404 .driver_data = SAA7134_BOARD_PROVIDEO_PV952,
2407 .vendor = PCI_VENDOR_ID_PHILIPS,
2408 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2409 .subvendor = 0x5168,
2410 .subdevice = 0x0502, /* Cardbus version */
2411 .driver_data = SAA7134_BOARD_FLYDVBTDUO,
2413 .vendor = PCI_VENDOR_ID_PHILIPS,
2414 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2415 .subvendor = 0x5168,
2416 .subdevice = 0x0306, /* PCI version */
2417 .driver_data = SAA7134_BOARD_FLYDVBTDUO,
2419 .vendor = PCI_VENDOR_ID_PHILIPS,
2420 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2421 .subvendor = 0x1461, /* Avermedia Technologies Inc */
2422 .subdevice = 0xf31f,
2423 .driver_data = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
2426 .vendor = PCI_VENDOR_ID_PHILIPS,
2427 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2428 .subvendor = PCI_VENDOR_ID_PHILIPS,
2429 .subdevice = 0x2004,
2430 .driver_data = SAA7134_BOARD_PHILIPS_TOUGH,
2432 .vendor = PCI_VENDOR_ID_PHILIPS,
2433 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2434 .subvendor = 0x1421,
2435 .subdevice = 0x0350, /* PCI version */
2436 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2439 .vendor = PCI_VENDOR_ID_PHILIPS,
2440 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2441 .subvendor = 0x1421,
2442 .subdevice = 0x0370, /* cardbus version */
2443 .driver_data = SAA7134_BOARD_ADS_INSTANT_TV,
2445 },{ /* Typhoon DVB-T Duo Digital/Analog Cardbus */
2446 .vendor = PCI_VENDOR_ID_PHILIPS,
2447 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2448 .subvendor = 0x4e42,
2449 .subdevice = 0x0502,
2450 .driver_data = SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS,
2452 .vendor = PCI_VENDOR_ID_PHILIPS,
2453 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2454 .subvendor = 0x1043,
2455 .subdevice = 0x0210, /* mini pci NTSC version */
2456 .driver_data = SAA7134_BOARD_FLYTV_DIGIMATRIX,
2458 .vendor = PCI_VENDOR_ID_PHILIPS,
2459 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2460 .subvendor = 0x1043,
2461 .subdevice = 0x0210, /* mini pci PAL/SECAM version */
2462 .driver_data = SAA7134_BOARD_FLYTV_DIGIMATRIX,
2465 /* --- boards without eeprom + subsystem ID --- */
2466 .vendor = PCI_VENDOR_ID_PHILIPS,
2467 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2468 .subvendor = PCI_VENDOR_ID_PHILIPS,
2470 .driver_data = SAA7134_BOARD_NOAUTO,
2472 .vendor = PCI_VENDOR_ID_PHILIPS,
2473 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2474 .subvendor = PCI_VENDOR_ID_PHILIPS,
2476 .driver_data = SAA7134_BOARD_NOAUTO,
2479 /* --- default catch --- */
2480 .vendor = PCI_VENDOR_ID_PHILIPS,
2481 .device = PCI_DEVICE_ID_PHILIPS_SAA7130,
2482 .subvendor = PCI_ANY_ID,
2483 .subdevice = PCI_ANY_ID,
2484 .driver_data = SAA7134_BOARD_UNKNOWN,
2486 .vendor = PCI_VENDOR_ID_PHILIPS,
2487 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
2488 .subvendor = PCI_ANY_ID,
2489 .subdevice = PCI_ANY_ID,
2490 .driver_data = SAA7134_BOARD_UNKNOWN,
2492 .vendor = PCI_VENDOR_ID_PHILIPS,
2493 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
2494 .subvendor = PCI_ANY_ID,
2495 .subdevice = PCI_ANY_ID,
2496 .driver_data = SAA7134_BOARD_UNKNOWN,
2498 .vendor = PCI_VENDOR_ID_PHILIPS,
2499 .device = PCI_DEVICE_ID_PHILIPS_SAA7135,
2500 .subvendor = PCI_ANY_ID,
2501 .subdevice = PCI_ANY_ID,
2502 .driver_data = SAA7134_BOARD_UNKNOWN,
2504 /* --- end of list --- */
2507 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
2509 /* ----------------------------------------------------------- */
2510 /* flyvideo tweaks */
2513 static void board_flyvideo(struct saa7134_dev *dev)
2515 printk("%s: there are different flyvideo cards with different tuners\n"
2516 "%s: out there, you might have to use the tuner=<nr> insmod\n"
2517 "%s: option to override the default value.\n",
2518 dev->name, dev->name, dev->name);
2521 /* ----------------------------------------------------------- */
2523 int saa7134_board_init1(struct saa7134_dev *dev)
2525 /* Always print gpio, often manufacturers encode tuner type and other info. */
2526 saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
2527 dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
2528 printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
2530 switch (dev->board) {
2531 case SAA7134_BOARD_FLYVIDEO2000:
2532 case SAA7134_BOARD_FLYVIDEO3000:
2533 dev->has_remote = 1;
2534 board_flyvideo(dev);
2536 case SAA7134_BOARD_FLYTVPLATINUM_FM:
2537 case SAA7134_BOARD_CINERGY400:
2538 case SAA7134_BOARD_CINERGY600:
2539 case SAA7134_BOARD_CINERGY600_MK3:
2540 case SAA7134_BOARD_ECS_TVP3XP:
2541 case SAA7134_BOARD_ECS_TVP3XP_4CB5:
2542 case SAA7134_BOARD_MD2819:
2543 case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
2544 case SAA7134_BOARD_KWORLD_XPERT:
2545 case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
2546 case SAA7134_BOARD_AVERMEDIA_305:
2547 case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
2548 case SAA7134_BOARD_AVERMEDIA_307:
2549 case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
2550 /* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */
2551 case SAA7134_BOARD_VIDEOMATE_TV_PVR:
2552 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
2553 case SAA7134_BOARD_MANLI_MTV001:
2554 case SAA7134_BOARD_MANLI_MTV002:
2555 case SAA7134_BOARD_AVACSSMARTTV:
2556 dev->has_remote = 1;
2558 case SAA7134_BOARD_MD5044:
2559 printk("%s: seems there are two different versions of the MD5044\n"
2560 "%s: (with the same ID) out there. If sound doesn't work for\n"
2561 "%s: you try the audio_clock_override=0x200000 insmod option.\n",
2562 dev->name,dev->name,dev->name);
2564 case SAA7134_BOARD_CINERGY400_CARDBUS:
2565 /* power-up tuner chip */
2566 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00040000, 0x00040000);
2567 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
2570 case SAA7134_BOARD_FLYDVBTDUO:
2571 case SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS:
2572 /* turn the fan on Hac: static for the time being */
2573 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
2574 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
2576 case SAA7134_BOARD_AVERMEDIA_CARDBUS:
2577 /* power-up tuner chip */
2578 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0xffffffff, 0xffffffff);
2579 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
2586 /* stuff which needs working i2c */
2587 int saa7134_board_init2(struct saa7134_dev *dev)
2592 switch (dev->board) {
2593 case SAA7134_BOARD_BMK_MPEX_NOTUNER:
2594 case SAA7134_BOARD_BMK_MPEX_TUNER:
2595 dev->i2c_client.addr = 0x60;
2596 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
2597 ? SAA7134_BOARD_BMK_MPEX_NOTUNER
2598 : SAA7134_BOARD_BMK_MPEX_TUNER;
2599 if (board == dev->board)
2602 printk("%s: board type fixup: %s\n", dev->name,
2603 saa7134_boards[dev->board].name);
2604 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
2606 if (TUNER_ABSENT != dev->tuner_type) {
2607 struct tuner_setup tun_setup;
2609 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
2610 tun_setup.type = dev->tuner_type;
2611 tun_setup.addr = ADDR_UNSET;
2613 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
2616 case SAA7134_BOARD_MD7134:
2618 struct tuner_setup tun_setup;
2623 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
2624 {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
2627 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
2629 printk(KERN_ERR "EEPROM read failure\n");
2630 } else if ((data[0] != 0) && (data[0] != 0xff)) {
2631 /* old config structure */
2632 subaddr = data[0] + 2;
2634 i2c_transfer(&dev->i2c_adap, msg, 2);
2635 tuner_t = (data[0] << 8) + data[1];
2638 dev->tuner_type = TUNER_PHILIPS_PAL;
2641 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
2644 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
2646 } else if ((data[1] != 0) && (data[1] != 0xff)) {
2647 /* new config structure */
2648 subaddr = data[1] + 1;
2650 i2c_transfer(&dev->i2c_adap, msg, 2);
2651 subaddr = data[0] + 1;
2653 i2c_transfer(&dev->i2c_adap, msg, 2);
2654 tuner_t = (data[1] << 8) + data[0];
2657 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
2660 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
2661 printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
2664 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
2667 printk(KERN_ERR "%s unexpected config structure\n", dev->name);
2670 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
2671 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
2672 dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
2673 saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
2676 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
2677 tun_setup.type = dev->tuner_type;
2678 tun_setup.addr = ADDR_UNSET;
2680 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
2687 /* ----------------------------------------------------------- */