3 * device driver for Conexant 2388x based TV cards
6 * (c) 2003 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>
25 #include <linux/pci.h>
26 #include <linux/delay.h>
31 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
32 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
33 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
35 module_param_array(tuner
, int, NULL
, 0444);
36 module_param_array(radio
, int, NULL
, 0444);
37 module_param_array(card
, int, NULL
, 0444);
39 MODULE_PARM_DESC(tuner
,"tuner type");
40 MODULE_PARM_DESC(radio
,"radio tuner type");
41 MODULE_PARM_DESC(card
,"card type");
43 static unsigned int latency
= UNSET
;
44 module_param(latency
,int,0444);
45 MODULE_PARM_DESC(latency
,"pci latency timer");
47 /* ------------------------------------------------------------------ */
48 /* board config info */
50 static const struct cx88_board cx88_boards
[] = {
51 [CX88_BOARD_UNKNOWN
] = {
52 .name
= "UNKNOWN/GENERIC",
55 .tuner_addr
= ADDR_UNSET
,
56 .radio_addr
= ADDR_UNSET
,
58 .type
= CX88_VMUX_COMPOSITE1
,
61 .type
= CX88_VMUX_COMPOSITE2
,
64 .type
= CX88_VMUX_COMPOSITE3
,
67 .type
= CX88_VMUX_COMPOSITE4
,
71 [CX88_BOARD_HAUPPAUGE
] = {
72 .name
= "Hauppauge WinTV 34xxx models",
75 .tuner_addr
= ADDR_UNSET
,
76 .radio_addr
= ADDR_UNSET
,
77 .tda9887_conf
= TDA9887_PRESENT
,
79 .type
= CX88_VMUX_TELEVISION
,
81 .gpio0
= 0xff00, // internal decoder
83 .type
= CX88_VMUX_DEBUG
,
85 .gpio0
= 0xff01, // mono from tuner chip
87 .type
= CX88_VMUX_COMPOSITE1
,
91 .type
= CX88_VMUX_SVIDEO
,
101 .name
= "GDI Black Gold",
104 .tuner_addr
= ADDR_UNSET
,
105 .radio_addr
= ADDR_UNSET
,
107 .type
= CX88_VMUX_TELEVISION
,
110 .type
= CX88_VMUX_SVIDEO
,
114 [CX88_BOARD_PIXELVIEW
] = {
116 .tuner_type
= TUNER_PHILIPS_PAL
,
118 .tuner_addr
= ADDR_UNSET
,
119 .radio_addr
= ADDR_UNSET
,
121 .type
= CX88_VMUX_TELEVISION
,
123 .gpio0
= 0xff00, // internal decoder
125 .type
= CX88_VMUX_COMPOSITE1
,
128 .type
= CX88_VMUX_SVIDEO
,
136 [CX88_BOARD_ATI_WONDER_PRO
] = {
137 .name
= "ATI TV Wonder Pro",
138 .tuner_type
= TUNER_PHILIPS_4IN1
,
140 .tuner_addr
= ADDR_UNSET
,
141 .radio_addr
= ADDR_UNSET
,
142 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
144 .type
= CX88_VMUX_TELEVISION
,
148 .type
= CX88_VMUX_COMPOSITE1
,
152 .type
= CX88_VMUX_SVIDEO
,
157 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
158 .name
= "Leadtek Winfast 2000XP Expert",
159 .tuner_type
= TUNER_PHILIPS_4IN1
,
161 .tuner_addr
= ADDR_UNSET
,
162 .radio_addr
= ADDR_UNSET
,
163 .tda9887_conf
= TDA9887_PRESENT
,
165 .type
= CX88_VMUX_TELEVISION
,
172 .type
= CX88_VMUX_COMPOSITE1
,
179 .type
= CX88_VMUX_SVIDEO
,
194 [CX88_BOARD_AVERTV_STUDIO_303
] = {
195 .name
= "AverTV Studio 303 (M126)",
196 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
198 .tuner_addr
= ADDR_UNSET
,
199 .radio_addr
= ADDR_UNSET
,
200 .tda9887_conf
= TDA9887_PRESENT
,
202 .type
= CX88_VMUX_TELEVISION
,
206 .type
= CX88_VMUX_COMPOSITE1
,
210 .type
= CX88_VMUX_SVIDEO
,
219 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
220 // added gpio values thanks to Michal
221 // values for PAL from DScaler
222 .name
= "MSI TV-@nywhere Master",
223 .tuner_type
= TUNER_MT2032
,
225 .tuner_addr
= ADDR_UNSET
,
226 .radio_addr
= ADDR_UNSET
,
227 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
229 .type
= CX88_VMUX_TELEVISION
,
235 .type
= CX88_VMUX_COMPOSITE1
,
241 .type
= CX88_VMUX_SVIDEO
,
255 [CX88_BOARD_WINFAST_DV2000
] = {
256 .name
= "Leadtek Winfast DV2000",
257 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
259 .tuner_addr
= ADDR_UNSET
,
260 .radio_addr
= ADDR_UNSET
,
261 .tda9887_conf
= TDA9887_PRESENT
,
263 .type
= CX88_VMUX_TELEVISION
,
271 .type
= CX88_VMUX_COMPOSITE1
,
278 .type
= CX88_VMUX_SVIDEO
,
293 [CX88_BOARD_LEADTEK_PVR2000
] = {
294 // gpio values for PAL version from regspy by DScaler
295 .name
= "Leadtek PVR 2000",
296 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
298 .tuner_addr
= ADDR_UNSET
,
299 .radio_addr
= ADDR_UNSET
,
300 .tda9887_conf
= TDA9887_PRESENT
,
302 .type
= CX88_VMUX_TELEVISION
,
307 .type
= CX88_VMUX_COMPOSITE1
,
312 .type
= CX88_VMUX_SVIDEO
,
322 .mpeg
= CX88_MPEG_BLACKBIRD
,
324 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
325 .name
= "IODATA GV-VCP3/PCI",
326 .tuner_type
= TUNER_ABSENT
,
328 .tuner_addr
= ADDR_UNSET
,
329 .radio_addr
= ADDR_UNSET
,
331 .type
= CX88_VMUX_COMPOSITE1
,
334 .type
= CX88_VMUX_COMPOSITE2
,
337 .type
= CX88_VMUX_SVIDEO
,
341 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
342 .name
= "Prolink PlayTV PVR",
343 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
345 .tuner_addr
= ADDR_UNSET
,
346 .radio_addr
= ADDR_UNSET
,
347 .tda9887_conf
= TDA9887_PRESENT
,
349 .type
= CX88_VMUX_TELEVISION
,
353 .type
= CX88_VMUX_COMPOSITE1
,
357 .type
= CX88_VMUX_SVIDEO
,
366 [CX88_BOARD_ASUS_PVR_416
] = {
367 .name
= "ASUS PVR-416",
368 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
370 .tuner_addr
= ADDR_UNSET
,
371 .radio_addr
= ADDR_UNSET
,
372 .tda9887_conf
= TDA9887_PRESENT
,
374 .type
= CX88_VMUX_TELEVISION
,
378 .type
= CX88_VMUX_SVIDEO
,
380 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
387 .mpeg
= CX88_MPEG_BLACKBIRD
,
389 [CX88_BOARD_MSI_TVANYWHERE
] = {
390 .name
= "MSI TV-@nywhere",
391 .tuner_type
= TUNER_MT2032
,
393 .tuner_addr
= ADDR_UNSET
,
394 .radio_addr
= ADDR_UNSET
,
395 .tda9887_conf
= TDA9887_PRESENT
,
397 .type
= CX88_VMUX_TELEVISION
,
402 .type
= CX88_VMUX_COMPOSITE1
,
407 .type
= CX88_VMUX_SVIDEO
,
413 [CX88_BOARD_KWORLD_DVB_T
] = {
414 .name
= "KWorld/VStream XPert DVB-T",
415 .tuner_type
= TUNER_ABSENT
,
417 .tuner_addr
= ADDR_UNSET
,
418 .radio_addr
= ADDR_UNSET
,
420 .type
= CX88_VMUX_COMPOSITE1
,
425 .type
= CX88_VMUX_SVIDEO
,
430 .mpeg
= CX88_MPEG_DVB
,
432 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
433 .name
= "DViCO FusionHDTV DVB-T1",
434 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
436 .tuner_addr
= ADDR_UNSET
,
437 .radio_addr
= ADDR_UNSET
,
439 .type
= CX88_VMUX_COMPOSITE1
,
443 .type
= CX88_VMUX_SVIDEO
,
447 .mpeg
= CX88_MPEG_DVB
,
449 [CX88_BOARD_KWORLD_LTV883
] = {
450 .name
= "KWorld LTV883RF",
451 .tuner_type
= TUNER_TNF_8831BGFF
,
453 .tuner_addr
= ADDR_UNSET
,
454 .radio_addr
= ADDR_UNSET
,
456 .type
= CX88_VMUX_TELEVISION
,
460 .type
= CX88_VMUX_DEBUG
,
462 .gpio0
= 0x07f9, // mono from tuner chip
464 .type
= CX88_VMUX_COMPOSITE1
,
468 .type
= CX88_VMUX_SVIDEO
,
477 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
478 .name
= "DViCO FusionHDTV 3 Gold-Q",
479 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
481 .tuner_addr
= ADDR_UNSET
,
482 .radio_addr
= ADDR_UNSET
,
484 GPIO[0] resets DT3302 DTV receiver
487 GPIO[1] mutes analog audio output connector
488 0 - enable selected source
490 GPIO[2] selects source for analog audio output connector
491 0 - analog audio input connector on tab
492 1 - analog DAC output from CX23881 chip
493 GPIO[3] selects RF input connector on tuner module
494 0 - RF connector labeled CABLE
495 1 - RF connector labeled ANT
496 GPIO[4] selects high RF for QAM256 mode
501 .type
= CX88_VMUX_TELEVISION
,
505 .type
= CX88_VMUX_CABLE
,
509 .type
= CX88_VMUX_COMPOSITE1
,
513 .type
= CX88_VMUX_SVIDEO
,
517 .mpeg
= CX88_MPEG_DVB
,
519 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
520 .name
= "Hauppauge Nova-T DVB-T",
521 .tuner_type
= TUNER_ABSENT
,
523 .tuner_addr
= ADDR_UNSET
,
524 .radio_addr
= ADDR_UNSET
,
526 .type
= CX88_VMUX_DVB
,
529 .mpeg
= CX88_MPEG_DVB
,
531 [CX88_BOARD_CONEXANT_DVB_T1
] = {
532 .name
= "Conexant DVB-T reference design",
533 .tuner_type
= TUNER_ABSENT
,
535 .tuner_addr
= ADDR_UNSET
,
536 .radio_addr
= ADDR_UNSET
,
538 .type
= CX88_VMUX_DVB
,
541 .mpeg
= CX88_MPEG_DVB
,
543 [CX88_BOARD_PROVIDEO_PV259
] = {
544 .name
= "Provideo PV259",
545 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
547 .tuner_addr
= ADDR_UNSET
,
548 .radio_addr
= ADDR_UNSET
,
550 .type
= CX88_VMUX_TELEVISION
,
554 .mpeg
= CX88_MPEG_BLACKBIRD
,
556 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
557 .name
= "DViCO FusionHDTV DVB-T Plus",
558 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
560 .tuner_addr
= ADDR_UNSET
,
561 .radio_addr
= ADDR_UNSET
,
563 .type
= CX88_VMUX_COMPOSITE1
,
567 .type
= CX88_VMUX_SVIDEO
,
571 .mpeg
= CX88_MPEG_DVB
,
573 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
574 .name
= "digitalnow DNTV Live! DVB-T",
575 .tuner_type
= TUNER_ABSENT
,
577 .tuner_addr
= ADDR_UNSET
,
578 .radio_addr
= ADDR_UNSET
,
580 .type
= CX88_VMUX_COMPOSITE1
,
585 .type
= CX88_VMUX_SVIDEO
,
590 .mpeg
= CX88_MPEG_DVB
,
592 [CX88_BOARD_PCHDTV_HD3000
] = {
593 .name
= "pcHDTV HD3000 HDTV",
594 .tuner_type
= TUNER_THOMSON_DTT761X
,
596 .tuner_addr
= ADDR_UNSET
,
597 .radio_addr
= ADDR_UNSET
,
598 .tda9887_conf
= TDA9887_PRESENT
,
599 /* GPIO[2] = audio source for analog audio out connector
600 * 0 = analog audio input connector
601 * 1 = CX88 audio DACs
603 * GPIO[7] = input to CX88's audio/chroma ADC
605 * 1 = Sound 4.5 MHz IF
607 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
609 * GPIO[16] = Remote control input
612 .type
= CX88_VMUX_TELEVISION
,
616 .type
= CX88_VMUX_COMPOSITE1
,
620 .type
= CX88_VMUX_SVIDEO
,
628 .mpeg
= CX88_MPEG_DVB
,
630 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
631 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
632 // GPIO values obtained from regspy, courtesy Sean Covel
633 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
636 .tuner_addr
= ADDR_UNSET
,
637 .radio_addr
= ADDR_UNSET
,
639 .type
= CX88_VMUX_TELEVISION
,
644 .type
= CX88_VMUX_DEBUG
,
648 .type
= CX88_VMUX_COMPOSITE1
,
652 .type
= CX88_VMUX_SVIDEO
,
662 .mpeg
= CX88_MPEG_BLACKBIRD
,
664 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
665 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
666 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
668 .tuner_addr
= ADDR_UNSET
,
669 .radio_addr
= ADDR_UNSET
,
670 .tda9887_conf
= TDA9887_PRESENT
,
672 .type
= CX88_VMUX_TELEVISION
,
677 .type
= CX88_VMUX_COMPOSITE1
,
682 .type
= CX88_VMUX_SVIDEO
,
692 .mpeg
= CX88_MPEG_BLACKBIRD
,
694 [CX88_BOARD_IODATA_GVBCTV7E
] = {
695 .name
= "IODATA GV/BCTV7E",
696 .tuner_type
= TUNER_PHILIPS_FQ1286
,
698 .tuner_addr
= ADDR_UNSET
,
699 .radio_addr
= ADDR_UNSET
,
700 .tda9887_conf
= TDA9887_PRESENT
,
702 .type
= CX88_VMUX_TELEVISION
,
706 .type
= CX88_VMUX_COMPOSITE1
,
710 .type
= CX88_VMUX_SVIDEO
,
715 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
716 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
717 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
718 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
720 .tuner_addr
= ADDR_UNSET
,
721 .radio_addr
= ADDR_UNSET
,
723 .type
= CX88_VMUX_TELEVISION
,
725 .gpio0
= 0xbf61, /* internal decoder */
727 .type
= CX88_VMUX_COMPOSITE1
,
731 .type
= CX88_VMUX_SVIDEO
,
740 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
741 .name
= "DViCO FusionHDTV 3 Gold-T",
742 .tuner_type
= TUNER_THOMSON_DTT761X
,
744 .tuner_addr
= ADDR_UNSET
,
745 .radio_addr
= ADDR_UNSET
,
746 .tda9887_conf
= TDA9887_PRESENT
,
748 .type
= CX88_VMUX_TELEVISION
,
752 .type
= CX88_VMUX_COMPOSITE1
,
756 .type
= CX88_VMUX_SVIDEO
,
760 .mpeg
= CX88_MPEG_DVB
,
762 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
763 .name
= "ADS Tech Instant TV DVB-T PCI",
764 .tuner_type
= TUNER_ABSENT
,
766 .tuner_addr
= ADDR_UNSET
,
767 .radio_addr
= ADDR_UNSET
,
769 .type
= CX88_VMUX_COMPOSITE1
,
774 .type
= CX88_VMUX_SVIDEO
,
779 .mpeg
= CX88_MPEG_DVB
,
781 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
782 .name
= "TerraTec Cinergy 1400 DVB-T",
783 .tuner_type
= TUNER_ABSENT
,
785 .type
= CX88_VMUX_DVB
,
788 .type
= CX88_VMUX_COMPOSITE1
,
791 .type
= CX88_VMUX_SVIDEO
,
794 .mpeg
= CX88_MPEG_DVB
,
796 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
797 .name
= "DViCO FusionHDTV 5 Gold",
798 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
800 .tuner_addr
= ADDR_UNSET
,
801 .radio_addr
= ADDR_UNSET
,
802 .tda9887_conf
= TDA9887_PRESENT
,
804 .type
= CX88_VMUX_TELEVISION
,
808 .type
= CX88_VMUX_COMPOSITE1
,
812 .type
= CX88_VMUX_SVIDEO
,
816 .mpeg
= CX88_MPEG_DVB
,
818 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
819 .name
= "AverMedia UltraTV Media Center PCI 550",
820 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
822 .tuner_addr
= ADDR_UNSET
,
823 .radio_addr
= ADDR_UNSET
,
824 .tda9887_conf
= TDA9887_PRESENT
,
826 .type
= CX88_VMUX_COMPOSITE1
,
831 .type
= CX88_VMUX_SVIDEO
,
836 .type
= CX88_VMUX_TELEVISION
,
847 .mpeg
= CX88_MPEG_BLACKBIRD
,
849 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
850 /* Alexander Wold <awold@bigfoot.com> */
851 .name
= "Kworld V-Stream Xpert DVD",
854 .type
= CX88_VMUX_COMPOSITE1
,
861 .type
= CX88_VMUX_SVIDEO
,
869 [CX88_BOARD_ATI_HDTVWONDER
] = {
870 .name
= "ATI HDTV Wonder",
871 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
873 .tuner_addr
= ADDR_UNSET
,
874 .radio_addr
= ADDR_UNSET
,
876 .type
= CX88_VMUX_TELEVISION
,
883 .type
= CX88_VMUX_COMPOSITE1
,
890 .type
= CX88_VMUX_SVIDEO
,
897 .mpeg
= CX88_MPEG_DVB
,
899 [CX88_BOARD_WINFAST_DTV1000
] = {
900 .name
= "WinFast DTV1000-T",
901 .tuner_type
= TUNER_ABSENT
,
903 .tuner_addr
= ADDR_UNSET
,
904 .radio_addr
= ADDR_UNSET
,
906 .type
= CX88_VMUX_DVB
,
909 .type
= CX88_VMUX_COMPOSITE1
,
912 .type
= CX88_VMUX_SVIDEO
,
915 .mpeg
= CX88_MPEG_DVB
,
917 [CX88_BOARD_AVERTV_303
] = {
918 .name
= "AVerTV 303 (M126)",
919 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
921 .tuner_addr
= ADDR_UNSET
,
922 .radio_addr
= ADDR_UNSET
,
923 .tda9887_conf
= TDA9887_PRESENT
,
925 .type
= CX88_VMUX_TELEVISION
,
932 .type
= CX88_VMUX_COMPOSITE1
,
939 .type
= CX88_VMUX_SVIDEO
,
947 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
948 .name
= "Hauppauge Nova-S-Plus DVB-S",
949 .tuner_type
= TUNER_ABSENT
,
951 .tuner_addr
= ADDR_UNSET
,
952 .radio_addr
= ADDR_UNSET
,
954 .type
= CX88_VMUX_DVB
,
957 .type
= CX88_VMUX_COMPOSITE1
,
960 .type
= CX88_VMUX_SVIDEO
,
963 .mpeg
= CX88_MPEG_DVB
,
965 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
966 .name
= "Hauppauge Nova-SE2 DVB-S",
967 .tuner_type
= TUNER_ABSENT
,
969 .tuner_addr
= ADDR_UNSET
,
970 .radio_addr
= ADDR_UNSET
,
972 .type
= CX88_VMUX_DVB
,
975 .mpeg
= CX88_MPEG_DVB
,
977 [CX88_BOARD_KWORLD_DVBS_100
] = {
978 .name
= "KWorld DVB-S 100",
979 .tuner_type
= TUNER_ABSENT
,
981 .tuner_addr
= ADDR_UNSET
,
982 .radio_addr
= ADDR_UNSET
,
984 .type
= CX88_VMUX_DVB
,
987 .type
= CX88_VMUX_COMPOSITE1
,
990 .type
= CX88_VMUX_SVIDEO
,
993 .mpeg
= CX88_MPEG_DVB
,
995 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
996 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
997 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
999 .tuner_addr
= ADDR_UNSET
,
1000 .radio_addr
= ADDR_UNSET
,
1001 .tda9887_conf
= TDA9887_PRESENT
,
1003 .type
= CX88_VMUX_TELEVISION
,
1006 .type
= CX88_VMUX_COMPOSITE1
,
1009 .type
= CX88_VMUX_SVIDEO
,
1012 /* fixme: Add radio support */
1013 .mpeg
= CX88_MPEG_DVB
,
1015 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1016 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1017 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1018 .radio_type
= UNSET
,
1019 .tuner_addr
= ADDR_UNSET
,
1020 .radio_addr
= ADDR_UNSET
,
1021 .tda9887_conf
= TDA9887_PRESENT
,
1023 .type
= CX88_VMUX_TELEVISION
,
1026 .type
= CX88_VMUX_COMPOSITE1
,
1029 /* fixme: Add radio support */
1030 .mpeg
= CX88_MPEG_DVB
,
1032 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1033 .name
= "digitalnow DNTV Live! DVB-T Pro",
1034 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1035 .radio_type
= UNSET
,
1036 .tuner_addr
= ADDR_UNSET
,
1037 .radio_addr
= ADDR_UNSET
,
1038 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1039 TDA9887_PORT2_ACTIVE
,
1041 .type
= CX88_VMUX_TELEVISION
,
1045 .type
= CX88_VMUX_COMPOSITE1
,
1049 .type
= CX88_VMUX_SVIDEO
,
1057 .mpeg
= CX88_MPEG_DVB
,
1059 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1060 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1061 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1062 /* Manenti Marco <marco_manenti@colman.it> */
1063 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1064 .tuner_type
= TUNER_ABSENT
,
1065 .radio_type
= UNSET
,
1066 .tuner_addr
= ADDR_UNSET
,
1067 .radio_addr
= ADDR_UNSET
,
1069 .type
= CX88_VMUX_COMPOSITE1
,
1074 .type
= CX88_VMUX_SVIDEO
,
1079 .mpeg
= CX88_MPEG_DVB
,
1081 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1082 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1083 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1084 .radio_type
= UNSET
,
1085 .tuner_addr
= ADDR_UNSET
,
1086 .radio_addr
= ADDR_UNSET
,
1088 .type
= CX88_VMUX_COMPOSITE1
,
1090 .gpio0
= 0x000067df,
1092 .type
= CX88_VMUX_SVIDEO
,
1094 .gpio0
= 0x000067df,
1096 .mpeg
= CX88_MPEG_DVB
,
1098 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1099 .name
= "KWorld HardwareMpegTV XPert",
1100 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1101 .radio_type
= UNSET
,
1102 .tuner_addr
= ADDR_UNSET
,
1103 .radio_addr
= ADDR_UNSET
,
1105 .type
= CX88_VMUX_TELEVISION
,
1110 .type
= CX88_VMUX_COMPOSITE1
,
1115 .type
= CX88_VMUX_SVIDEO
,
1125 .mpeg
= CX88_MPEG_BLACKBIRD
,
1127 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1128 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1129 .tuner_type
= TUNER_THOMSON_FE6600
,
1130 .radio_type
= UNSET
,
1131 .tuner_addr
= ADDR_UNSET
,
1132 .radio_addr
= ADDR_UNSET
,
1134 .type
= CX88_VMUX_TELEVISION
,
1136 .gpio0
= 0x0000a75f,
1138 .type
= CX88_VMUX_COMPOSITE1
,
1140 .gpio0
= 0x0000a75b,
1142 .type
= CX88_VMUX_SVIDEO
,
1144 .gpio0
= 0x0000a75b,
1146 .mpeg
= CX88_MPEG_DVB
,
1148 [CX88_BOARD_PCHDTV_HD5500
] = {
1149 .name
= "pcHDTV HD5500 HDTV",
1150 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1151 .radio_type
= UNSET
,
1152 .tuner_addr
= ADDR_UNSET
,
1153 .radio_addr
= ADDR_UNSET
,
1154 .tda9887_conf
= TDA9887_PRESENT
,
1156 .type
= CX88_VMUX_TELEVISION
,
1160 .type
= CX88_VMUX_COMPOSITE1
,
1164 .type
= CX88_VMUX_SVIDEO
,
1168 .mpeg
= CX88_MPEG_DVB
,
1170 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1171 /* FIXME: tested TV input only, disabled composite,
1172 svideo and radio until they can be tested also. */
1173 .name
= "Kworld MCE 200 Deluxe",
1174 .tuner_type
= TUNER_TENA_9533_DI
,
1175 .radio_type
= UNSET
,
1176 .tda9887_conf
= TDA9887_PRESENT
,
1177 .tuner_addr
= ADDR_UNSET
,
1178 .radio_addr
= ADDR_UNSET
,
1180 .type
= CX88_VMUX_TELEVISION
,
1184 .mpeg
= CX88_MPEG_BLACKBIRD
,
1186 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1187 /* FIXME: SVideo, Composite and FM inputs are untested */
1188 .name
= "PixelView PlayTV P7000",
1189 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1190 .radio_type
= UNSET
,
1191 .tuner_addr
= ADDR_UNSET
,
1192 .radio_addr
= ADDR_UNSET
,
1193 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1194 TDA9887_PORT2_ACTIVE
,
1196 .type
= CX88_VMUX_TELEVISION
,
1200 .mpeg
= CX88_MPEG_BLACKBIRD
,
1202 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1203 .name
= "NPG Tech Real TV FM Top 10",
1204 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1205 .radio_type
= UNSET
,
1206 .tuner_addr
= ADDR_UNSET
,
1207 .radio_addr
= ADDR_UNSET
,
1209 .type
= CX88_VMUX_TELEVISION
,
1213 .type
= CX88_VMUX_COMPOSITE1
,
1217 .type
= CX88_VMUX_SVIDEO
,
1226 [CX88_BOARD_WINFAST_DTV2000H
] = {
1227 /* video inputs and radio still in testing */
1228 .name
= "WinFast DTV2000 H",
1229 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1230 .radio_type
= UNSET
,
1231 .tuner_addr
= ADDR_UNSET
,
1232 .radio_addr
= ADDR_UNSET
,
1233 .tda9887_conf
= TDA9887_PRESENT
,
1235 .type
= CX88_VMUX_TELEVISION
,
1237 .gpio0
= 0x00017304,
1238 .gpio1
= 0x00008203,
1239 .gpio2
= 0x00017304,
1240 .gpio3
= 0x02000000,
1242 .mpeg
= CX88_MPEG_DVB
,
1244 [CX88_BOARD_GENIATECH_DVBS
] = {
1245 .name
= "Geniatech DVB-S",
1246 .tuner_type
= TUNER_ABSENT
,
1247 .radio_type
= UNSET
,
1248 .tuner_addr
= ADDR_UNSET
,
1249 .radio_addr
= ADDR_UNSET
,
1251 .type
= CX88_VMUX_DVB
,
1254 .type
= CX88_VMUX_COMPOSITE1
,
1257 .mpeg
= CX88_MPEG_DVB
,
1259 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1260 /* FIXME: Add dvb & radio support */
1261 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1262 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1263 .radio_type
= UNSET
,
1264 .tuner_addr
= ADDR_UNSET
,
1265 .radio_addr
= ADDR_UNSET
,
1266 .tda9887_conf
= TDA9887_PRESENT
,
1268 .type
= CX88_VMUX_TELEVISION
,
1272 .type
= CX88_VMUX_COMPOSITE1
,
1276 .type
= CX88_VMUX_SVIDEO
,
1280 .mpeg
= CX88_MPEG_DVB
,
1282 [CX88_BOARD_NORWOOD_MICRO
] = {
1283 .name
= "Norwood Micro TV Tuner",
1284 .tuner_type
= TUNER_TNF_5335MF
,
1285 .radio_type
= UNSET
,
1286 .tuner_addr
= ADDR_UNSET
,
1287 .radio_addr
= ADDR_UNSET
,
1289 .type
= CX88_VMUX_TELEVISION
,
1293 .type
= CX88_VMUX_COMPOSITE1
,
1297 .type
= CX88_VMUX_SVIDEO
,
1302 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1303 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1304 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1305 .radio_type
= UNSET
,
1306 .tuner_addr
= ADDR_UNSET
,
1307 .radio_addr
= ADDR_UNSET
,
1309 .type
= CX88_VMUX_TELEVISION
,
1311 .gpio0
= 0x003fffff,
1312 .gpio1
= 0x00e00000,
1313 .gpio2
= 0x003fffff,
1314 .gpio3
= 0x02000000,
1316 .type
= CX88_VMUX_COMPOSITE1
,
1318 .gpio0
= 0x003fffff,
1319 .gpio1
= 0x00e00000,
1320 .gpio2
= 0x003fffff,
1321 .gpio3
= 0x02000000,
1323 .type
= CX88_VMUX_SVIDEO
,
1325 .gpio0
= 0x003fffff,
1326 .gpio1
= 0x00e00000,
1327 .gpio2
= 0x003fffff,
1328 .gpio3
= 0x02000000,
1331 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1332 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1333 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1334 .radio_type
= UNSET
,
1335 .tuner_addr
= ADDR_UNSET
,
1336 .radio_addr
= ADDR_UNSET
,
1337 .tda9887_conf
= TDA9887_PRESENT
,
1338 .audio_chip
= AUDIO_CHIP_WM8775
,
1340 .type
= CX88_VMUX_TELEVISION
,
1345 .type
= CX88_VMUX_COMPOSITE1
,
1350 .type
= CX88_VMUX_SVIDEO
,
1355 /* fixme: Add radio support */
1356 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1358 [CX88_BOARD_ADSTECH_PTV_390
] = {
1359 .name
= "ADS Tech Instant Video PCI",
1360 .tuner_type
= TUNER_ABSENT
,
1361 .radio_type
= UNSET
,
1362 .tuner_addr
= ADDR_UNSET
,
1363 .radio_addr
= ADDR_UNSET
,
1365 .type
= CX88_VMUX_DEBUG
,
1369 .type
= CX88_VMUX_COMPOSITE1
,
1373 .type
= CX88_VMUX_SVIDEO
,
1380 /* ------------------------------------------------------------------ */
1381 /* PCI subsystem IDs */
1383 static const struct cx88_subid cx88_subids
[] = {
1385 .subvendor
= 0x0070,
1386 .subdevice
= 0x3400,
1387 .card
= CX88_BOARD_HAUPPAUGE
,
1389 .subvendor
= 0x0070,
1390 .subdevice
= 0x3401,
1391 .card
= CX88_BOARD_HAUPPAUGE
,
1393 .subvendor
= 0x14c7,
1394 .subdevice
= 0x0106,
1395 .card
= CX88_BOARD_GDI
,
1397 .subvendor
= 0x14c7,
1398 .subdevice
= 0x0107, /* with mpeg encoder */
1399 .card
= CX88_BOARD_GDI
,
1401 .subvendor
= PCI_VENDOR_ID_ATI
,
1402 .subdevice
= 0x00f8,
1403 .card
= CX88_BOARD_ATI_WONDER_PRO
,
1405 .subvendor
= 0x107d,
1406 .subdevice
= 0x6611,
1407 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1409 .subvendor
= 0x107d,
1410 .subdevice
= 0x6613, /* NTSC */
1411 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1413 .subvendor
= 0x107d,
1414 .subdevice
= 0x6620,
1415 .card
= CX88_BOARD_WINFAST_DV2000
,
1417 .subvendor
= 0x107d,
1418 .subdevice
= 0x663b,
1419 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1421 .subvendor
= 0x107d,
1422 .subdevice
= 0x663c,
1423 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1425 .subvendor
= 0x1461,
1426 .subdevice
= 0x000b,
1427 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
1429 .subvendor
= 0x1462,
1430 .subdevice
= 0x8606,
1431 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
1433 .subvendor
= 0x10fc,
1434 .subdevice
= 0xd003,
1435 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
1437 .subvendor
= 0x1043,
1438 .subdevice
= 0x4823, /* with mpeg encoder */
1439 .card
= CX88_BOARD_ASUS_PVR_416
,
1441 .subvendor
= 0x17de,
1442 .subdevice
= 0x08a6,
1443 .card
= CX88_BOARD_KWORLD_DVB_T
,
1445 .subvendor
= 0x18ac,
1446 .subdevice
= 0xd810,
1447 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1449 .subvendor
= 0x18ac,
1450 .subdevice
= 0xd820,
1451 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
1453 .subvendor
= 0x18ac,
1454 .subdevice
= 0xdb00,
1455 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
1457 .subvendor
= 0x0070,
1458 .subdevice
= 0x9002,
1459 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1461 .subvendor
= 0x14f1,
1462 .subdevice
= 0x0187,
1463 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
1465 .subvendor
= 0x1540,
1466 .subdevice
= 0x2580,
1467 .card
= CX88_BOARD_PROVIDEO_PV259
,
1469 .subvendor
= 0x18ac,
1470 .subdevice
= 0xdb10,
1471 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1473 .subvendor
= 0x1554,
1474 .subdevice
= 0x4811,
1475 .card
= CX88_BOARD_PIXELVIEW
,
1477 .subvendor
= 0x7063,
1478 .subdevice
= 0x3000, /* HD-3000 card */
1479 .card
= CX88_BOARD_PCHDTV_HD3000
,
1481 .subvendor
= 0x17de,
1482 .subdevice
= 0xa8a6,
1483 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
1485 .subvendor
= 0x0070,
1486 .subdevice
= 0x2801,
1487 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
1489 .subvendor
= 0x14f1,
1490 .subdevice
= 0x0342,
1491 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
1493 .subvendor
= 0x10fc,
1494 .subdevice
= 0xd035,
1495 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
1497 .subvendor
= 0x1421,
1498 .subdevice
= 0x0334,
1499 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
1501 .subvendor
= 0x153b,
1502 .subdevice
= 0x1166,
1503 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
1505 .subvendor
= 0x18ac,
1506 .subdevice
= 0xd500,
1507 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
1509 .subvendor
= 0x1461,
1510 .subdevice
= 0x8011,
1511 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
1513 .subvendor
= PCI_VENDOR_ID_ATI
,
1514 .subdevice
= 0xa101,
1515 .card
= CX88_BOARD_ATI_HDTVWONDER
,
1517 .subvendor
= 0x107d,
1518 .subdevice
= 0x665f,
1519 .card
= CX88_BOARD_WINFAST_DTV1000
,
1521 .subvendor
= 0x1461,
1522 .subdevice
= 0x000a,
1523 .card
= CX88_BOARD_AVERTV_303
,
1525 .subvendor
= 0x0070,
1526 .subdevice
= 0x9200,
1527 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
1529 .subvendor
= 0x0070,
1530 .subdevice
= 0x9201,
1531 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1533 .subvendor
= 0x0070,
1534 .subdevice
= 0x9202,
1535 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1537 .subvendor
= 0x17de,
1538 .subdevice
= 0x08b2,
1539 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1541 .subvendor
= 0x0070,
1542 .subdevice
= 0x9400,
1543 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1545 .subvendor
= 0x0070,
1546 .subdevice
= 0x9402,
1547 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1549 .subvendor
= 0x0070,
1550 .subdevice
= 0x9800,
1551 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1553 .subvendor
= 0x0070,
1554 .subdevice
= 0x9802,
1555 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1557 .subvendor
= 0x0070,
1558 .subdevice
= 0x9001,
1559 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1561 .subvendor
= 0x1822,
1562 .subdevice
= 0x0025,
1563 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1565 .subvendor
= 0x17de,
1566 .subdevice
= 0x08a1,
1567 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1569 .subvendor
= 0x18ac,
1570 .subdevice
= 0xdb50,
1571 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1573 .subvendor
= 0x18ac,
1574 .subdevice
= 0xdb54,
1575 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1576 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1578 .subvendor
= 0x18ac,
1579 .subdevice
= 0xdb11,
1580 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1581 /* Re-branded DViCO: UltraView DVB-T Plus */
1583 .subvendor
= 0x17de,
1584 .subdevice
= 0x0840,
1585 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1587 .subvendor
= 0x1421,
1588 .subdevice
= 0x0305,
1589 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1591 .subvendor
= 0x18ac,
1592 .subdevice
= 0xdb40,
1593 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1595 .subvendor
= 0x18ac,
1596 .subdevice
= 0xdb44,
1597 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1599 .subvendor
= 0x7063,
1600 .subdevice
= 0x5500,
1601 .card
= CX88_BOARD_PCHDTV_HD5500
,
1603 .subvendor
= 0x17de,
1604 .subdevice
= 0x0841,
1605 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
1607 .subvendor
= 0x1822,
1608 .subdevice
= 0x0019,
1609 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1611 .subvendor
= 0x1554,
1612 .subdevice
= 0x4813,
1613 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
1615 .subvendor
= 0x14f1,
1616 .subdevice
= 0x0842,
1617 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
1619 .subvendor
= 0x107d,
1620 .subdevice
= 0x665e,
1621 .card
= CX88_BOARD_WINFAST_DTV2000H
,
1623 .subvendor
= 0x18ac,
1624 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
1625 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1627 .subvendor
= 0x14f1,
1628 .subdevice
= 0x0084,
1629 .card
= CX88_BOARD_GENIATECH_DVBS
,
1631 .subvendor
= 0x0070,
1632 .subdevice
= 0x1404,
1633 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1635 .subvendor
= 0x1461,
1636 .subdevice
= 0xc111, /* AverMedia M150-D */
1637 /* This board is known to work with the ASUS PVR416 config */
1638 .card
= CX88_BOARD_ASUS_PVR_416
,
1640 .subvendor
= 0xc180,
1641 .subdevice
= 0xc980,
1642 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
1644 .subvendor
= 0x0070,
1645 .subdevice
= 0x9600,
1646 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1648 .subvendor
= 0x0070,
1649 .subdevice
= 0x9601,
1650 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1652 .subvendor
= 0x0070,
1653 .subdevice
= 0x9602,
1654 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1656 .subvendor
= 0x107d,
1657 .subdevice
= 0x6632,
1658 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1660 .subvendor
= 0x12ab,
1661 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
1662 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1664 .subvendor
= 0x0070,
1665 .subdevice
= 0x9000,
1666 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1668 .subvendor
= 0x0070,
1669 .subdevice
= 0x1400,
1670 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1672 .subvendor
= 0x0070,
1673 .subdevice
= 0x1401,
1674 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1676 .subvendor
= 0x0070,
1677 .subdevice
= 0x1402,
1678 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1680 .subvendor
= 0x1421,
1681 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
1682 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1684 .subvendor
= 0x1421,
1685 .subdevice
= 0x0390,
1686 .card
= CX88_BOARD_ADSTECH_PTV_390
,
1690 /* ----------------------------------------------------------------------- */
1691 /* some leadtek specific stuff */
1693 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1695 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1698 * Byte 0 is 1 on the NTSC board.
1701 if (eeprom_data
[4] != 0x7d ||
1702 eeprom_data
[5] != 0x10 ||
1703 eeprom_data
[7] != 0x66) {
1704 printk(KERN_WARNING
"%s: Leadtek eeprom invalid.\n",
1709 core
->board
.tuner_type
= (eeprom_data
[6] == 0x13) ?
1710 TUNER_PHILIPS_FM1236_MK3
: TUNER_PHILIPS_FM1216ME_MK3
;
1712 printk(KERN_INFO
"%s: Leadtek Winfast 2000XP Expert config: "
1713 "tuner=%d, eeprom[0]=0x%02x\n",
1714 core
->name
, core
->board
.tuner_type
, eeprom_data
[0]);
1717 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1721 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
1722 core
->board
.tuner_type
= tv
.tuner_type
;
1723 core
->tuner_formats
= tv
.tuner_formats
;
1724 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
1726 /* Make sure we support the board model */
1729 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1730 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1731 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1732 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1733 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1734 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
1735 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
1736 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1737 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
1738 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1739 case 34519: /* WinTV-PCI-FM */
1740 case 90002: /* Nova-T-PCI (9002) */
1741 case 92001: /* Nova-S-Plus (Video and IR) */
1742 case 92002: /* Nova-S-Plus (Video and IR) */
1743 case 90003: /* Nova-T-PCI (9002 No RF out) */
1744 case 90500: /* Nova-T-PCI (oem) */
1745 case 90501: /* Nova-T-PCI (oem/IR) */
1746 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1747 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1748 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1749 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1750 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1751 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1752 case 96569: /* WinTV-HVR1300 () */
1753 case 96659: /* WinTV-HVR1300 () */
1754 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1758 printk("%s: warning: unknown hauppauge model #%d\n",
1759 core
->name
, tv
.model
);
1763 printk(KERN_INFO
"%s: hauppauge eeprom: model=%d\n",
1764 core
->name
, tv
.model
);
1767 /* ----------------------------------------------------------------------- */
1768 /* some GDI (was: Modular Technology) specific stuff */
1775 [ 0x01 ] = { .id
= TUNER_ABSENT
,
1777 [ 0x02 ] = { .id
= TUNER_ABSENT
,
1779 [ 0x03 ] = { .id
= TUNER_ABSENT
,
1781 [ 0x04 ] = { .id
= TUNER_ABSENT
,
1783 [ 0x05 ] = { .id
= TUNER_ABSENT
,
1786 [ 0x10 ] = { .id
= TUNER_ABSENT
,
1788 .name
= "TEMIC_4049" },
1789 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
1790 .name
= "TEMIC_4136" },
1791 [ 0x12 ] = { .id
= TUNER_ABSENT
,
1792 .name
= "TEMIC_4146" },
1794 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
1796 .name
= "PHILIPS_FQ1216_MK3" },
1797 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
1798 .name
= "PHILIPS_FQ1236_MK3" },
1799 [ 0x22 ] = { .id
= TUNER_ABSENT
,
1800 .name
= "PHILIPS_FI1236_MK3" },
1801 [ 0x23 ] = { .id
= TUNER_ABSENT
,
1802 .name
= "PHILIPS_FI1216_MK3" },
1805 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1807 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
1808 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
1810 printk(KERN_INFO
"%s: GDI: tuner=%s\n", core
->name
,
1811 name
? name
: "unknown");
1814 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
1815 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
1819 /* ----------------------------------------------------------------------- */
1820 /* some DViCO specific stuff */
1822 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
1824 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
1826 static u8 init_bufs
[13][5] = {
1827 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1828 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1829 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1830 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1831 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1832 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1833 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1834 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1835 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1836 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1837 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1838 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1842 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
1843 msg
.buf
= init_bufs
[i
];
1844 msg
.len
= (i
!= 12 ? 5 : 2);
1845 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
1847 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i
, err
);
1853 /* ----------------------------------------------------------------------- */
1855 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
1859 if (0 == pci
->subsystem_vendor
&&
1860 0 == pci
->subsystem_device
) {
1861 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1862 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1863 "%s: workaround that. Redirect complaints to the vendor of\n"
1864 "%s: the TV card. Best regards,\n"
1866 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
1868 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1869 "%s: try to pick one of the existing card configs via\n"
1870 "%s: card=<n> insmod option. Updating to the latest\n"
1871 "%s: version might help as well.\n",
1872 core
->name
,core
->name
,core
->name
,core
->name
);
1874 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1876 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
1877 printk("%s: card=%d -> %s\n",
1878 core
->name
, i
, cx88_boards
[i
].name
);
1881 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
1883 switch (core
->boardnr
) {
1884 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1885 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1886 /* We leave here with the 702 on the bus */
1887 cx_write(MO_GP0_IO
, 0x0000e780);
1889 cx_clear(MO_GP0_IO
, 0x00000080);
1891 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
1897 static void cx88_card_setup(struct cx88_core
*core
)
1899 static u8 eeprom
[256];
1901 if (0 == core
->i2c_rc
) {
1902 core
->i2c_client
.addr
= 0xa0 >> 1;
1903 tveeprom_read(&core
->i2c_client
,eeprom
,sizeof(eeprom
));
1906 switch (core
->boardnr
) {
1907 case CX88_BOARD_HAUPPAUGE
:
1908 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
1909 if (0 == core
->i2c_rc
)
1910 hauppauge_eeprom(core
,eeprom
+8);
1912 case CX88_BOARD_GDI
:
1913 if (0 == core
->i2c_rc
)
1914 gdi_eeprom(core
,eeprom
);
1916 case CX88_BOARD_WINFAST2000XP_EXPERT
:
1917 if (0 == core
->i2c_rc
)
1918 leadtek_eeprom(core
,eeprom
);
1920 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
1921 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
1922 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
1923 case CX88_BOARD_HAUPPAUGE_HVR1100
:
1924 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
1925 case CX88_BOARD_HAUPPAUGE_HVR3000
:
1926 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1927 if (0 == core
->i2c_rc
)
1928 hauppauge_eeprom(core
,eeprom
);
1930 case CX88_BOARD_KWORLD_DVBS_100
:
1931 cx_write(MO_GP0_IO
, 0x000007f8);
1932 cx_write(MO_GP1_IO
, 0x00000001);
1934 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
1935 /* GPIO0:6 is hooked to FX2 reset pin */
1936 cx_set(MO_GP0_IO
, 0x00004040);
1937 cx_clear(MO_GP0_IO
, 0x00000040);
1939 cx_set(MO_GP0_IO
, 0x00004040);
1941 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
1942 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
1943 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
1944 /* GPIO0:0 is hooked to mt352 reset pin */
1945 cx_set(MO_GP0_IO
, 0x00000101);
1946 cx_clear(MO_GP0_IO
, 0x00000001);
1948 cx_set(MO_GP0_IO
, 0x00000101);
1949 if (0 == core
->i2c_rc
&&
1950 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
1951 dvico_fusionhdtv_hybrid_init(core
);
1953 case CX88_BOARD_KWORLD_DVB_T
:
1954 case CX88_BOARD_DNTV_LIVE_DVB_T
:
1955 cx_set(MO_GP0_IO
, 0x00000707);
1956 cx_set(MO_GP2_IO
, 0x00000101);
1957 cx_clear(MO_GP2_IO
, 0x00000001);
1959 cx_clear(MO_GP0_IO
, 0x00000007);
1960 cx_set(MO_GP2_IO
, 0x00000101);
1962 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
1963 cx_write(MO_GP0_IO
, 0x00080808);
1965 case CX88_BOARD_ATI_HDTVWONDER
:
1966 if (0 == core
->i2c_rc
) {
1969 static const u8 buffer
[][2] = {
1976 core
->i2c_client
.addr
= 0x0a;
1978 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
1979 if (2 != i2c_master_send(&core
->i2c_client
,
1982 "%s: Unable to enable "
1987 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
1989 struct v4l2_priv_tun_config tea5767_cfg
;
1990 struct tea5767_ctrl ctl
;
1992 memset(&ctl
, 0, sizeof(ctl
));
1997 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
1999 tea5767_cfg
.tuner
= TUNER_TEA5767
;
2000 tea5767_cfg
.priv
= &ctl
;
2002 cx88_call_i2c_clients(core
, TUNER_SET_CONFIG
, &tea5767_cfg
);
2007 /* ------------------------------------------------------------------ */
2009 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
2011 unsigned int lat
= UNSET
;
2015 /* check pci quirks */
2016 if (pci_pci_problems
& PCIPCI_TRITON
) {
2017 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
2019 ctrl
|= CX88X_EN_TBFX
;
2021 if (pci_pci_problems
& PCIPCI_NATOMA
) {
2022 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
2024 ctrl
|= CX88X_EN_TBFX
;
2026 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
2027 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
2029 ctrl
|= CX88X_EN_TBFX
;
2031 if (pci_pci_problems
& PCIPCI_VSFX
) {
2032 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
2034 ctrl
|= CX88X_EN_VSFX
;
2036 #ifdef PCIPCI_ALIMAGIK
2037 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
2038 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
2044 /* check insmod options */
2045 if (UNSET
!= latency
)
2050 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
2052 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
2055 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
2057 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
2062 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
2064 if (request_mem_region(pci_resource_start(pci
,0),
2065 pci_resource_len(pci
,0),
2069 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
2070 core
->name
, PCI_FUNC(pci
->devfn
),
2071 (unsigned long long)pci_resource_start(pci
, 0),
2072 pci
->subsystem_vendor
, pci
->subsystem_device
);
2076 /* Allocate and initialize the cx88 core struct. One should hold the
2077 * devlist mutex before calling this. */
2078 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
2080 struct cx88_core
*core
;
2083 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
2085 atomic_inc(&core
->refcount
);
2086 core
->pci_bus
= pci
->bus
->number
;
2087 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
2088 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
2089 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
2090 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
2091 mutex_init(&core
->lock
);
2094 sprintf(core
->name
, "cx88[%d]", core
->nr
);
2095 if (0 != cx88_get_resources(core
, pci
)) {
2101 cx88_pci_quirks(core
->name
, pci
);
2102 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
2103 pci_resource_len(pci
, 0));
2104 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
2107 core
->boardnr
= UNSET
;
2108 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
2109 core
->boardnr
= card
[core
->nr
];
2110 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
2111 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
2112 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
2113 core
->boardnr
= cx88_subids
[i
].card
;
2114 if (UNSET
== core
->boardnr
) {
2115 core
->boardnr
= CX88_BOARD_UNKNOWN
;
2116 cx88_card_list(core
, pci
);
2119 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
2121 printk(KERN_INFO
"%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
2122 core
->name
,pci
->subsystem_vendor
,
2123 pci
->subsystem_device
, core
->board
.name
,
2124 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
2125 "insmod option" : "autodetected");
2127 if (tuner
[core
->nr
] != UNSET
)
2128 core
->board
.tuner_type
= tuner
[core
->nr
];
2129 if (radio
[core
->nr
] != UNSET
)
2130 core
->board
.radio_type
= radio
[core
->nr
];
2132 printk(KERN_INFO
"%s: TV tuner type %d, Radio tuner type %d\n",
2133 core
->name
, core
->board
.tuner_type
, core
->board
.radio_type
);
2137 cx88_card_setup_pre_i2c(core
);
2138 cx88_i2c_init(core
, pci
);
2139 cx88_call_i2c_clients (core
, TUNER_SET_STANDBY
, NULL
);
2140 cx88_card_setup(core
);
2141 cx88_ir_init(core
, pci
);
2146 /* ------------------------------------------------------------------ */
2152 * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off