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 #define info_printk(core, fmt, arg...) \
48 printk(KERN_INFO "%s: " fmt, core->name , ## arg)
50 #define warn_printk(core, fmt, arg...) \
51 printk(KERN_WARNING "%s: " fmt, core->name , ## arg)
53 #define err_printk(core, fmt, arg...) \
54 printk(KERN_ERR "%s: " fmt, core->name , ## arg)
57 /* ------------------------------------------------------------------ */
58 /* board config info */
60 /* If radio_type !=UNSET, radio_addr should be specified
63 static const struct cx88_board cx88_boards
[] = {
64 [CX88_BOARD_UNKNOWN
] = {
65 .name
= "UNKNOWN/GENERIC",
68 .tuner_addr
= ADDR_UNSET
,
69 .radio_addr
= ADDR_UNSET
,
71 .type
= CX88_VMUX_COMPOSITE1
,
74 .type
= CX88_VMUX_COMPOSITE2
,
77 .type
= CX88_VMUX_COMPOSITE3
,
80 .type
= CX88_VMUX_COMPOSITE4
,
84 [CX88_BOARD_HAUPPAUGE
] = {
85 .name
= "Hauppauge WinTV 34xxx models",
88 .tuner_addr
= ADDR_UNSET
,
89 .radio_addr
= ADDR_UNSET
,
90 .tda9887_conf
= TDA9887_PRESENT
,
92 .type
= CX88_VMUX_TELEVISION
,
94 .gpio0
= 0xff00, // internal decoder
96 .type
= CX88_VMUX_DEBUG
,
98 .gpio0
= 0xff01, // mono from tuner chip
100 .type
= CX88_VMUX_COMPOSITE1
,
104 .type
= CX88_VMUX_SVIDEO
,
114 .name
= "GDI Black Gold",
117 .tuner_addr
= ADDR_UNSET
,
118 .radio_addr
= ADDR_UNSET
,
120 .type
= CX88_VMUX_TELEVISION
,
123 .type
= CX88_VMUX_SVIDEO
,
127 [CX88_BOARD_PIXELVIEW
] = {
129 .tuner_type
= TUNER_PHILIPS_PAL
,
131 .tuner_addr
= ADDR_UNSET
,
132 .radio_addr
= ADDR_UNSET
,
134 .type
= CX88_VMUX_TELEVISION
,
136 .gpio0
= 0xff00, // internal decoder
138 .type
= CX88_VMUX_COMPOSITE1
,
141 .type
= CX88_VMUX_SVIDEO
,
149 [CX88_BOARD_ATI_WONDER_PRO
] = {
150 .name
= "ATI TV Wonder Pro",
151 .tuner_type
= TUNER_PHILIPS_4IN1
,
153 .tuner_addr
= ADDR_UNSET
,
154 .radio_addr
= ADDR_UNSET
,
155 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
157 .type
= CX88_VMUX_TELEVISION
,
161 .type
= CX88_VMUX_COMPOSITE1
,
165 .type
= CX88_VMUX_SVIDEO
,
170 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
171 .name
= "Leadtek Winfast 2000XP Expert",
172 .tuner_type
= TUNER_PHILIPS_4IN1
,
174 .tuner_addr
= ADDR_UNSET
,
175 .radio_addr
= ADDR_UNSET
,
176 .tda9887_conf
= TDA9887_PRESENT
,
178 .type
= CX88_VMUX_TELEVISION
,
185 .type
= CX88_VMUX_COMPOSITE1
,
192 .type
= CX88_VMUX_SVIDEO
,
207 [CX88_BOARD_AVERTV_STUDIO_303
] = {
208 .name
= "AverTV Studio 303 (M126)",
209 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
211 .tuner_addr
= ADDR_UNSET
,
212 .radio_addr
= ADDR_UNSET
,
213 .tda9887_conf
= TDA9887_PRESENT
,
215 .type
= CX88_VMUX_TELEVISION
,
219 .type
= CX88_VMUX_COMPOSITE1
,
223 .type
= CX88_VMUX_SVIDEO
,
232 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
233 // added gpio values thanks to Michal
234 // values for PAL from DScaler
235 .name
= "MSI TV-@nywhere Master",
236 .tuner_type
= TUNER_MT2032
,
238 .tuner_addr
= ADDR_UNSET
,
239 .radio_addr
= ADDR_UNSET
,
240 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
242 .type
= CX88_VMUX_TELEVISION
,
248 .type
= CX88_VMUX_COMPOSITE1
,
254 .type
= CX88_VMUX_SVIDEO
,
268 [CX88_BOARD_WINFAST_DV2000
] = {
269 .name
= "Leadtek Winfast DV2000",
270 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
272 .tuner_addr
= ADDR_UNSET
,
273 .radio_addr
= ADDR_UNSET
,
274 .tda9887_conf
= TDA9887_PRESENT
,
276 .type
= CX88_VMUX_TELEVISION
,
284 .type
= CX88_VMUX_COMPOSITE1
,
291 .type
= CX88_VMUX_SVIDEO
,
306 [CX88_BOARD_LEADTEK_PVR2000
] = {
307 // gpio values for PAL version from regspy by DScaler
308 .name
= "Leadtek PVR 2000",
309 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
311 .tuner_addr
= ADDR_UNSET
,
312 .radio_addr
= ADDR_UNSET
,
313 .tda9887_conf
= TDA9887_PRESENT
,
315 .type
= CX88_VMUX_TELEVISION
,
320 .type
= CX88_VMUX_COMPOSITE1
,
325 .type
= CX88_VMUX_SVIDEO
,
335 .mpeg
= CX88_MPEG_BLACKBIRD
,
337 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
338 .name
= "IODATA GV-VCP3/PCI",
339 .tuner_type
= TUNER_ABSENT
,
341 .tuner_addr
= ADDR_UNSET
,
342 .radio_addr
= ADDR_UNSET
,
344 .type
= CX88_VMUX_COMPOSITE1
,
347 .type
= CX88_VMUX_COMPOSITE2
,
350 .type
= CX88_VMUX_SVIDEO
,
354 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
355 .name
= "Prolink PlayTV PVR",
356 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
358 .tuner_addr
= ADDR_UNSET
,
359 .radio_addr
= ADDR_UNSET
,
360 .tda9887_conf
= TDA9887_PRESENT
,
362 .type
= CX88_VMUX_TELEVISION
,
366 .type
= CX88_VMUX_COMPOSITE1
,
370 .type
= CX88_VMUX_SVIDEO
,
379 [CX88_BOARD_ASUS_PVR_416
] = {
380 .name
= "ASUS PVR-416",
381 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
383 .tuner_addr
= ADDR_UNSET
,
384 .radio_addr
= ADDR_UNSET
,
385 .tda9887_conf
= TDA9887_PRESENT
,
387 .type
= CX88_VMUX_TELEVISION
,
391 .type
= CX88_VMUX_SVIDEO
,
393 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
400 .mpeg
= CX88_MPEG_BLACKBIRD
,
402 [CX88_BOARD_MSI_TVANYWHERE
] = {
403 .name
= "MSI TV-@nywhere",
404 .tuner_type
= TUNER_MT2032
,
406 .tuner_addr
= ADDR_UNSET
,
407 .radio_addr
= ADDR_UNSET
,
408 .tda9887_conf
= TDA9887_PRESENT
,
410 .type
= CX88_VMUX_TELEVISION
,
415 .type
= CX88_VMUX_COMPOSITE1
,
420 .type
= CX88_VMUX_SVIDEO
,
426 [CX88_BOARD_KWORLD_DVB_T
] = {
427 .name
= "KWorld/VStream XPert DVB-T",
428 .tuner_type
= TUNER_ABSENT
,
430 .tuner_addr
= ADDR_UNSET
,
431 .radio_addr
= ADDR_UNSET
,
433 .type
= CX88_VMUX_COMPOSITE1
,
438 .type
= CX88_VMUX_SVIDEO
,
443 .mpeg
= CX88_MPEG_DVB
,
445 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
446 .name
= "DViCO FusionHDTV DVB-T1",
447 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
449 .tuner_addr
= ADDR_UNSET
,
450 .radio_addr
= ADDR_UNSET
,
452 .type
= CX88_VMUX_COMPOSITE1
,
456 .type
= CX88_VMUX_SVIDEO
,
460 .mpeg
= CX88_MPEG_DVB
,
462 [CX88_BOARD_KWORLD_LTV883
] = {
463 .name
= "KWorld LTV883RF",
464 .tuner_type
= TUNER_TNF_8831BGFF
,
466 .tuner_addr
= ADDR_UNSET
,
467 .radio_addr
= ADDR_UNSET
,
469 .type
= CX88_VMUX_TELEVISION
,
473 .type
= CX88_VMUX_DEBUG
,
475 .gpio0
= 0x07f9, // mono from tuner chip
477 .type
= CX88_VMUX_COMPOSITE1
,
481 .type
= CX88_VMUX_SVIDEO
,
490 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
491 .name
= "DViCO FusionHDTV 3 Gold-Q",
492 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
494 .tuner_addr
= ADDR_UNSET
,
495 .radio_addr
= ADDR_UNSET
,
497 GPIO[0] resets DT3302 DTV receiver
500 GPIO[1] mutes analog audio output connector
501 0 - enable selected source
503 GPIO[2] selects source for analog audio output connector
504 0 - analog audio input connector on tab
505 1 - analog DAC output from CX23881 chip
506 GPIO[3] selects RF input connector on tuner module
507 0 - RF connector labeled CABLE
508 1 - RF connector labeled ANT
509 GPIO[4] selects high RF for QAM256 mode
514 .type
= CX88_VMUX_TELEVISION
,
518 .type
= CX88_VMUX_CABLE
,
522 .type
= CX88_VMUX_COMPOSITE1
,
526 .type
= CX88_VMUX_SVIDEO
,
530 .mpeg
= CX88_MPEG_DVB
,
532 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
533 .name
= "Hauppauge Nova-T DVB-T",
534 .tuner_type
= TUNER_ABSENT
,
536 .tuner_addr
= ADDR_UNSET
,
537 .radio_addr
= ADDR_UNSET
,
539 .type
= CX88_VMUX_DVB
,
542 .mpeg
= CX88_MPEG_DVB
,
544 [CX88_BOARD_CONEXANT_DVB_T1
] = {
545 .name
= "Conexant DVB-T reference design",
546 .tuner_type
= TUNER_ABSENT
,
548 .tuner_addr
= ADDR_UNSET
,
549 .radio_addr
= ADDR_UNSET
,
551 .type
= CX88_VMUX_DVB
,
554 .mpeg
= CX88_MPEG_DVB
,
556 [CX88_BOARD_PROVIDEO_PV259
] = {
557 .name
= "Provideo PV259",
558 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
560 .tuner_addr
= ADDR_UNSET
,
561 .radio_addr
= ADDR_UNSET
,
563 .type
= CX88_VMUX_TELEVISION
,
567 .mpeg
= CX88_MPEG_BLACKBIRD
,
569 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
570 .name
= "DViCO FusionHDTV DVB-T Plus",
571 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
573 .tuner_addr
= ADDR_UNSET
,
574 .radio_addr
= ADDR_UNSET
,
576 .type
= CX88_VMUX_COMPOSITE1
,
580 .type
= CX88_VMUX_SVIDEO
,
584 .mpeg
= CX88_MPEG_DVB
,
586 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
587 .name
= "digitalnow DNTV Live! DVB-T",
588 .tuner_type
= TUNER_ABSENT
,
590 .tuner_addr
= ADDR_UNSET
,
591 .radio_addr
= ADDR_UNSET
,
593 .type
= CX88_VMUX_COMPOSITE1
,
598 .type
= CX88_VMUX_SVIDEO
,
603 .mpeg
= CX88_MPEG_DVB
,
605 [CX88_BOARD_PCHDTV_HD3000
] = {
606 .name
= "pcHDTV HD3000 HDTV",
607 .tuner_type
= TUNER_THOMSON_DTT761X
,
609 .tuner_addr
= ADDR_UNSET
,
610 .radio_addr
= ADDR_UNSET
,
611 .tda9887_conf
= TDA9887_PRESENT
,
612 /* GPIO[2] = audio source for analog audio out connector
613 * 0 = analog audio input connector
614 * 1 = CX88 audio DACs
616 * GPIO[7] = input to CX88's audio/chroma ADC
618 * 1 = Sound 4.5 MHz IF
620 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
622 * GPIO[16] = Remote control input
625 .type
= CX88_VMUX_TELEVISION
,
629 .type
= CX88_VMUX_COMPOSITE1
,
633 .type
= CX88_VMUX_SVIDEO
,
641 .mpeg
= CX88_MPEG_DVB
,
643 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
644 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
645 // GPIO values obtained from regspy, courtesy Sean Covel
646 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
649 .tuner_addr
= ADDR_UNSET
,
650 .radio_addr
= ADDR_UNSET
,
652 .type
= CX88_VMUX_TELEVISION
,
657 .type
= CX88_VMUX_DEBUG
,
661 .type
= CX88_VMUX_COMPOSITE1
,
665 .type
= CX88_VMUX_SVIDEO
,
675 .mpeg
= CX88_MPEG_BLACKBIRD
,
677 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
678 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
679 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
681 .tuner_addr
= ADDR_UNSET
,
682 .radio_addr
= ADDR_UNSET
,
683 .tda9887_conf
= TDA9887_PRESENT
,
685 .type
= CX88_VMUX_TELEVISION
,
690 .type
= CX88_VMUX_COMPOSITE1
,
695 .type
= CX88_VMUX_SVIDEO
,
705 .mpeg
= CX88_MPEG_BLACKBIRD
,
707 [CX88_BOARD_IODATA_GVBCTV7E
] = {
708 .name
= "IODATA GV/BCTV7E",
709 .tuner_type
= TUNER_PHILIPS_FQ1286
,
711 .tuner_addr
= ADDR_UNSET
,
712 .radio_addr
= ADDR_UNSET
,
713 .tda9887_conf
= TDA9887_PRESENT
,
715 .type
= CX88_VMUX_TELEVISION
,
719 .type
= CX88_VMUX_COMPOSITE1
,
723 .type
= CX88_VMUX_SVIDEO
,
728 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
729 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
730 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
731 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
733 .tuner_addr
= ADDR_UNSET
,
734 .radio_addr
= ADDR_UNSET
,
735 /* Some variants use a tda9874 and so need the tvaudio module. */
736 .audio_chip
= V4L2_IDENT_TVAUDIO
,
738 .type
= CX88_VMUX_TELEVISION
,
740 .gpio0
= 0xbf61, /* internal decoder */
742 .type
= CX88_VMUX_COMPOSITE1
,
746 .type
= CX88_VMUX_SVIDEO
,
755 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
756 .name
= "DViCO FusionHDTV 3 Gold-T",
757 .tuner_type
= TUNER_THOMSON_DTT761X
,
759 .tuner_addr
= ADDR_UNSET
,
760 .radio_addr
= ADDR_UNSET
,
761 .tda9887_conf
= TDA9887_PRESENT
,
763 .type
= CX88_VMUX_TELEVISION
,
767 .type
= CX88_VMUX_COMPOSITE1
,
771 .type
= CX88_VMUX_SVIDEO
,
775 .mpeg
= CX88_MPEG_DVB
,
777 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
778 .name
= "ADS Tech Instant TV DVB-T PCI",
779 .tuner_type
= TUNER_ABSENT
,
781 .tuner_addr
= ADDR_UNSET
,
782 .radio_addr
= ADDR_UNSET
,
784 .type
= CX88_VMUX_COMPOSITE1
,
789 .type
= CX88_VMUX_SVIDEO
,
794 .mpeg
= CX88_MPEG_DVB
,
796 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
797 .name
= "TerraTec Cinergy 1400 DVB-T",
798 .tuner_type
= TUNER_ABSENT
,
800 .type
= CX88_VMUX_DVB
,
803 .type
= CX88_VMUX_COMPOSITE1
,
806 .type
= CX88_VMUX_SVIDEO
,
809 .mpeg
= CX88_MPEG_DVB
,
811 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
812 .name
= "DViCO FusionHDTV 5 Gold",
813 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
815 .tuner_addr
= ADDR_UNSET
,
816 .radio_addr
= ADDR_UNSET
,
817 .tda9887_conf
= TDA9887_PRESENT
,
819 .type
= CX88_VMUX_TELEVISION
,
823 .type
= CX88_VMUX_COMPOSITE1
,
827 .type
= CX88_VMUX_SVIDEO
,
831 .mpeg
= CX88_MPEG_DVB
,
833 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
834 .name
= "AverMedia UltraTV Media Center PCI 550",
835 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
837 .tuner_addr
= ADDR_UNSET
,
838 .radio_addr
= ADDR_UNSET
,
839 .tda9887_conf
= TDA9887_PRESENT
,
841 .type
= CX88_VMUX_COMPOSITE1
,
846 .type
= CX88_VMUX_SVIDEO
,
851 .type
= CX88_VMUX_TELEVISION
,
862 .mpeg
= CX88_MPEG_BLACKBIRD
,
864 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
865 /* Alexander Wold <awold@bigfoot.com> */
866 .name
= "Kworld V-Stream Xpert DVD",
869 .type
= CX88_VMUX_COMPOSITE1
,
876 .type
= CX88_VMUX_SVIDEO
,
884 [CX88_BOARD_ATI_HDTVWONDER
] = {
885 .name
= "ATI HDTV Wonder",
886 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
888 .tuner_addr
= ADDR_UNSET
,
889 .radio_addr
= ADDR_UNSET
,
891 .type
= CX88_VMUX_TELEVISION
,
898 .type
= CX88_VMUX_COMPOSITE1
,
905 .type
= CX88_VMUX_SVIDEO
,
912 .mpeg
= CX88_MPEG_DVB
,
914 [CX88_BOARD_WINFAST_DTV1000
] = {
915 .name
= "WinFast DTV1000-T",
916 .tuner_type
= TUNER_ABSENT
,
918 .tuner_addr
= ADDR_UNSET
,
919 .radio_addr
= ADDR_UNSET
,
921 .type
= CX88_VMUX_DVB
,
924 .type
= CX88_VMUX_COMPOSITE1
,
927 .type
= CX88_VMUX_SVIDEO
,
930 .mpeg
= CX88_MPEG_DVB
,
932 [CX88_BOARD_AVERTV_303
] = {
933 .name
= "AVerTV 303 (M126)",
934 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
936 .tuner_addr
= ADDR_UNSET
,
937 .radio_addr
= ADDR_UNSET
,
938 .tda9887_conf
= TDA9887_PRESENT
,
940 .type
= CX88_VMUX_TELEVISION
,
947 .type
= CX88_VMUX_COMPOSITE1
,
954 .type
= CX88_VMUX_SVIDEO
,
962 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
963 .name
= "Hauppauge Nova-S-Plus DVB-S",
964 .tuner_type
= TUNER_ABSENT
,
966 .tuner_addr
= ADDR_UNSET
,
967 .radio_addr
= ADDR_UNSET
,
969 .type
= CX88_VMUX_DVB
,
972 .type
= CX88_VMUX_COMPOSITE1
,
975 .type
= CX88_VMUX_SVIDEO
,
978 .mpeg
= CX88_MPEG_DVB
,
980 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
981 .name
= "Hauppauge Nova-SE2 DVB-S",
982 .tuner_type
= TUNER_ABSENT
,
984 .tuner_addr
= ADDR_UNSET
,
985 .radio_addr
= ADDR_UNSET
,
987 .type
= CX88_VMUX_DVB
,
990 .mpeg
= CX88_MPEG_DVB
,
992 [CX88_BOARD_KWORLD_DVBS_100
] = {
993 .name
= "KWorld DVB-S 100",
994 .tuner_type
= TUNER_ABSENT
,
996 .tuner_addr
= ADDR_UNSET
,
997 .radio_addr
= ADDR_UNSET
,
999 .type
= CX88_VMUX_DVB
,
1002 .type
= CX88_VMUX_COMPOSITE1
,
1005 .type
= CX88_VMUX_SVIDEO
,
1008 .mpeg
= CX88_MPEG_DVB
,
1010 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
1011 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
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 .type
= CX88_VMUX_SVIDEO
,
1027 /* fixme: Add radio support */
1028 .mpeg
= CX88_MPEG_DVB
,
1030 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1031 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1032 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1033 .radio_type
= UNSET
,
1034 .tuner_addr
= ADDR_UNSET
,
1035 .radio_addr
= ADDR_UNSET
,
1036 .tda9887_conf
= TDA9887_PRESENT
,
1038 .type
= CX88_VMUX_TELEVISION
,
1041 .type
= CX88_VMUX_COMPOSITE1
,
1044 /* fixme: Add radio support */
1045 .mpeg
= CX88_MPEG_DVB
,
1047 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1048 .name
= "digitalnow DNTV Live! DVB-T Pro",
1049 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1050 .radio_type
= UNSET
,
1051 .tuner_addr
= ADDR_UNSET
,
1052 .radio_addr
= ADDR_UNSET
,
1053 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1054 TDA9887_PORT2_ACTIVE
,
1056 .type
= CX88_VMUX_TELEVISION
,
1060 .type
= CX88_VMUX_COMPOSITE1
,
1064 .type
= CX88_VMUX_SVIDEO
,
1072 .mpeg
= CX88_MPEG_DVB
,
1074 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1075 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1076 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1077 /* Manenti Marco <marco_manenti@colman.it> */
1078 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1079 .tuner_type
= TUNER_ABSENT
,
1080 .radio_type
= UNSET
,
1081 .tuner_addr
= ADDR_UNSET
,
1082 .radio_addr
= ADDR_UNSET
,
1084 .type
= CX88_VMUX_COMPOSITE1
,
1089 .type
= CX88_VMUX_SVIDEO
,
1094 .mpeg
= CX88_MPEG_DVB
,
1096 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1097 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1098 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1099 .radio_type
= UNSET
,
1100 .tuner_addr
= ADDR_UNSET
,
1101 .radio_addr
= ADDR_UNSET
,
1103 .type
= CX88_VMUX_COMPOSITE1
,
1105 .gpio0
= 0x000067df,
1107 .type
= CX88_VMUX_SVIDEO
,
1109 .gpio0
= 0x000067df,
1111 .mpeg
= CX88_MPEG_DVB
,
1113 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1114 .name
= "KWorld HardwareMpegTV XPert",
1115 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1116 .radio_type
= UNSET
,
1117 .tuner_addr
= ADDR_UNSET
,
1118 .radio_addr
= ADDR_UNSET
,
1120 .type
= CX88_VMUX_TELEVISION
,
1125 .type
= CX88_VMUX_COMPOSITE1
,
1130 .type
= CX88_VMUX_SVIDEO
,
1140 .mpeg
= CX88_MPEG_BLACKBIRD
,
1142 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1143 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1144 .tuner_type
= TUNER_THOMSON_FE6600
,
1145 .radio_type
= UNSET
,
1146 .tuner_addr
= ADDR_UNSET
,
1147 .radio_addr
= ADDR_UNSET
,
1149 .type
= CX88_VMUX_TELEVISION
,
1151 .gpio0
= 0x0000a75f,
1153 .type
= CX88_VMUX_COMPOSITE1
,
1155 .gpio0
= 0x0000a75b,
1157 .type
= CX88_VMUX_SVIDEO
,
1159 .gpio0
= 0x0000a75b,
1161 .mpeg
= CX88_MPEG_DVB
,
1163 [CX88_BOARD_PCHDTV_HD5500
] = {
1164 .name
= "pcHDTV HD5500 HDTV",
1165 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1166 .radio_type
= UNSET
,
1167 .tuner_addr
= ADDR_UNSET
,
1168 .radio_addr
= ADDR_UNSET
,
1169 .tda9887_conf
= TDA9887_PRESENT
,
1171 .type
= CX88_VMUX_TELEVISION
,
1175 .type
= CX88_VMUX_COMPOSITE1
,
1179 .type
= CX88_VMUX_SVIDEO
,
1183 .mpeg
= CX88_MPEG_DVB
,
1185 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1186 /* FIXME: tested TV input only, disabled composite,
1187 svideo and radio until they can be tested also. */
1188 .name
= "Kworld MCE 200 Deluxe",
1189 .tuner_type
= TUNER_TENA_9533_DI
,
1190 .radio_type
= UNSET
,
1191 .tda9887_conf
= TDA9887_PRESENT
,
1192 .tuner_addr
= ADDR_UNSET
,
1193 .radio_addr
= ADDR_UNSET
,
1195 .type
= CX88_VMUX_TELEVISION
,
1199 .mpeg
= CX88_MPEG_BLACKBIRD
,
1201 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1202 /* FIXME: SVideo, Composite and FM inputs are untested */
1203 .name
= "PixelView PlayTV P7000",
1204 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1205 .radio_type
= UNSET
,
1206 .tuner_addr
= ADDR_UNSET
,
1207 .radio_addr
= ADDR_UNSET
,
1208 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1209 TDA9887_PORT2_ACTIVE
,
1211 .type
= CX88_VMUX_TELEVISION
,
1215 .mpeg
= CX88_MPEG_BLACKBIRD
,
1217 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1218 .name
= "NPG Tech Real TV FM Top 10",
1219 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1220 .radio_type
= UNSET
,
1221 .tuner_addr
= ADDR_UNSET
,
1222 .radio_addr
= ADDR_UNSET
,
1224 .type
= CX88_VMUX_TELEVISION
,
1228 .type
= CX88_VMUX_COMPOSITE1
,
1232 .type
= CX88_VMUX_SVIDEO
,
1241 [CX88_BOARD_WINFAST_DTV2000H
] = {
1242 .name
= "WinFast DTV2000 H",
1243 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1244 .radio_type
= UNSET
,
1245 .tuner_addr
= ADDR_UNSET
,
1246 .radio_addr
= ADDR_UNSET
,
1247 .tda9887_conf
= TDA9887_PRESENT
,
1249 .type
= CX88_VMUX_TELEVISION
,
1251 .gpio0
= 0x00017304,
1252 .gpio1
= 0x00008203,
1253 .gpio2
= 0x00017304,
1254 .gpio3
= 0x02000000,
1256 .type
= CX88_VMUX_COMPOSITE1
,
1258 .gpio0
= 0x0001d701,
1259 .gpio1
= 0x0000b207,
1260 .gpio2
= 0x0001d701,
1261 .gpio3
= 0x02000000,
1263 .type
= CX88_VMUX_COMPOSITE2
,
1265 .gpio0
= 0x0001d503,
1266 .gpio1
= 0x0000b207,
1267 .gpio2
= 0x0001d503,
1268 .gpio3
= 0x02000000,
1270 .type
= CX88_VMUX_SVIDEO
,
1272 .gpio0
= 0x0001d701,
1273 .gpio1
= 0x0000b207,
1274 .gpio2
= 0x0001d701,
1275 .gpio3
= 0x02000000,
1279 .gpio0
= 0x00015702,
1280 .gpio1
= 0x0000f207,
1281 .gpio2
= 0x00015702,
1282 .gpio3
= 0x02000000,
1284 .mpeg
= CX88_MPEG_DVB
,
1286 [CX88_BOARD_WINFAST_DTV2000H_J
] = {
1287 .name
= "WinFast DTV2000 H rev. J",
1288 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1289 .radio_type
= UNSET
,
1290 .tuner_addr
= ADDR_UNSET
,
1291 .radio_addr
= ADDR_UNSET
,
1292 .tda9887_conf
= TDA9887_PRESENT
,
1294 .type
= CX88_VMUX_TELEVISION
,
1296 .gpio0
= 0x00017300,
1297 .gpio1
= 0x00008207,
1298 .gpio2
= 0x00000000,
1299 .gpio3
= 0x02000000,
1301 .type
= CX88_VMUX_TELEVISION
,
1303 .gpio0
= 0x00018300,
1304 .gpio1
= 0x0000f207,
1305 .gpio2
= 0x00017304,
1306 .gpio3
= 0x02000000,
1308 .type
= CX88_VMUX_COMPOSITE1
,
1310 .gpio0
= 0x00018301,
1311 .gpio1
= 0x0000f207,
1312 .gpio2
= 0x00017304,
1313 .gpio3
= 0x02000000,
1315 .type
= CX88_VMUX_SVIDEO
,
1317 .gpio0
= 0x00018301,
1318 .gpio1
= 0x0000f207,
1319 .gpio2
= 0x00017304,
1320 .gpio3
= 0x02000000,
1324 .gpio0
= 0x00015702,
1325 .gpio1
= 0x0000f207,
1326 .gpio2
= 0x00015702,
1327 .gpio3
= 0x02000000,
1329 .mpeg
= CX88_MPEG_DVB
,
1331 [CX88_BOARD_GENIATECH_DVBS
] = {
1332 .name
= "Geniatech DVB-S",
1333 .tuner_type
= TUNER_ABSENT
,
1334 .radio_type
= UNSET
,
1335 .tuner_addr
= ADDR_UNSET
,
1336 .radio_addr
= ADDR_UNSET
,
1338 .type
= CX88_VMUX_DVB
,
1341 .type
= CX88_VMUX_COMPOSITE1
,
1344 .mpeg
= CX88_MPEG_DVB
,
1346 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1347 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1348 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1349 .radio_type
= UNSET
,
1350 .tuner_addr
= ADDR_UNSET
,
1351 .radio_addr
= ADDR_UNSET
,
1352 .tda9887_conf
= TDA9887_PRESENT
,
1353 .audio_chip
= V4L2_IDENT_WM8775
,
1355 .type
= CX88_VMUX_TELEVISION
,
1358 /* 1: TV Audio / FM Mono */
1361 .type
= CX88_VMUX_COMPOSITE1
,
1367 .type
= CX88_VMUX_SVIDEO
,
1376 /* 4: FM Stereo (untested) */
1379 .mpeg
= CX88_MPEG_DVB
,
1382 [CX88_BOARD_NORWOOD_MICRO
] = {
1383 .name
= "Norwood Micro TV Tuner",
1384 .tuner_type
= TUNER_TNF_5335MF
,
1385 .radio_type
= UNSET
,
1386 .tuner_addr
= ADDR_UNSET
,
1387 .radio_addr
= ADDR_UNSET
,
1389 .type
= CX88_VMUX_TELEVISION
,
1393 .type
= CX88_VMUX_COMPOSITE1
,
1397 .type
= CX88_VMUX_SVIDEO
,
1402 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1403 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1404 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1405 .radio_type
= UNSET
,
1406 .tuner_addr
= ADDR_UNSET
,
1407 .radio_addr
= ADDR_UNSET
,
1409 .type
= CX88_VMUX_TELEVISION
,
1411 .gpio0
= 0x003fffff,
1412 .gpio1
= 0x00e00000,
1413 .gpio2
= 0x003fffff,
1414 .gpio3
= 0x02000000,
1416 .type
= CX88_VMUX_COMPOSITE1
,
1418 .gpio0
= 0x003fffff,
1419 .gpio1
= 0x00e00000,
1420 .gpio2
= 0x003fffff,
1421 .gpio3
= 0x02000000,
1423 .type
= CX88_VMUX_SVIDEO
,
1425 .gpio0
= 0x003fffff,
1426 .gpio1
= 0x00e00000,
1427 .gpio2
= 0x003fffff,
1428 .gpio3
= 0x02000000,
1431 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1432 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1433 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1434 .radio_type
= UNSET
,
1435 .tuner_addr
= ADDR_UNSET
,
1436 .radio_addr
= ADDR_UNSET
,
1437 .tda9887_conf
= TDA9887_PRESENT
,
1438 .audio_chip
= V4L2_IDENT_WM8775
,
1440 * gpio0 as reported by Mike Crash <mike AT mikecrash.com>
1443 .type
= CX88_VMUX_TELEVISION
,
1446 /* 1: TV Audio / FM Mono */
1449 .type
= CX88_VMUX_COMPOSITE1
,
1455 .type
= CX88_VMUX_SVIDEO
,
1461 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1465 /* 4: FM Stereo (untested) */
1469 [CX88_BOARD_ADSTECH_PTV_390
] = {
1470 .name
= "ADS Tech Instant Video PCI",
1471 .tuner_type
= TUNER_ABSENT
,
1472 .radio_type
= UNSET
,
1473 .tuner_addr
= ADDR_UNSET
,
1474 .radio_addr
= ADDR_UNSET
,
1476 .type
= CX88_VMUX_DEBUG
,
1480 .type
= CX88_VMUX_COMPOSITE1
,
1484 .type
= CX88_VMUX_SVIDEO
,
1489 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1490 .name
= "Pinnacle PCTV HD 800i",
1491 .tuner_type
= TUNER_XC5000
,
1492 .radio_type
= UNSET
,
1493 .tuner_addr
= ADDR_UNSET
,
1494 .radio_addr
= ADDR_UNSET
,
1496 .type
= CX88_VMUX_TELEVISION
,
1501 .type
= CX88_VMUX_COMPOSITE1
,
1507 .type
= CX88_VMUX_SVIDEO
,
1513 .mpeg
= CX88_MPEG_DVB
,
1515 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1516 .name
= "DViCO FusionHDTV 5 PCI nano",
1517 /* xc3008 tuner, digital only for now */
1518 .tuner_type
= TUNER_ABSENT
,
1519 .radio_type
= UNSET
,
1520 .tuner_addr
= ADDR_UNSET
,
1521 .radio_addr
= ADDR_UNSET
,
1523 .type
= CX88_VMUX_TELEVISION
,
1525 .gpio0
= 0x000027df, /* Unconfirmed */
1527 .type
= CX88_VMUX_COMPOSITE1
,
1529 .gpio0
= 0x000027df, /* Unconfirmed */
1532 .type
= CX88_VMUX_SVIDEO
,
1534 .gpio0
= 0x000027df, /* Unconfirmed */
1537 .mpeg
= CX88_MPEG_DVB
,
1539 [CX88_BOARD_PINNACLE_HYBRID_PCTV
] = {
1540 .name
= "Pinnacle Hybrid PCTV",
1541 .tuner_type
= TUNER_XC2028
,
1543 .radio_type
= TUNER_XC2028
,
1546 .type
= CX88_VMUX_TELEVISION
,
1552 .type
= CX88_VMUX_COMPOSITE1
,
1558 .type
= CX88_VMUX_SVIDEO
,
1570 .mpeg
= CX88_MPEG_DVB
,
1572 /* Terry Wu <terrywu2009@gmail.com> */
1573 /* TV Audio : set GPIO 2, 18, 19 value to 0, 1, 0 */
1574 /* FM Audio : set GPIO 2, 18, 19 value to 0, 0, 0 */
1575 /* Line-in Audio : set GPIO 2, 18, 19 value to 0, 1, 1 */
1576 /* Mute Audio : set GPIO 2 value to 1 */
1577 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
] = {
1578 .name
= "Leadtek TV2000 XP Global",
1579 .tuner_type
= TUNER_XC2028
,
1581 .radio_type
= TUNER_XC2028
,
1584 .type
= CX88_VMUX_TELEVISION
,
1586 .gpio0
= 0x0400, /* pin 2 = 0 */
1588 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1591 .type
= CX88_VMUX_COMPOSITE1
,
1593 .gpio0
= 0x0400, /* pin 2 = 0 */
1595 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1598 .type
= CX88_VMUX_SVIDEO
,
1600 .gpio0
= 0x0400, /* pin 2 = 0 */
1602 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1607 .gpio0
= 0x0400, /* pin 2 = 0 */
1609 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1613 [CX88_BOARD_POWERCOLOR_REAL_ANGEL
] = {
1614 .name
= "PowerColor RA330", /* Long names may confuse LIRC. */
1615 .tuner_type
= TUNER_XC2028
,
1618 .type
= CX88_VMUX_DEBUG
,
1619 .vmux
= 3, /* Due to the way the cx88 driver is written, */
1620 .gpio0
= 0x00ff, /* there is no way to deactivate audio pass- */
1621 .gpio1
= 0xf39d, /* through without this entry. Furthermore, if */
1622 .gpio3
= 0x0000, /* the TV mux entry is first, you get audio */
1623 }, { /* from the tuner on boot for a little while. */
1624 .type
= CX88_VMUX_TELEVISION
,
1630 .type
= CX88_VMUX_COMPOSITE1
,
1636 .type
= CX88_VMUX_SVIDEO
,
1649 [CX88_BOARD_GENIATECH_X8000_MT
] = {
1650 /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */
1651 .name
= "Geniatech X8000-MT DVBT",
1652 .tuner_type
= TUNER_XC2028
,
1655 .type
= CX88_VMUX_TELEVISION
,
1657 .gpio0
= 0x00000000,
1658 .gpio1
= 0x00e3e341,
1659 .gpio2
= 0x00000000,
1660 .gpio3
= 0x00000000,
1662 .type
= CX88_VMUX_COMPOSITE1
,
1664 .gpio0
= 0x00000000,
1665 .gpio1
= 0x00e3e361,
1666 .gpio2
= 0x00000000,
1667 .gpio3
= 0x00000000,
1669 .type
= CX88_VMUX_SVIDEO
,
1671 .gpio0
= 0x00000000,
1672 .gpio1
= 0x00e3e361,
1673 .gpio2
= 0x00000000,
1674 .gpio3
= 0x00000000,
1678 .gpio0
= 0x00000000,
1679 .gpio1
= 0x00e3e341,
1680 .gpio2
= 0x00000000,
1681 .gpio3
= 0x00000000,
1683 .mpeg
= CX88_MPEG_DVB
,
1685 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
] = {
1686 .name
= "DViCO FusionHDTV DVB-T PRO",
1687 .tuner_type
= TUNER_XC2028
,
1689 .radio_type
= UNSET
,
1690 .radio_addr
= ADDR_UNSET
,
1692 .type
= CX88_VMUX_COMPOSITE1
,
1694 .gpio0
= 0x000067df,
1696 .type
= CX88_VMUX_SVIDEO
,
1698 .gpio0
= 0x000067df,
1700 .mpeg
= CX88_MPEG_DVB
,
1702 [CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
] = {
1703 .name
= "DViCO FusionHDTV 7 Gold",
1704 .tuner_type
= TUNER_XC5000
,
1705 .radio_type
= UNSET
,
1706 .tuner_addr
= ADDR_UNSET
,
1707 .radio_addr
= ADDR_UNSET
,
1709 .type
= CX88_VMUX_TELEVISION
,
1713 .type
= CX88_VMUX_COMPOSITE1
,
1717 .type
= CX88_VMUX_SVIDEO
,
1721 .mpeg
= CX88_MPEG_DVB
,
1723 [CX88_BOARD_PROLINK_PV_8000GT
] = {
1724 .name
= "Prolink Pixelview MPEG 8000GT",
1725 .tuner_type
= TUNER_XC2028
,
1728 .type
= CX88_VMUX_TELEVISION
,
1733 .type
= CX88_VMUX_COMPOSITE1
,
1737 .type
= CX88_VMUX_SVIDEO
,
1746 [CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
] = {
1747 .name
= "Prolink Pixelview Global Extreme",
1748 .tuner_type
= TUNER_XC2028
,
1751 .type
= CX88_VMUX_TELEVISION
,
1757 .type
= CX88_VMUX_COMPOSITE1
,
1763 .type
= CX88_VMUX_SVIDEO
,
1776 /* Both radio, analog and ATSC work with this board.
1777 However, for analog to work, s5h1409 gate should be open,
1778 otherwise, tuner-xc3028 won't be detected.
1779 A proper fix require using the newer i2c methods to add
1780 tuner-xc3028 without doing an i2c probe.
1782 [CX88_BOARD_KWORLD_ATSC_120
] = {
1783 .name
= "Kworld PlusTV HD PCI 120 (ATSC 120)",
1784 .tuner_type
= TUNER_XC2028
,
1785 .radio_type
= UNSET
,
1786 .tuner_addr
= ADDR_UNSET
,
1787 .radio_addr
= ADDR_UNSET
,
1789 .type
= CX88_VMUX_TELEVISION
,
1791 .gpio0
= 0x000000ff,
1792 .gpio1
= 0x0000f35d,
1793 .gpio2
= 0x00000000,
1795 .type
= CX88_VMUX_COMPOSITE1
,
1797 .gpio0
= 0x000000ff,
1798 .gpio1
= 0x0000f37e,
1799 .gpio2
= 0x00000000,
1801 .type
= CX88_VMUX_SVIDEO
,
1803 .gpio0
= 0x000000ff,
1804 .gpio1
= 0x0000f37e,
1805 .gpio2
= 0x00000000,
1809 .gpio0
= 0x000000ff,
1810 .gpio1
= 0x0000f35d,
1811 .gpio2
= 0x00000000,
1813 .mpeg
= CX88_MPEG_DVB
,
1815 [CX88_BOARD_HAUPPAUGE_HVR4000
] = {
1816 .name
= "Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1817 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1818 .radio_type
= UNSET
,
1819 .tuner_addr
= ADDR_UNSET
,
1820 .radio_addr
= ADDR_UNSET
,
1821 .tda9887_conf
= TDA9887_PRESENT
,
1822 .audio_chip
= V4L2_IDENT_WM8775
,
1826 * Analogue SAT DVB-T
1827 * Antenna 0xc4bf 0xc4bb
1828 * Composite 0xc4bf 0xc4bb
1829 * S-Video 0xc4bf 0xc4bb
1830 * Composite1 0xc4ff 0xc4fb
1831 * S-Video1 0xc4ff 0xc4fb
1833 * BIT VALUE FUNCTION GP{x}_IO
1836 * 2 1 O:MPEG PORT 0=DVB-T 1=DVB-S
1840 * 6 0 O:INPUT SELECTOR 0=INTERNAL 1=EXPANSION
1841 * 7 1 O:DVB-T DEMOD RESET LOW
1843 * BIT VALUE FUNCTION GP{x}_OE
1855 * 1: TV Audio / FM Mono
1857 * 3: Line-In Expansion
1861 .type
= CX88_VMUX_TELEVISION
,
1864 /* 1: TV Audio / FM Mono */
1867 .type
= CX88_VMUX_COMPOSITE1
,
1873 .type
= CX88_VMUX_SVIDEO
,
1885 .mpeg
= CX88_MPEG_DVB
,
1888 [CX88_BOARD_HAUPPAUGE_HVR4000LITE
] = {
1889 .name
= "Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
1890 .tuner_type
= UNSET
,
1891 .radio_type
= UNSET
,
1892 .tuner_addr
= ADDR_UNSET
,
1893 .radio_addr
= ADDR_UNSET
,
1895 .type
= CX88_VMUX_DVB
,
1898 .mpeg
= CX88_MPEG_DVB
,
1900 [CX88_BOARD_TEVII_S420
] = {
1901 .name
= "TeVii S420 DVB-S",
1902 .tuner_type
= UNSET
,
1903 .radio_type
= UNSET
,
1904 .tuner_addr
= ADDR_UNSET
,
1905 .radio_addr
= ADDR_UNSET
,
1907 .type
= CX88_VMUX_DVB
,
1910 .mpeg
= CX88_MPEG_DVB
,
1912 [CX88_BOARD_TEVII_S460
] = {
1913 .name
= "TeVii S460 DVB-S/S2",
1914 .tuner_type
= UNSET
,
1915 .radio_type
= UNSET
,
1916 .tuner_addr
= ADDR_UNSET
,
1917 .radio_addr
= ADDR_UNSET
,
1919 .type
= CX88_VMUX_DVB
,
1922 .mpeg
= CX88_MPEG_DVB
,
1924 [CX88_BOARD_OMICOM_SS4_PCI
] = {
1925 .name
= "Omicom SS4 DVB-S/S2 PCI",
1926 .tuner_type
= UNSET
,
1927 .radio_type
= UNSET
,
1928 .tuner_addr
= ADDR_UNSET
,
1929 .radio_addr
= ADDR_UNSET
,
1931 .type
= CX88_VMUX_DVB
,
1934 .mpeg
= CX88_MPEG_DVB
,
1936 [CX88_BOARD_TBS_8910
] = {
1937 .name
= "TBS 8910 DVB-S",
1938 .tuner_type
= UNSET
,
1939 .radio_type
= UNSET
,
1940 .tuner_addr
= ADDR_UNSET
,
1941 .radio_addr
= ADDR_UNSET
,
1943 .type
= CX88_VMUX_DVB
,
1946 .mpeg
= CX88_MPEG_DVB
,
1948 [CX88_BOARD_TBS_8920
] = {
1949 .name
= "TBS 8920 DVB-S/S2",
1950 .tuner_type
= TUNER_ABSENT
,
1951 .radio_type
= UNSET
,
1952 .tuner_addr
= ADDR_UNSET
,
1953 .radio_addr
= ADDR_UNSET
,
1955 .type
= CX88_VMUX_DVB
,
1959 .mpeg
= CX88_MPEG_DVB
,
1961 [CX88_BOARD_PROF_6200
] = {
1962 .name
= "Prof 6200 DVB-S",
1963 .tuner_type
= UNSET
,
1964 .radio_type
= UNSET
,
1965 .tuner_addr
= ADDR_UNSET
,
1966 .radio_addr
= ADDR_UNSET
,
1968 .type
= CX88_VMUX_DVB
,
1971 .mpeg
= CX88_MPEG_DVB
,
1973 [CX88_BOARD_PROF_7300
] = {
1974 .name
= "PROF 7300 DVB-S/S2",
1975 .tuner_type
= UNSET
,
1976 .radio_type
= UNSET
,
1977 .tuner_addr
= ADDR_UNSET
,
1978 .radio_addr
= ADDR_UNSET
,
1980 .type
= CX88_VMUX_DVB
,
1983 .mpeg
= CX88_MPEG_DVB
,
1985 [CX88_BOARD_SATTRADE_ST4200
] = {
1986 .name
= "SATTRADE ST4200 DVB-S/S2",
1987 .tuner_type
= UNSET
,
1988 .radio_type
= UNSET
,
1989 .tuner_addr
= ADDR_UNSET
,
1990 .radio_addr
= ADDR_UNSET
,
1992 .type
= CX88_VMUX_DVB
,
1995 .mpeg
= CX88_MPEG_DVB
,
1997 [CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
] = {
1998 .name
= "Terratec Cinergy HT PCI MKII",
1999 .tuner_type
= TUNER_XC2028
,
2001 .radio_type
= TUNER_XC2028
,
2004 .type
= CX88_VMUX_TELEVISION
,
2010 .type
= CX88_VMUX_COMPOSITE1
,
2016 .type
= CX88_VMUX_SVIDEO
,
2028 .mpeg
= CX88_MPEG_DVB
,
2030 [CX88_BOARD_HAUPPAUGE_IRONLY
] = {
2031 .name
= "Hauppauge WinTV-IR Only",
2032 .tuner_type
= UNSET
,
2033 .radio_type
= UNSET
,
2034 .tuner_addr
= ADDR_UNSET
,
2035 .radio_addr
= ADDR_UNSET
,
2037 [CX88_BOARD_WINFAST_DTV1800H
] = {
2038 .name
= "Leadtek WinFast DTV1800 Hybrid",
2039 .tuner_type
= TUNER_XC2028
,
2040 .radio_type
= TUNER_XC2028
,
2046 * 2: mute (0=off,1=on)
2047 * 12: tuner reset pin
2048 * 13: audio source (0=tuner audio,1=line in)
2049 * 14: FM (0=on,1=off ???)
2052 .type
= CX88_VMUX_TELEVISION
,
2054 .gpio0
= 0x0400, /* pin 2 = 0 */
2055 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2058 .type
= CX88_VMUX_COMPOSITE1
,
2060 .gpio0
= 0x0400, /* pin 2 = 0 */
2061 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2064 .type
= CX88_VMUX_SVIDEO
,
2066 .gpio0
= 0x0400, /* pin 2 = 0 */
2067 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2072 .gpio0
= 0x0400, /* pin 2 = 0 */
2073 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2076 .mpeg
= CX88_MPEG_DVB
,
2080 /* ------------------------------------------------------------------ */
2081 /* PCI subsystem IDs */
2083 static const struct cx88_subid cx88_subids
[] = {
2085 .subvendor
= 0x0070,
2086 .subdevice
= 0x3400,
2087 .card
= CX88_BOARD_HAUPPAUGE
,
2089 .subvendor
= 0x0070,
2090 .subdevice
= 0x3401,
2091 .card
= CX88_BOARD_HAUPPAUGE
,
2093 .subvendor
= 0x14c7,
2094 .subdevice
= 0x0106,
2095 .card
= CX88_BOARD_GDI
,
2097 .subvendor
= 0x14c7,
2098 .subdevice
= 0x0107, /* with mpeg encoder */
2099 .card
= CX88_BOARD_GDI
,
2101 .subvendor
= PCI_VENDOR_ID_ATI
,
2102 .subdevice
= 0x00f8,
2103 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2105 .subvendor
= PCI_VENDOR_ID_ATI
,
2106 .subdevice
= 0x00f9,
2107 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2109 .subvendor
= 0x107d,
2110 .subdevice
= 0x6611,
2111 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2113 .subvendor
= 0x107d,
2114 .subdevice
= 0x6613, /* NTSC */
2115 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2117 .subvendor
= 0x107d,
2118 .subdevice
= 0x6620,
2119 .card
= CX88_BOARD_WINFAST_DV2000
,
2121 .subvendor
= 0x107d,
2122 .subdevice
= 0x663b,
2123 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2125 .subvendor
= 0x107d,
2126 .subdevice
= 0x663c,
2127 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2129 .subvendor
= 0x1461,
2130 .subdevice
= 0x000b,
2131 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
2133 .subvendor
= 0x1462,
2134 .subdevice
= 0x8606,
2135 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
2137 .subvendor
= 0x10fc,
2138 .subdevice
= 0xd003,
2139 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
2141 .subvendor
= 0x1043,
2142 .subdevice
= 0x4823, /* with mpeg encoder */
2143 .card
= CX88_BOARD_ASUS_PVR_416
,
2145 .subvendor
= 0x17de,
2146 .subdevice
= 0x08a6,
2147 .card
= CX88_BOARD_KWORLD_DVB_T
,
2149 .subvendor
= 0x18ac,
2150 .subdevice
= 0xd810,
2151 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2153 .subvendor
= 0x18ac,
2154 .subdevice
= 0xd820,
2155 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
2157 .subvendor
= 0x18ac,
2158 .subdevice
= 0xdb00,
2159 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
2161 .subvendor
= 0x0070,
2162 .subdevice
= 0x9002,
2163 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2165 .subvendor
= 0x14f1,
2166 .subdevice
= 0x0187,
2167 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
2169 .subvendor
= 0x1540,
2170 .subdevice
= 0x2580,
2171 .card
= CX88_BOARD_PROVIDEO_PV259
,
2173 .subvendor
= 0x18ac,
2174 .subdevice
= 0xdb10,
2175 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2177 .subvendor
= 0x1554,
2178 .subdevice
= 0x4811,
2179 .card
= CX88_BOARD_PIXELVIEW
,
2181 .subvendor
= 0x7063,
2182 .subdevice
= 0x3000, /* HD-3000 card */
2183 .card
= CX88_BOARD_PCHDTV_HD3000
,
2185 .subvendor
= 0x17de,
2186 .subdevice
= 0xa8a6,
2187 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
2189 .subvendor
= 0x0070,
2190 .subdevice
= 0x2801,
2191 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
2193 .subvendor
= 0x14f1,
2194 .subdevice
= 0x0342,
2195 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
2197 .subvendor
= 0x10fc,
2198 .subdevice
= 0xd035,
2199 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
2201 .subvendor
= 0x1421,
2202 .subdevice
= 0x0334,
2203 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
2205 .subvendor
= 0x153b,
2206 .subdevice
= 0x1166,
2207 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
2209 .subvendor
= 0x18ac,
2210 .subdevice
= 0xd500,
2211 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
2213 .subvendor
= 0x1461,
2214 .subdevice
= 0x8011,
2215 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
2217 .subvendor
= PCI_VENDOR_ID_ATI
,
2218 .subdevice
= 0xa101,
2219 .card
= CX88_BOARD_ATI_HDTVWONDER
,
2221 .subvendor
= 0x107d,
2222 .subdevice
= 0x665f,
2223 .card
= CX88_BOARD_WINFAST_DTV1000
,
2225 .subvendor
= 0x1461,
2226 .subdevice
= 0x000a,
2227 .card
= CX88_BOARD_AVERTV_303
,
2229 .subvendor
= 0x0070,
2230 .subdevice
= 0x9200,
2231 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
2233 .subvendor
= 0x0070,
2234 .subdevice
= 0x9201,
2235 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2237 .subvendor
= 0x0070,
2238 .subdevice
= 0x9202,
2239 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2241 .subvendor
= 0x17de,
2242 .subdevice
= 0x08b2,
2243 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2245 .subvendor
= 0x0070,
2246 .subdevice
= 0x9400,
2247 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2249 .subvendor
= 0x0070,
2250 .subdevice
= 0x9402,
2251 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2253 .subvendor
= 0x0070,
2254 .subdevice
= 0x9800,
2255 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2257 .subvendor
= 0x0070,
2258 .subdevice
= 0x9802,
2259 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2261 .subvendor
= 0x0070,
2262 .subdevice
= 0x9001,
2263 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2265 .subvendor
= 0x1822,
2266 .subdevice
= 0x0025,
2267 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2269 .subvendor
= 0x17de,
2270 .subdevice
= 0x08a1,
2271 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2273 .subvendor
= 0x18ac,
2274 .subdevice
= 0xdb50,
2275 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2277 .subvendor
= 0x18ac,
2278 .subdevice
= 0xdb54,
2279 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2280 /* Re-branded DViCO: DigitalNow DVB-T Dual */
2282 .subvendor
= 0x18ac,
2283 .subdevice
= 0xdb11,
2284 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2285 /* Re-branded DViCO: UltraView DVB-T Plus */
2287 .subvendor
= 0x18ac,
2288 .subdevice
= 0xdb30,
2289 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
,
2291 .subvendor
= 0x17de,
2292 .subdevice
= 0x0840,
2293 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2295 .subvendor
= 0x1421,
2296 .subdevice
= 0x0305,
2297 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2299 .subvendor
= 0x18ac,
2300 .subdevice
= 0xdb40,
2301 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2303 .subvendor
= 0x18ac,
2304 .subdevice
= 0xdb44,
2305 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2307 .subvendor
= 0x7063,
2308 .subdevice
= 0x5500,
2309 .card
= CX88_BOARD_PCHDTV_HD5500
,
2311 .subvendor
= 0x17de,
2312 .subdevice
= 0x0841,
2313 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
2315 .subvendor
= 0x1822,
2316 .subdevice
= 0x0019,
2317 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2319 .subvendor
= 0x1554,
2320 .subdevice
= 0x4813,
2321 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
2323 .subvendor
= 0x14f1,
2324 .subdevice
= 0x0842,
2325 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
2327 .subvendor
= 0x107d,
2328 .subdevice
= 0x665e,
2329 .card
= CX88_BOARD_WINFAST_DTV2000H
,
2331 .subvendor
= 0x107d,
2332 .subdevice
= 0x6f2b,
2333 .card
= CX88_BOARD_WINFAST_DTV2000H_J
,
2335 .subvendor
= 0x18ac,
2336 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
2337 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2339 .subvendor
= 0x14f1,
2340 .subdevice
= 0x0084,
2341 .card
= CX88_BOARD_GENIATECH_DVBS
,
2343 .subvendor
= 0x0070,
2344 .subdevice
= 0x1404,
2345 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2347 .subvendor
= 0x1461,
2348 .subdevice
= 0xc111, /* AverMedia M150-D */
2349 /* This board is known to work with the ASUS PVR416 config */
2350 .card
= CX88_BOARD_ASUS_PVR_416
,
2352 .subvendor
= 0xc180,
2353 .subdevice
= 0xc980,
2354 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
2356 .subvendor
= 0x0070,
2357 .subdevice
= 0x9600,
2358 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2360 .subvendor
= 0x0070,
2361 .subdevice
= 0x9601,
2362 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2364 .subvendor
= 0x0070,
2365 .subdevice
= 0x9602,
2366 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2368 .subvendor
= 0x107d,
2369 .subdevice
= 0x6632,
2370 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2372 .subvendor
= 0x12ab,
2373 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
2374 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2376 .subvendor
= 0x0070,
2377 .subdevice
= 0x9000,
2378 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2380 .subvendor
= 0x0070,
2381 .subdevice
= 0x1400,
2382 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2384 .subvendor
= 0x0070,
2385 .subdevice
= 0x1401,
2386 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2388 .subvendor
= 0x0070,
2389 .subdevice
= 0x1402,
2390 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2392 .subvendor
= 0x1421,
2393 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
2394 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2396 .subvendor
= 0x1421,
2397 .subdevice
= 0x0390,
2398 .card
= CX88_BOARD_ADSTECH_PTV_390
,
2400 .subvendor
= 0x11bd,
2401 .subdevice
= 0x0051,
2402 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
2404 .subvendor
= 0x18ac,
2405 .subdevice
= 0xd530,
2406 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
2408 .subvendor
= 0x12ab,
2409 .subdevice
= 0x1788,
2410 .card
= CX88_BOARD_PINNACLE_HYBRID_PCTV
,
2412 .subvendor
= 0x14f1,
2413 .subdevice
= 0xea3d,
2414 .card
= CX88_BOARD_POWERCOLOR_REAL_ANGEL
,
2416 .subvendor
= 0x107d,
2417 .subdevice
= 0x6f18,
2418 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2420 .subvendor
= 0x14f1,
2421 .subdevice
= 0x8852,
2422 .card
= CX88_BOARD_GENIATECH_X8000_MT
,
2424 .subvendor
= 0x18ac,
2425 .subdevice
= 0xd610,
2426 .card
= CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
,
2428 .subvendor
= 0x1554,
2429 .subdevice
= 0x4935,
2430 .card
= CX88_BOARD_PROLINK_PV_8000GT
,
2432 .subvendor
= 0x1554,
2433 .subdevice
= 0x4976,
2434 .card
= CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
,
2436 .subvendor
= 0x17de,
2437 .subdevice
= 0x08c1,
2438 .card
= CX88_BOARD_KWORLD_ATSC_120
,
2440 .subvendor
= 0x0070,
2441 .subdevice
= 0x6900,
2442 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2444 .subvendor
= 0x0070,
2445 .subdevice
= 0x6904,
2446 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2448 .subvendor
= 0x0070,
2449 .subdevice
= 0x6902,
2450 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2452 .subvendor
= 0x0070,
2453 .subdevice
= 0x6905,
2454 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2456 .subvendor
= 0x0070,
2457 .subdevice
= 0x6906,
2458 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2460 .subvendor
= 0xd420,
2461 .subdevice
= 0x9022,
2462 .card
= CX88_BOARD_TEVII_S420
,
2464 .subvendor
= 0xd460,
2465 .subdevice
= 0x9022,
2466 .card
= CX88_BOARD_TEVII_S460
,
2468 .subvendor
= 0xA044,
2469 .subdevice
= 0x2011,
2470 .card
= CX88_BOARD_OMICOM_SS4_PCI
,
2472 .subvendor
= 0x8910,
2473 .subdevice
= 0x8888,
2474 .card
= CX88_BOARD_TBS_8910
,
2476 .subvendor
= 0x8920,
2477 .subdevice
= 0x8888,
2478 .card
= CX88_BOARD_TBS_8920
,
2480 .subvendor
= 0xb022,
2481 .subdevice
= 0x3022,
2482 .card
= CX88_BOARD_PROF_6200
,
2484 .subvendor
= 0xB033,
2485 .subdevice
= 0x3033,
2486 .card
= CX88_BOARD_PROF_7300
,
2488 .subvendor
= 0xb200,
2489 .subdevice
= 0x4200,
2490 .card
= CX88_BOARD_SATTRADE_ST4200
,
2492 .subvendor
= 0x153b,
2493 .subdevice
= 0x1177,
2494 .card
= CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
,
2496 .subvendor
= 0x0070,
2497 .subdevice
= 0x9290,
2498 .card
= CX88_BOARD_HAUPPAUGE_IRONLY
,
2500 .subvendor
= 0x107d,
2501 .subdevice
= 0x6654,
2502 .card
= CX88_BOARD_WINFAST_DTV1800H
,
2504 /* PVR2000 PAL Model [107d:6630] */
2505 .subvendor
= 0x107d,
2506 .subdevice
= 0x6630,
2507 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2509 /* PVR2000 PAL Model [107d:6638] */
2510 .subvendor
= 0x107d,
2511 .subdevice
= 0x6638,
2512 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2514 /* PVR2000 NTSC Model [107d:6631] */
2515 .subvendor
= 0x107d,
2516 .subdevice
= 0x6631,
2517 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2519 /* PVR2000 NTSC Model [107d:6637] */
2520 .subvendor
= 0x107d,
2521 .subdevice
= 0x6637,
2522 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2524 /* PVR2000 NTSC Model [107d:663d] */
2525 .subvendor
= 0x107d,
2526 .subdevice
= 0x663d,
2527 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2529 /* DV2000 NTSC Model [107d:6621] */
2530 .subvendor
= 0x107d,
2531 .subdevice
= 0x6621,
2532 .card
= CX88_BOARD_WINFAST_DV2000
,
2534 /* TV2000 XP Global [107d:6618] */
2535 .subvendor
= 0x107d,
2536 .subdevice
= 0x6618,
2537 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2541 /* ----------------------------------------------------------------------- */
2542 /* some leadtek specific stuff */
2544 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2546 if (eeprom_data
[4] != 0x7d ||
2547 eeprom_data
[5] != 0x10 ||
2548 eeprom_data
[7] != 0x66) {
2549 warn_printk(core
, "Leadtek eeprom invalid.\n");
2553 /* Terry Wu <terrywu2009@gmail.com> */
2554 switch (eeprom_data
[6]) {
2555 case 0x13: /* SSID 6613 for TV2000 XP Expert NTSC Model */
2556 case 0x21: /* SSID 6621 for DV2000 NTSC Model */
2557 case 0x31: /* SSID 6631 for PVR2000 NTSC Model */
2558 case 0x37: /* SSID 6637 for PVR2000 NTSC Model */
2559 case 0x3d: /* SSID 6637 for PVR2000 NTSC Model */
2560 core
->board
.tuner_type
= TUNER_PHILIPS_FM1236_MK3
;
2563 core
->board
.tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
;
2567 info_printk(core
, "Leadtek Winfast 2000XP Expert config: "
2568 "tuner=%d, eeprom[0]=0x%02x\n",
2569 core
->board
.tuner_type
, eeprom_data
[0]);
2572 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2576 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
2577 core
->board
.tuner_type
= tv
.tuner_type
;
2578 core
->tuner_formats
= tv
.tuner_formats
;
2579 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
2581 /* Make sure we support the board model */
2584 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
2585 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
2586 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
2587 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
2588 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
2589 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
2590 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
2591 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
2592 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
2593 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
2594 case 34519: /* WinTV-PCI-FM */
2596 /* WinTV-HVR4000 (DVBS/S2/T, Video and IR, back panel inputs) */
2597 case 69100: /* WinTV-HVR4000LITE (DVBS/S2, IR) */
2598 case 69500: /* WinTV-HVR4000LITE (DVBS/S2, No IR) */
2600 /* WinTV-HVR4000 (DVBS/S2/T, Video no IR, back panel inputs) */
2601 case 69569: /* WinTV-HVR4000 (DVBS/S2/T, Video no IR) */
2602 case 90002: /* Nova-T-PCI (9002) */
2603 case 92001: /* Nova-S-Plus (Video and IR) */
2604 case 92002: /* Nova-S-Plus (Video and IR) */
2605 case 90003: /* Nova-T-PCI (9002 No RF out) */
2606 case 90500: /* Nova-T-PCI (oem) */
2607 case 90501: /* Nova-T-PCI (oem/IR) */
2608 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
2609 case 92900: /* WinTV-IROnly (No analog or digital Video inputs) */
2610 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
2611 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
2612 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
2613 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
2614 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
2615 case 96569: /* WinTV-HVR1300 () */
2616 case 96659: /* WinTV-HVR1300 () */
2617 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
2621 warn_printk(core
, "warning: unknown hauppauge model #%d\n",
2626 info_printk(core
, "hauppauge eeprom: model=%d\n", tv
.model
);
2629 /* ----------------------------------------------------------------------- */
2630 /* some GDI (was: Modular Technology) specific stuff */
2637 [ 0x01 ] = { .id
= TUNER_ABSENT
,
2639 [ 0x02 ] = { .id
= TUNER_ABSENT
,
2641 [ 0x03 ] = { .id
= TUNER_ABSENT
,
2643 [ 0x04 ] = { .id
= TUNER_ABSENT
,
2645 [ 0x05 ] = { .id
= TUNER_ABSENT
,
2648 [ 0x10 ] = { .id
= TUNER_ABSENT
,
2650 .name
= "TEMIC_4049" },
2651 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
2652 .name
= "TEMIC_4136" },
2653 [ 0x12 ] = { .id
= TUNER_ABSENT
,
2654 .name
= "TEMIC_4146" },
2656 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
2658 .name
= "PHILIPS_FQ1216_MK3" },
2659 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
2660 .name
= "PHILIPS_FQ1236_MK3" },
2661 [ 0x22 ] = { .id
= TUNER_ABSENT
,
2662 .name
= "PHILIPS_FI1236_MK3" },
2663 [ 0x23 ] = { .id
= TUNER_ABSENT
,
2664 .name
= "PHILIPS_FI1216_MK3" },
2667 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2669 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
2670 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
2672 info_printk(core
, "GDI: tuner=%s\n", name
? name
: "unknown");
2675 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
2676 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
2680 /* ------------------------------------------------------------------- */
2681 /* some Divco specific stuff */
2682 static int cx88_dvico_xc2028_callback(struct cx88_core
*core
,
2683 int command
, int arg
)
2686 case XC2028_TUNER_RESET
:
2687 switch (core
->boardnr
) {
2688 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2689 /* GPIO-4 xc3028 tuner */
2691 cx_set(MO_GP0_IO
, 0x00001000);
2692 cx_clear(MO_GP0_IO
, 0x00000010);
2694 cx_set(MO_GP0_IO
, 0x00000010);
2698 cx_write(MO_GP0_IO
, 0x101000);
2700 cx_set(MO_GP0_IO
, 0x101010);
2711 /* ----------------------------------------------------------------------- */
2712 /* some Geniatech specific stuff */
2714 static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core
*core
,
2715 int command
, int mode
)
2718 case XC2028_TUNER_RESET
:
2719 switch (INPUT(core
->input
).type
) {
2723 cx_write(MO_GP1_IO
, 0x030302);
2727 cx_write(MO_GP1_IO
, 0x030301);
2730 cx_write(MO_GP1_IO
, 0x101010);
2732 cx_write(MO_GP1_IO
, 0x101000);
2734 cx_write(MO_GP1_IO
, 0x101010);
2741 static int cx88_xc3028_winfast1800h_callback(struct cx88_core
*core
,
2742 int command
, int arg
)
2745 case XC2028_TUNER_RESET
:
2746 /* GPIO 12 (xc3028 tuner reset) */
2747 cx_set(MO_GP1_IO
, 0x1010);
2749 cx_clear(MO_GP1_IO
, 0x10);
2751 cx_set(MO_GP1_IO
, 0x10);
2758 /* ------------------------------------------------------------------- */
2759 /* some Divco specific stuff */
2760 static int cx88_pv_8000gt_callback(struct cx88_core
*core
,
2761 int command
, int arg
)
2764 case XC2028_TUNER_RESET
:
2765 cx_write(MO_GP2_IO
, 0xcf7);
2767 cx_write(MO_GP2_IO
, 0xef5);
2769 cx_write(MO_GP2_IO
, 0xcf7);
2778 /* ----------------------------------------------------------------------- */
2779 /* some DViCO specific stuff */
2781 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
2783 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
2785 static u8 init_bufs
[13][5] = {
2786 { 0x10, 0x00, 0x20, 0x01, 0x03 },
2787 { 0x10, 0x10, 0x01, 0x00, 0x21 },
2788 { 0x10, 0x10, 0x10, 0x00, 0xCA },
2789 { 0x10, 0x10, 0x12, 0x00, 0x08 },
2790 { 0x10, 0x10, 0x13, 0x00, 0x0A },
2791 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
2792 { 0x10, 0x10, 0x22, 0x01, 0x3D },
2793 { 0x10, 0x10, 0x73, 0x01, 0x2E },
2794 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
2795 { 0x10, 0x10, 0x71, 0x01, 0x97 },
2796 { 0x10, 0x10, 0x70, 0x00, 0x0F },
2797 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
2801 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
2802 msg
.buf
= init_bufs
[i
];
2803 msg
.len
= (i
!= 12 ? 5 : 2);
2804 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
2806 warn_printk(core
, "dvico_fusionhdtv_hybrid_init buf %d "
2807 "failed (err = %d)!\n", i
, err
);
2813 static int cx88_xc2028_tuner_callback(struct cx88_core
*core
,
2814 int command
, int arg
)
2816 /* Board-specific callbacks */
2817 switch (core
->boardnr
) {
2818 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
2819 case CX88_BOARD_GENIATECH_X8000_MT
:
2820 case CX88_BOARD_KWORLD_ATSC_120
:
2821 return cx88_xc3028_geniatech_tuner_callback(core
,
2823 case CX88_BOARD_PROLINK_PV_8000GT
:
2824 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
2825 return cx88_pv_8000gt_callback(core
, command
, arg
);
2826 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
2827 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2828 return cx88_dvico_xc2028_callback(core
, command
, arg
);
2829 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
2830 case CX88_BOARD_WINFAST_DTV1800H
:
2831 return cx88_xc3028_winfast1800h_callback(core
, command
, arg
);
2835 case XC2028_TUNER_RESET
:
2836 switch (INPUT(core
->input
).type
) {
2838 info_printk(core
, "setting GPIO to radio!\n");
2839 cx_write(MO_GP0_IO
, 0x4ff);
2841 cx_write(MO_GP2_IO
, 0xff);
2844 case CX88_VMUX_DVB
: /* Digital TV*/
2845 default: /* Analog TV */
2846 info_printk(core
, "setting GPIO to TV!\n");
2849 cx_write(MO_GP1_IO
, 0x101010);
2851 cx_write(MO_GP1_IO
, 0x101000);
2853 cx_write(MO_GP1_IO
, 0x101010);
2860 /* ----------------------------------------------------------------------- */
2861 /* Tuner callback function. Currently only needed for the Pinnacle *
2862 * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both *
2863 * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */
2865 static int cx88_xc5000_tuner_callback(struct cx88_core
*core
,
2866 int command
, int arg
)
2868 switch (core
->boardnr
) {
2869 case CX88_BOARD_PINNACLE_PCTV_HD_800i
:
2870 if (command
== 0) { /* This is the reset command from xc5000 */
2872 /* djh - According to the engineer at PCTV Systems,
2873 the xc5000 reset pin is supposed to be on GPIO12.
2874 However, despite three nights of effort, pulling
2875 that GPIO low didn't reset the xc5000. While
2876 pulling MO_SRST_IO low does reset the xc5000, this
2877 also resets in the s5h1409 being reset as well.
2878 This causes tuning to always fail since the internal
2879 state of the s5h1409 does not match the driver's
2880 state. Given that the only two conditions in which
2881 the driver performs a reset is during firmware load
2882 and powering down the chip, I am taking out the
2883 reset. We know that the chip is being reset
2884 when the cx88 comes online, and not being able to
2885 do power management for this board is worse than
2886 not having any tuning at all. */
2889 err_printk(core
, "xc5000: unknown tuner "
2890 "callback command.\n");
2894 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
2895 if (command
== 0) { /* This is the reset command from xc5000 */
2896 cx_clear(MO_GP0_IO
, 0x00000010);
2898 cx_set(MO_GP0_IO
, 0x00000010);
2902 "xc5000: unknown tuner callback command.\n");
2907 return 0; /* Should never be here */
2910 int cx88_tuner_callback(void *priv
, int component
, int command
, int arg
)
2912 struct i2c_algo_bit_data
*i2c_algo
= priv
;
2913 struct cx88_core
*core
;
2916 printk(KERN_ERR
"cx88: Error - i2c private data undefined.\n");
2920 core
= i2c_algo
->data
;
2923 printk(KERN_ERR
"cx88: Error - device struct undefined.\n");
2927 if (component
!= DVB_FRONTEND_COMPONENT_TUNER
)
2930 switch (core
->board
.tuner_type
) {
2932 info_printk(core
, "Calling XC2028/3028 callback\n");
2933 return cx88_xc2028_tuner_callback(core
, command
, arg
);
2935 info_printk(core
, "Calling XC5000 callback\n");
2936 return cx88_xc5000_tuner_callback(core
, command
, arg
);
2938 err_printk(core
, "Error: Calling callback for tuner %d\n",
2939 core
->board
.tuner_type
);
2942 EXPORT_SYMBOL(cx88_tuner_callback
);
2944 /* ----------------------------------------------------------------------- */
2946 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
2950 if (0 == pci
->subsystem_vendor
&&
2951 0 == pci
->subsystem_device
) {
2953 "%s: Your board has no valid PCI Subsystem ID and thus can't\n"
2954 "%s: be autodetected. Please pass card=<n> insmod option to\n"
2955 "%s: workaround that. Redirect complaints to the vendor of\n"
2956 "%s: the TV card. Best regards,\n"
2958 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
2961 "%s: Your board isn't known (yet) to the driver. You can\n"
2962 "%s: try to pick one of the existing card configs via\n"
2963 "%s: card=<n> insmod option. Updating to the latest\n"
2964 "%s: version might help as well.\n",
2965 core
->name
,core
->name
,core
->name
,core
->name
);
2967 err_printk(core
, "Here is a list of valid choices for the card=<n> "
2968 "insmod option:\n");
2969 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
2970 printk(KERN_ERR
"%s: card=%d -> %s\n",
2971 core
->name
, i
, cx88_boards
[i
].name
);
2974 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
2976 switch (core
->boardnr
) {
2977 case CX88_BOARD_HAUPPAUGE_HVR1300
:
2979 * Bring the 702 demod up before i2c scanning/attach or devices are hidden
2980 * We leave here with the 702 on the bus
2982 * "reset the IR receiver on GPIO[3]"
2983 * Reported by Mike Crash <mike AT mikecrash.com>
2985 cx_write(MO_GP0_IO
, 0x0000ef88);
2987 cx_clear(MO_GP0_IO
, 0x00000088);
2989 cx_set(MO_GP0_IO
, 0x00000088); /* 702 out of reset */
2993 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
2994 case CX88_BOARD_PROLINK_PV_8000GT
:
2995 cx_write(MO_GP2_IO
, 0xcf7);
2997 cx_write(MO_GP2_IO
, 0xef5);
2999 cx_write(MO_GP2_IO
, 0xcf7);
3003 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3004 /* Enable the xc5000 tuner */
3005 cx_set(MO_GP0_IO
, 0x00001010);
3008 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3009 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3011 cx_write(MO_GP0_IO
, core
->board
.input
[0].gpio0
);
3013 cx_clear(MO_GP0_IO
, 0x00000080);
3015 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
3019 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3020 case CX88_BOARD_WINFAST_DTV1800H
:
3021 /* GPIO 12 (xc3028 tuner reset) */
3022 cx_set(MO_GP1_IO
, 0x1010);
3024 cx_clear(MO_GP1_IO
, 0x10);
3026 cx_set(MO_GP1_IO
, 0x10);
3033 * Sets board-dependent xc3028 configuration
3035 void cx88_setup_xc3028(struct cx88_core
*core
, struct xc2028_ctrl
*ctl
)
3037 memset(ctl
, 0, sizeof(*ctl
));
3039 ctl
->fname
= XC2028_DEFAULT_FIRMWARE
;
3042 switch (core
->boardnr
) {
3043 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3044 /* Now works with firmware version 2.7 */
3045 if (core
->i2c_algo
.udelay
< 16)
3046 core
->i2c_algo
.udelay
= 16;
3048 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3049 case CX88_BOARD_WINFAST_DTV1800H
:
3050 ctl
->demod
= XC3028_FE_ZARLINK456
;
3052 case CX88_BOARD_KWORLD_ATSC_120
:
3053 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3054 ctl
->demod
= XC3028_FE_OREN538
;
3056 case CX88_BOARD_GENIATECH_X8000_MT
:
3057 /* FIXME: For this board, the xc3028 never recovers after being
3058 powered down (the reset GPIO probably is not set properly).
3059 We don't have access to the hardware so we cannot determine
3060 which GPIO is used for xc3028, so just disable power xc3028
3061 power management for now */
3062 ctl
->disable_power_mgmt
= 1;
3064 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3065 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3066 case CX88_BOARD_PROLINK_PV_8000GT
:
3068 * Those boards uses non-MTS firmware
3071 case CX88_BOARD_PINNACLE_HYBRID_PCTV
:
3072 case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
:
3073 ctl
->demod
= XC3028_FE_ZARLINK456
;
3077 ctl
->demod
= XC3028_FE_OREN538
;
3081 EXPORT_SYMBOL_GPL(cx88_setup_xc3028
);
3083 static void cx88_card_setup(struct cx88_core
*core
)
3085 static u8 eeprom
[256];
3086 struct tuner_setup tun_setup
;
3087 unsigned int mode_mask
= T_RADIO
|
3091 memset(&tun_setup
, 0, sizeof(tun_setup
));
3093 if (0 == core
->i2c_rc
) {
3094 core
->i2c_client
.addr
= 0xa0 >> 1;
3095 tveeprom_read(&core
->i2c_client
, eeprom
, sizeof(eeprom
));
3098 switch (core
->boardnr
) {
3099 case CX88_BOARD_HAUPPAUGE
:
3100 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
3101 if (0 == core
->i2c_rc
)
3102 hauppauge_eeprom(core
, eeprom
+8);
3104 case CX88_BOARD_GDI
:
3105 if (0 == core
->i2c_rc
)
3106 gdi_eeprom(core
, eeprom
);
3108 case CX88_BOARD_LEADTEK_PVR2000
:
3109 case CX88_BOARD_WINFAST_DV2000
:
3110 case CX88_BOARD_WINFAST2000XP_EXPERT
:
3111 if (0 == core
->i2c_rc
)
3112 leadtek_eeprom(core
, eeprom
);
3114 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
3115 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
3116 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
3117 case CX88_BOARD_HAUPPAUGE_HVR1100
:
3118 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
3119 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3120 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3121 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3122 case CX88_BOARD_HAUPPAUGE_HVR4000LITE
:
3123 case CX88_BOARD_HAUPPAUGE_IRONLY
:
3124 if (0 == core
->i2c_rc
)
3125 hauppauge_eeprom(core
, eeprom
);
3127 case CX88_BOARD_KWORLD_DVBS_100
:
3128 cx_write(MO_GP0_IO
, 0x000007f8);
3129 cx_write(MO_GP1_IO
, 0x00000001);
3131 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3132 /* GPIO0:0 is hooked to demod reset */
3133 /* GPIO0:4 is hooked to xc3028 reset */
3134 cx_write(MO_GP0_IO
, 0x00111100);
3136 cx_write(MO_GP0_IO
, 0x00111111);
3138 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
3139 /* GPIO0:6 is hooked to FX2 reset pin */
3140 cx_set(MO_GP0_IO
, 0x00004040);
3141 cx_clear(MO_GP0_IO
, 0x00000040);
3143 cx_set(MO_GP0_IO
, 0x00004040);
3145 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
3146 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
3147 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
3148 /* GPIO0:0 is hooked to mt352 reset pin */
3149 cx_set(MO_GP0_IO
, 0x00000101);
3150 cx_clear(MO_GP0_IO
, 0x00000001);
3152 cx_set(MO_GP0_IO
, 0x00000101);
3153 if (0 == core
->i2c_rc
&&
3154 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
3155 dvico_fusionhdtv_hybrid_init(core
);
3157 case CX88_BOARD_KWORLD_DVB_T
:
3158 case CX88_BOARD_DNTV_LIVE_DVB_T
:
3159 cx_set(MO_GP0_IO
, 0x00000707);
3160 cx_set(MO_GP2_IO
, 0x00000101);
3161 cx_clear(MO_GP2_IO
, 0x00000001);
3163 cx_clear(MO_GP0_IO
, 0x00000007);
3164 cx_set(MO_GP2_IO
, 0x00000101);
3166 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
3167 cx_write(MO_GP0_IO
, 0x00080808);
3169 case CX88_BOARD_ATI_HDTVWONDER
:
3170 if (0 == core
->i2c_rc
) {
3173 static const u8 buffer
[][2] = {
3180 core
->i2c_client
.addr
= 0x0a;
3182 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
3183 if (2 != i2c_master_send(&core
->i2c_client
,
3185 warn_printk(core
, "Unable to enable "
3189 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
3191 struct v4l2_priv_tun_config tea5767_cfg
;
3192 struct tea5767_ctrl ctl
;
3194 memset(&ctl
, 0, sizeof(ctl
));
3199 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
3201 tea5767_cfg
.tuner
= TUNER_TEA5767
;
3202 tea5767_cfg
.priv
= &ctl
;
3204 call_all(core
, tuner
, s_config
, &tea5767_cfg
);
3207 case CX88_BOARD_TEVII_S420
:
3208 case CX88_BOARD_TEVII_S460
:
3209 case CX88_BOARD_OMICOM_SS4_PCI
:
3210 case CX88_BOARD_TBS_8910
:
3211 case CX88_BOARD_TBS_8920
:
3212 case CX88_BOARD_PROF_6200
:
3213 case CX88_BOARD_PROF_7300
:
3214 case CX88_BOARD_SATTRADE_ST4200
:
3215 cx_write(MO_GP0_IO
, 0x8000);
3217 cx_write(MO_SRST_IO
, 0);
3219 cx_write(MO_GP0_IO
, 0x8080);
3221 cx_write(MO_SRST_IO
, 1);
3228 if ((core
->board
.radio_type
!= UNSET
)) {
3229 tun_setup
.mode_mask
= T_RADIO
;
3230 tun_setup
.type
= core
->board
.radio_type
;
3231 tun_setup
.addr
= core
->board
.radio_addr
;
3232 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3233 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3234 mode_mask
&= ~T_RADIO
;
3237 if (core
->board
.tuner_type
!= TUNER_ABSENT
) {
3238 tun_setup
.mode_mask
= mode_mask
;
3239 tun_setup
.type
= core
->board
.tuner_type
;
3240 tun_setup
.addr
= core
->board
.tuner_addr
;
3241 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3243 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3246 if (core
->board
.tda9887_conf
) {
3247 struct v4l2_priv_tun_config tda9887_cfg
;
3249 tda9887_cfg
.tuner
= TUNER_TDA9887
;
3250 tda9887_cfg
.priv
= &core
->board
.tda9887_conf
;
3252 call_all(core
, tuner
, s_config
, &tda9887_cfg
);
3255 if (core
->board
.tuner_type
== TUNER_XC2028
) {
3256 struct v4l2_priv_tun_config xc2028_cfg
;
3257 struct xc2028_ctrl ctl
;
3259 /* Fills device-dependent initialization parameters */
3260 cx88_setup_xc3028(core
, &ctl
);
3262 /* Sends parameters to xc2028/3028 tuner */
3263 memset(&xc2028_cfg
, 0, sizeof(xc2028_cfg
));
3264 xc2028_cfg
.tuner
= TUNER_XC2028
;
3265 xc2028_cfg
.priv
= &ctl
;
3266 info_printk(core
, "Asking xc2028/3028 to load firmware %s\n",
3268 call_all(core
, tuner
, s_config
, &xc2028_cfg
);
3270 call_all(core
, tuner
, s_standby
);
3273 /* ------------------------------------------------------------------ */
3275 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
3277 unsigned int lat
= UNSET
;
3281 /* check pci quirks */
3282 if (pci_pci_problems
& PCIPCI_TRITON
) {
3283 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
3285 ctrl
|= CX88X_EN_TBFX
;
3287 if (pci_pci_problems
& PCIPCI_NATOMA
) {
3288 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
3290 ctrl
|= CX88X_EN_TBFX
;
3292 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
3293 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
3295 ctrl
|= CX88X_EN_TBFX
;
3297 if (pci_pci_problems
& PCIPCI_VSFX
) {
3298 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
3300 ctrl
|= CX88X_EN_VSFX
;
3302 #ifdef PCIPCI_ALIMAGIK
3303 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
3304 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
3310 /* check insmod options */
3311 if (UNSET
!= latency
)
3316 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
3318 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
3321 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
3323 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
3328 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
3330 if (request_mem_region(pci_resource_start(pci
,0),
3331 pci_resource_len(pci
,0),
3335 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3336 core
->name
, PCI_FUNC(pci
->devfn
),
3337 (unsigned long long)pci_resource_start(pci
, 0),
3338 pci
->subsystem_vendor
, pci
->subsystem_device
);
3342 /* Allocate and initialize the cx88 core struct. One should hold the
3343 * devlist mutex before calling this. */
3344 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
3346 struct cx88_core
*core
;
3349 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
3353 atomic_inc(&core
->refcount
);
3354 core
->pci_bus
= pci
->bus
->number
;
3355 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
3356 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
3357 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
3358 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
3359 mutex_init(&core
->lock
);
3362 sprintf(core
->name
, "cx88[%d]", core
->nr
);
3364 strcpy(core
->v4l2_dev
.name
, core
->name
);
3365 if (v4l2_device_register(NULL
, &core
->v4l2_dev
)) {
3370 if (0 != cx88_get_resources(core
, pci
)) {
3371 v4l2_device_unregister(&core
->v4l2_dev
);
3377 cx88_pci_quirks(core
->name
, pci
);
3378 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
3379 pci_resource_len(pci
, 0));
3380 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
3382 if (core
->lmmio
== NULL
) {
3388 core
->boardnr
= UNSET
;
3389 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
3390 core
->boardnr
= card
[core
->nr
];
3391 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
3392 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
3393 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
3394 core
->boardnr
= cx88_subids
[i
].card
;
3395 if (UNSET
== core
->boardnr
) {
3396 core
->boardnr
= CX88_BOARD_UNKNOWN
;
3397 cx88_card_list(core
, pci
);
3400 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
3402 if (!core
->board
.num_frontends
&& (core
->board
.mpeg
& CX88_MPEG_DVB
))
3403 core
->board
.num_frontends
= 1;
3405 info_printk(core
, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3406 pci
->subsystem_vendor
, pci
->subsystem_device
, core
->board
.name
,
3407 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
3408 "insmod option" : "autodetected",
3409 core
->board
.num_frontends
);
3411 if (tuner
[core
->nr
] != UNSET
)
3412 core
->board
.tuner_type
= tuner
[core
->nr
];
3413 if (radio
[core
->nr
] != UNSET
)
3414 core
->board
.radio_type
= radio
[core
->nr
];
3416 info_printk(core
, "TV tuner type %d, Radio tuner type %d\n",
3417 core
->board
.tuner_type
, core
->board
.radio_type
);
3421 cx88_card_setup_pre_i2c(core
);
3422 cx88_i2c_init(core
, pci
);
3424 /* load tuner module, if needed */
3425 if (TUNER_ABSENT
!= core
->board
.tuner_type
) {
3426 /* Ignore 0x6b and 0x6f on cx88 boards.
3427 * FusionHDTV5 RT Gold has an ir receiver at 0x6b
3428 * and an RTC at 0x6f which can get corrupted if probed. */
3429 static const unsigned short tv_addrs
[] = {
3430 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
3431 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3432 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3435 int has_demod
= (core
->board
.tda9887_conf
& TDA9887_PRESENT
);
3437 /* I don't trust the radio_type as is stored in the card
3438 definitions, so we just probe for it.
3439 The radio_type is sometimes missing, or set to UNSET but
3440 later code configures a tea5767.
3442 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3444 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO
));
3446 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3447 &core
->i2c_adap
, "tuner", "tuner",
3448 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD
));
3449 if (core
->board
.tuner_addr
== ADDR_UNSET
) {
3450 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3451 &core
->i2c_adap
, "tuner", "tuner",
3452 0, has_demod
? tv_addrs
+ 4 : tv_addrs
);
3454 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3455 "tuner", "tuner", core
->board
.tuner_addr
, NULL
);
3459 cx88_card_setup(core
);
3460 cx88_ir_init(core
, pci
);