24 #include <linux/module.h>
25 #include <linux/pci.h>
27 #include <linux/slab.h>
49 static int disable_ir;
53 #define info_printk(core, fmt, arg...) \
54 printk(KERN_INFO "%s: " fmt, core->name , ## arg)
56 #define warn_printk(core, fmt, arg...) \
57 printk(KERN_WARNING "%s: " fmt, core->name , ## arg)
59 #define err_printk(core, fmt, arg...) \
60 printk(KERN_ERR "%s: " fmt, core->name , ## arg)
69 static const struct cx88_board cx88_boards[] = {
71 .name =
"UNKNOWN/GENERIC",
74 .tuner_addr = ADDR_UNSET,
75 .radio_addr = ADDR_UNSET,
91 .name =
"Hauppauge WinTV 34xxx models",
94 .tuner_addr = ADDR_UNSET,
95 .radio_addr = ADDR_UNSET,
96 .tda9887_conf = TDA9887_PRESENT,
120 .name =
"GDI Black Gold",
123 .tuner_addr = ADDR_UNSET,
124 .radio_addr = ADDR_UNSET,
135 .tuner_type = TUNER_PHILIPS_PAL,
137 .tuner_addr = ADDR_UNSET,
138 .radio_addr = ADDR_UNSET,
156 .name =
"ATI TV Wonder Pro",
157 .tuner_type = TUNER_PHILIPS_4IN1,
159 .tuner_addr = ADDR_UNSET,
160 .radio_addr = ADDR_UNSET,
161 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
177 .name =
"Leadtek Winfast 2000XP Expert",
178 .tuner_type = TUNER_PHILIPS_4IN1,
180 .tuner_addr = ADDR_UNSET,
181 .radio_addr = ADDR_UNSET,
182 .tda9887_conf = TDA9887_PRESENT,
214 .name =
"AverTV Studio 303 (M126)",
215 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
217 .tuner_addr = ADDR_UNSET,
218 .radio_addr = ADDR_UNSET,
219 .tda9887_conf = TDA9887_PRESENT,
241 .name =
"MSI TV-@nywhere Master",
242 .tuner_type = TUNER_MT2032,
244 .tuner_addr = ADDR_UNSET,
245 .radio_addr = ADDR_UNSET,
246 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC,
275 .name =
"Leadtek Winfast DV2000",
276 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
278 .tuner_addr = ADDR_UNSET,
279 .radio_addr = ADDR_UNSET,
280 .tda9887_conf = TDA9887_PRESENT,
314 .name =
"Leadtek PVR 2000",
315 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
317 .tuner_addr = ADDR_UNSET,
318 .radio_addr = ADDR_UNSET,
319 .tda9887_conf = TDA9887_PRESENT,
344 .name =
"IODATA GV-VCP3/PCI",
345 .tuner_type = TUNER_ABSENT,
347 .tuner_addr = ADDR_UNSET,
348 .radio_addr = ADDR_UNSET,
361 .name =
"Prolink PlayTV PVR",
362 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
364 .tuner_addr = ADDR_UNSET,
365 .radio_addr = ADDR_UNSET,
366 .tda9887_conf = TDA9887_PRESENT,
386 .name =
"ASUS PVR-416",
387 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
389 .tuner_addr = ADDR_UNSET,
390 .radio_addr = ADDR_UNSET,
391 .tda9887_conf = TDA9887_PRESENT,
409 .name =
"MSI TV-@nywhere",
410 .tuner_type = TUNER_MT2032,
412 .tuner_addr = ADDR_UNSET,
413 .radio_addr = ADDR_UNSET,
414 .tda9887_conf = TDA9887_PRESENT,
433 .name =
"KWorld/VStream XPert DVB-T",
434 .tuner_type = TUNER_ABSENT,
436 .tuner_addr = ADDR_UNSET,
437 .radio_addr = ADDR_UNSET,
452 .name =
"DViCO FusionHDTV DVB-T1",
453 .tuner_type = TUNER_ABSENT,
455 .tuner_addr = ADDR_UNSET,
456 .radio_addr = ADDR_UNSET,
469 .name =
"KWorld LTV883RF",
470 .tuner_type = TUNER_TNF_8831BGFF,
472 .tuner_addr = ADDR_UNSET,
473 .radio_addr = ADDR_UNSET,
497 .name =
"DViCO FusionHDTV 3 Gold-Q",
498 .tuner_type = TUNER_MICROTUNE_4042FI5,
500 .tuner_addr = ADDR_UNSET,
501 .radio_addr = ADDR_UNSET,
539 .name =
"Hauppauge Nova-T DVB-T",
540 .tuner_type = TUNER_ABSENT,
542 .tuner_addr = ADDR_UNSET,
543 .radio_addr = ADDR_UNSET,
551 .name =
"Conexant DVB-T reference design",
552 .tuner_type = TUNER_ABSENT,
554 .tuner_addr = ADDR_UNSET,
555 .radio_addr = ADDR_UNSET,
563 .name =
"Provideo PV259",
564 .tuner_type = TUNER_PHILIPS_FQ1216ME,
566 .tuner_addr = ADDR_UNSET,
567 .radio_addr = ADDR_UNSET,
576 .name =
"DViCO FusionHDTV DVB-T Plus",
577 .tuner_type = TUNER_ABSENT,
579 .tuner_addr = ADDR_UNSET,
580 .radio_addr = ADDR_UNSET,
593 .name =
"digitalnow DNTV Live! DVB-T",
594 .tuner_type = TUNER_ABSENT,
596 .tuner_addr = ADDR_UNSET,
597 .radio_addr = ADDR_UNSET,
612 .name =
"pcHDTV HD3000 HDTV",
613 .tuner_type = TUNER_THOMSON_DTT761X,
615 .tuner_addr = ADDR_UNSET,
616 .radio_addr = ADDR_UNSET,
617 .tda9887_conf = TDA9887_PRESENT,
652 .name =
"Hauppauge WinTV 28xxx (Roslyn) models",
655 .tuner_addr = ADDR_UNSET,
656 .radio_addr = ADDR_UNSET,
684 .name =
"Digital-Logic MICROSPACE Entertainment Center (MEC)",
685 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
687 .tuner_addr = ADDR_UNSET,
688 .radio_addr = ADDR_UNSET,
689 .tda9887_conf = TDA9887_PRESENT,
714 .name =
"IODATA GV/BCTV7E",
715 .tuner_type = TUNER_PHILIPS_FQ1286,
717 .tuner_addr = ADDR_UNSET,
718 .radio_addr = ADDR_UNSET,
719 .tda9887_conf = TDA9887_PRESENT,
735 .name =
"PixelView PlayTV Ultra Pro (Stereo)",
737 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
739 .tuner_addr = ADDR_UNSET,
740 .radio_addr = ADDR_UNSET,
762 .name =
"DViCO FusionHDTV 3 Gold-T",
763 .tuner_type = TUNER_THOMSON_DTT761X,
765 .tuner_addr = ADDR_UNSET,
766 .radio_addr = ADDR_UNSET,
767 .tda9887_conf = TDA9887_PRESENT,
784 .name =
"ADS Tech Instant TV DVB-T PCI",
785 .tuner_type = TUNER_ABSENT,
787 .tuner_addr = ADDR_UNSET,
788 .radio_addr = ADDR_UNSET,
803 .name =
"TerraTec Cinergy 1400 DVB-T",
804 .tuner_type = TUNER_ABSENT,
818 .name =
"DViCO FusionHDTV 5 Gold",
819 .tuner_type = TUNER_LG_TDVS_H06XF,
821 .tuner_addr = ADDR_UNSET,
822 .radio_addr = ADDR_UNSET,
823 .tda9887_conf = TDA9887_PRESENT,
840 .name =
"AverMedia UltraTV Media Center PCI 550",
841 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
843 .tuner_addr = ADDR_UNSET,
844 .radio_addr = ADDR_UNSET,
845 .tda9887_conf = TDA9887_PRESENT,
872 .name =
"Kworld V-Stream Xpert DVD",
891 .name =
"ATI HDTV Wonder",
892 .tuner_type = TUNER_PHILIPS_TUV1236D,
894 .tuner_addr = ADDR_UNSET,
895 .radio_addr = ADDR_UNSET,
921 .name =
"WinFast DTV1000-T",
922 .tuner_type = TUNER_ABSENT,
924 .tuner_addr = ADDR_UNSET,
925 .radio_addr = ADDR_UNSET,
939 .name =
"AVerTV 303 (M126)",
940 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
942 .tuner_addr = ADDR_UNSET,
943 .radio_addr = ADDR_UNSET,
944 .tda9887_conf = TDA9887_PRESENT,
969 .name =
"Hauppauge Nova-S-Plus DVB-S",
970 .tuner_type = TUNER_ABSENT,
972 .tuner_addr = ADDR_UNSET,
973 .radio_addr = ADDR_UNSET,
995 .name =
"Hauppauge Nova-SE2 DVB-S",
996 .tuner_type = TUNER_ABSENT,
998 .tuner_addr = ADDR_UNSET,
999 .radio_addr = ADDR_UNSET,
1007 .name =
"KWorld DVB-S 100",
1008 .tuner_type = TUNER_ABSENT,
1009 .radio_type =
UNSET,
1010 .tuner_addr = ADDR_UNSET,
1011 .radio_addr = ADDR_UNSET,
1032 .name =
"Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
1033 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1034 .radio_type =
UNSET,
1035 .tuner_addr = ADDR_UNSET,
1036 .radio_addr = ADDR_UNSET,
1037 .tda9887_conf = TDA9887_PRESENT,
1052 .name =
"Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1053 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1054 .radio_type =
UNSET,
1055 .tuner_addr = ADDR_UNSET,
1056 .radio_addr = ADDR_UNSET,
1057 .tda9887_conf = TDA9887_PRESENT,
1069 .name =
"digitalnow DNTV Live! DVB-T Pro",
1070 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1071 .radio_type =
UNSET,
1072 .tuner_addr = ADDR_UNSET,
1073 .radio_addr = ADDR_UNSET,
1074 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1075 TDA9887_PORT2_ACTIVE,
1099 .name =
"KWorld/VStream XPert DVB-T with cx22702",
1100 .tuner_type = TUNER_ABSENT,
1101 .radio_type =
UNSET,
1102 .tuner_addr = ADDR_UNSET,
1103 .radio_addr = ADDR_UNSET,
1118 .name =
"DViCO FusionHDTV DVB-T Dual Digital",
1119 .tuner_type = TUNER_ABSENT,
1120 .radio_type =
UNSET,
1121 .tuner_addr = ADDR_UNSET,
1122 .radio_addr = ADDR_UNSET,
1126 .gpio0 = 0x000067df,
1130 .gpio0 = 0x000067df,
1135 .name =
"KWorld HardwareMpegTV XPert",
1136 .tuner_type = TUNER_PHILIPS_TDA8290,
1137 .radio_type =
UNSET,
1138 .tuner_addr = ADDR_UNSET,
1139 .radio_addr = ADDR_UNSET,
1164 .name =
"DViCO FusionHDTV DVB-T Hybrid",
1165 .tuner_type = TUNER_THOMSON_FE6600,
1166 .radio_type =
UNSET,
1167 .tuner_addr = ADDR_UNSET,
1168 .radio_addr = ADDR_UNSET,
1172 .gpio0 = 0x0000a75f,
1176 .gpio0 = 0x0000a75b,
1180 .gpio0 = 0x0000a75b,
1185 .name =
"pcHDTV HD5500 HDTV",
1186 .tuner_type = TUNER_LG_TDVS_H06XF,
1187 .radio_type =
UNSET,
1188 .tuner_addr = ADDR_UNSET,
1189 .radio_addr = ADDR_UNSET,
1190 .tda9887_conf = TDA9887_PRESENT,
1209 .name =
"Kworld MCE 200 Deluxe",
1210 .tuner_type = TUNER_TENA_9533_DI,
1211 .radio_type =
UNSET,
1212 .tda9887_conf = TDA9887_PRESENT,
1213 .tuner_addr = ADDR_UNSET,
1214 .radio_addr = ADDR_UNSET,
1224 .name =
"PixelView PlayTV P7000",
1225 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1226 .radio_type =
UNSET,
1227 .tuner_addr = ADDR_UNSET,
1228 .radio_addr = ADDR_UNSET,
1229 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1230 TDA9887_PORT2_ACTIVE,
1239 .name =
"NPG Tech Real TV FM Top 10",
1240 .tuner_type = TUNER_TNF_5335MF,
1241 .radio_type =
UNSET,
1242 .tuner_addr = ADDR_UNSET,
1243 .radio_addr = ADDR_UNSET,
1263 .name =
"WinFast DTV2000 H",
1264 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1265 .radio_type =
UNSET,
1266 .tuner_addr = ADDR_UNSET,
1267 .radio_addr = ADDR_UNSET,
1268 .tda9887_conf = TDA9887_PRESENT,
1272 .gpio0 = 0x00017304,
1273 .gpio1 = 0x00008203,
1274 .gpio2 = 0x00017304,
1275 .gpio3 = 0x02000000,
1279 .gpio0 = 0x0001d701,
1280 .gpio1 = 0x0000b207,
1281 .gpio2 = 0x0001d701,
1282 .gpio3 = 0x02000000,
1286 .gpio0 = 0x0001d503,
1287 .gpio1 = 0x0000b207,
1288 .gpio2 = 0x0001d503,
1289 .gpio3 = 0x02000000,
1293 .gpio0 = 0x0001d701,
1294 .gpio1 = 0x0000b207,
1295 .gpio2 = 0x0001d701,
1296 .gpio3 = 0x02000000,
1300 .gpio0 = 0x00015702,
1301 .gpio1 = 0x0000f207,
1302 .gpio2 = 0x00015702,
1303 .gpio3 = 0x02000000,
1308 .name =
"WinFast DTV2000 H rev. J",
1309 .tuner_type = TUNER_PHILIPS_FMD1216MEX_MK3,
1310 .radio_type =
UNSET,
1311 .tuner_addr = ADDR_UNSET,
1312 .radio_addr = ADDR_UNSET,
1313 .tda9887_conf = TDA9887_PRESENT,
1317 .gpio0 = 0x00017300,
1318 .gpio1 = 0x00008207,
1319 .gpio2 = 0x00000000,
1320 .gpio3 = 0x02000000,
1324 .gpio0 = 0x00018300,
1325 .gpio1 = 0x0000f207,
1326 .gpio2 = 0x00017304,
1327 .gpio3 = 0x02000000,
1331 .gpio0 = 0x00018301,
1332 .gpio1 = 0x0000f207,
1333 .gpio2 = 0x00017304,
1334 .gpio3 = 0x02000000,
1338 .gpio0 = 0x00018301,
1339 .gpio1 = 0x0000f207,
1340 .gpio2 = 0x00017304,
1341 .gpio3 = 0x02000000,
1345 .gpio0 = 0x00015702,
1346 .gpio1 = 0x0000f207,
1347 .gpio2 = 0x00015702,
1348 .gpio3 = 0x02000000,
1353 .name =
"Geniatech DVB-S",
1354 .tuner_type = TUNER_ABSENT,
1355 .radio_type =
UNSET,
1356 .tuner_addr = ADDR_UNSET,
1357 .radio_addr = ADDR_UNSET,
1368 .name =
"Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1369 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1370 .radio_type =
UNSET,
1371 .tuner_addr = ADDR_UNSET,
1372 .radio_addr = ADDR_UNSET,
1373 .tda9887_conf = TDA9887_PRESENT,
1404 .name =
"Norwood Micro TV Tuner",
1405 .tuner_type = TUNER_TNF_5335MF,
1406 .radio_type =
UNSET,
1407 .tuner_addr = ADDR_UNSET,
1408 .radio_addr = ADDR_UNSET,
1424 .name =
"Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1425 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1426 .radio_type =
UNSET,
1427 .tuner_addr = ADDR_UNSET,
1428 .radio_addr = ADDR_UNSET,
1432 .gpio0 = 0x003fffff,
1433 .gpio1 = 0x00e00000,
1434 .gpio2 = 0x003fffff,
1435 .gpio3 = 0x02000000,
1439 .gpio0 = 0x003fffff,
1440 .gpio1 = 0x00e00000,
1441 .gpio2 = 0x003fffff,
1442 .gpio3 = 0x02000000,
1446 .gpio0 = 0x003fffff,
1447 .gpio1 = 0x00e00000,
1448 .gpio2 = 0x003fffff,
1449 .gpio3 = 0x02000000,
1453 .name =
"Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1454 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1455 .radio_type =
UNSET,
1456 .tuner_addr = ADDR_UNSET,
1457 .radio_addr = ADDR_UNSET,
1458 .tda9887_conf = TDA9887_PRESENT,
1491 .name =
"Samsung SMT 7020 DVB-S",
1492 .tuner_type = TUNER_ABSENT,
1493 .radio_type =
UNSET,
1494 .tuner_addr = ADDR_UNSET,
1495 .radio_addr = ADDR_UNSET,
1503 .name =
"ADS Tech Instant Video PCI",
1504 .tuner_type = TUNER_ABSENT,
1505 .radio_type =
UNSET,
1506 .tuner_addr = ADDR_UNSET,
1507 .radio_addr = ADDR_UNSET,
1523 .name =
"Pinnacle PCTV HD 800i",
1524 .tuner_type = TUNER_XC5000,
1525 .radio_type =
UNSET,
1526 .tuner_addr = ADDR_UNSET,
1527 .radio_addr = ADDR_UNSET,
1549 .name =
"DViCO FusionHDTV 5 PCI nano",
1551 .tuner_type = TUNER_ABSENT,
1552 .radio_type =
UNSET,
1553 .tuner_addr = ADDR_UNSET,
1554 .radio_addr = ADDR_UNSET,
1558 .gpio0 = 0x000027df,
1562 .gpio0 = 0x000027df,
1567 .gpio0 = 0x000027df,
1573 .name =
"Pinnacle Hybrid PCTV",
1574 .tuner_type = TUNER_XC2028,
1576 .radio_type =
UNSET,
1577 .radio_addr = ADDR_UNSET,
1611 .name =
"Leadtek TV2000 XP Global",
1612 .tuner_type = TUNER_XC2028,
1614 .radio_type =
UNSET,
1615 .radio_addr = ADDR_UNSET,
1647 .name =
"Leadtek TV2000 XP Global (SC4100)",
1648 .tuner_type = TUNER_XC4000,
1650 .radio_type =
UNSET,
1651 .radio_addr = ADDR_UNSET,
1683 .name =
"Leadtek TV2000 XP Global (XC4100)",
1684 .tuner_type = TUNER_XC4000,
1686 .radio_type =
UNSET,
1687 .radio_addr = ADDR_UNSET,
1719 .name =
"PowerColor RA330",
1720 .tuner_type = TUNER_XC2028,
1756 .name =
"Geniatech X8000-MT DVBT",
1757 .tuner_type = TUNER_XC2028,
1762 .gpio0 = 0x00000000,
1763 .gpio1 = 0x00e3e341,
1764 .gpio2 = 0x00000000,
1765 .gpio3 = 0x00000000,
1769 .gpio0 = 0x00000000,
1770 .gpio1 = 0x00e3e361,
1771 .gpio2 = 0x00000000,
1772 .gpio3 = 0x00000000,
1776 .gpio0 = 0x00000000,
1777 .gpio1 = 0x00e3e361,
1778 .gpio2 = 0x00000000,
1779 .gpio3 = 0x00000000,
1783 .gpio0 = 0x00000000,
1784 .gpio1 = 0x00e3e341,
1785 .gpio2 = 0x00000000,
1786 .gpio3 = 0x00000000,
1791 .name =
"DViCO FusionHDTV DVB-T PRO",
1792 .tuner_type = TUNER_XC2028,
1794 .radio_type =
UNSET,
1795 .radio_addr = ADDR_UNSET,
1799 .gpio0 = 0x000067df,
1803 .gpio0 = 0x000067df,
1808 .name =
"DViCO FusionHDTV 7 Gold",
1809 .tuner_type = TUNER_XC5000,
1810 .radio_type =
UNSET,
1811 .tuner_addr = ADDR_UNSET,
1812 .radio_addr = ADDR_UNSET,
1829 .name =
"Prolink Pixelview MPEG 8000GT",
1830 .tuner_type = TUNER_XC2028,
1852 .name =
"Prolink Pixelview Global Extreme",
1853 .tuner_type = TUNER_XC2028,
1888 .name =
"Kworld PlusTV HD PCI 120 (ATSC 120)",
1889 .tuner_type = TUNER_XC2028,
1890 .radio_type =
UNSET,
1891 .tuner_addr = ADDR_UNSET,
1892 .radio_addr = ADDR_UNSET,
1896 .gpio0 = 0x000000ff,
1897 .gpio1 = 0x0000f35d,
1898 .gpio2 = 0x00000000,
1902 .gpio0 = 0x000000ff,
1903 .gpio1 = 0x0000f37e,
1904 .gpio2 = 0x00000000,
1908 .gpio0 = 0x000000ff,
1909 .gpio1 = 0x0000f37e,
1910 .gpio2 = 0x00000000,
1914 .gpio0 = 0x000000ff,
1915 .gpio1 = 0x0000f35d,
1916 .gpio2 = 0x00000000,
1921 .name =
"Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1922 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1923 .radio_type =
UNSET,
1924 .tuner_addr = ADDR_UNSET,
1925 .radio_addr = ADDR_UNSET,
1926 .tda9887_conf = TDA9887_PRESENT,
1994 .name =
"Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
1995 .tuner_type =
UNSET,
1996 .radio_type =
UNSET,
1997 .tuner_addr = ADDR_UNSET,
1998 .radio_addr = ADDR_UNSET,
2006 .name =
"TeVii S420 DVB-S",
2007 .tuner_type =
UNSET,
2008 .radio_type =
UNSET,
2009 .tuner_addr = ADDR_UNSET,
2010 .radio_addr = ADDR_UNSET,
2018 .name =
"TeVii S460 DVB-S/S2",
2019 .tuner_type =
UNSET,
2020 .radio_type =
UNSET,
2021 .tuner_addr = ADDR_UNSET,
2022 .radio_addr = ADDR_UNSET,
2030 .name =
"TeVii S464 DVB-S/S2",
2031 .tuner_type =
UNSET,
2032 .radio_type =
UNSET,
2033 .tuner_addr = ADDR_UNSET,
2034 .radio_addr = ADDR_UNSET,
2042 .name =
"Omicom SS4 DVB-S/S2 PCI",
2043 .tuner_type =
UNSET,
2044 .radio_type =
UNSET,
2045 .tuner_addr = ADDR_UNSET,
2046 .radio_addr = ADDR_UNSET,
2054 .name =
"TBS 8910 DVB-S",
2055 .tuner_type =
UNSET,
2056 .radio_type =
UNSET,
2057 .tuner_addr = ADDR_UNSET,
2058 .radio_addr = ADDR_UNSET,
2066 .name =
"TBS 8920 DVB-S/S2",
2067 .tuner_type = TUNER_ABSENT,
2068 .radio_type =
UNSET,
2069 .tuner_addr = ADDR_UNSET,
2070 .radio_addr = ADDR_UNSET,
2079 .name =
"Prof 6200 DVB-S",
2080 .tuner_type =
UNSET,
2081 .radio_type =
UNSET,
2082 .tuner_addr = ADDR_UNSET,
2083 .radio_addr = ADDR_UNSET,
2091 .name =
"PROF 7300 DVB-S/S2",
2092 .tuner_type =
UNSET,
2093 .radio_type =
UNSET,
2094 .tuner_addr = ADDR_UNSET,
2095 .radio_addr = ADDR_UNSET,
2103 .name =
"SATTRADE ST4200 DVB-S/S2",
2104 .tuner_type =
UNSET,
2105 .radio_type =
UNSET,
2106 .tuner_addr = ADDR_UNSET,
2107 .radio_addr = ADDR_UNSET,
2115 .name =
"Terratec Cinergy HT PCI MKII",
2116 .tuner_type = TUNER_XC2028,
2118 .radio_type =
UNSET,
2119 .radio_addr = ADDR_UNSET,
2148 .name =
"Hauppauge WinTV-IR Only",
2149 .tuner_type =
UNSET,
2150 .radio_type =
UNSET,
2151 .tuner_addr = ADDR_UNSET,
2152 .radio_addr = ADDR_UNSET,
2155 .name =
"Leadtek WinFast DTV1800 Hybrid",
2156 .tuner_type = TUNER_XC2028,
2157 .radio_type =
UNSET,
2159 .radio_addr = ADDR_UNSET,
2196 .name =
"Leadtek WinFast DTV1800 H (XC4000)",
2197 .tuner_type = TUNER_XC4000,
2198 .radio_type =
UNSET,
2200 .radio_addr = ADDR_UNSET,
2237 .name =
"Leadtek WinFast DTV2000 H PLUS",
2238 .tuner_type = TUNER_XC4000,
2239 .radio_type =
UNSET,
2241 .radio_addr = ADDR_UNSET,
2289 .name =
"Prof 7301 DVB-S/S2",
2290 .tuner_type =
UNSET,
2291 .radio_type =
UNSET,
2292 .tuner_addr = ADDR_UNSET,
2293 .radio_addr = ADDR_UNSET,
2301 .name =
"Twinhan VP-1027 DVB-S",
2302 .tuner_type = TUNER_ABSENT,
2303 .radio_type =
UNSET,
2304 .tuner_addr = ADDR_UNSET,
2305 .radio_addr = ADDR_UNSET,
2317 static const struct cx88_subid cx88_subids[] = {
2319 .subvendor = 0x0070,
2320 .subdevice = 0x3400,
2323 .subvendor = 0x0070,
2324 .subdevice = 0x3401,
2327 .subvendor = 0x14c7,
2328 .subdevice = 0x0106,
2331 .subvendor = 0x14c7,
2332 .subdevice = 0x0107,
2336 .subdevice = 0x00f8,
2340 .subdevice = 0x00f9,
2343 .subvendor = 0x107d,
2344 .subdevice = 0x6611,
2347 .subvendor = 0x107d,
2348 .subdevice = 0x6613,
2351 .subvendor = 0x107d,
2352 .subdevice = 0x6620,
2355 .subvendor = 0x107d,
2356 .subdevice = 0x663b,
2359 .subvendor = 0x107d,
2360 .subdevice = 0x663c,
2363 .subvendor = 0x1461,
2364 .subdevice = 0x000b,
2367 .subvendor = 0x1462,
2368 .subdevice = 0x8606,
2371 .subvendor = 0x10fc,
2372 .subdevice = 0xd003,
2375 .subvendor = 0x1043,
2376 .subdevice = 0x4823,
2379 .subvendor = 0x17de,
2380 .subdevice = 0x08a6,
2383 .subvendor = 0x18ac,
2384 .subdevice = 0xd810,
2387 .subvendor = 0x18ac,
2388 .subdevice = 0xd820,
2391 .subvendor = 0x18ac,
2392 .subdevice = 0xdb00,
2395 .subvendor = 0x0070,
2396 .subdevice = 0x9002,
2399 .subvendor = 0x14f1,
2400 .subdevice = 0x0187,
2403 .subvendor = 0x1540,
2404 .subdevice = 0x2580,
2407 .subvendor = 0x18ac,
2408 .subdevice = 0xdb10,
2411 .subvendor = 0x1554,
2412 .subdevice = 0x4811,
2415 .subvendor = 0x7063,
2416 .subdevice = 0x3000,
2419 .subvendor = 0x17de,
2420 .subdevice = 0xa8a6,
2423 .subvendor = 0x0070,
2424 .subdevice = 0x2801,
2427 .subvendor = 0x14f1,
2428 .subdevice = 0x0342,
2431 .subvendor = 0x10fc,
2432 .subdevice = 0xd035,
2435 .subvendor = 0x1421,
2436 .subdevice = 0x0334,
2439 .subvendor = 0x153b,
2440 .subdevice = 0x1166,
2443 .subvendor = 0x18ac,
2444 .subdevice = 0xd500,
2447 .subvendor = 0x1461,
2448 .subdevice = 0x8011,
2452 .subdevice = 0xa101,
2455 .subvendor = 0x107d,
2456 .subdevice = 0x665f,
2459 .subvendor = 0x1461,
2460 .subdevice = 0x000a,
2463 .subvendor = 0x0070,
2464 .subdevice = 0x9200,
2467 .subvendor = 0x0070,
2468 .subdevice = 0x9201,
2471 .subvendor = 0x0070,
2472 .subdevice = 0x9202,
2475 .subvendor = 0x17de,
2476 .subdevice = 0x08b2,
2479 .subvendor = 0x0070,
2480 .subdevice = 0x9400,
2483 .subvendor = 0x0070,
2484 .subdevice = 0x9402,
2487 .subvendor = 0x0070,
2488 .subdevice = 0x9800,
2491 .subvendor = 0x0070,
2492 .subdevice = 0x9802,
2495 .subvendor = 0x0070,
2496 .subdevice = 0x9001,
2499 .subvendor = 0x1822,
2500 .subdevice = 0x0025,
2503 .subvendor = 0x17de,
2504 .subdevice = 0x08a1,
2507 .subvendor = 0x18ac,
2508 .subdevice = 0xdb50,
2511 .subvendor = 0x18ac,
2512 .subdevice = 0xdb54,
2516 .subvendor = 0x18ac,
2517 .subdevice = 0xdb11,
2521 .subvendor = 0x18ac,
2522 .subdevice = 0xdb30,
2525 .subvendor = 0x17de,
2526 .subdevice = 0x0840,
2529 .subvendor = 0x1421,
2530 .subdevice = 0x0305,
2533 .subvendor = 0x18ac,
2534 .subdevice = 0xdb40,
2537 .subvendor = 0x18ac,
2538 .subdevice = 0xdb44,
2541 .subvendor = 0x7063,
2542 .subdevice = 0x5500,
2545 .subvendor = 0x17de,
2546 .subdevice = 0x0841,
2549 .subvendor = 0x1822,
2550 .subdevice = 0x0019,
2553 .subvendor = 0x1554,
2554 .subdevice = 0x4813,
2557 .subvendor = 0x14f1,
2558 .subdevice = 0x0842,
2561 .subvendor = 0x107d,
2562 .subdevice = 0x665e,
2565 .subvendor = 0x107d,
2566 .subdevice = 0x6f2b,
2569 .subvendor = 0x18ac,
2570 .subdevice = 0xd800,
2573 .subvendor = 0x14f1,
2574 .subdevice = 0x0084,
2577 .subvendor = 0x0070,
2578 .subdevice = 0x1404,
2581 .subvendor = 0x18ac,
2582 .subdevice = 0xdc00,
2585 .subvendor = 0x18ac,
2586 .subdevice = 0xdccd,
2589 .subvendor = 0x1461,
2590 .subdevice = 0xc111,
2594 .subvendor = 0xc180,
2595 .subdevice = 0xc980,
2598 .subvendor = 0x0070,
2599 .subdevice = 0x9600,
2602 .subvendor = 0x0070,
2603 .subdevice = 0x9601,
2606 .subvendor = 0x0070,
2607 .subdevice = 0x9602,
2610 .subvendor = 0x107d,
2611 .subdevice = 0x6632,
2614 .subvendor = 0x12ab,
2615 .subdevice = 0x2300,
2618 .subvendor = 0x0070,
2619 .subdevice = 0x9000,
2622 .subvendor = 0x0070,
2623 .subdevice = 0x1400,
2626 .subvendor = 0x0070,
2627 .subdevice = 0x1401,
2630 .subvendor = 0x0070,
2631 .subdevice = 0x1402,
2634 .subvendor = 0x1421,
2635 .subdevice = 0x0341,
2638 .subvendor = 0x1421,
2639 .subdevice = 0x0390,
2642 .subvendor = 0x11bd,
2643 .subdevice = 0x0051,
2646 .subvendor = 0x18ac,
2647 .subdevice = 0xd530,
2650 .subvendor = 0x12ab,
2651 .subdevice = 0x1788,
2654 .subvendor = 0x14f1,
2655 .subdevice = 0xea3d,
2658 .subvendor = 0x107d,
2659 .subdevice = 0x6f18,
2662 .subvendor = 0x14f1,
2663 .subdevice = 0x8852,
2666 .subvendor = 0x18ac,
2667 .subdevice = 0xd610,
2670 .subvendor = 0x1554,
2671 .subdevice = 0x4935,
2674 .subvendor = 0x1554,
2675 .subdevice = 0x4976,
2678 .subvendor = 0x17de,
2679 .subdevice = 0x08c1,
2682 .subvendor = 0x0070,
2683 .subdevice = 0x6900,
2686 .subvendor = 0x0070,
2687 .subdevice = 0x6904,
2690 .subvendor = 0x0070,
2691 .subdevice = 0x6902,
2694 .subvendor = 0x0070,
2695 .subdevice = 0x6905,
2698 .subvendor = 0x0070,
2699 .subdevice = 0x6906,
2702 .subvendor = 0xd420,
2703 .subdevice = 0x9022,
2706 .subvendor = 0xd460,
2707 .subdevice = 0x9022,
2710 .subvendor = 0xd464,
2711 .subdevice = 0x9022,
2714 .subvendor = 0xA044,
2715 .subdevice = 0x2011,
2718 .subvendor = 0x8910,
2719 .subdevice = 0x8888,
2722 .subvendor = 0x8920,
2723 .subdevice = 0x8888,
2726 .subvendor = 0xb022,
2727 .subdevice = 0x3022,
2730 .subvendor = 0xB033,
2731 .subdevice = 0x3033,
2734 .subvendor = 0xb200,
2735 .subdevice = 0x4200,
2738 .subvendor = 0x153b,
2739 .subdevice = 0x1177,
2742 .subvendor = 0x0070,
2743 .subdevice = 0x9290,
2746 .subvendor = 0x107d,
2747 .subdevice = 0x6654,
2751 .subvendor = 0x107d,
2752 .subdevice = 0x6f38,
2755 .subvendor = 0x107d,
2756 .subdevice = 0x6f42,
2760 .subvendor = 0x107d,
2761 .subdevice = 0x6630,
2765 .subvendor = 0x107d,
2766 .subdevice = 0x6638,
2770 .subvendor = 0x107d,
2771 .subdevice = 0x6631,
2775 .subvendor = 0x107d,
2776 .subdevice = 0x6637,
2780 .subvendor = 0x107d,
2781 .subdevice = 0x663d,
2785 .subvendor = 0x107d,
2786 .subdevice = 0x6621,
2790 .subvendor = 0x107d,
2791 .subdevice = 0x6618,
2795 .subvendor = 0x107d,
2796 .subdevice = 0x6619,
2800 .subvendor = 0x107d,
2801 .subdevice = 0x6f36,
2805 .subvendor = 0x107d,
2806 .subdevice = 0x6f43,
2809 .subvendor = 0xb034,
2810 .subdevice = 0x3034,
2813 .subvendor = 0x1822,
2814 .subdevice = 0x0023,
2824 if (eeprom_data[4] != 0x7d ||
2825 eeprom_data[5] != 0x10 ||
2826 eeprom_data[7] != 0x66) {
2832 switch (eeprom_data[6]) {
2838 core->
board.tuner_type = TUNER_PHILIPS_FM1236_MK3;
2841 core->
board.tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
2845 info_printk(core,
"Leadtek Winfast 2000XP Expert config: "
2846 "tuner=%d, eeprom[0]=0x%02x\n",
2847 core->
board.tuner_type, eeprom_data[0]);
2850 static void hauppauge_eeprom(
struct cx88_core *core,
u8 *eeprom_data)
2855 core->
board.tuner_type = tv.tuner_type;
2902 warn_printk(core,
"warning: unknown hauppauge model #%d\n",
2907 info_printk(core,
"hauppauge eeprom: model=%d\n", tv.model);
2913 static const struct {
2918 [ 0x01 ] = { .id = TUNER_ABSENT,
2920 [ 0x02 ] = { .id = TUNER_ABSENT,
2922 [ 0x03 ] = { .id = TUNER_ABSENT,
2924 [ 0x04 ] = { .id = TUNER_ABSENT,
2926 [ 0x05 ] = { .id = TUNER_ABSENT,
2929 [ 0x10 ] = { .id = TUNER_ABSENT,
2931 .name =
"TEMIC_4049" },
2932 [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
2933 .name =
"TEMIC_4136" },
2934 [ 0x12 ] = { .id = TUNER_ABSENT,
2935 .name =
"TEMIC_4146" },
2937 [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
2939 .name =
"PHILIPS_FQ1216_MK3" },
2940 [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
2941 .name =
"PHILIPS_FQ1236_MK3" },
2942 [ 0x22 ] = { .id = TUNER_ABSENT,
2943 .name =
"PHILIPS_FI1236_MK3" },
2944 [ 0x23 ] = { .id = TUNER_ABSENT,
2945 .name =
"PHILIPS_FI1216_MK3" },
2948 static void gdi_eeprom(
struct cx88_core *core,
u8 *eeprom_data)
2951 ? gdi_tuner[eeprom_data[0x0d]].name :
NULL;
2953 info_printk(core,
"GDI: tuner=%s\n", name ? name :
"unknown");
2956 core->
board.tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
2957 core->
board.radio.type = gdi_tuner[eeprom_data[0x0d]].fm ?
2963 static int cx88_dvico_xc2028_callback(
struct cx88_core *core,
2995 static int cx88_xc3028_geniatech_tuner_callback(
struct cx88_core *core,
2996 int command,
int mode)
3022 static int cx88_xc3028_winfast1800h_callback(
struct cx88_core *core,
3023 int command,
int arg)
3039 static int cx88_xc4000_winfast2000h_plus_callback(
struct cx88_core *core,
3040 int command,
int arg)
3058 static int cx88_pv_8000gt_callback(
struct cx88_core *core,
3059 int command,
int arg)
3079 static void dvico_fusionhdtv_hybrid_init(
struct cx88_core *core)
3081 struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
3083 static u8 init_bufs[13][5] = {
3084 { 0x10, 0x00, 0x20, 0x01, 0x03 },
3085 { 0x10, 0x10, 0x01, 0x00, 0x21 },
3086 { 0x10, 0x10, 0x10, 0x00, 0xCA },
3087 { 0x10, 0x10, 0x12, 0x00, 0x08 },
3088 { 0x10, 0x10, 0x13, 0x00, 0x0A },
3089 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
3090 { 0x10, 0x10, 0x22, 0x01, 0x3D },
3091 { 0x10, 0x10, 0x73, 0x01, 0x2E },
3092 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
3093 { 0x10, 0x10, 0x71, 0x01, 0x97 },
3094 { 0x10, 0x10, 0x70, 0x00, 0x0F },
3095 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
3099 for (i = 0; i <
ARRAY_SIZE(init_bufs); i++) {
3100 msg.
buf = init_bufs[
i];
3101 msg.
len = (i != 12 ? 5 : 2);
3104 warn_printk(core,
"dvico_fusionhdtv_hybrid_init buf %d "
3105 "failed (err = %d)!\n", i, err);
3111 static int cx88_xc2028_tuner_callback(
struct cx88_core *core,
3112 int command,
int arg)
3119 return cx88_xc3028_geniatech_tuner_callback(core,
3123 return cx88_pv_8000gt_callback(core, command, arg);
3126 return cx88_dvico_xc2028_callback(core, command, arg);
3129 return cx88_xc3028_winfast1800h_callback(core, command, arg);
3158 static int cx88_xc4000_tuner_callback(
struct cx88_core *core,
3159 int command,
int arg)
3167 return cx88_xc4000_winfast2000h_plus_callback(core,
3178 static int cx88_xc5000_tuner_callback(
struct cx88_core *core,
3179 int command,
int arg)
3203 "callback command.\n");
3215 "xc5000: unknown tuner callback command.\n");
3233 core = i2c_algo->
data;
3243 switch (core->
board.tuner_type) {
3245 info_printk(core,
"Calling XC2028/3028 callback\n");
3246 return cx88_xc2028_tuner_callback(core, command, arg);
3249 return cx88_xc4000_tuner_callback(core, command, arg);
3252 return cx88_xc5000_tuner_callback(core, command, arg);
3254 err_printk(core,
"Error: Calling callback for tuner %d\n",
3255 core->
board.tuner_type);
3269 "%s: Your board has no valid PCI Subsystem ID and thus can't\n"
3270 "%s: be autodetected. Please pass card=<n> insmod option to\n"
3271 "%s: workaround that. Redirect complaints to the vendor of\n"
3272 "%s: the TV card. Best regards,\n"
3277 "%s: Your board isn't known (yet) to the driver. You can\n"
3278 "%s: try to pick one of the existing card configs via\n"
3279 "%s: card=<n> insmod option. Updating to the latest\n"
3280 "%s: version might help as well.\n",
3283 err_printk(core,
"Here is a list of valid choices for the card=<n> "
3284 "insmod option:\n");
3285 for (i = 0; i <
ARRAY_SIZE(cx88_boards); i++)
3287 core->
name, i, cx88_boards[i].
name);
3290 static void cx88_card_setup_pre_i2c(
struct cx88_core *core)
3345 cx88_xc4000_winfast2000h_plus_callback(core,
3363 memset(ctl, 0,
sizeof(*ctl));
3409 static void cx88_card_setup(
struct cx88_core *core)
3412 struct tuner_setup tun_setup;
3413 unsigned int mode_mask = T_RADIO | T_ANALOG_TV;
3415 memset(&tun_setup, 0,
sizeof(tun_setup));
3426 hauppauge_eeprom(core, eeprom+8);
3430 gdi_eeprom(core, eeprom);
3436 leadtek_eeprom(core, eeprom);
3449 hauppauge_eeprom(core, eeprom);
3479 dvico_fusionhdtv_hybrid_init(core);
3525 tea5767_cfg.tuner = TUNER_TEA5767;
3526 tea5767_cfg.priv = &
ctl;
3555 tun_setup.mode_mask = T_RADIO;
3556 tun_setup.type = core->
board.radio_type;
3557 tun_setup.addr = core->
board.radio_addr;
3560 mode_mask &= ~T_RADIO;
3563 if (core->
board.tuner_type != TUNER_ABSENT) {
3564 tun_setup.mode_mask = mode_mask;
3565 tun_setup.type = core->
board.tuner_type;
3566 tun_setup.addr = core->
board.tuner_addr;
3572 if (core->
board.tda9887_conf) {
3575 tda9887_cfg.
tuner = TUNER_TDA9887;
3576 tda9887_cfg.priv = &core->
board.tda9887_conf;
3581 if (core->
board.tuner_type == TUNER_XC2028) {
3589 memset(&xc2028_cfg, 0,
sizeof(xc2028_cfg));
3590 xc2028_cfg.tuner = TUNER_XC2028;
3591 xc2028_cfg.priv = &
ctl;
3592 info_printk(core,
"Asking xc2028/3028 to load firmware %s\n",
3601 static int cx88_pci_quirks(
const char *name,
struct pci_dev *pci)
3603 unsigned int lat =
UNSET;
3628 #ifdef PCIPCI_ALIMAGIK
3637 if (
UNSET != latency)
3661 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3718 cx88_pci_quirks(core->
name, pci);
3743 cx88_card_list(core, pci);
3749 core->
board.num_frontends = 1;
3751 info_printk(core,
"subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3754 "insmod option" :
"autodetected",
3755 core->
board.num_frontends);
3760 core->
board.radio_type = radio[core->
nr];
3762 info_printk(core,
"TV tuner type %d, Radio tuner type %d\n",
3763 core->
board.tuner_type, core->
board.radio_type);
3767 cx88_card_setup_pre_i2c(core);
3771 if (TUNER_ABSENT != core->
board.tuner_type) {
3775 static const unsigned short tv_addrs[] = {
3776 0x42, 0x43, 0x4a, 0x4b,
3777 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3778 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3781 int has_demod = (core->
board.tda9887_conf & TDA9887_PRESENT);
3794 if (core->
board.tuner_addr == ADDR_UNSET) {
3797 0, has_demod ? tv_addrs + 4 : tv_addrs);
3804 cx88_card_setup(core);