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>
27 #include <linux/slab.h>
32 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
33 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
34 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
36 module_param_array(tuner
, int, NULL
, 0444);
37 module_param_array(radio
, int, NULL
, 0444);
38 module_param_array(card
, int, NULL
, 0444);
40 MODULE_PARM_DESC(tuner
,"tuner type");
41 MODULE_PARM_DESC(radio
,"radio tuner type");
42 MODULE_PARM_DESC(card
,"card type");
44 static unsigned int latency
= UNSET
;
45 module_param(latency
,int,0444);
46 MODULE_PARM_DESC(latency
,"pci latency timer");
48 static int disable_ir
;
49 module_param(disable_ir
, int, 0444);
50 MODULE_PARM_DESC(disable_ir
, "Disable IR support");
52 #define info_printk(core, fmt, arg...) \
53 printk(KERN_INFO "%s: " fmt, core->name , ## arg)
55 #define warn_printk(core, fmt, arg...) \
56 printk(KERN_WARNING "%s: " fmt, core->name , ## arg)
58 #define err_printk(core, fmt, arg...) \
59 printk(KERN_ERR "%s: " fmt, core->name , ## arg)
62 /* ------------------------------------------------------------------ */
63 /* board config info */
65 /* If radio_type !=UNSET, radio_addr should be specified
68 static const struct cx88_board cx88_boards
[] = {
69 [CX88_BOARD_UNKNOWN
] = {
70 .name
= "UNKNOWN/GENERIC",
73 .tuner_addr
= ADDR_UNSET
,
74 .radio_addr
= ADDR_UNSET
,
76 .type
= CX88_VMUX_COMPOSITE1
,
79 .type
= CX88_VMUX_COMPOSITE2
,
82 .type
= CX88_VMUX_COMPOSITE3
,
85 .type
= CX88_VMUX_COMPOSITE4
,
89 [CX88_BOARD_HAUPPAUGE
] = {
90 .name
= "Hauppauge WinTV 34xxx models",
93 .tuner_addr
= ADDR_UNSET
,
94 .radio_addr
= ADDR_UNSET
,
95 .tda9887_conf
= TDA9887_PRESENT
,
97 .type
= CX88_VMUX_TELEVISION
,
99 .gpio0
= 0xff00, // internal decoder
101 .type
= CX88_VMUX_DEBUG
,
103 .gpio0
= 0xff01, // mono from tuner chip
105 .type
= CX88_VMUX_COMPOSITE1
,
109 .type
= CX88_VMUX_SVIDEO
,
119 .name
= "GDI Black Gold",
122 .tuner_addr
= ADDR_UNSET
,
123 .radio_addr
= ADDR_UNSET
,
125 .type
= CX88_VMUX_TELEVISION
,
128 .type
= CX88_VMUX_SVIDEO
,
132 [CX88_BOARD_PIXELVIEW
] = {
134 .tuner_type
= TUNER_PHILIPS_PAL
,
136 .tuner_addr
= ADDR_UNSET
,
137 .radio_addr
= ADDR_UNSET
,
139 .type
= CX88_VMUX_TELEVISION
,
141 .gpio0
= 0xff00, // internal decoder
143 .type
= CX88_VMUX_COMPOSITE1
,
146 .type
= CX88_VMUX_SVIDEO
,
154 [CX88_BOARD_ATI_WONDER_PRO
] = {
155 .name
= "ATI TV Wonder Pro",
156 .tuner_type
= TUNER_PHILIPS_4IN1
,
158 .tuner_addr
= ADDR_UNSET
,
159 .radio_addr
= ADDR_UNSET
,
160 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
162 .type
= CX88_VMUX_TELEVISION
,
166 .type
= CX88_VMUX_COMPOSITE1
,
170 .type
= CX88_VMUX_SVIDEO
,
175 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
176 .name
= "Leadtek Winfast 2000XP Expert",
177 .tuner_type
= TUNER_PHILIPS_4IN1
,
179 .tuner_addr
= ADDR_UNSET
,
180 .radio_addr
= ADDR_UNSET
,
181 .tda9887_conf
= TDA9887_PRESENT
,
183 .type
= CX88_VMUX_TELEVISION
,
190 .type
= CX88_VMUX_COMPOSITE1
,
197 .type
= CX88_VMUX_SVIDEO
,
212 [CX88_BOARD_AVERTV_STUDIO_303
] = {
213 .name
= "AverTV Studio 303 (M126)",
214 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
216 .tuner_addr
= ADDR_UNSET
,
217 .radio_addr
= ADDR_UNSET
,
218 .tda9887_conf
= TDA9887_PRESENT
,
220 .type
= CX88_VMUX_TELEVISION
,
224 .type
= CX88_VMUX_COMPOSITE1
,
228 .type
= CX88_VMUX_SVIDEO
,
237 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
238 // added gpio values thanks to Michal
239 // values for PAL from DScaler
240 .name
= "MSI TV-@nywhere Master",
241 .tuner_type
= TUNER_MT2032
,
243 .tuner_addr
= ADDR_UNSET
,
244 .radio_addr
= ADDR_UNSET
,
245 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
247 .type
= CX88_VMUX_TELEVISION
,
253 .type
= CX88_VMUX_COMPOSITE1
,
259 .type
= CX88_VMUX_SVIDEO
,
273 [CX88_BOARD_WINFAST_DV2000
] = {
274 .name
= "Leadtek Winfast DV2000",
275 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
277 .tuner_addr
= ADDR_UNSET
,
278 .radio_addr
= ADDR_UNSET
,
279 .tda9887_conf
= TDA9887_PRESENT
,
281 .type
= CX88_VMUX_TELEVISION
,
289 .type
= CX88_VMUX_COMPOSITE1
,
296 .type
= CX88_VMUX_SVIDEO
,
311 [CX88_BOARD_LEADTEK_PVR2000
] = {
312 // gpio values for PAL version from regspy by DScaler
313 .name
= "Leadtek PVR 2000",
314 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
316 .tuner_addr
= ADDR_UNSET
,
317 .radio_addr
= ADDR_UNSET
,
318 .tda9887_conf
= TDA9887_PRESENT
,
320 .type
= CX88_VMUX_TELEVISION
,
325 .type
= CX88_VMUX_COMPOSITE1
,
330 .type
= CX88_VMUX_SVIDEO
,
340 .mpeg
= CX88_MPEG_BLACKBIRD
,
342 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
343 .name
= "IODATA GV-VCP3/PCI",
344 .tuner_type
= TUNER_ABSENT
,
346 .tuner_addr
= ADDR_UNSET
,
347 .radio_addr
= ADDR_UNSET
,
349 .type
= CX88_VMUX_COMPOSITE1
,
352 .type
= CX88_VMUX_COMPOSITE2
,
355 .type
= CX88_VMUX_SVIDEO
,
359 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
360 .name
= "Prolink PlayTV PVR",
361 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
363 .tuner_addr
= ADDR_UNSET
,
364 .radio_addr
= ADDR_UNSET
,
365 .tda9887_conf
= TDA9887_PRESENT
,
367 .type
= CX88_VMUX_TELEVISION
,
371 .type
= CX88_VMUX_COMPOSITE1
,
375 .type
= CX88_VMUX_SVIDEO
,
384 [CX88_BOARD_ASUS_PVR_416
] = {
385 .name
= "ASUS PVR-416",
386 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
388 .tuner_addr
= ADDR_UNSET
,
389 .radio_addr
= ADDR_UNSET
,
390 .tda9887_conf
= TDA9887_PRESENT
,
392 .type
= CX88_VMUX_TELEVISION
,
396 .type
= CX88_VMUX_SVIDEO
,
398 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
405 .mpeg
= CX88_MPEG_BLACKBIRD
,
407 [CX88_BOARD_MSI_TVANYWHERE
] = {
408 .name
= "MSI TV-@nywhere",
409 .tuner_type
= TUNER_MT2032
,
411 .tuner_addr
= ADDR_UNSET
,
412 .radio_addr
= ADDR_UNSET
,
413 .tda9887_conf
= TDA9887_PRESENT
,
415 .type
= CX88_VMUX_TELEVISION
,
420 .type
= CX88_VMUX_COMPOSITE1
,
425 .type
= CX88_VMUX_SVIDEO
,
431 [CX88_BOARD_KWORLD_DVB_T
] = {
432 .name
= "KWorld/VStream XPert DVB-T",
433 .tuner_type
= TUNER_ABSENT
,
435 .tuner_addr
= ADDR_UNSET
,
436 .radio_addr
= ADDR_UNSET
,
438 .type
= CX88_VMUX_COMPOSITE1
,
443 .type
= CX88_VMUX_SVIDEO
,
448 .mpeg
= CX88_MPEG_DVB
,
450 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
451 .name
= "DViCO FusionHDTV DVB-T1",
452 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
454 .tuner_addr
= ADDR_UNSET
,
455 .radio_addr
= ADDR_UNSET
,
457 .type
= CX88_VMUX_COMPOSITE1
,
461 .type
= CX88_VMUX_SVIDEO
,
465 .mpeg
= CX88_MPEG_DVB
,
467 [CX88_BOARD_KWORLD_LTV883
] = {
468 .name
= "KWorld LTV883RF",
469 .tuner_type
= TUNER_TNF_8831BGFF
,
471 .tuner_addr
= ADDR_UNSET
,
472 .radio_addr
= ADDR_UNSET
,
474 .type
= CX88_VMUX_TELEVISION
,
478 .type
= CX88_VMUX_DEBUG
,
480 .gpio0
= 0x07f9, // mono from tuner chip
482 .type
= CX88_VMUX_COMPOSITE1
,
486 .type
= CX88_VMUX_SVIDEO
,
495 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
496 .name
= "DViCO FusionHDTV 3 Gold-Q",
497 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
499 .tuner_addr
= ADDR_UNSET
,
500 .radio_addr
= ADDR_UNSET
,
502 GPIO[0] resets DT3302 DTV receiver
505 GPIO[1] mutes analog audio output connector
506 0 - enable selected source
508 GPIO[2] selects source for analog audio output connector
509 0 - analog audio input connector on tab
510 1 - analog DAC output from CX23881 chip
511 GPIO[3] selects RF input connector on tuner module
512 0 - RF connector labeled CABLE
513 1 - RF connector labeled ANT
514 GPIO[4] selects high RF for QAM256 mode
519 .type
= CX88_VMUX_TELEVISION
,
523 .type
= CX88_VMUX_CABLE
,
527 .type
= CX88_VMUX_COMPOSITE1
,
531 .type
= CX88_VMUX_SVIDEO
,
535 .mpeg
= CX88_MPEG_DVB
,
537 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
538 .name
= "Hauppauge Nova-T DVB-T",
539 .tuner_type
= TUNER_ABSENT
,
541 .tuner_addr
= ADDR_UNSET
,
542 .radio_addr
= ADDR_UNSET
,
544 .type
= CX88_VMUX_DVB
,
547 .mpeg
= CX88_MPEG_DVB
,
549 [CX88_BOARD_CONEXANT_DVB_T1
] = {
550 .name
= "Conexant DVB-T reference design",
551 .tuner_type
= TUNER_ABSENT
,
553 .tuner_addr
= ADDR_UNSET
,
554 .radio_addr
= ADDR_UNSET
,
556 .type
= CX88_VMUX_DVB
,
559 .mpeg
= CX88_MPEG_DVB
,
561 [CX88_BOARD_PROVIDEO_PV259
] = {
562 .name
= "Provideo PV259",
563 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
565 .tuner_addr
= ADDR_UNSET
,
566 .radio_addr
= ADDR_UNSET
,
568 .type
= CX88_VMUX_TELEVISION
,
572 .mpeg
= CX88_MPEG_BLACKBIRD
,
574 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
575 .name
= "DViCO FusionHDTV DVB-T Plus",
576 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
578 .tuner_addr
= ADDR_UNSET
,
579 .radio_addr
= ADDR_UNSET
,
581 .type
= CX88_VMUX_COMPOSITE1
,
585 .type
= CX88_VMUX_SVIDEO
,
589 .mpeg
= CX88_MPEG_DVB
,
591 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
592 .name
= "digitalnow DNTV Live! DVB-T",
593 .tuner_type
= TUNER_ABSENT
,
595 .tuner_addr
= ADDR_UNSET
,
596 .radio_addr
= ADDR_UNSET
,
598 .type
= CX88_VMUX_COMPOSITE1
,
603 .type
= CX88_VMUX_SVIDEO
,
608 .mpeg
= CX88_MPEG_DVB
,
610 [CX88_BOARD_PCHDTV_HD3000
] = {
611 .name
= "pcHDTV HD3000 HDTV",
612 .tuner_type
= TUNER_THOMSON_DTT761X
,
614 .tuner_addr
= ADDR_UNSET
,
615 .radio_addr
= ADDR_UNSET
,
616 .tda9887_conf
= TDA9887_PRESENT
,
617 /* GPIO[2] = audio source for analog audio out connector
618 * 0 = analog audio input connector
619 * 1 = CX88 audio DACs
621 * GPIO[7] = input to CX88's audio/chroma ADC
623 * 1 = Sound 4.5 MHz IF
625 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
627 * GPIO[16] = Remote control input
630 .type
= CX88_VMUX_TELEVISION
,
634 .type
= CX88_VMUX_COMPOSITE1
,
638 .type
= CX88_VMUX_SVIDEO
,
646 .mpeg
= CX88_MPEG_DVB
,
648 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
649 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
650 // GPIO values obtained from regspy, courtesy Sean Covel
651 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
654 .tuner_addr
= ADDR_UNSET
,
655 .radio_addr
= ADDR_UNSET
,
657 .type
= CX88_VMUX_TELEVISION
,
662 .type
= CX88_VMUX_DEBUG
,
666 .type
= CX88_VMUX_COMPOSITE1
,
670 .type
= CX88_VMUX_SVIDEO
,
680 .mpeg
= CX88_MPEG_BLACKBIRD
,
682 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
683 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
684 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
686 .tuner_addr
= ADDR_UNSET
,
687 .radio_addr
= ADDR_UNSET
,
688 .tda9887_conf
= TDA9887_PRESENT
,
690 .type
= CX88_VMUX_TELEVISION
,
695 .type
= CX88_VMUX_COMPOSITE1
,
700 .type
= CX88_VMUX_SVIDEO
,
710 .mpeg
= CX88_MPEG_BLACKBIRD
,
712 [CX88_BOARD_IODATA_GVBCTV7E
] = {
713 .name
= "IODATA GV/BCTV7E",
714 .tuner_type
= TUNER_PHILIPS_FQ1286
,
716 .tuner_addr
= ADDR_UNSET
,
717 .radio_addr
= ADDR_UNSET
,
718 .tda9887_conf
= TDA9887_PRESENT
,
720 .type
= CX88_VMUX_TELEVISION
,
724 .type
= CX88_VMUX_COMPOSITE1
,
728 .type
= CX88_VMUX_SVIDEO
,
733 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
734 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
735 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
736 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
738 .tuner_addr
= ADDR_UNSET
,
739 .radio_addr
= ADDR_UNSET
,
740 /* Some variants use a tda9874 and so need the tvaudio module. */
741 .audio_chip
= V4L2_IDENT_TVAUDIO
,
743 .type
= CX88_VMUX_TELEVISION
,
745 .gpio0
= 0xbf61, /* internal decoder */
747 .type
= CX88_VMUX_COMPOSITE1
,
751 .type
= CX88_VMUX_SVIDEO
,
760 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
761 .name
= "DViCO FusionHDTV 3 Gold-T",
762 .tuner_type
= TUNER_THOMSON_DTT761X
,
764 .tuner_addr
= ADDR_UNSET
,
765 .radio_addr
= ADDR_UNSET
,
766 .tda9887_conf
= TDA9887_PRESENT
,
768 .type
= CX88_VMUX_TELEVISION
,
772 .type
= CX88_VMUX_COMPOSITE1
,
776 .type
= CX88_VMUX_SVIDEO
,
780 .mpeg
= CX88_MPEG_DVB
,
782 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
783 .name
= "ADS Tech Instant TV DVB-T PCI",
784 .tuner_type
= TUNER_ABSENT
,
786 .tuner_addr
= ADDR_UNSET
,
787 .radio_addr
= ADDR_UNSET
,
789 .type
= CX88_VMUX_COMPOSITE1
,
794 .type
= CX88_VMUX_SVIDEO
,
799 .mpeg
= CX88_MPEG_DVB
,
801 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
802 .name
= "TerraTec Cinergy 1400 DVB-T",
803 .tuner_type
= TUNER_ABSENT
,
805 .type
= CX88_VMUX_DVB
,
808 .type
= CX88_VMUX_COMPOSITE1
,
811 .type
= CX88_VMUX_SVIDEO
,
814 .mpeg
= CX88_MPEG_DVB
,
816 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
817 .name
= "DViCO FusionHDTV 5 Gold",
818 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
820 .tuner_addr
= ADDR_UNSET
,
821 .radio_addr
= ADDR_UNSET
,
822 .tda9887_conf
= TDA9887_PRESENT
,
824 .type
= CX88_VMUX_TELEVISION
,
828 .type
= CX88_VMUX_COMPOSITE1
,
832 .type
= CX88_VMUX_SVIDEO
,
836 .mpeg
= CX88_MPEG_DVB
,
838 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
839 .name
= "AverMedia UltraTV Media Center PCI 550",
840 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
842 .tuner_addr
= ADDR_UNSET
,
843 .radio_addr
= ADDR_UNSET
,
844 .tda9887_conf
= TDA9887_PRESENT
,
846 .type
= CX88_VMUX_COMPOSITE1
,
851 .type
= CX88_VMUX_SVIDEO
,
856 .type
= CX88_VMUX_TELEVISION
,
867 .mpeg
= CX88_MPEG_BLACKBIRD
,
869 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
870 /* Alexander Wold <awold@bigfoot.com> */
871 .name
= "Kworld V-Stream Xpert DVD",
874 .type
= CX88_VMUX_COMPOSITE1
,
881 .type
= CX88_VMUX_SVIDEO
,
889 [CX88_BOARD_ATI_HDTVWONDER
] = {
890 .name
= "ATI HDTV Wonder",
891 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
893 .tuner_addr
= ADDR_UNSET
,
894 .radio_addr
= ADDR_UNSET
,
896 .type
= CX88_VMUX_TELEVISION
,
903 .type
= CX88_VMUX_COMPOSITE1
,
910 .type
= CX88_VMUX_SVIDEO
,
917 .mpeg
= CX88_MPEG_DVB
,
919 [CX88_BOARD_WINFAST_DTV1000
] = {
920 .name
= "WinFast DTV1000-T",
921 .tuner_type
= TUNER_ABSENT
,
923 .tuner_addr
= ADDR_UNSET
,
924 .radio_addr
= ADDR_UNSET
,
926 .type
= CX88_VMUX_DVB
,
929 .type
= CX88_VMUX_COMPOSITE1
,
932 .type
= CX88_VMUX_SVIDEO
,
935 .mpeg
= CX88_MPEG_DVB
,
937 [CX88_BOARD_AVERTV_303
] = {
938 .name
= "AVerTV 303 (M126)",
939 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
941 .tuner_addr
= ADDR_UNSET
,
942 .radio_addr
= ADDR_UNSET
,
943 .tda9887_conf
= TDA9887_PRESENT
,
945 .type
= CX88_VMUX_TELEVISION
,
952 .type
= CX88_VMUX_COMPOSITE1
,
959 .type
= CX88_VMUX_SVIDEO
,
967 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
968 .name
= "Hauppauge Nova-S-Plus DVB-S",
969 .tuner_type
= TUNER_ABSENT
,
971 .tuner_addr
= ADDR_UNSET
,
972 .radio_addr
= ADDR_UNSET
,
973 .audio_chip
= V4L2_IDENT_WM8775
,
976 .type
= CX88_VMUX_DVB
,
981 .type
= CX88_VMUX_COMPOSITE1
,
986 .type
= CX88_VMUX_SVIDEO
,
991 .mpeg
= CX88_MPEG_DVB
,
993 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
994 .name
= "Hauppauge Nova-SE2 DVB-S",
995 .tuner_type
= TUNER_ABSENT
,
997 .tuner_addr
= ADDR_UNSET
,
998 .radio_addr
= ADDR_UNSET
,
1000 .type
= CX88_VMUX_DVB
,
1003 .mpeg
= CX88_MPEG_DVB
,
1005 [CX88_BOARD_KWORLD_DVBS_100
] = {
1006 .name
= "KWorld DVB-S 100",
1007 .tuner_type
= TUNER_ABSENT
,
1008 .radio_type
= UNSET
,
1009 .tuner_addr
= ADDR_UNSET
,
1010 .radio_addr
= ADDR_UNSET
,
1011 .audio_chip
= V4L2_IDENT_WM8775
,
1013 .type
= CX88_VMUX_DVB
,
1018 .type
= CX88_VMUX_COMPOSITE1
,
1023 .type
= CX88_VMUX_SVIDEO
,
1028 .mpeg
= CX88_MPEG_DVB
,
1030 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
1031 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
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 .type
= CX88_VMUX_SVIDEO
,
1047 /* fixme: Add radio support */
1048 .mpeg
= CX88_MPEG_DVB
,
1050 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1051 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1052 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1053 .radio_type
= UNSET
,
1054 .tuner_addr
= ADDR_UNSET
,
1055 .radio_addr
= ADDR_UNSET
,
1056 .tda9887_conf
= TDA9887_PRESENT
,
1058 .type
= CX88_VMUX_TELEVISION
,
1061 .type
= CX88_VMUX_COMPOSITE1
,
1064 /* fixme: Add radio support */
1065 .mpeg
= CX88_MPEG_DVB
,
1067 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1068 .name
= "digitalnow DNTV Live! DVB-T Pro",
1069 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1070 .radio_type
= UNSET
,
1071 .tuner_addr
= ADDR_UNSET
,
1072 .radio_addr
= ADDR_UNSET
,
1073 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1074 TDA9887_PORT2_ACTIVE
,
1076 .type
= CX88_VMUX_TELEVISION
,
1080 .type
= CX88_VMUX_COMPOSITE1
,
1084 .type
= CX88_VMUX_SVIDEO
,
1092 .mpeg
= CX88_MPEG_DVB
,
1094 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1095 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1096 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1097 /* Manenti Marco <marco_manenti@colman.it> */
1098 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1099 .tuner_type
= TUNER_ABSENT
,
1100 .radio_type
= UNSET
,
1101 .tuner_addr
= ADDR_UNSET
,
1102 .radio_addr
= ADDR_UNSET
,
1104 .type
= CX88_VMUX_COMPOSITE1
,
1109 .type
= CX88_VMUX_SVIDEO
,
1114 .mpeg
= CX88_MPEG_DVB
,
1116 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1117 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1118 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1119 .radio_type
= UNSET
,
1120 .tuner_addr
= ADDR_UNSET
,
1121 .radio_addr
= ADDR_UNSET
,
1123 .type
= CX88_VMUX_COMPOSITE1
,
1125 .gpio0
= 0x000067df,
1127 .type
= CX88_VMUX_SVIDEO
,
1129 .gpio0
= 0x000067df,
1131 .mpeg
= CX88_MPEG_DVB
,
1133 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1134 .name
= "KWorld HardwareMpegTV XPert",
1135 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1136 .radio_type
= UNSET
,
1137 .tuner_addr
= ADDR_UNSET
,
1138 .radio_addr
= ADDR_UNSET
,
1140 .type
= CX88_VMUX_TELEVISION
,
1145 .type
= CX88_VMUX_COMPOSITE1
,
1150 .type
= CX88_VMUX_SVIDEO
,
1160 .mpeg
= CX88_MPEG_BLACKBIRD
,
1162 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1163 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1164 .tuner_type
= TUNER_THOMSON_FE6600
,
1165 .radio_type
= UNSET
,
1166 .tuner_addr
= ADDR_UNSET
,
1167 .radio_addr
= ADDR_UNSET
,
1169 .type
= CX88_VMUX_TELEVISION
,
1171 .gpio0
= 0x0000a75f,
1173 .type
= CX88_VMUX_COMPOSITE1
,
1175 .gpio0
= 0x0000a75b,
1177 .type
= CX88_VMUX_SVIDEO
,
1179 .gpio0
= 0x0000a75b,
1181 .mpeg
= CX88_MPEG_DVB
,
1183 [CX88_BOARD_PCHDTV_HD5500
] = {
1184 .name
= "pcHDTV HD5500 HDTV",
1185 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1186 .radio_type
= UNSET
,
1187 .tuner_addr
= ADDR_UNSET
,
1188 .radio_addr
= ADDR_UNSET
,
1189 .tda9887_conf
= TDA9887_PRESENT
,
1191 .type
= CX88_VMUX_TELEVISION
,
1195 .type
= CX88_VMUX_COMPOSITE1
,
1199 .type
= CX88_VMUX_SVIDEO
,
1203 .mpeg
= CX88_MPEG_DVB
,
1205 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1206 /* FIXME: tested TV input only, disabled composite,
1207 svideo and radio until they can be tested also. */
1208 .name
= "Kworld MCE 200 Deluxe",
1209 .tuner_type
= TUNER_TENA_9533_DI
,
1210 .radio_type
= UNSET
,
1211 .tda9887_conf
= TDA9887_PRESENT
,
1212 .tuner_addr
= ADDR_UNSET
,
1213 .radio_addr
= ADDR_UNSET
,
1215 .type
= CX88_VMUX_TELEVISION
,
1219 .mpeg
= CX88_MPEG_BLACKBIRD
,
1221 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1222 /* FIXME: SVideo, Composite and FM inputs are untested */
1223 .name
= "PixelView PlayTV P7000",
1224 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1225 .radio_type
= UNSET
,
1226 .tuner_addr
= ADDR_UNSET
,
1227 .radio_addr
= ADDR_UNSET
,
1228 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1229 TDA9887_PORT2_ACTIVE
,
1231 .type
= CX88_VMUX_TELEVISION
,
1235 .mpeg
= CX88_MPEG_BLACKBIRD
,
1237 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1238 .name
= "NPG Tech Real TV FM Top 10",
1239 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1240 .radio_type
= UNSET
,
1241 .tuner_addr
= ADDR_UNSET
,
1242 .radio_addr
= ADDR_UNSET
,
1244 .type
= CX88_VMUX_TELEVISION
,
1248 .type
= CX88_VMUX_COMPOSITE1
,
1252 .type
= CX88_VMUX_SVIDEO
,
1261 [CX88_BOARD_WINFAST_DTV2000H
] = {
1262 .name
= "WinFast DTV2000 H",
1263 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1264 .radio_type
= UNSET
,
1265 .tuner_addr
= ADDR_UNSET
,
1266 .radio_addr
= ADDR_UNSET
,
1267 .tda9887_conf
= TDA9887_PRESENT
,
1269 .type
= CX88_VMUX_TELEVISION
,
1271 .gpio0
= 0x00017304,
1272 .gpio1
= 0x00008203,
1273 .gpio2
= 0x00017304,
1274 .gpio3
= 0x02000000,
1276 .type
= CX88_VMUX_COMPOSITE1
,
1278 .gpio0
= 0x0001d701,
1279 .gpio1
= 0x0000b207,
1280 .gpio2
= 0x0001d701,
1281 .gpio3
= 0x02000000,
1283 .type
= CX88_VMUX_COMPOSITE2
,
1285 .gpio0
= 0x0001d503,
1286 .gpio1
= 0x0000b207,
1287 .gpio2
= 0x0001d503,
1288 .gpio3
= 0x02000000,
1290 .type
= CX88_VMUX_SVIDEO
,
1292 .gpio0
= 0x0001d701,
1293 .gpio1
= 0x0000b207,
1294 .gpio2
= 0x0001d701,
1295 .gpio3
= 0x02000000,
1299 .gpio0
= 0x00015702,
1300 .gpio1
= 0x0000f207,
1301 .gpio2
= 0x00015702,
1302 .gpio3
= 0x02000000,
1304 .mpeg
= CX88_MPEG_DVB
,
1306 [CX88_BOARD_WINFAST_DTV2000H_J
] = {
1307 .name
= "WinFast DTV2000 H rev. J",
1308 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1309 .radio_type
= UNSET
,
1310 .tuner_addr
= ADDR_UNSET
,
1311 .radio_addr
= ADDR_UNSET
,
1312 .tda9887_conf
= TDA9887_PRESENT
,
1314 .type
= CX88_VMUX_TELEVISION
,
1316 .gpio0
= 0x00017300,
1317 .gpio1
= 0x00008207,
1318 .gpio2
= 0x00000000,
1319 .gpio3
= 0x02000000,
1321 .type
= CX88_VMUX_TELEVISION
,
1323 .gpio0
= 0x00018300,
1324 .gpio1
= 0x0000f207,
1325 .gpio2
= 0x00017304,
1326 .gpio3
= 0x02000000,
1328 .type
= CX88_VMUX_COMPOSITE1
,
1330 .gpio0
= 0x00018301,
1331 .gpio1
= 0x0000f207,
1332 .gpio2
= 0x00017304,
1333 .gpio3
= 0x02000000,
1335 .type
= CX88_VMUX_SVIDEO
,
1337 .gpio0
= 0x00018301,
1338 .gpio1
= 0x0000f207,
1339 .gpio2
= 0x00017304,
1340 .gpio3
= 0x02000000,
1344 .gpio0
= 0x00015702,
1345 .gpio1
= 0x0000f207,
1346 .gpio2
= 0x00015702,
1347 .gpio3
= 0x02000000,
1349 .mpeg
= CX88_MPEG_DVB
,
1351 [CX88_BOARD_GENIATECH_DVBS
] = {
1352 .name
= "Geniatech DVB-S",
1353 .tuner_type
= TUNER_ABSENT
,
1354 .radio_type
= UNSET
,
1355 .tuner_addr
= ADDR_UNSET
,
1356 .radio_addr
= ADDR_UNSET
,
1358 .type
= CX88_VMUX_DVB
,
1361 .type
= CX88_VMUX_COMPOSITE1
,
1364 .mpeg
= CX88_MPEG_DVB
,
1366 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1367 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1368 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1369 .radio_type
= UNSET
,
1370 .tuner_addr
= ADDR_UNSET
,
1371 .radio_addr
= ADDR_UNSET
,
1372 .tda9887_conf
= TDA9887_PRESENT
,
1373 .audio_chip
= V4L2_IDENT_WM8775
,
1375 .type
= CX88_VMUX_TELEVISION
,
1378 /* 1: TV Audio / FM Mono */
1381 .type
= CX88_VMUX_COMPOSITE1
,
1387 .type
= CX88_VMUX_SVIDEO
,
1396 /* 4: FM Stereo (untested) */
1399 .mpeg
= CX88_MPEG_DVB
,
1402 [CX88_BOARD_NORWOOD_MICRO
] = {
1403 .name
= "Norwood Micro TV Tuner",
1404 .tuner_type
= TUNER_TNF_5335MF
,
1405 .radio_type
= UNSET
,
1406 .tuner_addr
= ADDR_UNSET
,
1407 .radio_addr
= ADDR_UNSET
,
1409 .type
= CX88_VMUX_TELEVISION
,
1413 .type
= CX88_VMUX_COMPOSITE1
,
1417 .type
= CX88_VMUX_SVIDEO
,
1422 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1423 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1424 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1425 .radio_type
= UNSET
,
1426 .tuner_addr
= ADDR_UNSET
,
1427 .radio_addr
= ADDR_UNSET
,
1429 .type
= CX88_VMUX_TELEVISION
,
1431 .gpio0
= 0x003fffff,
1432 .gpio1
= 0x00e00000,
1433 .gpio2
= 0x003fffff,
1434 .gpio3
= 0x02000000,
1436 .type
= CX88_VMUX_COMPOSITE1
,
1438 .gpio0
= 0x003fffff,
1439 .gpio1
= 0x00e00000,
1440 .gpio2
= 0x003fffff,
1441 .gpio3
= 0x02000000,
1443 .type
= CX88_VMUX_SVIDEO
,
1445 .gpio0
= 0x003fffff,
1446 .gpio1
= 0x00e00000,
1447 .gpio2
= 0x003fffff,
1448 .gpio3
= 0x02000000,
1451 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1452 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1453 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1454 .radio_type
= UNSET
,
1455 .tuner_addr
= ADDR_UNSET
,
1456 .radio_addr
= ADDR_UNSET
,
1457 .tda9887_conf
= TDA9887_PRESENT
,
1458 .audio_chip
= V4L2_IDENT_WM8775
,
1460 * gpio0 as reported by Mike Crash <mike AT mikecrash.com>
1463 .type
= CX88_VMUX_TELEVISION
,
1466 /* 1: TV Audio / FM Mono */
1469 .type
= CX88_VMUX_COMPOSITE1
,
1475 .type
= CX88_VMUX_SVIDEO
,
1481 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1485 /* 4: FM Stereo (untested) */
1489 [CX88_BOARD_SAMSUNG_SMT_7020
] = {
1490 .name
= "Samsung SMT 7020 DVB-S",
1491 .tuner_type
= TUNER_ABSENT
,
1492 .radio_type
= UNSET
,
1493 .tuner_addr
= ADDR_UNSET
,
1494 .radio_addr
= ADDR_UNSET
,
1496 .type
= CX88_VMUX_DVB
,
1499 .mpeg
= CX88_MPEG_DVB
,
1501 [CX88_BOARD_ADSTECH_PTV_390
] = {
1502 .name
= "ADS Tech Instant Video PCI",
1503 .tuner_type
= TUNER_ABSENT
,
1504 .radio_type
= UNSET
,
1505 .tuner_addr
= ADDR_UNSET
,
1506 .radio_addr
= ADDR_UNSET
,
1508 .type
= CX88_VMUX_DEBUG
,
1512 .type
= CX88_VMUX_COMPOSITE1
,
1516 .type
= CX88_VMUX_SVIDEO
,
1521 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1522 .name
= "Pinnacle PCTV HD 800i",
1523 .tuner_type
= TUNER_XC5000
,
1524 .radio_type
= UNSET
,
1525 .tuner_addr
= ADDR_UNSET
,
1526 .radio_addr
= ADDR_UNSET
,
1528 .type
= CX88_VMUX_TELEVISION
,
1533 .type
= CX88_VMUX_COMPOSITE1
,
1539 .type
= CX88_VMUX_SVIDEO
,
1545 .mpeg
= CX88_MPEG_DVB
,
1547 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1548 .name
= "DViCO FusionHDTV 5 PCI nano",
1549 /* xc3008 tuner, digital only for now */
1550 .tuner_type
= TUNER_ABSENT
,
1551 .radio_type
= UNSET
,
1552 .tuner_addr
= ADDR_UNSET
,
1553 .radio_addr
= ADDR_UNSET
,
1555 .type
= CX88_VMUX_TELEVISION
,
1557 .gpio0
= 0x000027df, /* Unconfirmed */
1559 .type
= CX88_VMUX_COMPOSITE1
,
1561 .gpio0
= 0x000027df, /* Unconfirmed */
1564 .type
= CX88_VMUX_SVIDEO
,
1566 .gpio0
= 0x000027df, /* Unconfirmed */
1569 .mpeg
= CX88_MPEG_DVB
,
1571 [CX88_BOARD_PINNACLE_HYBRID_PCTV
] = {
1572 .name
= "Pinnacle Hybrid PCTV",
1573 .tuner_type
= TUNER_XC2028
,
1575 .radio_type
= TUNER_XC2028
,
1578 .type
= CX88_VMUX_TELEVISION
,
1584 .type
= CX88_VMUX_COMPOSITE1
,
1590 .type
= CX88_VMUX_SVIDEO
,
1602 .mpeg
= CX88_MPEG_DVB
,
1604 /* Terry Wu <terrywu2009@gmail.com> */
1605 /* TV Audio : set GPIO 2, 18, 19 value to 0, 1, 0 */
1606 /* FM Audio : set GPIO 2, 18, 19 value to 0, 0, 0 */
1607 /* Line-in Audio : set GPIO 2, 18, 19 value to 0, 1, 1 */
1608 /* Mute Audio : set GPIO 2 value to 1 */
1609 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
] = {
1610 .name
= "Leadtek TV2000 XP Global",
1611 .tuner_type
= TUNER_XC2028
,
1613 .radio_type
= TUNER_XC2028
,
1616 .type
= CX88_VMUX_TELEVISION
,
1618 .gpio0
= 0x0400, /* pin 2 = 0 */
1620 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1623 .type
= CX88_VMUX_COMPOSITE1
,
1625 .gpio0
= 0x0400, /* pin 2 = 0 */
1627 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1630 .type
= CX88_VMUX_SVIDEO
,
1632 .gpio0
= 0x0400, /* pin 2 = 0 */
1634 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1639 .gpio0
= 0x0400, /* pin 2 = 0 */
1641 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1645 [CX88_BOARD_POWERCOLOR_REAL_ANGEL
] = {
1646 .name
= "PowerColor RA330", /* Long names may confuse LIRC. */
1647 .tuner_type
= TUNER_XC2028
,
1650 .type
= CX88_VMUX_DEBUG
,
1651 .vmux
= 3, /* Due to the way the cx88 driver is written, */
1652 .gpio0
= 0x00ff, /* there is no way to deactivate audio pass- */
1653 .gpio1
= 0xf39d, /* through without this entry. Furthermore, if */
1654 .gpio3
= 0x0000, /* the TV mux entry is first, you get audio */
1655 }, { /* from the tuner on boot for a little while. */
1656 .type
= CX88_VMUX_TELEVISION
,
1662 .type
= CX88_VMUX_COMPOSITE1
,
1668 .type
= CX88_VMUX_SVIDEO
,
1681 [CX88_BOARD_GENIATECH_X8000_MT
] = {
1682 /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */
1683 .name
= "Geniatech X8000-MT DVBT",
1684 .tuner_type
= TUNER_XC2028
,
1687 .type
= CX88_VMUX_TELEVISION
,
1689 .gpio0
= 0x00000000,
1690 .gpio1
= 0x00e3e341,
1691 .gpio2
= 0x00000000,
1692 .gpio3
= 0x00000000,
1694 .type
= CX88_VMUX_COMPOSITE1
,
1696 .gpio0
= 0x00000000,
1697 .gpio1
= 0x00e3e361,
1698 .gpio2
= 0x00000000,
1699 .gpio3
= 0x00000000,
1701 .type
= CX88_VMUX_SVIDEO
,
1703 .gpio0
= 0x00000000,
1704 .gpio1
= 0x00e3e361,
1705 .gpio2
= 0x00000000,
1706 .gpio3
= 0x00000000,
1710 .gpio0
= 0x00000000,
1711 .gpio1
= 0x00e3e341,
1712 .gpio2
= 0x00000000,
1713 .gpio3
= 0x00000000,
1715 .mpeg
= CX88_MPEG_DVB
,
1717 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
] = {
1718 .name
= "DViCO FusionHDTV DVB-T PRO",
1719 .tuner_type
= TUNER_XC2028
,
1721 .radio_type
= UNSET
,
1722 .radio_addr
= ADDR_UNSET
,
1724 .type
= CX88_VMUX_COMPOSITE1
,
1726 .gpio0
= 0x000067df,
1728 .type
= CX88_VMUX_SVIDEO
,
1730 .gpio0
= 0x000067df,
1732 .mpeg
= CX88_MPEG_DVB
,
1734 [CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
] = {
1735 .name
= "DViCO FusionHDTV 7 Gold",
1736 .tuner_type
= TUNER_XC5000
,
1737 .radio_type
= UNSET
,
1738 .tuner_addr
= ADDR_UNSET
,
1739 .radio_addr
= ADDR_UNSET
,
1741 .type
= CX88_VMUX_TELEVISION
,
1745 .type
= CX88_VMUX_COMPOSITE1
,
1749 .type
= CX88_VMUX_SVIDEO
,
1753 .mpeg
= CX88_MPEG_DVB
,
1755 [CX88_BOARD_PROLINK_PV_8000GT
] = {
1756 .name
= "Prolink Pixelview MPEG 8000GT",
1757 .tuner_type
= TUNER_XC2028
,
1760 .type
= CX88_VMUX_TELEVISION
,
1765 .type
= CX88_VMUX_COMPOSITE1
,
1769 .type
= CX88_VMUX_SVIDEO
,
1778 [CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
] = {
1779 .name
= "Prolink Pixelview Global Extreme",
1780 .tuner_type
= TUNER_XC2028
,
1783 .type
= CX88_VMUX_TELEVISION
,
1789 .type
= CX88_VMUX_COMPOSITE1
,
1795 .type
= CX88_VMUX_SVIDEO
,
1808 /* Both radio, analog and ATSC work with this board.
1809 However, for analog to work, s5h1409 gate should be open,
1810 otherwise, tuner-xc3028 won't be detected.
1811 A proper fix require using the newer i2c methods to add
1812 tuner-xc3028 without doing an i2c probe.
1814 [CX88_BOARD_KWORLD_ATSC_120
] = {
1815 .name
= "Kworld PlusTV HD PCI 120 (ATSC 120)",
1816 .tuner_type
= TUNER_XC2028
,
1817 .radio_type
= UNSET
,
1818 .tuner_addr
= ADDR_UNSET
,
1819 .radio_addr
= ADDR_UNSET
,
1821 .type
= CX88_VMUX_TELEVISION
,
1823 .gpio0
= 0x000000ff,
1824 .gpio1
= 0x0000f35d,
1825 .gpio2
= 0x00000000,
1827 .type
= CX88_VMUX_COMPOSITE1
,
1829 .gpio0
= 0x000000ff,
1830 .gpio1
= 0x0000f37e,
1831 .gpio2
= 0x00000000,
1833 .type
= CX88_VMUX_SVIDEO
,
1835 .gpio0
= 0x000000ff,
1836 .gpio1
= 0x0000f37e,
1837 .gpio2
= 0x00000000,
1841 .gpio0
= 0x000000ff,
1842 .gpio1
= 0x0000f35d,
1843 .gpio2
= 0x00000000,
1845 .mpeg
= CX88_MPEG_DVB
,
1847 [CX88_BOARD_HAUPPAUGE_HVR4000
] = {
1848 .name
= "Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1849 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1850 .radio_type
= UNSET
,
1851 .tuner_addr
= ADDR_UNSET
,
1852 .radio_addr
= ADDR_UNSET
,
1853 .tda9887_conf
= TDA9887_PRESENT
,
1854 .audio_chip
= V4L2_IDENT_WM8775
,
1858 * Analogue SAT DVB-T
1859 * Antenna 0xc4bf 0xc4bb
1860 * Composite 0xc4bf 0xc4bb
1861 * S-Video 0xc4bf 0xc4bb
1862 * Composite1 0xc4ff 0xc4fb
1863 * S-Video1 0xc4ff 0xc4fb
1865 * BIT VALUE FUNCTION GP{x}_IO
1868 * 2 1 O:MPEG PORT 0=DVB-T 1=DVB-S
1872 * 6 0 O:INPUT SELECTOR 0=INTERNAL 1=EXPANSION
1873 * 7 1 O:DVB-T DEMOD RESET LOW
1875 * BIT VALUE FUNCTION GP{x}_OE
1887 * 1: TV Audio / FM Mono
1889 * 3: Line-In Expansion
1893 .type
= CX88_VMUX_TELEVISION
,
1896 /* 1: TV Audio / FM Mono */
1899 .type
= CX88_VMUX_COMPOSITE1
,
1905 .type
= CX88_VMUX_SVIDEO
,
1917 .mpeg
= CX88_MPEG_DVB
,
1920 [CX88_BOARD_HAUPPAUGE_HVR4000LITE
] = {
1921 .name
= "Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
1922 .tuner_type
= UNSET
,
1923 .radio_type
= UNSET
,
1924 .tuner_addr
= ADDR_UNSET
,
1925 .radio_addr
= ADDR_UNSET
,
1927 .type
= CX88_VMUX_DVB
,
1930 .mpeg
= CX88_MPEG_DVB
,
1932 [CX88_BOARD_TEVII_S420
] = {
1933 .name
= "TeVii S420 DVB-S",
1934 .tuner_type
= UNSET
,
1935 .radio_type
= UNSET
,
1936 .tuner_addr
= ADDR_UNSET
,
1937 .radio_addr
= ADDR_UNSET
,
1939 .type
= CX88_VMUX_DVB
,
1942 .mpeg
= CX88_MPEG_DVB
,
1944 [CX88_BOARD_TEVII_S460
] = {
1945 .name
= "TeVii S460 DVB-S/S2",
1946 .tuner_type
= UNSET
,
1947 .radio_type
= UNSET
,
1948 .tuner_addr
= ADDR_UNSET
,
1949 .radio_addr
= ADDR_UNSET
,
1951 .type
= CX88_VMUX_DVB
,
1954 .mpeg
= CX88_MPEG_DVB
,
1956 [CX88_BOARD_TEVII_S464
] = {
1957 .name
= "TeVii S464 DVB-S/S2",
1958 .tuner_type
= UNSET
,
1959 .radio_type
= UNSET
,
1960 .tuner_addr
= ADDR_UNSET
,
1961 .radio_addr
= ADDR_UNSET
,
1963 .type
= CX88_VMUX_DVB
,
1966 .mpeg
= CX88_MPEG_DVB
,
1968 [CX88_BOARD_OMICOM_SS4_PCI
] = {
1969 .name
= "Omicom SS4 DVB-S/S2 PCI",
1970 .tuner_type
= UNSET
,
1971 .radio_type
= UNSET
,
1972 .tuner_addr
= ADDR_UNSET
,
1973 .radio_addr
= ADDR_UNSET
,
1975 .type
= CX88_VMUX_DVB
,
1978 .mpeg
= CX88_MPEG_DVB
,
1980 [CX88_BOARD_TBS_8910
] = {
1981 .name
= "TBS 8910 DVB-S",
1982 .tuner_type
= UNSET
,
1983 .radio_type
= UNSET
,
1984 .tuner_addr
= ADDR_UNSET
,
1985 .radio_addr
= ADDR_UNSET
,
1987 .type
= CX88_VMUX_DVB
,
1990 .mpeg
= CX88_MPEG_DVB
,
1992 [CX88_BOARD_TBS_8920
] = {
1993 .name
= "TBS 8920 DVB-S/S2",
1994 .tuner_type
= TUNER_ABSENT
,
1995 .radio_type
= UNSET
,
1996 .tuner_addr
= ADDR_UNSET
,
1997 .radio_addr
= ADDR_UNSET
,
1999 .type
= CX88_VMUX_DVB
,
2003 .mpeg
= CX88_MPEG_DVB
,
2005 [CX88_BOARD_PROF_6200
] = {
2006 .name
= "Prof 6200 DVB-S",
2007 .tuner_type
= UNSET
,
2008 .radio_type
= UNSET
,
2009 .tuner_addr
= ADDR_UNSET
,
2010 .radio_addr
= ADDR_UNSET
,
2012 .type
= CX88_VMUX_DVB
,
2015 .mpeg
= CX88_MPEG_DVB
,
2017 [CX88_BOARD_PROF_7300
] = {
2018 .name
= "PROF 7300 DVB-S/S2",
2019 .tuner_type
= UNSET
,
2020 .radio_type
= UNSET
,
2021 .tuner_addr
= ADDR_UNSET
,
2022 .radio_addr
= ADDR_UNSET
,
2024 .type
= CX88_VMUX_DVB
,
2027 .mpeg
= CX88_MPEG_DVB
,
2029 [CX88_BOARD_SATTRADE_ST4200
] = {
2030 .name
= "SATTRADE ST4200 DVB-S/S2",
2031 .tuner_type
= UNSET
,
2032 .radio_type
= UNSET
,
2033 .tuner_addr
= ADDR_UNSET
,
2034 .radio_addr
= ADDR_UNSET
,
2036 .type
= CX88_VMUX_DVB
,
2039 .mpeg
= CX88_MPEG_DVB
,
2041 [CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
] = {
2042 .name
= "Terratec Cinergy HT PCI MKII",
2043 .tuner_type
= TUNER_XC2028
,
2045 .radio_type
= TUNER_XC2028
,
2048 .type
= CX88_VMUX_TELEVISION
,
2054 .type
= CX88_VMUX_COMPOSITE1
,
2060 .type
= CX88_VMUX_SVIDEO
,
2072 .mpeg
= CX88_MPEG_DVB
,
2074 [CX88_BOARD_HAUPPAUGE_IRONLY
] = {
2075 .name
= "Hauppauge WinTV-IR Only",
2076 .tuner_type
= UNSET
,
2077 .radio_type
= UNSET
,
2078 .tuner_addr
= ADDR_UNSET
,
2079 .radio_addr
= ADDR_UNSET
,
2081 [CX88_BOARD_WINFAST_DTV1800H
] = {
2082 .name
= "Leadtek WinFast DTV1800 Hybrid",
2083 .tuner_type
= TUNER_XC2028
,
2084 .radio_type
= TUNER_XC2028
,
2090 * 2: mute (0=off,1=on)
2091 * 12: tuner reset pin
2092 * 13: audio source (0=tuner audio,1=line in)
2093 * 14: FM (0=on,1=off ???)
2096 .type
= CX88_VMUX_TELEVISION
,
2098 .gpio0
= 0x0400, /* pin 2 = 0 */
2099 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2102 .type
= CX88_VMUX_COMPOSITE1
,
2104 .gpio0
= 0x0400, /* pin 2 = 0 */
2105 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2108 .type
= CX88_VMUX_SVIDEO
,
2110 .gpio0
= 0x0400, /* pin 2 = 0 */
2111 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2116 .gpio0
= 0x0400, /* pin 2 = 0 */
2117 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2120 .mpeg
= CX88_MPEG_DVB
,
2122 [CX88_BOARD_PROF_7301
] = {
2123 .name
= "Prof 7301 DVB-S/S2",
2124 .tuner_type
= UNSET
,
2125 .radio_type
= UNSET
,
2126 .tuner_addr
= ADDR_UNSET
,
2127 .radio_addr
= ADDR_UNSET
,
2129 .type
= CX88_VMUX_DVB
,
2132 .mpeg
= CX88_MPEG_DVB
,
2134 [CX88_BOARD_TWINHAN_VP1027_DVBS
] = {
2135 .name
= "Twinhan VP-1027 DVB-S",
2136 .tuner_type
= TUNER_ABSENT
,
2137 .radio_type
= UNSET
,
2138 .tuner_addr
= ADDR_UNSET
,
2139 .radio_addr
= ADDR_UNSET
,
2141 .type
= CX88_VMUX_DVB
,
2144 .mpeg
= CX88_MPEG_DVB
,
2148 /* ------------------------------------------------------------------ */
2149 /* PCI subsystem IDs */
2151 static const struct cx88_subid cx88_subids
[] = {
2153 .subvendor
= 0x0070,
2154 .subdevice
= 0x3400,
2155 .card
= CX88_BOARD_HAUPPAUGE
,
2157 .subvendor
= 0x0070,
2158 .subdevice
= 0x3401,
2159 .card
= CX88_BOARD_HAUPPAUGE
,
2161 .subvendor
= 0x14c7,
2162 .subdevice
= 0x0106,
2163 .card
= CX88_BOARD_GDI
,
2165 .subvendor
= 0x14c7,
2166 .subdevice
= 0x0107, /* with mpeg encoder */
2167 .card
= CX88_BOARD_GDI
,
2169 .subvendor
= PCI_VENDOR_ID_ATI
,
2170 .subdevice
= 0x00f8,
2171 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2173 .subvendor
= PCI_VENDOR_ID_ATI
,
2174 .subdevice
= 0x00f9,
2175 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2177 .subvendor
= 0x107d,
2178 .subdevice
= 0x6611,
2179 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2181 .subvendor
= 0x107d,
2182 .subdevice
= 0x6613, /* NTSC */
2183 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2185 .subvendor
= 0x107d,
2186 .subdevice
= 0x6620,
2187 .card
= CX88_BOARD_WINFAST_DV2000
,
2189 .subvendor
= 0x107d,
2190 .subdevice
= 0x663b,
2191 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2193 .subvendor
= 0x107d,
2194 .subdevice
= 0x663c,
2195 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2197 .subvendor
= 0x1461,
2198 .subdevice
= 0x000b,
2199 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
2201 .subvendor
= 0x1462,
2202 .subdevice
= 0x8606,
2203 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
2205 .subvendor
= 0x10fc,
2206 .subdevice
= 0xd003,
2207 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
2209 .subvendor
= 0x1043,
2210 .subdevice
= 0x4823, /* with mpeg encoder */
2211 .card
= CX88_BOARD_ASUS_PVR_416
,
2213 .subvendor
= 0x17de,
2214 .subdevice
= 0x08a6,
2215 .card
= CX88_BOARD_KWORLD_DVB_T
,
2217 .subvendor
= 0x18ac,
2218 .subdevice
= 0xd810,
2219 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2221 .subvendor
= 0x18ac,
2222 .subdevice
= 0xd820,
2223 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
2225 .subvendor
= 0x18ac,
2226 .subdevice
= 0xdb00,
2227 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
2229 .subvendor
= 0x0070,
2230 .subdevice
= 0x9002,
2231 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2233 .subvendor
= 0x14f1,
2234 .subdevice
= 0x0187,
2235 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
2237 .subvendor
= 0x1540,
2238 .subdevice
= 0x2580,
2239 .card
= CX88_BOARD_PROVIDEO_PV259
,
2241 .subvendor
= 0x18ac,
2242 .subdevice
= 0xdb10,
2243 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2245 .subvendor
= 0x1554,
2246 .subdevice
= 0x4811,
2247 .card
= CX88_BOARD_PIXELVIEW
,
2249 .subvendor
= 0x7063,
2250 .subdevice
= 0x3000, /* HD-3000 card */
2251 .card
= CX88_BOARD_PCHDTV_HD3000
,
2253 .subvendor
= 0x17de,
2254 .subdevice
= 0xa8a6,
2255 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
2257 .subvendor
= 0x0070,
2258 .subdevice
= 0x2801,
2259 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
2261 .subvendor
= 0x14f1,
2262 .subdevice
= 0x0342,
2263 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
2265 .subvendor
= 0x10fc,
2266 .subdevice
= 0xd035,
2267 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
2269 .subvendor
= 0x1421,
2270 .subdevice
= 0x0334,
2271 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
2273 .subvendor
= 0x153b,
2274 .subdevice
= 0x1166,
2275 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
2277 .subvendor
= 0x18ac,
2278 .subdevice
= 0xd500,
2279 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
2281 .subvendor
= 0x1461,
2282 .subdevice
= 0x8011,
2283 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
2285 .subvendor
= PCI_VENDOR_ID_ATI
,
2286 .subdevice
= 0xa101,
2287 .card
= CX88_BOARD_ATI_HDTVWONDER
,
2289 .subvendor
= 0x107d,
2290 .subdevice
= 0x665f,
2291 .card
= CX88_BOARD_WINFAST_DTV1000
,
2293 .subvendor
= 0x1461,
2294 .subdevice
= 0x000a,
2295 .card
= CX88_BOARD_AVERTV_303
,
2297 .subvendor
= 0x0070,
2298 .subdevice
= 0x9200,
2299 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
2301 .subvendor
= 0x0070,
2302 .subdevice
= 0x9201,
2303 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2305 .subvendor
= 0x0070,
2306 .subdevice
= 0x9202,
2307 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2309 .subvendor
= 0x17de,
2310 .subdevice
= 0x08b2,
2311 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2313 .subvendor
= 0x0070,
2314 .subdevice
= 0x9400,
2315 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2317 .subvendor
= 0x0070,
2318 .subdevice
= 0x9402,
2319 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2321 .subvendor
= 0x0070,
2322 .subdevice
= 0x9800,
2323 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2325 .subvendor
= 0x0070,
2326 .subdevice
= 0x9802,
2327 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2329 .subvendor
= 0x0070,
2330 .subdevice
= 0x9001,
2331 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2333 .subvendor
= 0x1822,
2334 .subdevice
= 0x0025,
2335 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2337 .subvendor
= 0x17de,
2338 .subdevice
= 0x08a1,
2339 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2341 .subvendor
= 0x18ac,
2342 .subdevice
= 0xdb50,
2343 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2345 .subvendor
= 0x18ac,
2346 .subdevice
= 0xdb54,
2347 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2348 /* Re-branded DViCO: DigitalNow DVB-T Dual */
2350 .subvendor
= 0x18ac,
2351 .subdevice
= 0xdb11,
2352 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2353 /* Re-branded DViCO: UltraView DVB-T Plus */
2355 .subvendor
= 0x18ac,
2356 .subdevice
= 0xdb30,
2357 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
,
2359 .subvendor
= 0x17de,
2360 .subdevice
= 0x0840,
2361 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2363 .subvendor
= 0x1421,
2364 .subdevice
= 0x0305,
2365 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2367 .subvendor
= 0x18ac,
2368 .subdevice
= 0xdb40,
2369 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2371 .subvendor
= 0x18ac,
2372 .subdevice
= 0xdb44,
2373 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2375 .subvendor
= 0x7063,
2376 .subdevice
= 0x5500,
2377 .card
= CX88_BOARD_PCHDTV_HD5500
,
2379 .subvendor
= 0x17de,
2380 .subdevice
= 0x0841,
2381 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
2383 .subvendor
= 0x1822,
2384 .subdevice
= 0x0019,
2385 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2387 .subvendor
= 0x1554,
2388 .subdevice
= 0x4813,
2389 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
2391 .subvendor
= 0x14f1,
2392 .subdevice
= 0x0842,
2393 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
2395 .subvendor
= 0x107d,
2396 .subdevice
= 0x665e,
2397 .card
= CX88_BOARD_WINFAST_DTV2000H
,
2399 .subvendor
= 0x107d,
2400 .subdevice
= 0x6f2b,
2401 .card
= CX88_BOARD_WINFAST_DTV2000H_J
,
2403 .subvendor
= 0x18ac,
2404 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
2405 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2407 .subvendor
= 0x14f1,
2408 .subdevice
= 0x0084,
2409 .card
= CX88_BOARD_GENIATECH_DVBS
,
2411 .subvendor
= 0x0070,
2412 .subdevice
= 0x1404,
2413 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2415 .subvendor
= 0x18ac,
2416 .subdevice
= 0xdc00,
2417 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2419 .subvendor
= 0x18ac,
2420 .subdevice
= 0xdccd,
2421 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2423 .subvendor
= 0x1461,
2424 .subdevice
= 0xc111, /* AverMedia M150-D */
2425 /* This board is known to work with the ASUS PVR416 config */
2426 .card
= CX88_BOARD_ASUS_PVR_416
,
2428 .subvendor
= 0xc180,
2429 .subdevice
= 0xc980,
2430 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
2432 .subvendor
= 0x0070,
2433 .subdevice
= 0x9600,
2434 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2436 .subvendor
= 0x0070,
2437 .subdevice
= 0x9601,
2438 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2440 .subvendor
= 0x0070,
2441 .subdevice
= 0x9602,
2442 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2444 .subvendor
= 0x107d,
2445 .subdevice
= 0x6632,
2446 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2448 .subvendor
= 0x12ab,
2449 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
2450 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2452 .subvendor
= 0x0070,
2453 .subdevice
= 0x9000,
2454 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2456 .subvendor
= 0x0070,
2457 .subdevice
= 0x1400,
2458 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2460 .subvendor
= 0x0070,
2461 .subdevice
= 0x1401,
2462 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2464 .subvendor
= 0x0070,
2465 .subdevice
= 0x1402,
2466 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2468 .subvendor
= 0x1421,
2469 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
2470 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2472 .subvendor
= 0x1421,
2473 .subdevice
= 0x0390,
2474 .card
= CX88_BOARD_ADSTECH_PTV_390
,
2476 .subvendor
= 0x11bd,
2477 .subdevice
= 0x0051,
2478 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
2480 .subvendor
= 0x18ac,
2481 .subdevice
= 0xd530,
2482 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
2484 .subvendor
= 0x12ab,
2485 .subdevice
= 0x1788,
2486 .card
= CX88_BOARD_PINNACLE_HYBRID_PCTV
,
2488 .subvendor
= 0x14f1,
2489 .subdevice
= 0xea3d,
2490 .card
= CX88_BOARD_POWERCOLOR_REAL_ANGEL
,
2492 .subvendor
= 0x107d,
2493 .subdevice
= 0x6f18,
2494 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2496 .subvendor
= 0x14f1,
2497 .subdevice
= 0x8852,
2498 .card
= CX88_BOARD_GENIATECH_X8000_MT
,
2500 .subvendor
= 0x18ac,
2501 .subdevice
= 0xd610,
2502 .card
= CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
,
2504 .subvendor
= 0x1554,
2505 .subdevice
= 0x4935,
2506 .card
= CX88_BOARD_PROLINK_PV_8000GT
,
2508 .subvendor
= 0x1554,
2509 .subdevice
= 0x4976,
2510 .card
= CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
,
2512 .subvendor
= 0x17de,
2513 .subdevice
= 0x08c1,
2514 .card
= CX88_BOARD_KWORLD_ATSC_120
,
2516 .subvendor
= 0x0070,
2517 .subdevice
= 0x6900,
2518 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2520 .subvendor
= 0x0070,
2521 .subdevice
= 0x6904,
2522 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2524 .subvendor
= 0x0070,
2525 .subdevice
= 0x6902,
2526 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2528 .subvendor
= 0x0070,
2529 .subdevice
= 0x6905,
2530 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2532 .subvendor
= 0x0070,
2533 .subdevice
= 0x6906,
2534 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2536 .subvendor
= 0xd420,
2537 .subdevice
= 0x9022,
2538 .card
= CX88_BOARD_TEVII_S420
,
2540 .subvendor
= 0xd460,
2541 .subdevice
= 0x9022,
2542 .card
= CX88_BOARD_TEVII_S460
,
2544 .subvendor
= 0xd464,
2545 .subdevice
= 0x9022,
2546 .card
= CX88_BOARD_TEVII_S464
,
2548 .subvendor
= 0xA044,
2549 .subdevice
= 0x2011,
2550 .card
= CX88_BOARD_OMICOM_SS4_PCI
,
2552 .subvendor
= 0x8910,
2553 .subdevice
= 0x8888,
2554 .card
= CX88_BOARD_TBS_8910
,
2556 .subvendor
= 0x8920,
2557 .subdevice
= 0x8888,
2558 .card
= CX88_BOARD_TBS_8920
,
2560 .subvendor
= 0xb022,
2561 .subdevice
= 0x3022,
2562 .card
= CX88_BOARD_PROF_6200
,
2564 .subvendor
= 0xB033,
2565 .subdevice
= 0x3033,
2566 .card
= CX88_BOARD_PROF_7300
,
2568 .subvendor
= 0xb200,
2569 .subdevice
= 0x4200,
2570 .card
= CX88_BOARD_SATTRADE_ST4200
,
2572 .subvendor
= 0x153b,
2573 .subdevice
= 0x1177,
2574 .card
= CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
,
2576 .subvendor
= 0x0070,
2577 .subdevice
= 0x9290,
2578 .card
= CX88_BOARD_HAUPPAUGE_IRONLY
,
2580 .subvendor
= 0x107d,
2581 .subdevice
= 0x6654,
2582 .card
= CX88_BOARD_WINFAST_DTV1800H
,
2584 /* PVR2000 PAL Model [107d:6630] */
2585 .subvendor
= 0x107d,
2586 .subdevice
= 0x6630,
2587 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2589 /* PVR2000 PAL Model [107d:6638] */
2590 .subvendor
= 0x107d,
2591 .subdevice
= 0x6638,
2592 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2594 /* PVR2000 NTSC Model [107d:6631] */
2595 .subvendor
= 0x107d,
2596 .subdevice
= 0x6631,
2597 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2599 /* PVR2000 NTSC Model [107d:6637] */
2600 .subvendor
= 0x107d,
2601 .subdevice
= 0x6637,
2602 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2604 /* PVR2000 NTSC Model [107d:663d] */
2605 .subvendor
= 0x107d,
2606 .subdevice
= 0x663d,
2607 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2609 /* DV2000 NTSC Model [107d:6621] */
2610 .subvendor
= 0x107d,
2611 .subdevice
= 0x6621,
2612 .card
= CX88_BOARD_WINFAST_DV2000
,
2614 /* TV2000 XP Global [107d:6618] */
2615 .subvendor
= 0x107d,
2616 .subdevice
= 0x6618,
2617 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2619 .subvendor
= 0xb034,
2620 .subdevice
= 0x3034,
2621 .card
= CX88_BOARD_PROF_7301
,
2623 .subvendor
= 0x1822,
2624 .subdevice
= 0x0023,
2625 .card
= CX88_BOARD_TWINHAN_VP1027_DVBS
,
2629 /* ----------------------------------------------------------------------- */
2630 /* some leadtek specific stuff */
2632 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2634 if (eeprom_data
[4] != 0x7d ||
2635 eeprom_data
[5] != 0x10 ||
2636 eeprom_data
[7] != 0x66) {
2637 warn_printk(core
, "Leadtek eeprom invalid.\n");
2641 /* Terry Wu <terrywu2009@gmail.com> */
2642 switch (eeprom_data
[6]) {
2643 case 0x13: /* SSID 6613 for TV2000 XP Expert NTSC Model */
2644 case 0x21: /* SSID 6621 for DV2000 NTSC Model */
2645 case 0x31: /* SSID 6631 for PVR2000 NTSC Model */
2646 case 0x37: /* SSID 6637 for PVR2000 NTSC Model */
2647 case 0x3d: /* SSID 6637 for PVR2000 NTSC Model */
2648 core
->board
.tuner_type
= TUNER_PHILIPS_FM1236_MK3
;
2651 core
->board
.tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
;
2655 info_printk(core
, "Leadtek Winfast 2000XP Expert config: "
2656 "tuner=%d, eeprom[0]=0x%02x\n",
2657 core
->board
.tuner_type
, eeprom_data
[0]);
2660 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2664 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
2665 core
->board
.tuner_type
= tv
.tuner_type
;
2666 core
->tuner_formats
= tv
.tuner_formats
;
2667 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
2669 /* Make sure we support the board model */
2672 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
2673 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
2674 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
2675 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
2676 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
2677 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
2678 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
2679 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
2680 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
2681 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
2682 case 34519: /* WinTV-PCI-FM */
2684 /* WinTV-HVR4000 (DVBS/S2/T, Video and IR, back panel inputs) */
2685 case 69100: /* WinTV-HVR4000LITE (DVBS/S2, IR) */
2686 case 69500: /* WinTV-HVR4000LITE (DVBS/S2, No IR) */
2688 /* WinTV-HVR4000 (DVBS/S2/T, Video no IR, back panel inputs) */
2689 case 69569: /* WinTV-HVR4000 (DVBS/S2/T, Video no IR) */
2690 case 90002: /* Nova-T-PCI (9002) */
2691 case 92001: /* Nova-S-Plus (Video and IR) */
2692 case 92002: /* Nova-S-Plus (Video and IR) */
2693 case 90003: /* Nova-T-PCI (9002 No RF out) */
2694 case 90500: /* Nova-T-PCI (oem) */
2695 case 90501: /* Nova-T-PCI (oem/IR) */
2696 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
2697 case 92900: /* WinTV-IROnly (No analog or digital Video inputs) */
2698 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
2699 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
2700 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
2701 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
2702 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
2703 case 96569: /* WinTV-HVR1300 () */
2704 case 96659: /* WinTV-HVR1300 () */
2705 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
2708 case CX88_BOARD_SAMSUNG_SMT_7020
:
2709 cx_set(MO_GP0_IO
, 0x008989FF);
2712 warn_printk(core
, "warning: unknown hauppauge model #%d\n",
2717 info_printk(core
, "hauppauge eeprom: model=%d\n", tv
.model
);
2720 /* ----------------------------------------------------------------------- */
2721 /* some GDI (was: Modular Technology) specific stuff */
2723 static const struct {
2728 [ 0x01 ] = { .id
= TUNER_ABSENT
,
2730 [ 0x02 ] = { .id
= TUNER_ABSENT
,
2732 [ 0x03 ] = { .id
= TUNER_ABSENT
,
2734 [ 0x04 ] = { .id
= TUNER_ABSENT
,
2736 [ 0x05 ] = { .id
= TUNER_ABSENT
,
2739 [ 0x10 ] = { .id
= TUNER_ABSENT
,
2741 .name
= "TEMIC_4049" },
2742 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
2743 .name
= "TEMIC_4136" },
2744 [ 0x12 ] = { .id
= TUNER_ABSENT
,
2745 .name
= "TEMIC_4146" },
2747 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
2749 .name
= "PHILIPS_FQ1216_MK3" },
2750 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
2751 .name
= "PHILIPS_FQ1236_MK3" },
2752 [ 0x22 ] = { .id
= TUNER_ABSENT
,
2753 .name
= "PHILIPS_FI1236_MK3" },
2754 [ 0x23 ] = { .id
= TUNER_ABSENT
,
2755 .name
= "PHILIPS_FI1216_MK3" },
2758 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2760 const char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
2761 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
2763 info_printk(core
, "GDI: tuner=%s\n", name
? name
: "unknown");
2766 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
2767 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
2771 /* ------------------------------------------------------------------- */
2772 /* some Divco specific stuff */
2773 static int cx88_dvico_xc2028_callback(struct cx88_core
*core
,
2774 int command
, int arg
)
2777 case XC2028_TUNER_RESET
:
2778 switch (core
->boardnr
) {
2779 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2780 /* GPIO-4 xc3028 tuner */
2782 cx_set(MO_GP0_IO
, 0x00001000);
2783 cx_clear(MO_GP0_IO
, 0x00000010);
2785 cx_set(MO_GP0_IO
, 0x00000010);
2789 cx_write(MO_GP0_IO
, 0x101000);
2791 cx_set(MO_GP0_IO
, 0x101010);
2802 /* ----------------------------------------------------------------------- */
2803 /* some Geniatech specific stuff */
2805 static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core
*core
,
2806 int command
, int mode
)
2809 case XC2028_TUNER_RESET
:
2810 switch (INPUT(core
->input
).type
) {
2814 cx_write(MO_GP1_IO
, 0x030302);
2818 cx_write(MO_GP1_IO
, 0x030301);
2821 cx_write(MO_GP1_IO
, 0x101010);
2823 cx_write(MO_GP1_IO
, 0x101000);
2825 cx_write(MO_GP1_IO
, 0x101010);
2832 static int cx88_xc3028_winfast1800h_callback(struct cx88_core
*core
,
2833 int command
, int arg
)
2836 case XC2028_TUNER_RESET
:
2837 /* GPIO 12 (xc3028 tuner reset) */
2838 cx_set(MO_GP1_IO
, 0x1010);
2840 cx_clear(MO_GP1_IO
, 0x10);
2842 cx_set(MO_GP1_IO
, 0x10);
2849 /* ------------------------------------------------------------------- */
2850 /* some Divco specific stuff */
2851 static int cx88_pv_8000gt_callback(struct cx88_core
*core
,
2852 int command
, int arg
)
2855 case XC2028_TUNER_RESET
:
2856 cx_write(MO_GP2_IO
, 0xcf7);
2858 cx_write(MO_GP2_IO
, 0xef5);
2860 cx_write(MO_GP2_IO
, 0xcf7);
2869 /* ----------------------------------------------------------------------- */
2870 /* some DViCO specific stuff */
2872 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
2874 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
2876 static u8 init_bufs
[13][5] = {
2877 { 0x10, 0x00, 0x20, 0x01, 0x03 },
2878 { 0x10, 0x10, 0x01, 0x00, 0x21 },
2879 { 0x10, 0x10, 0x10, 0x00, 0xCA },
2880 { 0x10, 0x10, 0x12, 0x00, 0x08 },
2881 { 0x10, 0x10, 0x13, 0x00, 0x0A },
2882 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
2883 { 0x10, 0x10, 0x22, 0x01, 0x3D },
2884 { 0x10, 0x10, 0x73, 0x01, 0x2E },
2885 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
2886 { 0x10, 0x10, 0x71, 0x01, 0x97 },
2887 { 0x10, 0x10, 0x70, 0x00, 0x0F },
2888 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
2892 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
2893 msg
.buf
= init_bufs
[i
];
2894 msg
.len
= (i
!= 12 ? 5 : 2);
2895 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
2897 warn_printk(core
, "dvico_fusionhdtv_hybrid_init buf %d "
2898 "failed (err = %d)!\n", i
, err
);
2904 static int cx88_xc2028_tuner_callback(struct cx88_core
*core
,
2905 int command
, int arg
)
2907 /* Board-specific callbacks */
2908 switch (core
->boardnr
) {
2909 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
2910 case CX88_BOARD_GENIATECH_X8000_MT
:
2911 case CX88_BOARD_KWORLD_ATSC_120
:
2912 return cx88_xc3028_geniatech_tuner_callback(core
,
2914 case CX88_BOARD_PROLINK_PV_8000GT
:
2915 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
2916 return cx88_pv_8000gt_callback(core
, command
, arg
);
2917 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
2918 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2919 return cx88_dvico_xc2028_callback(core
, command
, arg
);
2920 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
2921 case CX88_BOARD_WINFAST_DTV1800H
:
2922 return cx88_xc3028_winfast1800h_callback(core
, command
, arg
);
2926 case XC2028_TUNER_RESET
:
2927 switch (INPUT(core
->input
).type
) {
2929 info_printk(core
, "setting GPIO to radio!\n");
2930 cx_write(MO_GP0_IO
, 0x4ff);
2932 cx_write(MO_GP2_IO
, 0xff);
2935 case CX88_VMUX_DVB
: /* Digital TV*/
2936 default: /* Analog TV */
2937 info_printk(core
, "setting GPIO to TV!\n");
2940 cx_write(MO_GP1_IO
, 0x101010);
2942 cx_write(MO_GP1_IO
, 0x101000);
2944 cx_write(MO_GP1_IO
, 0x101010);
2951 /* ----------------------------------------------------------------------- */
2952 /* Tuner callback function. Currently only needed for the Pinnacle *
2953 * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both *
2954 * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */
2956 static int cx88_xc5000_tuner_callback(struct cx88_core
*core
,
2957 int command
, int arg
)
2959 switch (core
->boardnr
) {
2960 case CX88_BOARD_PINNACLE_PCTV_HD_800i
:
2961 if (command
== 0) { /* This is the reset command from xc5000 */
2963 /* djh - According to the engineer at PCTV Systems,
2964 the xc5000 reset pin is supposed to be on GPIO12.
2965 However, despite three nights of effort, pulling
2966 that GPIO low didn't reset the xc5000. While
2967 pulling MO_SRST_IO low does reset the xc5000, this
2968 also resets in the s5h1409 being reset as well.
2969 This causes tuning to always fail since the internal
2970 state of the s5h1409 does not match the driver's
2971 state. Given that the only two conditions in which
2972 the driver performs a reset is during firmware load
2973 and powering down the chip, I am taking out the
2974 reset. We know that the chip is being reset
2975 when the cx88 comes online, and not being able to
2976 do power management for this board is worse than
2977 not having any tuning at all. */
2980 err_printk(core
, "xc5000: unknown tuner "
2981 "callback command.\n");
2985 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
2986 if (command
== 0) { /* This is the reset command from xc5000 */
2987 cx_clear(MO_GP0_IO
, 0x00000010);
2989 cx_set(MO_GP0_IO
, 0x00000010);
2993 "xc5000: unknown tuner callback command.\n");
2998 return 0; /* Should never be here */
3001 int cx88_tuner_callback(void *priv
, int component
, int command
, int arg
)
3003 struct i2c_algo_bit_data
*i2c_algo
= priv
;
3004 struct cx88_core
*core
;
3007 printk(KERN_ERR
"cx88: Error - i2c private data undefined.\n");
3011 core
= i2c_algo
->data
;
3014 printk(KERN_ERR
"cx88: Error - device struct undefined.\n");
3018 if (component
!= DVB_FRONTEND_COMPONENT_TUNER
)
3021 switch (core
->board
.tuner_type
) {
3023 info_printk(core
, "Calling XC2028/3028 callback\n");
3024 return cx88_xc2028_tuner_callback(core
, command
, arg
);
3026 info_printk(core
, "Calling XC5000 callback\n");
3027 return cx88_xc5000_tuner_callback(core
, command
, arg
);
3029 err_printk(core
, "Error: Calling callback for tuner %d\n",
3030 core
->board
.tuner_type
);
3033 EXPORT_SYMBOL(cx88_tuner_callback
);
3035 /* ----------------------------------------------------------------------- */
3037 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
3041 if (0 == pci
->subsystem_vendor
&&
3042 0 == pci
->subsystem_device
) {
3044 "%s: Your board has no valid PCI Subsystem ID and thus can't\n"
3045 "%s: be autodetected. Please pass card=<n> insmod option to\n"
3046 "%s: workaround that. Redirect complaints to the vendor of\n"
3047 "%s: the TV card. Best regards,\n"
3049 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
3052 "%s: Your board isn't known (yet) to the driver. You can\n"
3053 "%s: try to pick one of the existing card configs via\n"
3054 "%s: card=<n> insmod option. Updating to the latest\n"
3055 "%s: version might help as well.\n",
3056 core
->name
,core
->name
,core
->name
,core
->name
);
3058 err_printk(core
, "Here is a list of valid choices for the card=<n> "
3059 "insmod option:\n");
3060 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
3061 printk(KERN_ERR
"%s: card=%d -> %s\n",
3062 core
->name
, i
, cx88_boards
[i
].name
);
3065 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
3067 switch (core
->boardnr
) {
3068 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3070 * Bring the 702 demod up before i2c scanning/attach or devices are hidden
3071 * We leave here with the 702 on the bus
3073 * "reset the IR receiver on GPIO[3]"
3074 * Reported by Mike Crash <mike AT mikecrash.com>
3076 cx_write(MO_GP0_IO
, 0x0000ef88);
3078 cx_clear(MO_GP0_IO
, 0x00000088);
3080 cx_set(MO_GP0_IO
, 0x00000088); /* 702 out of reset */
3084 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3085 case CX88_BOARD_PROLINK_PV_8000GT
:
3086 cx_write(MO_GP2_IO
, 0xcf7);
3088 cx_write(MO_GP2_IO
, 0xef5);
3090 cx_write(MO_GP2_IO
, 0xcf7);
3094 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3095 /* Enable the xc5000 tuner */
3096 cx_set(MO_GP0_IO
, 0x00001010);
3099 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3100 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3102 cx_write(MO_GP0_IO
, core
->board
.input
[0].gpio0
);
3104 cx_clear(MO_GP0_IO
, 0x00000080);
3106 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
3110 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3111 case CX88_BOARD_WINFAST_DTV1800H
:
3112 /* GPIO 12 (xc3028 tuner reset) */
3113 cx_set(MO_GP1_IO
, 0x1010);
3115 cx_clear(MO_GP1_IO
, 0x10);
3117 cx_set(MO_GP1_IO
, 0x10);
3121 case CX88_BOARD_TWINHAN_VP1027_DVBS
:
3122 cx_write(MO_GP0_IO
, 0x00003230);
3123 cx_write(MO_GP0_IO
, 0x00003210);
3125 cx_write(MO_GP0_IO
, 0x00001230);
3131 * Sets board-dependent xc3028 configuration
3133 void cx88_setup_xc3028(struct cx88_core
*core
, struct xc2028_ctrl
*ctl
)
3135 memset(ctl
, 0, sizeof(*ctl
));
3137 ctl
->fname
= XC2028_DEFAULT_FIRMWARE
;
3140 switch (core
->boardnr
) {
3141 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3142 /* Now works with firmware version 2.7 */
3143 if (core
->i2c_algo
.udelay
< 16)
3144 core
->i2c_algo
.udelay
= 16;
3146 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3147 case CX88_BOARD_WINFAST_DTV1800H
:
3148 ctl
->demod
= XC3028_FE_ZARLINK456
;
3150 case CX88_BOARD_KWORLD_ATSC_120
:
3151 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3152 ctl
->demod
= XC3028_FE_OREN538
;
3154 case CX88_BOARD_GENIATECH_X8000_MT
:
3155 /* FIXME: For this board, the xc3028 never recovers after being
3156 powered down (the reset GPIO probably is not set properly).
3157 We don't have access to the hardware so we cannot determine
3158 which GPIO is used for xc3028, so just disable power xc3028
3159 power management for now */
3160 ctl
->disable_power_mgmt
= 1;
3162 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3163 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3164 case CX88_BOARD_PROLINK_PV_8000GT
:
3166 * Those boards uses non-MTS firmware
3169 case CX88_BOARD_PINNACLE_HYBRID_PCTV
:
3170 case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
:
3171 ctl
->demod
= XC3028_FE_ZARLINK456
;
3175 ctl
->demod
= XC3028_FE_OREN538
;
3179 EXPORT_SYMBOL_GPL(cx88_setup_xc3028
);
3181 static void cx88_card_setup(struct cx88_core
*core
)
3183 static u8 eeprom
[256];
3184 struct tuner_setup tun_setup
;
3185 unsigned int mode_mask
= T_RADIO
| T_ANALOG_TV
;
3187 memset(&tun_setup
, 0, sizeof(tun_setup
));
3189 if (0 == core
->i2c_rc
) {
3190 core
->i2c_client
.addr
= 0xa0 >> 1;
3191 tveeprom_read(&core
->i2c_client
, eeprom
, sizeof(eeprom
));
3194 switch (core
->boardnr
) {
3195 case CX88_BOARD_HAUPPAUGE
:
3196 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
3197 if (0 == core
->i2c_rc
)
3198 hauppauge_eeprom(core
, eeprom
+8);
3200 case CX88_BOARD_GDI
:
3201 if (0 == core
->i2c_rc
)
3202 gdi_eeprom(core
, eeprom
);
3204 case CX88_BOARD_LEADTEK_PVR2000
:
3205 case CX88_BOARD_WINFAST_DV2000
:
3206 case CX88_BOARD_WINFAST2000XP_EXPERT
:
3207 if (0 == core
->i2c_rc
)
3208 leadtek_eeprom(core
, eeprom
);
3210 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
3211 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
3212 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
3213 case CX88_BOARD_HAUPPAUGE_HVR1100
:
3214 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
3215 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3216 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3217 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3218 case CX88_BOARD_HAUPPAUGE_HVR4000LITE
:
3219 case CX88_BOARD_HAUPPAUGE_IRONLY
:
3220 if (0 == core
->i2c_rc
)
3221 hauppauge_eeprom(core
, eeprom
);
3223 case CX88_BOARD_KWORLD_DVBS_100
:
3224 cx_write(MO_GP0_IO
, 0x000007f8);
3225 cx_write(MO_GP1_IO
, 0x00000001);
3227 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3228 /* GPIO0:0 is hooked to demod reset */
3229 /* GPIO0:4 is hooked to xc3028 reset */
3230 cx_write(MO_GP0_IO
, 0x00111100);
3232 cx_write(MO_GP0_IO
, 0x00111111);
3234 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
3235 /* GPIO0:6 is hooked to FX2 reset pin */
3236 cx_set(MO_GP0_IO
, 0x00004040);
3237 cx_clear(MO_GP0_IO
, 0x00000040);
3239 cx_set(MO_GP0_IO
, 0x00004040);
3241 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
3242 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
3243 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
3244 /* GPIO0:0 is hooked to mt352 reset pin */
3245 cx_set(MO_GP0_IO
, 0x00000101);
3246 cx_clear(MO_GP0_IO
, 0x00000001);
3248 cx_set(MO_GP0_IO
, 0x00000101);
3249 if (0 == core
->i2c_rc
&&
3250 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
3251 dvico_fusionhdtv_hybrid_init(core
);
3253 case CX88_BOARD_KWORLD_DVB_T
:
3254 case CX88_BOARD_DNTV_LIVE_DVB_T
:
3255 cx_set(MO_GP0_IO
, 0x00000707);
3256 cx_set(MO_GP2_IO
, 0x00000101);
3257 cx_clear(MO_GP2_IO
, 0x00000001);
3259 cx_clear(MO_GP0_IO
, 0x00000007);
3260 cx_set(MO_GP2_IO
, 0x00000101);
3262 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
3263 cx_write(MO_GP0_IO
, 0x00080808);
3265 case CX88_BOARD_ATI_HDTVWONDER
:
3266 if (0 == core
->i2c_rc
) {
3269 static const u8 buffer
[][2] = {
3276 core
->i2c_client
.addr
= 0x0a;
3278 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
3279 if (2 != i2c_master_send(&core
->i2c_client
,
3281 warn_printk(core
, "Unable to enable "
3285 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
3287 struct v4l2_priv_tun_config tea5767_cfg
;
3288 struct tea5767_ctrl ctl
;
3290 memset(&ctl
, 0, sizeof(ctl
));
3295 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
3297 tea5767_cfg
.tuner
= TUNER_TEA5767
;
3298 tea5767_cfg
.priv
= &ctl
;
3300 call_all(core
, tuner
, s_config
, &tea5767_cfg
);
3303 case CX88_BOARD_TEVII_S420
:
3304 case CX88_BOARD_TEVII_S460
:
3305 case CX88_BOARD_TEVII_S464
:
3306 case CX88_BOARD_OMICOM_SS4_PCI
:
3307 case CX88_BOARD_TBS_8910
:
3308 case CX88_BOARD_TBS_8920
:
3309 case CX88_BOARD_PROF_6200
:
3310 case CX88_BOARD_PROF_7300
:
3311 case CX88_BOARD_PROF_7301
:
3312 case CX88_BOARD_SATTRADE_ST4200
:
3313 cx_write(MO_GP0_IO
, 0x8000);
3315 cx_write(MO_SRST_IO
, 0);
3317 cx_write(MO_GP0_IO
, 0x8080);
3319 cx_write(MO_SRST_IO
, 1);
3326 if ((core
->board
.radio_type
!= UNSET
)) {
3327 tun_setup
.mode_mask
= T_RADIO
;
3328 tun_setup
.type
= core
->board
.radio_type
;
3329 tun_setup
.addr
= core
->board
.radio_addr
;
3330 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3331 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3332 mode_mask
&= ~T_RADIO
;
3335 if (core
->board
.tuner_type
!= TUNER_ABSENT
) {
3336 tun_setup
.mode_mask
= mode_mask
;
3337 tun_setup
.type
= core
->board
.tuner_type
;
3338 tun_setup
.addr
= core
->board
.tuner_addr
;
3339 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3341 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3344 if (core
->board
.tda9887_conf
) {
3345 struct v4l2_priv_tun_config tda9887_cfg
;
3347 tda9887_cfg
.tuner
= TUNER_TDA9887
;
3348 tda9887_cfg
.priv
= &core
->board
.tda9887_conf
;
3350 call_all(core
, tuner
, s_config
, &tda9887_cfg
);
3353 if (core
->board
.tuner_type
== TUNER_XC2028
) {
3354 struct v4l2_priv_tun_config xc2028_cfg
;
3355 struct xc2028_ctrl ctl
;
3357 /* Fills device-dependent initialization parameters */
3358 cx88_setup_xc3028(core
, &ctl
);
3360 /* Sends parameters to xc2028/3028 tuner */
3361 memset(&xc2028_cfg
, 0, sizeof(xc2028_cfg
));
3362 xc2028_cfg
.tuner
= TUNER_XC2028
;
3363 xc2028_cfg
.priv
= &ctl
;
3364 info_printk(core
, "Asking xc2028/3028 to load firmware %s\n",
3366 call_all(core
, tuner
, s_config
, &xc2028_cfg
);
3368 call_all(core
, core
, s_power
, 0);
3371 /* ------------------------------------------------------------------ */
3373 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
3375 unsigned int lat
= UNSET
;
3379 /* check pci quirks */
3380 if (pci_pci_problems
& PCIPCI_TRITON
) {
3381 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
3383 ctrl
|= CX88X_EN_TBFX
;
3385 if (pci_pci_problems
& PCIPCI_NATOMA
) {
3386 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
3388 ctrl
|= CX88X_EN_TBFX
;
3390 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
3391 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
3393 ctrl
|= CX88X_EN_TBFX
;
3395 if (pci_pci_problems
& PCIPCI_VSFX
) {
3396 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
3398 ctrl
|= CX88X_EN_VSFX
;
3400 #ifdef PCIPCI_ALIMAGIK
3401 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
3402 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
3408 /* check insmod options */
3409 if (UNSET
!= latency
)
3414 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
3416 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
3419 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
3421 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
3426 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
3428 if (request_mem_region(pci_resource_start(pci
,0),
3429 pci_resource_len(pci
,0),
3433 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3434 core
->name
, PCI_FUNC(pci
->devfn
),
3435 (unsigned long long)pci_resource_start(pci
, 0),
3436 pci
->subsystem_vendor
, pci
->subsystem_device
);
3440 /* Allocate and initialize the cx88 core struct. One should hold the
3441 * devlist mutex before calling this. */
3442 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
3444 struct cx88_core
*core
;
3447 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
3451 atomic_inc(&core
->refcount
);
3452 core
->pci_bus
= pci
->bus
->number
;
3453 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
3454 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
3455 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
3456 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
3457 mutex_init(&core
->lock
);
3460 sprintf(core
->name
, "cx88[%d]", core
->nr
);
3462 strcpy(core
->v4l2_dev
.name
, core
->name
);
3463 if (v4l2_device_register(NULL
, &core
->v4l2_dev
)) {
3468 if (0 != cx88_get_resources(core
, pci
)) {
3469 v4l2_device_unregister(&core
->v4l2_dev
);
3475 cx88_pci_quirks(core
->name
, pci
);
3476 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
3477 pci_resource_len(pci
, 0));
3478 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
3480 if (core
->lmmio
== NULL
) {
3486 core
->boardnr
= UNSET
;
3487 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
3488 core
->boardnr
= card
[core
->nr
];
3489 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
3490 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
3491 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
3492 core
->boardnr
= cx88_subids
[i
].card
;
3493 if (UNSET
== core
->boardnr
) {
3494 core
->boardnr
= CX88_BOARD_UNKNOWN
;
3495 cx88_card_list(core
, pci
);
3498 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
3500 if (!core
->board
.num_frontends
&& (core
->board
.mpeg
& CX88_MPEG_DVB
))
3501 core
->board
.num_frontends
= 1;
3503 info_printk(core
, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3504 pci
->subsystem_vendor
, pci
->subsystem_device
, core
->board
.name
,
3505 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
3506 "insmod option" : "autodetected",
3507 core
->board
.num_frontends
);
3509 if (tuner
[core
->nr
] != UNSET
)
3510 core
->board
.tuner_type
= tuner
[core
->nr
];
3511 if (radio
[core
->nr
] != UNSET
)
3512 core
->board
.radio_type
= radio
[core
->nr
];
3514 info_printk(core
, "TV tuner type %d, Radio tuner type %d\n",
3515 core
->board
.tuner_type
, core
->board
.radio_type
);
3519 cx88_card_setup_pre_i2c(core
);
3520 cx88_i2c_init(core
, pci
);
3522 /* load tuner module, if needed */
3523 if (TUNER_ABSENT
!= core
->board
.tuner_type
) {
3524 /* Ignore 0x6b and 0x6f on cx88 boards.
3525 * FusionHDTV5 RT Gold has an ir receiver at 0x6b
3526 * and an RTC at 0x6f which can get corrupted if probed. */
3527 static const unsigned short tv_addrs
[] = {
3528 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
3529 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3530 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3533 int has_demod
= (core
->board
.tda9887_conf
& TDA9887_PRESENT
);
3535 /* I don't trust the radio_type as is stored in the card
3536 definitions, so we just probe for it.
3537 The radio_type is sometimes missing, or set to UNSET but
3538 later code configures a tea5767.
3540 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3541 "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO
));
3543 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3544 &core
->i2c_adap
, "tuner",
3545 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD
));
3546 if (core
->board
.tuner_addr
== ADDR_UNSET
) {
3547 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3548 &core
->i2c_adap
, "tuner",
3549 0, has_demod
? tv_addrs
+ 4 : tv_addrs
);
3551 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3552 "tuner", core
->board
.tuner_addr
, NULL
);
3556 cx88_card_setup(core
);
3558 cx88_i2c_init_ir(core
);
3559 cx88_ir_init(core
, pci
);