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>
30 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
31 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
32 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
34 module_param_array(tuner
, int, NULL
, 0444);
35 module_param_array(radio
, int, NULL
, 0444);
36 module_param_array(card
, int, NULL
, 0444);
38 MODULE_PARM_DESC(tuner
,"tuner type");
39 MODULE_PARM_DESC(radio
,"radio tuner type");
40 MODULE_PARM_DESC(card
,"card type");
42 static unsigned int latency
= UNSET
;
43 module_param(latency
,int,0444);
44 MODULE_PARM_DESC(latency
,"pci latency timer");
46 /* ------------------------------------------------------------------ */
47 /* board config info */
49 static const struct cx88_board cx88_boards
[] = {
50 [CX88_BOARD_UNKNOWN
] = {
51 .name
= "UNKNOWN/GENERIC",
54 .tuner_addr
= ADDR_UNSET
,
55 .radio_addr
= ADDR_UNSET
,
57 .type
= CX88_VMUX_COMPOSITE1
,
60 .type
= CX88_VMUX_COMPOSITE2
,
63 .type
= CX88_VMUX_COMPOSITE3
,
66 .type
= CX88_VMUX_COMPOSITE4
,
70 [CX88_BOARD_HAUPPAUGE
] = {
71 .name
= "Hauppauge WinTV 34xxx models",
74 .tuner_addr
= ADDR_UNSET
,
75 .radio_addr
= ADDR_UNSET
,
76 .tda9887_conf
= TDA9887_PRESENT
,
78 .type
= CX88_VMUX_TELEVISION
,
80 .gpio0
= 0xff00, // internal decoder
82 .type
= CX88_VMUX_DEBUG
,
84 .gpio0
= 0xff01, // mono from tuner chip
86 .type
= CX88_VMUX_COMPOSITE1
,
90 .type
= CX88_VMUX_SVIDEO
,
100 .name
= "GDI Black Gold",
103 .tuner_addr
= ADDR_UNSET
,
104 .radio_addr
= ADDR_UNSET
,
106 .type
= CX88_VMUX_TELEVISION
,
109 .type
= CX88_VMUX_SVIDEO
,
113 [CX88_BOARD_PIXELVIEW
] = {
115 .tuner_type
= TUNER_PHILIPS_PAL
,
117 .tuner_addr
= ADDR_UNSET
,
118 .radio_addr
= ADDR_UNSET
,
120 .type
= CX88_VMUX_TELEVISION
,
122 .gpio0
= 0xff00, // internal decoder
124 .type
= CX88_VMUX_COMPOSITE1
,
127 .type
= CX88_VMUX_SVIDEO
,
135 [CX88_BOARD_ATI_WONDER_PRO
] = {
136 .name
= "ATI TV Wonder Pro",
137 .tuner_type
= TUNER_PHILIPS_4IN1
,
139 .tuner_addr
= ADDR_UNSET
,
140 .radio_addr
= ADDR_UNSET
,
141 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
143 .type
= CX88_VMUX_TELEVISION
,
147 .type
= CX88_VMUX_COMPOSITE1
,
151 .type
= CX88_VMUX_SVIDEO
,
156 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
157 .name
= "Leadtek Winfast 2000XP Expert",
158 .tuner_type
= TUNER_PHILIPS_4IN1
,
160 .tuner_addr
= ADDR_UNSET
,
161 .radio_addr
= ADDR_UNSET
,
162 .tda9887_conf
= TDA9887_PRESENT
,
164 .type
= CX88_VMUX_TELEVISION
,
171 .type
= CX88_VMUX_COMPOSITE1
,
178 .type
= CX88_VMUX_SVIDEO
,
193 [CX88_BOARD_AVERTV_STUDIO_303
] = {
194 .name
= "AverTV Studio 303 (M126)",
195 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
197 .tuner_addr
= ADDR_UNSET
,
198 .radio_addr
= ADDR_UNSET
,
199 .tda9887_conf
= TDA9887_PRESENT
,
201 .type
= CX88_VMUX_TELEVISION
,
205 .type
= CX88_VMUX_COMPOSITE1
,
209 .type
= CX88_VMUX_SVIDEO
,
218 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
219 // added gpio values thanks to Michal
220 // values for PAL from DScaler
221 .name
= "MSI TV-@nywhere Master",
222 .tuner_type
= TUNER_MT2032
,
224 .tuner_addr
= ADDR_UNSET
,
225 .radio_addr
= ADDR_UNSET
,
226 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
228 .type
= CX88_VMUX_TELEVISION
,
234 .type
= CX88_VMUX_COMPOSITE1
,
240 .type
= CX88_VMUX_SVIDEO
,
250 [CX88_BOARD_WINFAST_DV2000
] = {
251 .name
= "Leadtek Winfast DV2000",
252 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
254 .tuner_addr
= ADDR_UNSET
,
255 .radio_addr
= ADDR_UNSET
,
256 .tda9887_conf
= TDA9887_PRESENT
,
258 .type
= CX88_VMUX_TELEVISION
,
266 .type
= CX88_VMUX_COMPOSITE1
,
273 .type
= CX88_VMUX_SVIDEO
,
288 [CX88_BOARD_LEADTEK_PVR2000
] = {
289 // gpio values for PAL version from regspy by DScaler
290 .name
= "Leadtek PVR 2000",
291 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
293 .tuner_addr
= ADDR_UNSET
,
294 .radio_addr
= ADDR_UNSET
,
295 .tda9887_conf
= TDA9887_PRESENT
,
297 .type
= CX88_VMUX_TELEVISION
,
302 .type
= CX88_VMUX_COMPOSITE1
,
307 .type
= CX88_VMUX_SVIDEO
,
317 .mpeg
= CX88_MPEG_BLACKBIRD
,
319 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
320 .name
= "IODATA GV-VCP3/PCI",
321 .tuner_type
= TUNER_ABSENT
,
323 .tuner_addr
= ADDR_UNSET
,
324 .radio_addr
= ADDR_UNSET
,
326 .type
= CX88_VMUX_COMPOSITE1
,
329 .type
= CX88_VMUX_COMPOSITE2
,
332 .type
= CX88_VMUX_SVIDEO
,
336 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
337 .name
= "Prolink PlayTV PVR",
338 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
340 .tuner_addr
= ADDR_UNSET
,
341 .radio_addr
= ADDR_UNSET
,
342 .tda9887_conf
= TDA9887_PRESENT
,
344 .type
= CX88_VMUX_TELEVISION
,
348 .type
= CX88_VMUX_COMPOSITE1
,
352 .type
= CX88_VMUX_SVIDEO
,
361 [CX88_BOARD_ASUS_PVR_416
] = {
362 .name
= "ASUS PVR-416",
363 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
365 .tuner_addr
= ADDR_UNSET
,
366 .radio_addr
= ADDR_UNSET
,
367 .tda9887_conf
= TDA9887_PRESENT
,
369 .type
= CX88_VMUX_TELEVISION
,
373 .type
= CX88_VMUX_SVIDEO
,
375 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
382 .mpeg
= CX88_MPEG_BLACKBIRD
,
384 [CX88_BOARD_MSI_TVANYWHERE
] = {
385 .name
= "MSI TV-@nywhere",
386 .tuner_type
= TUNER_MT2032
,
388 .tuner_addr
= ADDR_UNSET
,
389 .radio_addr
= ADDR_UNSET
,
390 .tda9887_conf
= TDA9887_PRESENT
,
392 .type
= CX88_VMUX_TELEVISION
,
397 .type
= CX88_VMUX_COMPOSITE1
,
402 .type
= CX88_VMUX_SVIDEO
,
408 [CX88_BOARD_KWORLD_DVB_T
] = {
409 .name
= "KWorld/VStream XPert DVB-T",
410 .tuner_type
= TUNER_ABSENT
,
412 .tuner_addr
= ADDR_UNSET
,
413 .radio_addr
= ADDR_UNSET
,
415 .type
= CX88_VMUX_COMPOSITE1
,
420 .type
= CX88_VMUX_SVIDEO
,
425 .mpeg
= CX88_MPEG_DVB
,
427 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
428 .name
= "DViCO FusionHDTV DVB-T1",
429 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
431 .tuner_addr
= ADDR_UNSET
,
432 .radio_addr
= ADDR_UNSET
,
434 .type
= CX88_VMUX_COMPOSITE1
,
438 .type
= CX88_VMUX_SVIDEO
,
442 .mpeg
= CX88_MPEG_DVB
,
444 [CX88_BOARD_KWORLD_LTV883
] = {
445 .name
= "KWorld LTV883RF",
446 .tuner_type
= TUNER_TNF_8831BGFF
,
448 .tuner_addr
= ADDR_UNSET
,
449 .radio_addr
= ADDR_UNSET
,
451 .type
= CX88_VMUX_TELEVISION
,
455 .type
= CX88_VMUX_DEBUG
,
457 .gpio0
= 0x07f9, // mono from tuner chip
459 .type
= CX88_VMUX_COMPOSITE1
,
463 .type
= CX88_VMUX_SVIDEO
,
472 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
473 .name
= "DViCO FusionHDTV 3 Gold-Q",
474 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
476 .tuner_addr
= ADDR_UNSET
,
477 .radio_addr
= ADDR_UNSET
,
479 GPIO[0] resets DT3302 DTV receiver
482 GPIO[1] mutes analog audio output connector
483 0 - enable selected source
485 GPIO[2] selects source for analog audio output connector
486 0 - analog audio input connector on tab
487 1 - analog DAC output from CX23881 chip
488 GPIO[3] selects RF input connector on tuner module
489 0 - RF connector labeled CABLE
490 1 - RF connector labeled ANT
491 GPIO[4] selects high RF for QAM256 mode
496 .type
= CX88_VMUX_TELEVISION
,
500 .type
= CX88_VMUX_CABLE
,
504 .type
= CX88_VMUX_COMPOSITE1
,
508 .type
= CX88_VMUX_SVIDEO
,
512 .mpeg
= CX88_MPEG_DVB
,
514 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
515 .name
= "Hauppauge Nova-T DVB-T",
516 .tuner_type
= TUNER_ABSENT
,
518 .tuner_addr
= ADDR_UNSET
,
519 .radio_addr
= ADDR_UNSET
,
521 .type
= CX88_VMUX_DVB
,
524 .mpeg
= CX88_MPEG_DVB
,
526 [CX88_BOARD_CONEXANT_DVB_T1
] = {
527 .name
= "Conexant DVB-T reference design",
528 .tuner_type
= TUNER_ABSENT
,
530 .tuner_addr
= ADDR_UNSET
,
531 .radio_addr
= ADDR_UNSET
,
533 .type
= CX88_VMUX_DVB
,
536 .mpeg
= CX88_MPEG_DVB
,
538 [CX88_BOARD_PROVIDEO_PV259
] = {
539 .name
= "Provideo PV259",
540 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
542 .tuner_addr
= ADDR_UNSET
,
543 .radio_addr
= ADDR_UNSET
,
545 .type
= CX88_VMUX_TELEVISION
,
549 .mpeg
= CX88_MPEG_BLACKBIRD
,
551 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
552 .name
= "DViCO FusionHDTV DVB-T Plus",
553 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
555 .tuner_addr
= ADDR_UNSET
,
556 .radio_addr
= ADDR_UNSET
,
558 .type
= CX88_VMUX_COMPOSITE1
,
562 .type
= CX88_VMUX_SVIDEO
,
566 .mpeg
= CX88_MPEG_DVB
,
568 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
569 .name
= "digitalnow DNTV Live! DVB-T",
570 .tuner_type
= TUNER_ABSENT
,
572 .tuner_addr
= ADDR_UNSET
,
573 .radio_addr
= ADDR_UNSET
,
575 .type
= CX88_VMUX_COMPOSITE1
,
580 .type
= CX88_VMUX_SVIDEO
,
585 .mpeg
= CX88_MPEG_DVB
,
587 [CX88_BOARD_PCHDTV_HD3000
] = {
588 .name
= "pcHDTV HD3000 HDTV",
589 .tuner_type
= TUNER_THOMSON_DTT761X
,
591 .tuner_addr
= ADDR_UNSET
,
592 .radio_addr
= ADDR_UNSET
,
593 .tda9887_conf
= TDA9887_PRESENT
,
594 /* GPIO[2] = audio source for analog audio out connector
595 * 0 = analog audio input connector
596 * 1 = CX88 audio DACs
598 * GPIO[7] = input to CX88's audio/chroma ADC
600 * 1 = Sound 4.5 MHz IF
602 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
604 * GPIO[16] = Remote control input
607 .type
= CX88_VMUX_TELEVISION
,
611 .type
= CX88_VMUX_COMPOSITE1
,
615 .type
= CX88_VMUX_SVIDEO
,
623 .mpeg
= CX88_MPEG_DVB
,
625 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
626 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
627 // GPIO values obtained from regspy, courtesy Sean Covel
628 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
631 .tuner_addr
= ADDR_UNSET
,
632 .radio_addr
= ADDR_UNSET
,
634 .type
= CX88_VMUX_TELEVISION
,
639 .type
= CX88_VMUX_DEBUG
,
643 .type
= CX88_VMUX_COMPOSITE1
,
647 .type
= CX88_VMUX_SVIDEO
,
657 .mpeg
= CX88_MPEG_BLACKBIRD
,
659 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
660 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
661 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
663 .tuner_addr
= ADDR_UNSET
,
664 .radio_addr
= ADDR_UNSET
,
665 .tda9887_conf
= TDA9887_PRESENT
,
667 .type
= CX88_VMUX_TELEVISION
,
672 .type
= CX88_VMUX_COMPOSITE1
,
677 .type
= CX88_VMUX_SVIDEO
,
687 .mpeg
= CX88_MPEG_BLACKBIRD
,
689 [CX88_BOARD_IODATA_GVBCTV7E
] = {
690 .name
= "IODATA GV/BCTV7E",
691 .tuner_type
= TUNER_PHILIPS_FQ1286
,
693 .tuner_addr
= ADDR_UNSET
,
694 .radio_addr
= ADDR_UNSET
,
695 .tda9887_conf
= TDA9887_PRESENT
,
697 .type
= CX88_VMUX_TELEVISION
,
701 .type
= CX88_VMUX_COMPOSITE1
,
705 .type
= CX88_VMUX_SVIDEO
,
710 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
711 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
712 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
713 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
715 .tuner_addr
= ADDR_UNSET
,
716 .radio_addr
= ADDR_UNSET
,
718 .type
= CX88_VMUX_TELEVISION
,
720 .gpio0
= 0xbf61, /* internal decoder */
722 .type
= CX88_VMUX_COMPOSITE1
,
726 .type
= CX88_VMUX_SVIDEO
,
735 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
736 .name
= "DViCO FusionHDTV 3 Gold-T",
737 .tuner_type
= TUNER_THOMSON_DTT761X
,
739 .tuner_addr
= ADDR_UNSET
,
740 .radio_addr
= ADDR_UNSET
,
741 .tda9887_conf
= TDA9887_PRESENT
,
743 .type
= CX88_VMUX_TELEVISION
,
747 .type
= CX88_VMUX_COMPOSITE1
,
751 .type
= CX88_VMUX_SVIDEO
,
755 .mpeg
= CX88_MPEG_DVB
,
757 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
758 .name
= "ADS Tech Instant TV DVB-T PCI",
759 .tuner_type
= TUNER_ABSENT
,
761 .tuner_addr
= ADDR_UNSET
,
762 .radio_addr
= ADDR_UNSET
,
764 .type
= CX88_VMUX_COMPOSITE1
,
769 .type
= CX88_VMUX_SVIDEO
,
774 .mpeg
= CX88_MPEG_DVB
,
776 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
777 .name
= "TerraTec Cinergy 1400 DVB-T",
778 .tuner_type
= TUNER_ABSENT
,
780 .type
= CX88_VMUX_DVB
,
783 .type
= CX88_VMUX_COMPOSITE1
,
786 .type
= CX88_VMUX_SVIDEO
,
789 .mpeg
= CX88_MPEG_DVB
,
791 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
792 .name
= "DViCO FusionHDTV 5 Gold",
793 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
795 .tuner_addr
= ADDR_UNSET
,
796 .radio_addr
= ADDR_UNSET
,
797 .tda9887_conf
= TDA9887_PRESENT
,
799 .type
= CX88_VMUX_TELEVISION
,
803 .type
= CX88_VMUX_COMPOSITE1
,
807 .type
= CX88_VMUX_SVIDEO
,
811 .mpeg
= CX88_MPEG_DVB
,
813 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
814 .name
= "AverMedia UltraTV Media Center PCI 550",
815 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
817 .tuner_addr
= ADDR_UNSET
,
818 .radio_addr
= ADDR_UNSET
,
819 .tda9887_conf
= TDA9887_PRESENT
,
821 .type
= CX88_VMUX_COMPOSITE1
,
826 .type
= CX88_VMUX_SVIDEO
,
831 .type
= CX88_VMUX_TELEVISION
,
842 .mpeg
= CX88_MPEG_BLACKBIRD
,
844 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
845 /* Alexander Wold <awold@bigfoot.com> */
846 .name
= "Kworld V-Stream Xpert DVD",
849 .type
= CX88_VMUX_COMPOSITE1
,
856 .type
= CX88_VMUX_SVIDEO
,
864 [CX88_BOARD_ATI_HDTVWONDER
] = {
865 .name
= "ATI HDTV Wonder",
866 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
868 .tuner_addr
= ADDR_UNSET
,
869 .radio_addr
= ADDR_UNSET
,
871 .type
= CX88_VMUX_TELEVISION
,
878 .type
= CX88_VMUX_COMPOSITE1
,
885 .type
= CX88_VMUX_SVIDEO
,
892 .mpeg
= CX88_MPEG_DVB
,
894 [CX88_BOARD_WINFAST_DTV1000
] = {
895 .name
= "WinFast DTV1000-T",
896 .tuner_type
= TUNER_ABSENT
,
898 .tuner_addr
= ADDR_UNSET
,
899 .radio_addr
= ADDR_UNSET
,
901 .type
= CX88_VMUX_DVB
,
904 .type
= CX88_VMUX_COMPOSITE1
,
907 .type
= CX88_VMUX_SVIDEO
,
910 .mpeg
= CX88_MPEG_DVB
,
912 [CX88_BOARD_AVERTV_303
] = {
913 .name
= "AVerTV 303 (M126)",
914 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
916 .tuner_addr
= ADDR_UNSET
,
917 .radio_addr
= ADDR_UNSET
,
918 .tda9887_conf
= TDA9887_PRESENT
,
920 .type
= CX88_VMUX_TELEVISION
,
927 .type
= CX88_VMUX_COMPOSITE1
,
934 .type
= CX88_VMUX_SVIDEO
,
942 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
943 .name
= "Hauppauge Nova-S-Plus DVB-S",
944 .tuner_type
= TUNER_ABSENT
,
946 .tuner_addr
= ADDR_UNSET
,
947 .radio_addr
= ADDR_UNSET
,
949 .type
= CX88_VMUX_DVB
,
952 .type
= CX88_VMUX_COMPOSITE1
,
955 .type
= CX88_VMUX_SVIDEO
,
958 .mpeg
= CX88_MPEG_DVB
,
960 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
961 .name
= "Hauppauge Nova-SE2 DVB-S",
962 .tuner_type
= TUNER_ABSENT
,
964 .tuner_addr
= ADDR_UNSET
,
965 .radio_addr
= ADDR_UNSET
,
967 .type
= CX88_VMUX_DVB
,
970 .mpeg
= CX88_MPEG_DVB
,
972 [CX88_BOARD_KWORLD_DVBS_100
] = {
973 .name
= "KWorld DVB-S 100",
974 .tuner_type
= TUNER_ABSENT
,
976 .tuner_addr
= ADDR_UNSET
,
977 .radio_addr
= ADDR_UNSET
,
979 .type
= CX88_VMUX_DVB
,
982 .type
= CX88_VMUX_COMPOSITE1
,
985 .type
= CX88_VMUX_SVIDEO
,
988 .mpeg
= CX88_MPEG_DVB
,
990 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
991 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
992 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
994 .tuner_addr
= ADDR_UNSET
,
995 .radio_addr
= ADDR_UNSET
,
996 .tda9887_conf
= TDA9887_PRESENT
,
998 .type
= CX88_VMUX_TELEVISION
,
1001 .type
= CX88_VMUX_COMPOSITE1
,
1004 .type
= CX88_VMUX_SVIDEO
,
1007 /* fixme: Add radio support */
1008 .mpeg
= CX88_MPEG_DVB
,
1010 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1011 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1012 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1013 .radio_type
= UNSET
,
1014 .tuner_addr
= ADDR_UNSET
,
1015 .radio_addr
= ADDR_UNSET
,
1016 .tda9887_conf
= TDA9887_PRESENT
,
1018 .type
= CX88_VMUX_TELEVISION
,
1021 .type
= CX88_VMUX_COMPOSITE1
,
1024 /* fixme: Add radio support */
1025 .mpeg
= CX88_MPEG_DVB
,
1027 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1028 .name
= "digitalnow DNTV Live! DVB-T Pro",
1029 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1030 .radio_type
= UNSET
,
1031 .tuner_addr
= ADDR_UNSET
,
1032 .radio_addr
= ADDR_UNSET
,
1033 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1034 TDA9887_PORT2_ACTIVE
,
1036 .type
= CX88_VMUX_TELEVISION
,
1040 .type
= CX88_VMUX_COMPOSITE1
,
1044 .type
= CX88_VMUX_SVIDEO
,
1052 .mpeg
= CX88_MPEG_DVB
,
1054 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1055 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1056 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1057 /* Manenti Marco <marco_manenti@colman.it> */
1058 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1059 .tuner_type
= TUNER_ABSENT
,
1060 .radio_type
= UNSET
,
1061 .tuner_addr
= ADDR_UNSET
,
1062 .radio_addr
= ADDR_UNSET
,
1064 .type
= CX88_VMUX_COMPOSITE1
,
1069 .type
= CX88_VMUX_SVIDEO
,
1074 .mpeg
= CX88_MPEG_DVB
,
1076 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1077 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1078 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1079 .radio_type
= UNSET
,
1080 .tuner_addr
= ADDR_UNSET
,
1081 .radio_addr
= ADDR_UNSET
,
1083 .type
= CX88_VMUX_COMPOSITE1
,
1085 .gpio0
= 0x000067df,
1087 .type
= CX88_VMUX_SVIDEO
,
1089 .gpio0
= 0x000067df,
1091 .mpeg
= CX88_MPEG_DVB
,
1093 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1094 .name
= "KWorld HardwareMpegTV XPert",
1095 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1096 .radio_type
= UNSET
,
1097 .tuner_addr
= ADDR_UNSET
,
1098 .radio_addr
= ADDR_UNSET
,
1100 .type
= CX88_VMUX_TELEVISION
,
1105 .type
= CX88_VMUX_COMPOSITE1
,
1110 .type
= CX88_VMUX_SVIDEO
,
1120 .mpeg
= CX88_MPEG_BLACKBIRD
,
1122 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1123 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1124 .tuner_type
= TUNER_THOMSON_FE6600
,
1125 .radio_type
= UNSET
,
1126 .tuner_addr
= ADDR_UNSET
,
1127 .radio_addr
= ADDR_UNSET
,
1129 .type
= CX88_VMUX_TELEVISION
,
1131 .gpio0
= 0x0000a75f,
1133 .type
= CX88_VMUX_COMPOSITE1
,
1135 .gpio0
= 0x0000a75b,
1137 .type
= CX88_VMUX_SVIDEO
,
1139 .gpio0
= 0x0000a75b,
1141 .mpeg
= CX88_MPEG_DVB
,
1143 [CX88_BOARD_PCHDTV_HD5500
] = {
1144 .name
= "pcHDTV HD5500 HDTV",
1145 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1146 .radio_type
= UNSET
,
1147 .tuner_addr
= ADDR_UNSET
,
1148 .radio_addr
= ADDR_UNSET
,
1149 .tda9887_conf
= TDA9887_PRESENT
,
1151 .type
= CX88_VMUX_TELEVISION
,
1155 .type
= CX88_VMUX_COMPOSITE1
,
1159 .type
= CX88_VMUX_SVIDEO
,
1163 .mpeg
= CX88_MPEG_DVB
,
1165 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1166 /* FIXME: tested TV input only, disabled composite,
1167 svideo and radio until they can be tested also. */
1168 .name
= "Kworld MCE 200 Deluxe",
1169 .tuner_type
= TUNER_TENA_9533_DI
,
1170 .radio_type
= UNSET
,
1171 .tda9887_conf
= TDA9887_PRESENT
,
1172 .tuner_addr
= ADDR_UNSET
,
1173 .radio_addr
= ADDR_UNSET
,
1175 .type
= CX88_VMUX_TELEVISION
,
1179 .mpeg
= CX88_MPEG_BLACKBIRD
,
1181 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1182 /* FIXME: SVideo, Composite and FM inputs are untested */
1183 .name
= "PixelView PlayTV P7000",
1184 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1185 .radio_type
= UNSET
,
1186 .tuner_addr
= ADDR_UNSET
,
1187 .radio_addr
= ADDR_UNSET
,
1188 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1189 TDA9887_PORT2_ACTIVE
,
1191 .type
= CX88_VMUX_TELEVISION
,
1195 .mpeg
= CX88_MPEG_BLACKBIRD
,
1197 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1198 .name
= "NPG Tech Real TV FM Top 10",
1199 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1200 .radio_type
= UNSET
,
1201 .tuner_addr
= ADDR_UNSET
,
1202 .radio_addr
= ADDR_UNSET
,
1204 .type
= CX88_VMUX_TELEVISION
,
1208 .type
= CX88_VMUX_COMPOSITE1
,
1212 .type
= CX88_VMUX_SVIDEO
,
1221 [CX88_BOARD_WINFAST_DTV2000H
] = {
1222 /* video inputs and radio still in testing */
1223 .name
= "WinFast DTV2000 H",
1224 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1225 .radio_type
= UNSET
,
1226 .tuner_addr
= ADDR_UNSET
,
1227 .radio_addr
= ADDR_UNSET
,
1228 .tda9887_conf
= TDA9887_PRESENT
,
1230 .type
= CX88_VMUX_TELEVISION
,
1232 .gpio0
= 0x00017304,
1233 .gpio1
= 0x00008203,
1234 .gpio2
= 0x00017304,
1235 .gpio3
= 0x02000000,
1237 .mpeg
= CX88_MPEG_DVB
,
1239 [CX88_BOARD_GENIATECH_DVBS
] = {
1240 .name
= "Geniatech DVB-S",
1241 .tuner_type
= TUNER_ABSENT
,
1242 .radio_type
= UNSET
,
1243 .tuner_addr
= ADDR_UNSET
,
1244 .radio_addr
= ADDR_UNSET
,
1246 .type
= CX88_VMUX_DVB
,
1249 .type
= CX88_VMUX_COMPOSITE1
,
1252 .mpeg
= CX88_MPEG_DVB
,
1254 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1255 /* FIXME: Add dvb & radio support */
1256 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1257 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1258 .radio_type
= UNSET
,
1259 .tuner_addr
= ADDR_UNSET
,
1260 .radio_addr
= ADDR_UNSET
,
1261 .tda9887_conf
= TDA9887_PRESENT
,
1263 .type
= CX88_VMUX_TELEVISION
,
1267 .type
= CX88_VMUX_COMPOSITE1
,
1271 .type
= CX88_VMUX_SVIDEO
,
1275 .mpeg
= CX88_MPEG_DVB
,
1277 [CX88_BOARD_NORWOOD_MICRO
] = {
1278 .name
= "Norwood Micro TV Tuner",
1279 .tuner_type
= TUNER_TNF_5335MF
,
1280 .radio_type
= UNSET
,
1281 .tuner_addr
= ADDR_UNSET
,
1282 .radio_addr
= ADDR_UNSET
,
1284 .type
= CX88_VMUX_TELEVISION
,
1288 .type
= CX88_VMUX_COMPOSITE1
,
1292 .type
= CX88_VMUX_SVIDEO
,
1297 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1298 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1299 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1300 .radio_type
= UNSET
,
1301 .tuner_addr
= ADDR_UNSET
,
1302 .radio_addr
= ADDR_UNSET
,
1304 .type
= CX88_VMUX_TELEVISION
,
1306 .gpio0
= 0x003fffff,
1307 .gpio1
= 0x00e00000,
1308 .gpio2
= 0x003fffff,
1309 .gpio3
= 0x02000000,
1311 .type
= CX88_VMUX_COMPOSITE1
,
1313 .gpio0
= 0x003fffff,
1314 .gpio1
= 0x00e00000,
1315 .gpio2
= 0x003fffff,
1316 .gpio3
= 0x02000000,
1318 .type
= CX88_VMUX_SVIDEO
,
1320 .gpio0
= 0x003fffff,
1321 .gpio1
= 0x00e00000,
1322 .gpio2
= 0x003fffff,
1323 .gpio3
= 0x02000000,
1326 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1327 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1328 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1329 .radio_type
= UNSET
,
1330 .tuner_addr
= ADDR_UNSET
,
1331 .radio_addr
= ADDR_UNSET
,
1332 .tda9887_conf
= TDA9887_PRESENT
,
1333 .audio_chip
= AUDIO_CHIP_WM8775
,
1335 .type
= CX88_VMUX_TELEVISION
,
1340 .type
= CX88_VMUX_COMPOSITE1
,
1345 .type
= CX88_VMUX_SVIDEO
,
1350 /* fixme: Add radio support */
1351 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1353 [CX88_BOARD_ADSTECH_PTV_390
] = {
1354 .name
= "ADS Tech Instant Video PCI",
1355 .tuner_type
= TUNER_ABSENT
,
1356 .radio_type
= UNSET
,
1357 .tuner_addr
= ADDR_UNSET
,
1358 .radio_addr
= ADDR_UNSET
,
1360 .type
= CX88_VMUX_DEBUG
,
1364 .type
= CX88_VMUX_COMPOSITE1
,
1368 .type
= CX88_VMUX_SVIDEO
,
1375 /* ------------------------------------------------------------------ */
1376 /* PCI subsystem IDs */
1378 static const struct cx88_subid cx88_subids
[] = {
1380 .subvendor
= 0x0070,
1381 .subdevice
= 0x3400,
1382 .card
= CX88_BOARD_HAUPPAUGE
,
1384 .subvendor
= 0x0070,
1385 .subdevice
= 0x3401,
1386 .card
= CX88_BOARD_HAUPPAUGE
,
1388 .subvendor
= 0x14c7,
1389 .subdevice
= 0x0106,
1390 .card
= CX88_BOARD_GDI
,
1392 .subvendor
= 0x14c7,
1393 .subdevice
= 0x0107, /* with mpeg encoder */
1394 .card
= CX88_BOARD_GDI
,
1396 .subvendor
= PCI_VENDOR_ID_ATI
,
1397 .subdevice
= 0x00f8,
1398 .card
= CX88_BOARD_ATI_WONDER_PRO
,
1400 .subvendor
= 0x107d,
1401 .subdevice
= 0x6611,
1402 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1404 .subvendor
= 0x107d,
1405 .subdevice
= 0x6613, /* NTSC */
1406 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1408 .subvendor
= 0x107d,
1409 .subdevice
= 0x6620,
1410 .card
= CX88_BOARD_WINFAST_DV2000
,
1412 .subvendor
= 0x107d,
1413 .subdevice
= 0x663b,
1414 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1416 .subvendor
= 0x107d,
1417 .subdevice
= 0x663c,
1418 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1420 .subvendor
= 0x1461,
1421 .subdevice
= 0x000b,
1422 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
1424 .subvendor
= 0x1462,
1425 .subdevice
= 0x8606,
1426 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
1428 .subvendor
= 0x10fc,
1429 .subdevice
= 0xd003,
1430 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
1432 .subvendor
= 0x1043,
1433 .subdevice
= 0x4823, /* with mpeg encoder */
1434 .card
= CX88_BOARD_ASUS_PVR_416
,
1436 .subvendor
= 0x17de,
1437 .subdevice
= 0x08a6,
1438 .card
= CX88_BOARD_KWORLD_DVB_T
,
1440 .subvendor
= 0x18ac,
1441 .subdevice
= 0xd810,
1442 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1444 .subvendor
= 0x18ac,
1445 .subdevice
= 0xd820,
1446 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
1448 .subvendor
= 0x18ac,
1449 .subdevice
= 0xdb00,
1450 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
1452 .subvendor
= 0x0070,
1453 .subdevice
= 0x9002,
1454 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1456 .subvendor
= 0x14f1,
1457 .subdevice
= 0x0187,
1458 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
1460 .subvendor
= 0x1540,
1461 .subdevice
= 0x2580,
1462 .card
= CX88_BOARD_PROVIDEO_PV259
,
1464 .subvendor
= 0x18ac,
1465 .subdevice
= 0xdb10,
1466 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1468 .subvendor
= 0x1554,
1469 .subdevice
= 0x4811,
1470 .card
= CX88_BOARD_PIXELVIEW
,
1472 .subvendor
= 0x7063,
1473 .subdevice
= 0x3000, /* HD-3000 card */
1474 .card
= CX88_BOARD_PCHDTV_HD3000
,
1476 .subvendor
= 0x17de,
1477 .subdevice
= 0xa8a6,
1478 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
1480 .subvendor
= 0x0070,
1481 .subdevice
= 0x2801,
1482 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
1484 .subvendor
= 0x14f1,
1485 .subdevice
= 0x0342,
1486 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
1488 .subvendor
= 0x10fc,
1489 .subdevice
= 0xd035,
1490 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
1492 .subvendor
= 0x1421,
1493 .subdevice
= 0x0334,
1494 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
1496 .subvendor
= 0x153b,
1497 .subdevice
= 0x1166,
1498 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
1500 .subvendor
= 0x18ac,
1501 .subdevice
= 0xd500,
1502 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
1504 .subvendor
= 0x1461,
1505 .subdevice
= 0x8011,
1506 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
1508 .subvendor
= PCI_VENDOR_ID_ATI
,
1509 .subdevice
= 0xa101,
1510 .card
= CX88_BOARD_ATI_HDTVWONDER
,
1512 .subvendor
= 0x107d,
1513 .subdevice
= 0x665f,
1514 .card
= CX88_BOARD_WINFAST_DTV1000
,
1516 .subvendor
= 0x1461,
1517 .subdevice
= 0x000a,
1518 .card
= CX88_BOARD_AVERTV_303
,
1520 .subvendor
= 0x0070,
1521 .subdevice
= 0x9200,
1522 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
1524 .subvendor
= 0x0070,
1525 .subdevice
= 0x9201,
1526 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1528 .subvendor
= 0x0070,
1529 .subdevice
= 0x9202,
1530 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1532 .subvendor
= 0x17de,
1533 .subdevice
= 0x08b2,
1534 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1536 .subvendor
= 0x0070,
1537 .subdevice
= 0x9400,
1538 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1540 .subvendor
= 0x0070,
1541 .subdevice
= 0x9402,
1542 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1544 .subvendor
= 0x0070,
1545 .subdevice
= 0x9800,
1546 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1548 .subvendor
= 0x0070,
1549 .subdevice
= 0x9802,
1550 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1552 .subvendor
= 0x0070,
1553 .subdevice
= 0x9001,
1554 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1556 .subvendor
= 0x1822,
1557 .subdevice
= 0x0025,
1558 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1560 .subvendor
= 0x17de,
1561 .subdevice
= 0x08a1,
1562 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1564 .subvendor
= 0x18ac,
1565 .subdevice
= 0xdb50,
1566 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1568 .subvendor
= 0x18ac,
1569 .subdevice
= 0xdb54,
1570 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1571 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1573 .subvendor
= 0x18ac,
1574 .subdevice
= 0xdb11,
1575 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1576 /* Re-branded DViCO: UltraView DVB-T Plus */
1578 .subvendor
= 0x17de,
1579 .subdevice
= 0x0840,
1580 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1582 .subvendor
= 0x1421,
1583 .subdevice
= 0x0305,
1584 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1586 .subvendor
= 0x18ac,
1587 .subdevice
= 0xdb40,
1588 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1590 .subvendor
= 0x18ac,
1591 .subdevice
= 0xdb44,
1592 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1594 .subvendor
= 0x7063,
1595 .subdevice
= 0x5500,
1596 .card
= CX88_BOARD_PCHDTV_HD5500
,
1598 .subvendor
= 0x17de,
1599 .subdevice
= 0x0841,
1600 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
1602 .subvendor
= 0x1822,
1603 .subdevice
= 0x0019,
1604 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1606 .subvendor
= 0x1554,
1607 .subdevice
= 0x4813,
1608 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
1610 .subvendor
= 0x14f1,
1611 .subdevice
= 0x0842,
1612 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
1614 .subvendor
= 0x107d,
1615 .subdevice
= 0x665e,
1616 .card
= CX88_BOARD_WINFAST_DTV2000H
,
1618 .subvendor
= 0x18ac,
1619 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
1620 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1622 .subvendor
= 0x14f1,
1623 .subdevice
= 0x0084,
1624 .card
= CX88_BOARD_GENIATECH_DVBS
,
1626 .subvendor
= 0x0070,
1627 .subdevice
= 0x1404,
1628 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1630 .subvendor
= 0x1461,
1631 .subdevice
= 0xc111, /* AverMedia M150-D */
1632 /* This board is known to work with the ASUS PVR416 config */
1633 .card
= CX88_BOARD_ASUS_PVR_416
,
1635 .subvendor
= 0xc180,
1636 .subdevice
= 0xc980,
1637 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
1639 .subvendor
= 0x0070,
1640 .subdevice
= 0x9600,
1641 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1643 .subvendor
= 0x0070,
1644 .subdevice
= 0x9601,
1645 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1647 .subvendor
= 0x0070,
1648 .subdevice
= 0x9602,
1649 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1651 .subvendor
= 0x107d,
1652 .subdevice
= 0x6632,
1653 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1655 .subvendor
= 0x12ab,
1656 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
1657 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1659 .subvendor
= 0x0070,
1660 .subdevice
= 0x9000,
1661 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1663 .subvendor
= 0x0070,
1664 .subdevice
= 0x1400,
1665 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1667 .subvendor
= 0x0070,
1668 .subdevice
= 0x1401,
1669 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1671 .subvendor
= 0x0070,
1672 .subdevice
= 0x1402,
1673 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1675 .subvendor
= 0x1421,
1676 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
1677 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1679 .subvendor
= 0x1421,
1680 .subdevice
= 0x0390,
1681 .card
= CX88_BOARD_ADSTECH_PTV_390
,
1685 /* ----------------------------------------------------------------------- */
1686 /* some leadtek specific stuff */
1688 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1690 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1693 * Byte 0 is 1 on the NTSC board.
1696 if (eeprom_data
[4] != 0x7d ||
1697 eeprom_data
[5] != 0x10 ||
1698 eeprom_data
[7] != 0x66) {
1699 printk(KERN_WARNING
"%s: Leadtek eeprom invalid.\n",
1704 core
->board
.tuner_type
= (eeprom_data
[6] == 0x13) ?
1705 TUNER_PHILIPS_FM1236_MK3
: TUNER_PHILIPS_FM1216ME_MK3
;
1707 printk(KERN_INFO
"%s: Leadtek Winfast 2000XP Expert config: "
1708 "tuner=%d, eeprom[0]=0x%02x\n",
1709 core
->name
, core
->board
.tuner_type
, eeprom_data
[0]);
1712 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1716 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
1717 core
->board
.tuner_type
= tv
.tuner_type
;
1718 core
->tuner_formats
= tv
.tuner_formats
;
1719 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
1721 /* Make sure we support the board model */
1724 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1725 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1726 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1727 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1728 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1729 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
1730 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
1731 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1732 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
1733 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1734 case 34519: /* WinTV-PCI-FM */
1735 case 90002: /* Nova-T-PCI (9002) */
1736 case 92001: /* Nova-S-Plus (Video and IR) */
1737 case 92002: /* Nova-S-Plus (Video and IR) */
1738 case 90003: /* Nova-T-PCI (9002 No RF out) */
1739 case 90500: /* Nova-T-PCI (oem) */
1740 case 90501: /* Nova-T-PCI (oem/IR) */
1741 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1742 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1743 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1744 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1745 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1746 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1747 case 96569: /* WinTV-HVR1300 () */
1748 case 96659: /* WinTV-HVR1300 () */
1749 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1753 printk("%s: warning: unknown hauppauge model #%d\n",
1754 core
->name
, tv
.model
);
1758 printk(KERN_INFO
"%s: hauppauge eeprom: model=%d\n",
1759 core
->name
, tv
.model
);
1762 /* ----------------------------------------------------------------------- */
1763 /* some GDI (was: Modular Technology) specific stuff */
1770 [ 0x01 ] = { .id
= TUNER_ABSENT
,
1772 [ 0x02 ] = { .id
= TUNER_ABSENT
,
1774 [ 0x03 ] = { .id
= TUNER_ABSENT
,
1776 [ 0x04 ] = { .id
= TUNER_ABSENT
,
1778 [ 0x05 ] = { .id
= TUNER_ABSENT
,
1781 [ 0x10 ] = { .id
= TUNER_ABSENT
,
1783 .name
= "TEMIC_4049" },
1784 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
1785 .name
= "TEMIC_4136" },
1786 [ 0x12 ] = { .id
= TUNER_ABSENT
,
1787 .name
= "TEMIC_4146" },
1789 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
1791 .name
= "PHILIPS_FQ1216_MK3" },
1792 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
1793 .name
= "PHILIPS_FQ1236_MK3" },
1794 [ 0x22 ] = { .id
= TUNER_ABSENT
,
1795 .name
= "PHILIPS_FI1236_MK3" },
1796 [ 0x23 ] = { .id
= TUNER_ABSENT
,
1797 .name
= "PHILIPS_FI1216_MK3" },
1800 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1802 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
1803 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
1805 printk(KERN_INFO
"%s: GDI: tuner=%s\n", core
->name
,
1806 name
? name
: "unknown");
1809 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
1810 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
1814 /* ----------------------------------------------------------------------- */
1815 /* some DViCO specific stuff */
1817 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
1819 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
1821 static u8 init_bufs
[13][5] = {
1822 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1823 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1824 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1825 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1826 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1827 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1828 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1829 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1830 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1831 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1832 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1833 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1837 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
1838 msg
.buf
= init_bufs
[i
];
1839 msg
.len
= (i
!= 12 ? 5 : 2);
1840 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
1842 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i
, err
);
1848 /* ----------------------------------------------------------------------- */
1850 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
1854 if (0 == pci
->subsystem_vendor
&&
1855 0 == pci
->subsystem_device
) {
1856 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1857 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1858 "%s: workaround that. Redirect complaints to the vendor of\n"
1859 "%s: the TV card. Best regards,\n"
1861 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
1863 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1864 "%s: try to pick one of the existing card configs via\n"
1865 "%s: card=<n> insmod option. Updating to the latest\n"
1866 "%s: version might help as well.\n",
1867 core
->name
,core
->name
,core
->name
,core
->name
);
1869 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1871 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
1872 printk("%s: card=%d -> %s\n",
1873 core
->name
, i
, cx88_boards
[i
].name
);
1876 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
1878 switch (core
->boardnr
) {
1879 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1880 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1881 /* We leave here with the 702 on the bus */
1882 cx_write(MO_GP0_IO
, 0x0000e780);
1884 cx_clear(MO_GP0_IO
, 0x00000080);
1886 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
1892 static void cx88_card_setup(struct cx88_core
*core
)
1894 static u8 eeprom
[256];
1896 if (0 == core
->i2c_rc
) {
1897 core
->i2c_client
.addr
= 0xa0 >> 1;
1898 tveeprom_read(&core
->i2c_client
,eeprom
,sizeof(eeprom
));
1901 switch (core
->boardnr
) {
1902 case CX88_BOARD_HAUPPAUGE
:
1903 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
1904 if (0 == core
->i2c_rc
)
1905 hauppauge_eeprom(core
,eeprom
+8);
1907 case CX88_BOARD_GDI
:
1908 if (0 == core
->i2c_rc
)
1909 gdi_eeprom(core
,eeprom
);
1911 case CX88_BOARD_WINFAST2000XP_EXPERT
:
1912 if (0 == core
->i2c_rc
)
1913 leadtek_eeprom(core
,eeprom
);
1915 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
1916 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
1917 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
1918 case CX88_BOARD_HAUPPAUGE_HVR1100
:
1919 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
1920 case CX88_BOARD_HAUPPAUGE_HVR3000
:
1921 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1922 if (0 == core
->i2c_rc
)
1923 hauppauge_eeprom(core
,eeprom
);
1925 case CX88_BOARD_KWORLD_DVBS_100
:
1926 cx_write(MO_GP0_IO
, 0x000007f8);
1927 cx_write(MO_GP1_IO
, 0x00000001);
1929 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
1930 /* GPIO0:6 is hooked to FX2 reset pin */
1931 cx_set(MO_GP0_IO
, 0x00004040);
1932 cx_clear(MO_GP0_IO
, 0x00000040);
1934 cx_set(MO_GP0_IO
, 0x00004040);
1936 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
1937 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
1938 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
1939 /* GPIO0:0 is hooked to mt352 reset pin */
1940 cx_set(MO_GP0_IO
, 0x00000101);
1941 cx_clear(MO_GP0_IO
, 0x00000001);
1943 cx_set(MO_GP0_IO
, 0x00000101);
1944 if (0 == core
->i2c_rc
&&
1945 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
1946 dvico_fusionhdtv_hybrid_init(core
);
1948 case CX88_BOARD_KWORLD_DVB_T
:
1949 case CX88_BOARD_DNTV_LIVE_DVB_T
:
1950 cx_set(MO_GP0_IO
, 0x00000707);
1951 cx_set(MO_GP2_IO
, 0x00000101);
1952 cx_clear(MO_GP2_IO
, 0x00000001);
1954 cx_clear(MO_GP0_IO
, 0x00000007);
1955 cx_set(MO_GP2_IO
, 0x00000101);
1957 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
1958 cx_write(MO_GP0_IO
, 0x00080808);
1960 case CX88_BOARD_ATI_HDTVWONDER
:
1961 if (0 == core
->i2c_rc
) {
1964 static const u8 buffer
[][2] = {
1971 core
->i2c_client
.addr
= 0x0a;
1973 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
1974 if (2 != i2c_master_send(&core
->i2c_client
,
1977 "%s: Unable to enable "
1985 /* ------------------------------------------------------------------ */
1987 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
1989 unsigned int lat
= UNSET
;
1993 /* check pci quirks */
1994 if (pci_pci_problems
& PCIPCI_TRITON
) {
1995 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
1997 ctrl
|= CX88X_EN_TBFX
;
1999 if (pci_pci_problems
& PCIPCI_NATOMA
) {
2000 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
2002 ctrl
|= CX88X_EN_TBFX
;
2004 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
2005 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
2007 ctrl
|= CX88X_EN_TBFX
;
2009 if (pci_pci_problems
& PCIPCI_VSFX
) {
2010 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
2012 ctrl
|= CX88X_EN_VSFX
;
2014 #ifdef PCIPCI_ALIMAGIK
2015 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
2016 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
2022 /* check insmod options */
2023 if (UNSET
!= latency
)
2028 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
2030 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
2033 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
2035 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
2040 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
2042 if (request_mem_region(pci_resource_start(pci
,0),
2043 pci_resource_len(pci
,0),
2047 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
2048 core
->name
, PCI_FUNC(pci
->devfn
),
2049 (unsigned long long)pci_resource_start(pci
, 0),
2050 pci
->subsystem_vendor
, pci
->subsystem_device
);
2054 /* Allocate and initialize the cx88 core struct. One should hold the
2055 * devlist mutex before calling this. */
2056 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
2058 struct cx88_core
*core
;
2061 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
2063 atomic_inc(&core
->refcount
);
2064 core
->pci_bus
= pci
->bus
->number
;
2065 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
2066 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
2067 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
2068 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
2069 mutex_init(&core
->lock
);
2072 sprintf(core
->name
, "cx88[%d]", core
->nr
);
2073 if (0 != cx88_get_resources(core
, pci
)) {
2079 cx88_pci_quirks(core
->name
, pci
);
2080 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
2081 pci_resource_len(pci
, 0));
2082 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
2085 core
->boardnr
= UNSET
;
2086 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
2087 core
->boardnr
= card
[core
->nr
];
2088 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
2089 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
2090 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
2091 core
->boardnr
= cx88_subids
[i
].card
;
2092 if (UNSET
== core
->boardnr
) {
2093 core
->boardnr
= CX88_BOARD_UNKNOWN
;
2094 cx88_card_list(core
, pci
);
2097 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
2099 printk(KERN_INFO
"%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
2100 core
->name
,pci
->subsystem_vendor
,
2101 pci
->subsystem_device
, core
->board
.name
,
2102 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
2103 "insmod option" : "autodetected");
2105 if (tuner
[core
->nr
] != UNSET
)
2106 core
->board
.tuner_type
= tuner
[core
->nr
];
2107 if (radio
[core
->nr
] != UNSET
)
2108 core
->board
.radio_type
= radio
[core
->nr
];
2110 printk(KERN_INFO
"%s: TV tuner type %d, Radio tuner type %d\n",
2111 core
->name
, core
->board
.tuner_type
, core
->board
.radio_type
);
2115 cx88_card_setup_pre_i2c(core
);
2116 cx88_i2c_init(core
, pci
);
2117 cx88_call_i2c_clients (core
, TUNER_SET_STANDBY
, NULL
);
2118 cx88_card_setup(core
);
2119 cx88_ir_init(core
, pci
);
2124 /* ------------------------------------------------------------------ */
2130 * 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