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>
33 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
34 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
35 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
37 module_param_array(tuner
, int, NULL
, 0444);
38 module_param_array(radio
, int, NULL
, 0444);
39 module_param_array(card
, int, NULL
, 0444);
41 MODULE_PARM_DESC(tuner
,"tuner type");
42 MODULE_PARM_DESC(radio
,"radio tuner type");
43 MODULE_PARM_DESC(card
,"card type");
45 static unsigned int latency
= UNSET
;
46 module_param(latency
,int,0444);
47 MODULE_PARM_DESC(latency
,"pci latency timer");
49 static int disable_ir
;
50 module_param(disable_ir
, int, 0444);
51 MODULE_PARM_DESC(disable_ir
, "Disable IR support");
53 #define info_printk(core, fmt, arg...) \
54 printk(KERN_INFO "%s: " fmt, core->name , ## arg)
56 #define warn_printk(core, fmt, arg...) \
57 printk(KERN_WARNING "%s: " fmt, core->name , ## arg)
59 #define err_printk(core, fmt, arg...) \
60 printk(KERN_ERR "%s: " fmt, core->name , ## arg)
63 /* ------------------------------------------------------------------ */
64 /* board config info */
66 /* If radio_type !=UNSET, radio_addr should be specified
69 static const struct cx88_board cx88_boards
[] = {
70 [CX88_BOARD_UNKNOWN
] = {
71 .name
= "UNKNOWN/GENERIC",
74 .tuner_addr
= ADDR_UNSET
,
75 .radio_addr
= ADDR_UNSET
,
77 .type
= CX88_VMUX_COMPOSITE1
,
80 .type
= CX88_VMUX_COMPOSITE2
,
83 .type
= CX88_VMUX_COMPOSITE3
,
86 .type
= CX88_VMUX_COMPOSITE4
,
90 [CX88_BOARD_HAUPPAUGE
] = {
91 .name
= "Hauppauge WinTV 34xxx models",
94 .tuner_addr
= ADDR_UNSET
,
95 .radio_addr
= ADDR_UNSET
,
96 .tda9887_conf
= TDA9887_PRESENT
,
98 .type
= CX88_VMUX_TELEVISION
,
100 .gpio0
= 0xff00, // internal decoder
102 .type
= CX88_VMUX_DEBUG
,
104 .gpio0
= 0xff01, // mono from tuner chip
106 .type
= CX88_VMUX_COMPOSITE1
,
110 .type
= CX88_VMUX_SVIDEO
,
120 .name
= "GDI Black Gold",
123 .tuner_addr
= ADDR_UNSET
,
124 .radio_addr
= ADDR_UNSET
,
126 .type
= CX88_VMUX_TELEVISION
,
129 .type
= CX88_VMUX_SVIDEO
,
133 [CX88_BOARD_PIXELVIEW
] = {
135 .tuner_type
= TUNER_PHILIPS_PAL
,
137 .tuner_addr
= ADDR_UNSET
,
138 .radio_addr
= ADDR_UNSET
,
140 .type
= CX88_VMUX_TELEVISION
,
142 .gpio0
= 0xff00, // internal decoder
144 .type
= CX88_VMUX_COMPOSITE1
,
147 .type
= CX88_VMUX_SVIDEO
,
155 [CX88_BOARD_ATI_WONDER_PRO
] = {
156 .name
= "ATI TV Wonder Pro",
157 .tuner_type
= TUNER_PHILIPS_4IN1
,
159 .tuner_addr
= ADDR_UNSET
,
160 .radio_addr
= ADDR_UNSET
,
161 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
163 .type
= CX88_VMUX_TELEVISION
,
167 .type
= CX88_VMUX_COMPOSITE1
,
171 .type
= CX88_VMUX_SVIDEO
,
176 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
177 .name
= "Leadtek Winfast 2000XP Expert",
178 .tuner_type
= TUNER_PHILIPS_4IN1
,
180 .tuner_addr
= ADDR_UNSET
,
181 .radio_addr
= ADDR_UNSET
,
182 .tda9887_conf
= TDA9887_PRESENT
,
184 .type
= CX88_VMUX_TELEVISION
,
191 .type
= CX88_VMUX_COMPOSITE1
,
198 .type
= CX88_VMUX_SVIDEO
,
213 [CX88_BOARD_AVERTV_STUDIO_303
] = {
214 .name
= "AverTV Studio 303 (M126)",
215 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
217 .tuner_addr
= ADDR_UNSET
,
218 .radio_addr
= ADDR_UNSET
,
219 .tda9887_conf
= TDA9887_PRESENT
,
221 .type
= CX88_VMUX_TELEVISION
,
225 .type
= CX88_VMUX_COMPOSITE1
,
229 .type
= CX88_VMUX_SVIDEO
,
238 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
239 // added gpio values thanks to Michal
240 // values for PAL from DScaler
241 .name
= "MSI TV-@nywhere Master",
242 .tuner_type
= TUNER_MT2032
,
244 .tuner_addr
= ADDR_UNSET
,
245 .radio_addr
= ADDR_UNSET
,
246 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
248 .type
= CX88_VMUX_TELEVISION
,
254 .type
= CX88_VMUX_COMPOSITE1
,
260 .type
= CX88_VMUX_SVIDEO
,
274 [CX88_BOARD_WINFAST_DV2000
] = {
275 .name
= "Leadtek Winfast DV2000",
276 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
278 .tuner_addr
= ADDR_UNSET
,
279 .radio_addr
= ADDR_UNSET
,
280 .tda9887_conf
= TDA9887_PRESENT
,
282 .type
= CX88_VMUX_TELEVISION
,
290 .type
= CX88_VMUX_COMPOSITE1
,
297 .type
= CX88_VMUX_SVIDEO
,
312 [CX88_BOARD_LEADTEK_PVR2000
] = {
313 // gpio values for PAL version from regspy by DScaler
314 .name
= "Leadtek PVR 2000",
315 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
317 .tuner_addr
= ADDR_UNSET
,
318 .radio_addr
= ADDR_UNSET
,
319 .tda9887_conf
= TDA9887_PRESENT
,
321 .type
= CX88_VMUX_TELEVISION
,
326 .type
= CX88_VMUX_COMPOSITE1
,
331 .type
= CX88_VMUX_SVIDEO
,
341 .mpeg
= CX88_MPEG_BLACKBIRD
,
343 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
344 .name
= "IODATA GV-VCP3/PCI",
345 .tuner_type
= TUNER_ABSENT
,
347 .tuner_addr
= ADDR_UNSET
,
348 .radio_addr
= ADDR_UNSET
,
350 .type
= CX88_VMUX_COMPOSITE1
,
353 .type
= CX88_VMUX_COMPOSITE2
,
356 .type
= CX88_VMUX_SVIDEO
,
360 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
361 .name
= "Prolink PlayTV PVR",
362 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
364 .tuner_addr
= ADDR_UNSET
,
365 .radio_addr
= ADDR_UNSET
,
366 .tda9887_conf
= TDA9887_PRESENT
,
368 .type
= CX88_VMUX_TELEVISION
,
372 .type
= CX88_VMUX_COMPOSITE1
,
376 .type
= CX88_VMUX_SVIDEO
,
385 [CX88_BOARD_ASUS_PVR_416
] = {
386 .name
= "ASUS PVR-416",
387 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
389 .tuner_addr
= ADDR_UNSET
,
390 .radio_addr
= ADDR_UNSET
,
391 .tda9887_conf
= TDA9887_PRESENT
,
393 .type
= CX88_VMUX_TELEVISION
,
397 .type
= CX88_VMUX_SVIDEO
,
399 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
406 .mpeg
= CX88_MPEG_BLACKBIRD
,
408 [CX88_BOARD_MSI_TVANYWHERE
] = {
409 .name
= "MSI TV-@nywhere",
410 .tuner_type
= TUNER_MT2032
,
412 .tuner_addr
= ADDR_UNSET
,
413 .radio_addr
= ADDR_UNSET
,
414 .tda9887_conf
= TDA9887_PRESENT
,
416 .type
= CX88_VMUX_TELEVISION
,
421 .type
= CX88_VMUX_COMPOSITE1
,
426 .type
= CX88_VMUX_SVIDEO
,
432 [CX88_BOARD_KWORLD_DVB_T
] = {
433 .name
= "KWorld/VStream XPert DVB-T",
434 .tuner_type
= TUNER_ABSENT
,
436 .tuner_addr
= ADDR_UNSET
,
437 .radio_addr
= ADDR_UNSET
,
439 .type
= CX88_VMUX_COMPOSITE1
,
444 .type
= CX88_VMUX_SVIDEO
,
449 .mpeg
= CX88_MPEG_DVB
,
451 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
452 .name
= "DViCO FusionHDTV DVB-T1",
453 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
455 .tuner_addr
= ADDR_UNSET
,
456 .radio_addr
= ADDR_UNSET
,
458 .type
= CX88_VMUX_COMPOSITE1
,
462 .type
= CX88_VMUX_SVIDEO
,
466 .mpeg
= CX88_MPEG_DVB
,
468 [CX88_BOARD_KWORLD_LTV883
] = {
469 .name
= "KWorld LTV883RF",
470 .tuner_type
= TUNER_TNF_8831BGFF
,
472 .tuner_addr
= ADDR_UNSET
,
473 .radio_addr
= ADDR_UNSET
,
475 .type
= CX88_VMUX_TELEVISION
,
479 .type
= CX88_VMUX_DEBUG
,
481 .gpio0
= 0x07f9, // mono from tuner chip
483 .type
= CX88_VMUX_COMPOSITE1
,
487 .type
= CX88_VMUX_SVIDEO
,
496 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
497 .name
= "DViCO FusionHDTV 3 Gold-Q",
498 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
500 .tuner_addr
= ADDR_UNSET
,
501 .radio_addr
= ADDR_UNSET
,
503 GPIO[0] resets DT3302 DTV receiver
506 GPIO[1] mutes analog audio output connector
507 0 - enable selected source
509 GPIO[2] selects source for analog audio output connector
510 0 - analog audio input connector on tab
511 1 - analog DAC output from CX23881 chip
512 GPIO[3] selects RF input connector on tuner module
513 0 - RF connector labeled CABLE
514 1 - RF connector labeled ANT
515 GPIO[4] selects high RF for QAM256 mode
520 .type
= CX88_VMUX_TELEVISION
,
524 .type
= CX88_VMUX_CABLE
,
528 .type
= CX88_VMUX_COMPOSITE1
,
532 .type
= CX88_VMUX_SVIDEO
,
536 .mpeg
= CX88_MPEG_DVB
,
538 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
539 .name
= "Hauppauge Nova-T DVB-T",
540 .tuner_type
= TUNER_ABSENT
,
542 .tuner_addr
= ADDR_UNSET
,
543 .radio_addr
= ADDR_UNSET
,
545 .type
= CX88_VMUX_DVB
,
548 .mpeg
= CX88_MPEG_DVB
,
550 [CX88_BOARD_CONEXANT_DVB_T1
] = {
551 .name
= "Conexant DVB-T reference design",
552 .tuner_type
= TUNER_ABSENT
,
554 .tuner_addr
= ADDR_UNSET
,
555 .radio_addr
= ADDR_UNSET
,
557 .type
= CX88_VMUX_DVB
,
560 .mpeg
= CX88_MPEG_DVB
,
562 [CX88_BOARD_PROVIDEO_PV259
] = {
563 .name
= "Provideo PV259",
564 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
566 .tuner_addr
= ADDR_UNSET
,
567 .radio_addr
= ADDR_UNSET
,
569 .type
= CX88_VMUX_TELEVISION
,
573 .mpeg
= CX88_MPEG_BLACKBIRD
,
575 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
576 .name
= "DViCO FusionHDTV DVB-T Plus",
577 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
579 .tuner_addr
= ADDR_UNSET
,
580 .radio_addr
= ADDR_UNSET
,
582 .type
= CX88_VMUX_COMPOSITE1
,
586 .type
= CX88_VMUX_SVIDEO
,
590 .mpeg
= CX88_MPEG_DVB
,
592 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
593 .name
= "digitalnow DNTV Live! DVB-T",
594 .tuner_type
= TUNER_ABSENT
,
596 .tuner_addr
= ADDR_UNSET
,
597 .radio_addr
= ADDR_UNSET
,
599 .type
= CX88_VMUX_COMPOSITE1
,
604 .type
= CX88_VMUX_SVIDEO
,
609 .mpeg
= CX88_MPEG_DVB
,
611 [CX88_BOARD_PCHDTV_HD3000
] = {
612 .name
= "pcHDTV HD3000 HDTV",
613 .tuner_type
= TUNER_THOMSON_DTT761X
,
615 .tuner_addr
= ADDR_UNSET
,
616 .radio_addr
= ADDR_UNSET
,
617 .tda9887_conf
= TDA9887_PRESENT
,
618 /* GPIO[2] = audio source for analog audio out connector
619 * 0 = analog audio input connector
620 * 1 = CX88 audio DACs
622 * GPIO[7] = input to CX88's audio/chroma ADC
624 * 1 = Sound 4.5 MHz IF
626 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
628 * GPIO[16] = Remote control input
631 .type
= CX88_VMUX_TELEVISION
,
635 .type
= CX88_VMUX_COMPOSITE1
,
639 .type
= CX88_VMUX_SVIDEO
,
647 .mpeg
= CX88_MPEG_DVB
,
649 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
650 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
651 // GPIO values obtained from regspy, courtesy Sean Covel
652 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
655 .tuner_addr
= ADDR_UNSET
,
656 .radio_addr
= ADDR_UNSET
,
658 .type
= CX88_VMUX_TELEVISION
,
663 .type
= CX88_VMUX_DEBUG
,
667 .type
= CX88_VMUX_COMPOSITE1
,
671 .type
= CX88_VMUX_SVIDEO
,
681 .mpeg
= CX88_MPEG_BLACKBIRD
,
683 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
684 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
685 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
687 .tuner_addr
= ADDR_UNSET
,
688 .radio_addr
= ADDR_UNSET
,
689 .tda9887_conf
= TDA9887_PRESENT
,
691 .type
= CX88_VMUX_TELEVISION
,
696 .type
= CX88_VMUX_COMPOSITE1
,
701 .type
= CX88_VMUX_SVIDEO
,
711 .mpeg
= CX88_MPEG_BLACKBIRD
,
713 [CX88_BOARD_IODATA_GVBCTV7E
] = {
714 .name
= "IODATA GV/BCTV7E",
715 .tuner_type
= TUNER_PHILIPS_FQ1286
,
717 .tuner_addr
= ADDR_UNSET
,
718 .radio_addr
= ADDR_UNSET
,
719 .tda9887_conf
= TDA9887_PRESENT
,
721 .type
= CX88_VMUX_TELEVISION
,
725 .type
= CX88_VMUX_COMPOSITE1
,
729 .type
= CX88_VMUX_SVIDEO
,
734 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
735 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
736 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
737 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
739 .tuner_addr
= ADDR_UNSET
,
740 .radio_addr
= ADDR_UNSET
,
741 /* Some variants use a tda9874 and so need the tvaudio module. */
742 .audio_chip
= V4L2_IDENT_TVAUDIO
,
744 .type
= CX88_VMUX_TELEVISION
,
746 .gpio0
= 0xbf61, /* internal decoder */
748 .type
= CX88_VMUX_COMPOSITE1
,
752 .type
= CX88_VMUX_SVIDEO
,
761 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
762 .name
= "DViCO FusionHDTV 3 Gold-T",
763 .tuner_type
= TUNER_THOMSON_DTT761X
,
765 .tuner_addr
= ADDR_UNSET
,
766 .radio_addr
= ADDR_UNSET
,
767 .tda9887_conf
= TDA9887_PRESENT
,
769 .type
= CX88_VMUX_TELEVISION
,
773 .type
= CX88_VMUX_COMPOSITE1
,
777 .type
= CX88_VMUX_SVIDEO
,
781 .mpeg
= CX88_MPEG_DVB
,
783 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
784 .name
= "ADS Tech Instant TV DVB-T PCI",
785 .tuner_type
= TUNER_ABSENT
,
787 .tuner_addr
= ADDR_UNSET
,
788 .radio_addr
= ADDR_UNSET
,
790 .type
= CX88_VMUX_COMPOSITE1
,
795 .type
= CX88_VMUX_SVIDEO
,
800 .mpeg
= CX88_MPEG_DVB
,
802 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
803 .name
= "TerraTec Cinergy 1400 DVB-T",
804 .tuner_type
= TUNER_ABSENT
,
806 .type
= CX88_VMUX_DVB
,
809 .type
= CX88_VMUX_COMPOSITE1
,
812 .type
= CX88_VMUX_SVIDEO
,
815 .mpeg
= CX88_MPEG_DVB
,
817 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
818 .name
= "DViCO FusionHDTV 5 Gold",
819 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
821 .tuner_addr
= ADDR_UNSET
,
822 .radio_addr
= ADDR_UNSET
,
823 .tda9887_conf
= TDA9887_PRESENT
,
825 .type
= CX88_VMUX_TELEVISION
,
829 .type
= CX88_VMUX_COMPOSITE1
,
833 .type
= CX88_VMUX_SVIDEO
,
837 .mpeg
= CX88_MPEG_DVB
,
839 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
840 .name
= "AverMedia UltraTV Media Center PCI 550",
841 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
843 .tuner_addr
= ADDR_UNSET
,
844 .radio_addr
= ADDR_UNSET
,
845 .tda9887_conf
= TDA9887_PRESENT
,
847 .type
= CX88_VMUX_COMPOSITE1
,
852 .type
= CX88_VMUX_SVIDEO
,
857 .type
= CX88_VMUX_TELEVISION
,
868 .mpeg
= CX88_MPEG_BLACKBIRD
,
870 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
871 /* Alexander Wold <awold@bigfoot.com> */
872 .name
= "Kworld V-Stream Xpert DVD",
875 .type
= CX88_VMUX_COMPOSITE1
,
882 .type
= CX88_VMUX_SVIDEO
,
890 [CX88_BOARD_ATI_HDTVWONDER
] = {
891 .name
= "ATI HDTV Wonder",
892 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
894 .tuner_addr
= ADDR_UNSET
,
895 .radio_addr
= ADDR_UNSET
,
897 .type
= CX88_VMUX_TELEVISION
,
904 .type
= CX88_VMUX_COMPOSITE1
,
911 .type
= CX88_VMUX_SVIDEO
,
918 .mpeg
= CX88_MPEG_DVB
,
920 [CX88_BOARD_WINFAST_DTV1000
] = {
921 .name
= "WinFast DTV1000-T",
922 .tuner_type
= TUNER_ABSENT
,
924 .tuner_addr
= ADDR_UNSET
,
925 .radio_addr
= ADDR_UNSET
,
927 .type
= CX88_VMUX_DVB
,
930 .type
= CX88_VMUX_COMPOSITE1
,
933 .type
= CX88_VMUX_SVIDEO
,
936 .mpeg
= CX88_MPEG_DVB
,
938 [CX88_BOARD_AVERTV_303
] = {
939 .name
= "AVerTV 303 (M126)",
940 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
942 .tuner_addr
= ADDR_UNSET
,
943 .radio_addr
= ADDR_UNSET
,
944 .tda9887_conf
= TDA9887_PRESENT
,
946 .type
= CX88_VMUX_TELEVISION
,
953 .type
= CX88_VMUX_COMPOSITE1
,
960 .type
= CX88_VMUX_SVIDEO
,
968 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
969 .name
= "Hauppauge Nova-S-Plus DVB-S",
970 .tuner_type
= TUNER_ABSENT
,
972 .tuner_addr
= ADDR_UNSET
,
973 .radio_addr
= ADDR_UNSET
,
974 .audio_chip
= V4L2_IDENT_WM8775
,
977 .type
= CX88_VMUX_DVB
,
982 .type
= CX88_VMUX_COMPOSITE1
,
987 .type
= CX88_VMUX_SVIDEO
,
992 .mpeg
= CX88_MPEG_DVB
,
994 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
995 .name
= "Hauppauge Nova-SE2 DVB-S",
996 .tuner_type
= TUNER_ABSENT
,
998 .tuner_addr
= ADDR_UNSET
,
999 .radio_addr
= ADDR_UNSET
,
1001 .type
= CX88_VMUX_DVB
,
1004 .mpeg
= CX88_MPEG_DVB
,
1006 [CX88_BOARD_KWORLD_DVBS_100
] = {
1007 .name
= "KWorld DVB-S 100",
1008 .tuner_type
= TUNER_ABSENT
,
1009 .radio_type
= UNSET
,
1010 .tuner_addr
= ADDR_UNSET
,
1011 .radio_addr
= ADDR_UNSET
,
1012 .audio_chip
= V4L2_IDENT_WM8775
,
1014 .type
= CX88_VMUX_DVB
,
1019 .type
= CX88_VMUX_COMPOSITE1
,
1024 .type
= CX88_VMUX_SVIDEO
,
1029 .mpeg
= CX88_MPEG_DVB
,
1031 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
1032 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
1033 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1034 .radio_type
= UNSET
,
1035 .tuner_addr
= ADDR_UNSET
,
1036 .radio_addr
= ADDR_UNSET
,
1037 .tda9887_conf
= TDA9887_PRESENT
,
1039 .type
= CX88_VMUX_TELEVISION
,
1042 .type
= CX88_VMUX_COMPOSITE1
,
1045 .type
= CX88_VMUX_SVIDEO
,
1048 /* fixme: Add radio support */
1049 .mpeg
= CX88_MPEG_DVB
,
1051 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1052 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1053 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1054 .radio_type
= UNSET
,
1055 .tuner_addr
= ADDR_UNSET
,
1056 .radio_addr
= ADDR_UNSET
,
1057 .tda9887_conf
= TDA9887_PRESENT
,
1059 .type
= CX88_VMUX_TELEVISION
,
1062 .type
= CX88_VMUX_COMPOSITE1
,
1065 /* fixme: Add radio support */
1066 .mpeg
= CX88_MPEG_DVB
,
1068 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1069 .name
= "digitalnow DNTV Live! DVB-T Pro",
1070 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1071 .radio_type
= UNSET
,
1072 .tuner_addr
= ADDR_UNSET
,
1073 .radio_addr
= ADDR_UNSET
,
1074 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1075 TDA9887_PORT2_ACTIVE
,
1077 .type
= CX88_VMUX_TELEVISION
,
1081 .type
= CX88_VMUX_COMPOSITE1
,
1085 .type
= CX88_VMUX_SVIDEO
,
1093 .mpeg
= CX88_MPEG_DVB
,
1095 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1096 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1097 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1098 /* Manenti Marco <marco_manenti@colman.it> */
1099 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1100 .tuner_type
= TUNER_ABSENT
,
1101 .radio_type
= UNSET
,
1102 .tuner_addr
= ADDR_UNSET
,
1103 .radio_addr
= ADDR_UNSET
,
1105 .type
= CX88_VMUX_COMPOSITE1
,
1110 .type
= CX88_VMUX_SVIDEO
,
1115 .mpeg
= CX88_MPEG_DVB
,
1117 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1118 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1119 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1120 .radio_type
= UNSET
,
1121 .tuner_addr
= ADDR_UNSET
,
1122 .radio_addr
= ADDR_UNSET
,
1124 .type
= CX88_VMUX_COMPOSITE1
,
1126 .gpio0
= 0x000067df,
1128 .type
= CX88_VMUX_SVIDEO
,
1130 .gpio0
= 0x000067df,
1132 .mpeg
= CX88_MPEG_DVB
,
1134 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1135 .name
= "KWorld HardwareMpegTV XPert",
1136 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1137 .radio_type
= UNSET
,
1138 .tuner_addr
= ADDR_UNSET
,
1139 .radio_addr
= ADDR_UNSET
,
1141 .type
= CX88_VMUX_TELEVISION
,
1146 .type
= CX88_VMUX_COMPOSITE1
,
1151 .type
= CX88_VMUX_SVIDEO
,
1161 .mpeg
= CX88_MPEG_BLACKBIRD
,
1163 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1164 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1165 .tuner_type
= TUNER_THOMSON_FE6600
,
1166 .radio_type
= UNSET
,
1167 .tuner_addr
= ADDR_UNSET
,
1168 .radio_addr
= ADDR_UNSET
,
1170 .type
= CX88_VMUX_TELEVISION
,
1172 .gpio0
= 0x0000a75f,
1174 .type
= CX88_VMUX_COMPOSITE1
,
1176 .gpio0
= 0x0000a75b,
1178 .type
= CX88_VMUX_SVIDEO
,
1180 .gpio0
= 0x0000a75b,
1182 .mpeg
= CX88_MPEG_DVB
,
1184 [CX88_BOARD_PCHDTV_HD5500
] = {
1185 .name
= "pcHDTV HD5500 HDTV",
1186 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1187 .radio_type
= UNSET
,
1188 .tuner_addr
= ADDR_UNSET
,
1189 .radio_addr
= ADDR_UNSET
,
1190 .tda9887_conf
= TDA9887_PRESENT
,
1192 .type
= CX88_VMUX_TELEVISION
,
1196 .type
= CX88_VMUX_COMPOSITE1
,
1200 .type
= CX88_VMUX_SVIDEO
,
1204 .mpeg
= CX88_MPEG_DVB
,
1206 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1207 /* FIXME: tested TV input only, disabled composite,
1208 svideo and radio until they can be tested also. */
1209 .name
= "Kworld MCE 200 Deluxe",
1210 .tuner_type
= TUNER_TENA_9533_DI
,
1211 .radio_type
= UNSET
,
1212 .tda9887_conf
= TDA9887_PRESENT
,
1213 .tuner_addr
= ADDR_UNSET
,
1214 .radio_addr
= ADDR_UNSET
,
1216 .type
= CX88_VMUX_TELEVISION
,
1220 .mpeg
= CX88_MPEG_BLACKBIRD
,
1222 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1223 /* FIXME: SVideo, Composite and FM inputs are untested */
1224 .name
= "PixelView PlayTV P7000",
1225 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1226 .radio_type
= UNSET
,
1227 .tuner_addr
= ADDR_UNSET
,
1228 .radio_addr
= ADDR_UNSET
,
1229 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1230 TDA9887_PORT2_ACTIVE
,
1232 .type
= CX88_VMUX_TELEVISION
,
1236 .mpeg
= CX88_MPEG_BLACKBIRD
,
1238 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1239 .name
= "NPG Tech Real TV FM Top 10",
1240 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1241 .radio_type
= UNSET
,
1242 .tuner_addr
= ADDR_UNSET
,
1243 .radio_addr
= ADDR_UNSET
,
1245 .type
= CX88_VMUX_TELEVISION
,
1249 .type
= CX88_VMUX_COMPOSITE1
,
1253 .type
= CX88_VMUX_SVIDEO
,
1262 [CX88_BOARD_WINFAST_DTV2000H
] = {
1263 .name
= "WinFast DTV2000 H",
1264 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1265 .radio_type
= UNSET
,
1266 .tuner_addr
= ADDR_UNSET
,
1267 .radio_addr
= ADDR_UNSET
,
1268 .tda9887_conf
= TDA9887_PRESENT
,
1270 .type
= CX88_VMUX_TELEVISION
,
1272 .gpio0
= 0x00017304,
1273 .gpio1
= 0x00008203,
1274 .gpio2
= 0x00017304,
1275 .gpio3
= 0x02000000,
1277 .type
= CX88_VMUX_COMPOSITE1
,
1279 .gpio0
= 0x0001d701,
1280 .gpio1
= 0x0000b207,
1281 .gpio2
= 0x0001d701,
1282 .gpio3
= 0x02000000,
1284 .type
= CX88_VMUX_COMPOSITE2
,
1286 .gpio0
= 0x0001d503,
1287 .gpio1
= 0x0000b207,
1288 .gpio2
= 0x0001d503,
1289 .gpio3
= 0x02000000,
1291 .type
= CX88_VMUX_SVIDEO
,
1293 .gpio0
= 0x0001d701,
1294 .gpio1
= 0x0000b207,
1295 .gpio2
= 0x0001d701,
1296 .gpio3
= 0x02000000,
1300 .gpio0
= 0x00015702,
1301 .gpio1
= 0x0000f207,
1302 .gpio2
= 0x00015702,
1303 .gpio3
= 0x02000000,
1305 .mpeg
= CX88_MPEG_DVB
,
1307 [CX88_BOARD_WINFAST_DTV2000H_J
] = {
1308 .name
= "WinFast DTV2000 H rev. J",
1309 .tuner_type
= TUNER_PHILIPS_FMD1216MEX_MK3
,
1310 .radio_type
= UNSET
,
1311 .tuner_addr
= ADDR_UNSET
,
1312 .radio_addr
= ADDR_UNSET
,
1313 .tda9887_conf
= TDA9887_PRESENT
,
1315 .type
= CX88_VMUX_TELEVISION
,
1317 .gpio0
= 0x00017300,
1318 .gpio1
= 0x00008207,
1319 .gpio2
= 0x00000000,
1320 .gpio3
= 0x02000000,
1322 .type
= CX88_VMUX_TELEVISION
,
1324 .gpio0
= 0x00018300,
1325 .gpio1
= 0x0000f207,
1326 .gpio2
= 0x00017304,
1327 .gpio3
= 0x02000000,
1329 .type
= CX88_VMUX_COMPOSITE1
,
1331 .gpio0
= 0x00018301,
1332 .gpio1
= 0x0000f207,
1333 .gpio2
= 0x00017304,
1334 .gpio3
= 0x02000000,
1336 .type
= CX88_VMUX_SVIDEO
,
1338 .gpio0
= 0x00018301,
1339 .gpio1
= 0x0000f207,
1340 .gpio2
= 0x00017304,
1341 .gpio3
= 0x02000000,
1345 .gpio0
= 0x00015702,
1346 .gpio1
= 0x0000f207,
1347 .gpio2
= 0x00015702,
1348 .gpio3
= 0x02000000,
1350 .mpeg
= CX88_MPEG_DVB
,
1352 [CX88_BOARD_GENIATECH_DVBS
] = {
1353 .name
= "Geniatech DVB-S",
1354 .tuner_type
= TUNER_ABSENT
,
1355 .radio_type
= UNSET
,
1356 .tuner_addr
= ADDR_UNSET
,
1357 .radio_addr
= ADDR_UNSET
,
1359 .type
= CX88_VMUX_DVB
,
1362 .type
= CX88_VMUX_COMPOSITE1
,
1365 .mpeg
= CX88_MPEG_DVB
,
1367 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1368 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1369 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1370 .radio_type
= UNSET
,
1371 .tuner_addr
= ADDR_UNSET
,
1372 .radio_addr
= ADDR_UNSET
,
1373 .tda9887_conf
= TDA9887_PRESENT
,
1374 .audio_chip
= V4L2_IDENT_WM8775
,
1376 .type
= CX88_VMUX_TELEVISION
,
1379 /* 1: TV Audio / FM Mono */
1382 .type
= CX88_VMUX_COMPOSITE1
,
1388 .type
= CX88_VMUX_SVIDEO
,
1397 /* 4: FM Stereo (untested) */
1400 .mpeg
= CX88_MPEG_DVB
,
1403 [CX88_BOARD_NORWOOD_MICRO
] = {
1404 .name
= "Norwood Micro TV Tuner",
1405 .tuner_type
= TUNER_TNF_5335MF
,
1406 .radio_type
= UNSET
,
1407 .tuner_addr
= ADDR_UNSET
,
1408 .radio_addr
= ADDR_UNSET
,
1410 .type
= CX88_VMUX_TELEVISION
,
1414 .type
= CX88_VMUX_COMPOSITE1
,
1418 .type
= CX88_VMUX_SVIDEO
,
1423 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1424 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1425 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1426 .radio_type
= UNSET
,
1427 .tuner_addr
= ADDR_UNSET
,
1428 .radio_addr
= ADDR_UNSET
,
1430 .type
= CX88_VMUX_TELEVISION
,
1432 .gpio0
= 0x003fffff,
1433 .gpio1
= 0x00e00000,
1434 .gpio2
= 0x003fffff,
1435 .gpio3
= 0x02000000,
1437 .type
= CX88_VMUX_COMPOSITE1
,
1439 .gpio0
= 0x003fffff,
1440 .gpio1
= 0x00e00000,
1441 .gpio2
= 0x003fffff,
1442 .gpio3
= 0x02000000,
1444 .type
= CX88_VMUX_SVIDEO
,
1446 .gpio0
= 0x003fffff,
1447 .gpio1
= 0x00e00000,
1448 .gpio2
= 0x003fffff,
1449 .gpio3
= 0x02000000,
1452 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1453 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1454 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1455 .radio_type
= UNSET
,
1456 .tuner_addr
= ADDR_UNSET
,
1457 .radio_addr
= ADDR_UNSET
,
1458 .tda9887_conf
= TDA9887_PRESENT
,
1459 .audio_chip
= V4L2_IDENT_WM8775
,
1461 * gpio0 as reported by Mike Crash <mike AT mikecrash.com>
1464 .type
= CX88_VMUX_TELEVISION
,
1467 /* 1: TV Audio / FM Mono */
1470 .type
= CX88_VMUX_COMPOSITE1
,
1476 .type
= CX88_VMUX_SVIDEO
,
1482 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1486 /* 4: FM Stereo (untested) */
1490 [CX88_BOARD_SAMSUNG_SMT_7020
] = {
1491 .name
= "Samsung SMT 7020 DVB-S",
1492 .tuner_type
= TUNER_ABSENT
,
1493 .radio_type
= UNSET
,
1494 .tuner_addr
= ADDR_UNSET
,
1495 .radio_addr
= ADDR_UNSET
,
1497 .type
= CX88_VMUX_DVB
,
1500 .mpeg
= CX88_MPEG_DVB
,
1502 [CX88_BOARD_ADSTECH_PTV_390
] = {
1503 .name
= "ADS Tech Instant Video PCI",
1504 .tuner_type
= TUNER_ABSENT
,
1505 .radio_type
= UNSET
,
1506 .tuner_addr
= ADDR_UNSET
,
1507 .radio_addr
= ADDR_UNSET
,
1509 .type
= CX88_VMUX_DEBUG
,
1513 .type
= CX88_VMUX_COMPOSITE1
,
1517 .type
= CX88_VMUX_SVIDEO
,
1522 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1523 .name
= "Pinnacle PCTV HD 800i",
1524 .tuner_type
= TUNER_XC5000
,
1525 .radio_type
= UNSET
,
1526 .tuner_addr
= ADDR_UNSET
,
1527 .radio_addr
= ADDR_UNSET
,
1529 .type
= CX88_VMUX_TELEVISION
,
1534 .type
= CX88_VMUX_COMPOSITE1
,
1540 .type
= CX88_VMUX_SVIDEO
,
1546 .mpeg
= CX88_MPEG_DVB
,
1548 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1549 .name
= "DViCO FusionHDTV 5 PCI nano",
1550 /* xc3008 tuner, digital only for now */
1551 .tuner_type
= TUNER_ABSENT
,
1552 .radio_type
= UNSET
,
1553 .tuner_addr
= ADDR_UNSET
,
1554 .radio_addr
= ADDR_UNSET
,
1556 .type
= CX88_VMUX_TELEVISION
,
1558 .gpio0
= 0x000027df, /* Unconfirmed */
1560 .type
= CX88_VMUX_COMPOSITE1
,
1562 .gpio0
= 0x000027df, /* Unconfirmed */
1565 .type
= CX88_VMUX_SVIDEO
,
1567 .gpio0
= 0x000027df, /* Unconfirmed */
1570 .mpeg
= CX88_MPEG_DVB
,
1572 [CX88_BOARD_PINNACLE_HYBRID_PCTV
] = {
1573 .name
= "Pinnacle Hybrid PCTV",
1574 .tuner_type
= TUNER_XC2028
,
1576 .radio_type
= UNSET
,
1577 .radio_addr
= ADDR_UNSET
,
1579 .type
= CX88_VMUX_TELEVISION
,
1585 .type
= CX88_VMUX_COMPOSITE1
,
1591 .type
= CX88_VMUX_SVIDEO
,
1603 .mpeg
= CX88_MPEG_DVB
,
1605 /* Terry Wu <terrywu2009@gmail.com> */
1606 /* TV Audio : set GPIO 2, 18, 19 value to 0, 1, 0 */
1607 /* FM Audio : set GPIO 2, 18, 19 value to 0, 0, 0 */
1608 /* Line-in Audio : set GPIO 2, 18, 19 value to 0, 1, 1 */
1609 /* Mute Audio : set GPIO 2 value to 1 */
1610 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
] = {
1611 .name
= "Leadtek TV2000 XP Global",
1612 .tuner_type
= TUNER_XC2028
,
1614 .radio_type
= UNSET
,
1615 .radio_addr
= ADDR_UNSET
,
1617 .type
= CX88_VMUX_TELEVISION
,
1619 .gpio0
= 0x0400, /* pin 2 = 0 */
1621 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1624 .type
= CX88_VMUX_COMPOSITE1
,
1626 .gpio0
= 0x0400, /* pin 2 = 0 */
1628 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1631 .type
= CX88_VMUX_SVIDEO
,
1633 .gpio0
= 0x0400, /* pin 2 = 0 */
1635 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1640 .gpio0
= 0x0400, /* pin 2 = 0 */
1642 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1646 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
] = {
1647 .name
= "Leadtek TV2000 XP Global (SC4100)",
1648 .tuner_type
= TUNER_XC4000
,
1650 .radio_type
= UNSET
,
1651 .radio_addr
= ADDR_UNSET
,
1653 .type
= CX88_VMUX_TELEVISION
,
1655 .gpio0
= 0x0400, /* pin 2 = 0 */
1657 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1660 .type
= CX88_VMUX_COMPOSITE1
,
1662 .gpio0
= 0x0400, /* pin 2 = 0 */
1664 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1667 .type
= CX88_VMUX_SVIDEO
,
1669 .gpio0
= 0x0400, /* pin 2 = 0 */
1671 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1676 .gpio0
= 0x0400, /* pin 2 = 0 */
1678 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1682 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
] = {
1683 .name
= "Leadtek TV2000 XP Global (XC4100)",
1684 .tuner_type
= TUNER_XC4000
,
1686 .radio_type
= UNSET
,
1687 .radio_addr
= ADDR_UNSET
,
1689 .type
= CX88_VMUX_TELEVISION
,
1691 .gpio0
= 0x0400, /* pin 2 = 0 */
1692 .gpio1
= 0x6040, /* pin 14 = 1, pin 13 = 0 */
1696 .type
= CX88_VMUX_COMPOSITE1
,
1698 .gpio0
= 0x0400, /* pin 2 = 0 */
1699 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1703 .type
= CX88_VMUX_SVIDEO
,
1705 .gpio0
= 0x0400, /* pin 2 = 0 */
1706 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1712 .gpio0
= 0x0400, /* pin 2 = 0 */
1713 .gpio1
= 0x6000, /* pin 14 = 1, pin 13 = 0 */
1718 [CX88_BOARD_POWERCOLOR_REAL_ANGEL
] = {
1719 .name
= "PowerColor RA330", /* Long names may confuse LIRC. */
1720 .tuner_type
= TUNER_XC2028
,
1723 .type
= CX88_VMUX_DEBUG
,
1724 .vmux
= 3, /* Due to the way the cx88 driver is written, */
1725 .gpio0
= 0x00ff, /* there is no way to deactivate audio pass- */
1726 .gpio1
= 0xf39d, /* through without this entry. Furthermore, if */
1727 .gpio3
= 0x0000, /* the TV mux entry is first, you get audio */
1728 }, { /* from the tuner on boot for a little while. */
1729 .type
= CX88_VMUX_TELEVISION
,
1735 .type
= CX88_VMUX_COMPOSITE1
,
1741 .type
= CX88_VMUX_SVIDEO
,
1754 [CX88_BOARD_GENIATECH_X8000_MT
] = {
1755 /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */
1756 .name
= "Geniatech X8000-MT DVBT",
1757 .tuner_type
= TUNER_XC2028
,
1760 .type
= CX88_VMUX_TELEVISION
,
1762 .gpio0
= 0x00000000,
1763 .gpio1
= 0x00e3e341,
1764 .gpio2
= 0x00000000,
1765 .gpio3
= 0x00000000,
1767 .type
= CX88_VMUX_COMPOSITE1
,
1769 .gpio0
= 0x00000000,
1770 .gpio1
= 0x00e3e361,
1771 .gpio2
= 0x00000000,
1772 .gpio3
= 0x00000000,
1774 .type
= CX88_VMUX_SVIDEO
,
1776 .gpio0
= 0x00000000,
1777 .gpio1
= 0x00e3e361,
1778 .gpio2
= 0x00000000,
1779 .gpio3
= 0x00000000,
1783 .gpio0
= 0x00000000,
1784 .gpio1
= 0x00e3e341,
1785 .gpio2
= 0x00000000,
1786 .gpio3
= 0x00000000,
1788 .mpeg
= CX88_MPEG_DVB
,
1790 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
] = {
1791 .name
= "DViCO FusionHDTV DVB-T PRO",
1792 .tuner_type
= TUNER_XC2028
,
1794 .radio_type
= UNSET
,
1795 .radio_addr
= ADDR_UNSET
,
1797 .type
= CX88_VMUX_COMPOSITE1
,
1799 .gpio0
= 0x000067df,
1801 .type
= CX88_VMUX_SVIDEO
,
1803 .gpio0
= 0x000067df,
1805 .mpeg
= CX88_MPEG_DVB
,
1807 [CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
] = {
1808 .name
= "DViCO FusionHDTV 7 Gold",
1809 .tuner_type
= TUNER_XC5000
,
1810 .radio_type
= UNSET
,
1811 .tuner_addr
= ADDR_UNSET
,
1812 .radio_addr
= ADDR_UNSET
,
1814 .type
= CX88_VMUX_TELEVISION
,
1818 .type
= CX88_VMUX_COMPOSITE1
,
1822 .type
= CX88_VMUX_SVIDEO
,
1826 .mpeg
= CX88_MPEG_DVB
,
1828 [CX88_BOARD_PROLINK_PV_8000GT
] = {
1829 .name
= "Prolink Pixelview MPEG 8000GT",
1830 .tuner_type
= TUNER_XC2028
,
1833 .type
= CX88_VMUX_TELEVISION
,
1838 .type
= CX88_VMUX_COMPOSITE1
,
1842 .type
= CX88_VMUX_SVIDEO
,
1851 [CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
] = {
1852 .name
= "Prolink Pixelview Global Extreme",
1853 .tuner_type
= TUNER_XC2028
,
1856 .type
= CX88_VMUX_TELEVISION
,
1862 .type
= CX88_VMUX_COMPOSITE1
,
1868 .type
= CX88_VMUX_SVIDEO
,
1881 /* Both radio, analog and ATSC work with this board.
1882 However, for analog to work, s5h1409 gate should be open,
1883 otherwise, tuner-xc3028 won't be detected.
1884 A proper fix require using the newer i2c methods to add
1885 tuner-xc3028 without doing an i2c probe.
1887 [CX88_BOARD_KWORLD_ATSC_120
] = {
1888 .name
= "Kworld PlusTV HD PCI 120 (ATSC 120)",
1889 .tuner_type
= TUNER_XC2028
,
1890 .radio_type
= UNSET
,
1891 .tuner_addr
= ADDR_UNSET
,
1892 .radio_addr
= ADDR_UNSET
,
1894 .type
= CX88_VMUX_TELEVISION
,
1896 .gpio0
= 0x000000ff,
1897 .gpio1
= 0x0000f35d,
1898 .gpio2
= 0x00000000,
1900 .type
= CX88_VMUX_COMPOSITE1
,
1902 .gpio0
= 0x000000ff,
1903 .gpio1
= 0x0000f37e,
1904 .gpio2
= 0x00000000,
1906 .type
= CX88_VMUX_SVIDEO
,
1908 .gpio0
= 0x000000ff,
1909 .gpio1
= 0x0000f37e,
1910 .gpio2
= 0x00000000,
1914 .gpio0
= 0x000000ff,
1915 .gpio1
= 0x0000f35d,
1916 .gpio2
= 0x00000000,
1918 .mpeg
= CX88_MPEG_DVB
,
1920 [CX88_BOARD_HAUPPAUGE_HVR4000
] = {
1921 .name
= "Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1922 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1923 .radio_type
= UNSET
,
1924 .tuner_addr
= ADDR_UNSET
,
1925 .radio_addr
= ADDR_UNSET
,
1926 .tda9887_conf
= TDA9887_PRESENT
,
1927 .audio_chip
= V4L2_IDENT_WM8775
,
1931 * Analogue SAT DVB-T
1932 * Antenna 0xc4bf 0xc4bb
1933 * Composite 0xc4bf 0xc4bb
1934 * S-Video 0xc4bf 0xc4bb
1935 * Composite1 0xc4ff 0xc4fb
1936 * S-Video1 0xc4ff 0xc4fb
1938 * BIT VALUE FUNCTION GP{x}_IO
1941 * 2 1 O:MPEG PORT 0=DVB-T 1=DVB-S
1945 * 6 0 O:INPUT SELECTOR 0=INTERNAL 1=EXPANSION
1946 * 7 1 O:DVB-T DEMOD RESET LOW
1948 * BIT VALUE FUNCTION GP{x}_OE
1960 * 1: TV Audio / FM Mono
1962 * 3: Line-In Expansion
1966 .type
= CX88_VMUX_TELEVISION
,
1969 /* 1: TV Audio / FM Mono */
1972 .type
= CX88_VMUX_COMPOSITE1
,
1978 .type
= CX88_VMUX_SVIDEO
,
1990 .mpeg
= CX88_MPEG_DVB
,
1993 [CX88_BOARD_HAUPPAUGE_HVR4000LITE
] = {
1994 .name
= "Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
1995 .tuner_type
= UNSET
,
1996 .radio_type
= UNSET
,
1997 .tuner_addr
= ADDR_UNSET
,
1998 .radio_addr
= ADDR_UNSET
,
2000 .type
= CX88_VMUX_DVB
,
2003 .mpeg
= CX88_MPEG_DVB
,
2005 [CX88_BOARD_TEVII_S420
] = {
2006 .name
= "TeVii S420 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_TEVII_S460
] = {
2018 .name
= "TeVii S460 DVB-S/S2",
2019 .tuner_type
= UNSET
,
2020 .radio_type
= UNSET
,
2021 .tuner_addr
= ADDR_UNSET
,
2022 .radio_addr
= ADDR_UNSET
,
2024 .type
= CX88_VMUX_DVB
,
2027 .mpeg
= CX88_MPEG_DVB
,
2029 [CX88_BOARD_TEVII_S464
] = {
2030 .name
= "TeVii S464 DVB-S/S2",
2031 .tuner_type
= UNSET
,
2032 .radio_type
= UNSET
,
2033 .tuner_addr
= ADDR_UNSET
,
2034 .radio_addr
= ADDR_UNSET
,
2036 .type
= CX88_VMUX_DVB
,
2039 .mpeg
= CX88_MPEG_DVB
,
2041 [CX88_BOARD_OMICOM_SS4_PCI
] = {
2042 .name
= "Omicom SS4 DVB-S/S2 PCI",
2043 .tuner_type
= UNSET
,
2044 .radio_type
= UNSET
,
2045 .tuner_addr
= ADDR_UNSET
,
2046 .radio_addr
= ADDR_UNSET
,
2048 .type
= CX88_VMUX_DVB
,
2051 .mpeg
= CX88_MPEG_DVB
,
2053 [CX88_BOARD_TBS_8910
] = {
2054 .name
= "TBS 8910 DVB-S",
2055 .tuner_type
= UNSET
,
2056 .radio_type
= UNSET
,
2057 .tuner_addr
= ADDR_UNSET
,
2058 .radio_addr
= ADDR_UNSET
,
2060 .type
= CX88_VMUX_DVB
,
2063 .mpeg
= CX88_MPEG_DVB
,
2065 [CX88_BOARD_TBS_8920
] = {
2066 .name
= "TBS 8920 DVB-S/S2",
2067 .tuner_type
= TUNER_ABSENT
,
2068 .radio_type
= UNSET
,
2069 .tuner_addr
= ADDR_UNSET
,
2070 .radio_addr
= ADDR_UNSET
,
2072 .type
= CX88_VMUX_DVB
,
2076 .mpeg
= CX88_MPEG_DVB
,
2078 [CX88_BOARD_PROF_6200
] = {
2079 .name
= "Prof 6200 DVB-S",
2080 .tuner_type
= UNSET
,
2081 .radio_type
= UNSET
,
2082 .tuner_addr
= ADDR_UNSET
,
2083 .radio_addr
= ADDR_UNSET
,
2085 .type
= CX88_VMUX_DVB
,
2088 .mpeg
= CX88_MPEG_DVB
,
2090 [CX88_BOARD_PROF_7300
] = {
2091 .name
= "PROF 7300 DVB-S/S2",
2092 .tuner_type
= UNSET
,
2093 .radio_type
= UNSET
,
2094 .tuner_addr
= ADDR_UNSET
,
2095 .radio_addr
= ADDR_UNSET
,
2097 .type
= CX88_VMUX_DVB
,
2100 .mpeg
= CX88_MPEG_DVB
,
2102 [CX88_BOARD_SATTRADE_ST4200
] = {
2103 .name
= "SATTRADE ST4200 DVB-S/S2",
2104 .tuner_type
= UNSET
,
2105 .radio_type
= UNSET
,
2106 .tuner_addr
= ADDR_UNSET
,
2107 .radio_addr
= ADDR_UNSET
,
2109 .type
= CX88_VMUX_DVB
,
2112 .mpeg
= CX88_MPEG_DVB
,
2114 [CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
] = {
2115 .name
= "Terratec Cinergy HT PCI MKII",
2116 .tuner_type
= TUNER_XC2028
,
2118 .radio_type
= UNSET
,
2119 .radio_addr
= ADDR_UNSET
,
2121 .type
= CX88_VMUX_TELEVISION
,
2127 .type
= CX88_VMUX_COMPOSITE1
,
2133 .type
= CX88_VMUX_SVIDEO
,
2145 .mpeg
= CX88_MPEG_DVB
,
2147 [CX88_BOARD_HAUPPAUGE_IRONLY
] = {
2148 .name
= "Hauppauge WinTV-IR Only",
2149 .tuner_type
= UNSET
,
2150 .radio_type
= UNSET
,
2151 .tuner_addr
= ADDR_UNSET
,
2152 .radio_addr
= ADDR_UNSET
,
2154 [CX88_BOARD_WINFAST_DTV1800H
] = {
2155 .name
= "Leadtek WinFast DTV1800 Hybrid",
2156 .tuner_type
= TUNER_XC2028
,
2157 .radio_type
= UNSET
,
2159 .radio_addr
= ADDR_UNSET
,
2163 * 2: mute (0=off,1=on)
2164 * 12: tuner reset pin
2165 * 13: audio source (0=tuner audio,1=line in)
2166 * 14: FM (0=on,1=off ???)
2169 .type
= CX88_VMUX_TELEVISION
,
2171 .gpio0
= 0x0400, /* pin 2 = 0 */
2172 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2175 .type
= CX88_VMUX_COMPOSITE1
,
2177 .gpio0
= 0x0400, /* pin 2 = 0 */
2178 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2181 .type
= CX88_VMUX_SVIDEO
,
2183 .gpio0
= 0x0400, /* pin 2 = 0 */
2184 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2189 .gpio0
= 0x0400, /* pin 2 = 0 */
2190 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2193 .mpeg
= CX88_MPEG_DVB
,
2195 [CX88_BOARD_WINFAST_DTV1800H_XC4000
] = {
2196 .name
= "Leadtek WinFast DTV1800 H (XC4000)",
2197 .tuner_type
= TUNER_XC4000
,
2198 .radio_type
= UNSET
,
2200 .radio_addr
= ADDR_UNSET
,
2204 * 2: mute (0=off,1=on)
2205 * 12: tuner reset pin
2206 * 13: audio source (0=tuner audio,1=line in)
2207 * 14: FM (0=on,1=off ???)
2210 .type
= CX88_VMUX_TELEVISION
,
2212 .gpio0
= 0x0400, /* pin 2 = 0 */
2213 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2216 .type
= CX88_VMUX_COMPOSITE1
,
2218 .gpio0
= 0x0400, /* pin 2 = 0 */
2219 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2222 .type
= CX88_VMUX_SVIDEO
,
2224 .gpio0
= 0x0400, /* pin 2 = 0 */
2225 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2230 .gpio0
= 0x0400, /* pin 2 = 0 */
2231 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2234 .mpeg
= CX88_MPEG_DVB
,
2236 [CX88_BOARD_WINFAST_DTV2000H_PLUS
] = {
2237 .name
= "Leadtek WinFast DTV2000 H PLUS",
2238 .tuner_type
= TUNER_XC4000
,
2239 .radio_type
= UNSET
,
2241 .radio_addr
= ADDR_UNSET
,
2245 * 12: 0: reset XC4000
2246 * 13: 1: audio input is line in (0: tuner)
2248 * 16: 0: RF input is cable
2251 .type
= CX88_VMUX_TELEVISION
,
2258 .type
= CX88_VMUX_CABLE
,
2265 .type
= CX88_VMUX_COMPOSITE1
,
2267 .gpio0
= 0x0403, /* was 0x0407 */
2272 .type
= CX88_VMUX_SVIDEO
,
2274 .gpio0
= 0x0403, /* was 0x0407 */
2286 .mpeg
= CX88_MPEG_DVB
,
2288 [CX88_BOARD_PROF_7301
] = {
2289 .name
= "Prof 7301 DVB-S/S2",
2290 .tuner_type
= UNSET
,
2291 .radio_type
= UNSET
,
2292 .tuner_addr
= ADDR_UNSET
,
2293 .radio_addr
= ADDR_UNSET
,
2295 .type
= CX88_VMUX_DVB
,
2298 .mpeg
= CX88_MPEG_DVB
,
2300 [CX88_BOARD_TWINHAN_VP1027_DVBS
] = {
2301 .name
= "Twinhan VP-1027 DVB-S",
2302 .tuner_type
= TUNER_ABSENT
,
2303 .radio_type
= UNSET
,
2304 .tuner_addr
= ADDR_UNSET
,
2305 .radio_addr
= ADDR_UNSET
,
2307 .type
= CX88_VMUX_DVB
,
2310 .mpeg
= CX88_MPEG_DVB
,
2314 /* ------------------------------------------------------------------ */
2315 /* PCI subsystem IDs */
2317 static const struct cx88_subid cx88_subids
[] = {
2319 .subvendor
= 0x0070,
2320 .subdevice
= 0x3400,
2321 .card
= CX88_BOARD_HAUPPAUGE
,
2323 .subvendor
= 0x0070,
2324 .subdevice
= 0x3401,
2325 .card
= CX88_BOARD_HAUPPAUGE
,
2327 .subvendor
= 0x14c7,
2328 .subdevice
= 0x0106,
2329 .card
= CX88_BOARD_GDI
,
2331 .subvendor
= 0x14c7,
2332 .subdevice
= 0x0107, /* with mpeg encoder */
2333 .card
= CX88_BOARD_GDI
,
2335 .subvendor
= PCI_VENDOR_ID_ATI
,
2336 .subdevice
= 0x00f8,
2337 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2339 .subvendor
= PCI_VENDOR_ID_ATI
,
2340 .subdevice
= 0x00f9,
2341 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2343 .subvendor
= 0x107d,
2344 .subdevice
= 0x6611,
2345 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2347 .subvendor
= 0x107d,
2348 .subdevice
= 0x6613, /* NTSC */
2349 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2351 .subvendor
= 0x107d,
2352 .subdevice
= 0x6620,
2353 .card
= CX88_BOARD_WINFAST_DV2000
,
2355 .subvendor
= 0x107d,
2356 .subdevice
= 0x663b,
2357 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2359 .subvendor
= 0x107d,
2360 .subdevice
= 0x663c,
2361 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2363 .subvendor
= 0x1461,
2364 .subdevice
= 0x000b,
2365 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
2367 .subvendor
= 0x1462,
2368 .subdevice
= 0x8606,
2369 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
2371 .subvendor
= 0x10fc,
2372 .subdevice
= 0xd003,
2373 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
2375 .subvendor
= 0x1043,
2376 .subdevice
= 0x4823, /* with mpeg encoder */
2377 .card
= CX88_BOARD_ASUS_PVR_416
,
2379 .subvendor
= 0x17de,
2380 .subdevice
= 0x08a6,
2381 .card
= CX88_BOARD_KWORLD_DVB_T
,
2383 .subvendor
= 0x18ac,
2384 .subdevice
= 0xd810,
2385 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2387 .subvendor
= 0x18ac,
2388 .subdevice
= 0xd820,
2389 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
2391 .subvendor
= 0x18ac,
2392 .subdevice
= 0xdb00,
2393 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
2395 .subvendor
= 0x0070,
2396 .subdevice
= 0x9002,
2397 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2399 .subvendor
= 0x14f1,
2400 .subdevice
= 0x0187,
2401 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
2403 .subvendor
= 0x1540,
2404 .subdevice
= 0x2580,
2405 .card
= CX88_BOARD_PROVIDEO_PV259
,
2407 .subvendor
= 0x18ac,
2408 .subdevice
= 0xdb10,
2409 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2411 .subvendor
= 0x1554,
2412 .subdevice
= 0x4811,
2413 .card
= CX88_BOARD_PIXELVIEW
,
2415 .subvendor
= 0x7063,
2416 .subdevice
= 0x3000, /* HD-3000 card */
2417 .card
= CX88_BOARD_PCHDTV_HD3000
,
2419 .subvendor
= 0x17de,
2420 .subdevice
= 0xa8a6,
2421 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
2423 .subvendor
= 0x0070,
2424 .subdevice
= 0x2801,
2425 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
2427 .subvendor
= 0x14f1,
2428 .subdevice
= 0x0342,
2429 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
2431 .subvendor
= 0x10fc,
2432 .subdevice
= 0xd035,
2433 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
2435 .subvendor
= 0x1421,
2436 .subdevice
= 0x0334,
2437 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
2439 .subvendor
= 0x153b,
2440 .subdevice
= 0x1166,
2441 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
2443 .subvendor
= 0x18ac,
2444 .subdevice
= 0xd500,
2445 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
2447 .subvendor
= 0x1461,
2448 .subdevice
= 0x8011,
2449 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
2451 .subvendor
= PCI_VENDOR_ID_ATI
,
2452 .subdevice
= 0xa101,
2453 .card
= CX88_BOARD_ATI_HDTVWONDER
,
2455 .subvendor
= 0x107d,
2456 .subdevice
= 0x665f,
2457 .card
= CX88_BOARD_WINFAST_DTV1000
,
2459 .subvendor
= 0x1461,
2460 .subdevice
= 0x000a,
2461 .card
= CX88_BOARD_AVERTV_303
,
2463 .subvendor
= 0x0070,
2464 .subdevice
= 0x9200,
2465 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
2467 .subvendor
= 0x0070,
2468 .subdevice
= 0x9201,
2469 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2471 .subvendor
= 0x0070,
2472 .subdevice
= 0x9202,
2473 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2475 .subvendor
= 0x17de,
2476 .subdevice
= 0x08b2,
2477 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2479 .subvendor
= 0x0070,
2480 .subdevice
= 0x9400,
2481 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2483 .subvendor
= 0x0070,
2484 .subdevice
= 0x9402,
2485 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2487 .subvendor
= 0x0070,
2488 .subdevice
= 0x9800,
2489 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2491 .subvendor
= 0x0070,
2492 .subdevice
= 0x9802,
2493 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2495 .subvendor
= 0x0070,
2496 .subdevice
= 0x9001,
2497 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2499 .subvendor
= 0x1822,
2500 .subdevice
= 0x0025,
2501 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2503 .subvendor
= 0x17de,
2504 .subdevice
= 0x08a1,
2505 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2507 .subvendor
= 0x18ac,
2508 .subdevice
= 0xdb50,
2509 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2511 .subvendor
= 0x18ac,
2512 .subdevice
= 0xdb54,
2513 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2514 /* Re-branded DViCO: DigitalNow DVB-T Dual */
2516 .subvendor
= 0x18ac,
2517 .subdevice
= 0xdb11,
2518 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2519 /* Re-branded DViCO: UltraView DVB-T Plus */
2521 .subvendor
= 0x18ac,
2522 .subdevice
= 0xdb30,
2523 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
,
2525 .subvendor
= 0x17de,
2526 .subdevice
= 0x0840,
2527 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2529 .subvendor
= 0x1421,
2530 .subdevice
= 0x0305,
2531 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2533 .subvendor
= 0x18ac,
2534 .subdevice
= 0xdb40,
2535 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2537 .subvendor
= 0x18ac,
2538 .subdevice
= 0xdb44,
2539 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2541 .subvendor
= 0x7063,
2542 .subdevice
= 0x5500,
2543 .card
= CX88_BOARD_PCHDTV_HD5500
,
2545 .subvendor
= 0x17de,
2546 .subdevice
= 0x0841,
2547 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
2549 .subvendor
= 0x1822,
2550 .subdevice
= 0x0019,
2551 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2553 .subvendor
= 0x1554,
2554 .subdevice
= 0x4813,
2555 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
2557 .subvendor
= 0x14f1,
2558 .subdevice
= 0x0842,
2559 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
2561 .subvendor
= 0x107d,
2562 .subdevice
= 0x665e,
2563 .card
= CX88_BOARD_WINFAST_DTV2000H
,
2565 .subvendor
= 0x107d,
2566 .subdevice
= 0x6f2b,
2567 .card
= CX88_BOARD_WINFAST_DTV2000H_J
,
2569 .subvendor
= 0x18ac,
2570 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
2571 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2573 .subvendor
= 0x14f1,
2574 .subdevice
= 0x0084,
2575 .card
= CX88_BOARD_GENIATECH_DVBS
,
2577 .subvendor
= 0x0070,
2578 .subdevice
= 0x1404,
2579 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2581 .subvendor
= 0x18ac,
2582 .subdevice
= 0xdc00,
2583 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2585 .subvendor
= 0x18ac,
2586 .subdevice
= 0xdccd,
2587 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2589 .subvendor
= 0x1461,
2590 .subdevice
= 0xc111, /* AverMedia M150-D */
2591 /* This board is known to work with the ASUS PVR416 config */
2592 .card
= CX88_BOARD_ASUS_PVR_416
,
2594 .subvendor
= 0xc180,
2595 .subdevice
= 0xc980,
2596 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
2598 .subvendor
= 0x0070,
2599 .subdevice
= 0x9600,
2600 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2602 .subvendor
= 0x0070,
2603 .subdevice
= 0x9601,
2604 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2606 .subvendor
= 0x0070,
2607 .subdevice
= 0x9602,
2608 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2610 .subvendor
= 0x107d,
2611 .subdevice
= 0x6632,
2612 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2614 .subvendor
= 0x12ab,
2615 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
2616 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2618 .subvendor
= 0x0070,
2619 .subdevice
= 0x9000,
2620 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2622 .subvendor
= 0x0070,
2623 .subdevice
= 0x1400,
2624 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2626 .subvendor
= 0x0070,
2627 .subdevice
= 0x1401,
2628 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2630 .subvendor
= 0x0070,
2631 .subdevice
= 0x1402,
2632 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2634 .subvendor
= 0x1421,
2635 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
2636 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2638 .subvendor
= 0x1421,
2639 .subdevice
= 0x0390,
2640 .card
= CX88_BOARD_ADSTECH_PTV_390
,
2642 .subvendor
= 0x11bd,
2643 .subdevice
= 0x0051,
2644 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
2646 .subvendor
= 0x18ac,
2647 .subdevice
= 0xd530,
2648 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
2650 .subvendor
= 0x12ab,
2651 .subdevice
= 0x1788,
2652 .card
= CX88_BOARD_PINNACLE_HYBRID_PCTV
,
2654 .subvendor
= 0x14f1,
2655 .subdevice
= 0xea3d,
2656 .card
= CX88_BOARD_POWERCOLOR_REAL_ANGEL
,
2658 .subvendor
= 0x107d,
2659 .subdevice
= 0x6f18,
2660 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2662 .subvendor
= 0x14f1,
2663 .subdevice
= 0x8852,
2664 .card
= CX88_BOARD_GENIATECH_X8000_MT
,
2666 .subvendor
= 0x18ac,
2667 .subdevice
= 0xd610,
2668 .card
= CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
,
2670 .subvendor
= 0x1554,
2671 .subdevice
= 0x4935,
2672 .card
= CX88_BOARD_PROLINK_PV_8000GT
,
2674 .subvendor
= 0x1554,
2675 .subdevice
= 0x4976,
2676 .card
= CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
,
2678 .subvendor
= 0x17de,
2679 .subdevice
= 0x08c1,
2680 .card
= CX88_BOARD_KWORLD_ATSC_120
,
2682 .subvendor
= 0x0070,
2683 .subdevice
= 0x6900,
2684 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2686 .subvendor
= 0x0070,
2687 .subdevice
= 0x6904,
2688 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2690 .subvendor
= 0x0070,
2691 .subdevice
= 0x6902,
2692 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2694 .subvendor
= 0x0070,
2695 .subdevice
= 0x6905,
2696 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2698 .subvendor
= 0x0070,
2699 .subdevice
= 0x6906,
2700 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2702 .subvendor
= 0xd420,
2703 .subdevice
= 0x9022,
2704 .card
= CX88_BOARD_TEVII_S420
,
2706 .subvendor
= 0xd460,
2707 .subdevice
= 0x9022,
2708 .card
= CX88_BOARD_TEVII_S460
,
2710 .subvendor
= 0xd464,
2711 .subdevice
= 0x9022,
2712 .card
= CX88_BOARD_TEVII_S464
,
2714 .subvendor
= 0xA044,
2715 .subdevice
= 0x2011,
2716 .card
= CX88_BOARD_OMICOM_SS4_PCI
,
2718 .subvendor
= 0x8910,
2719 .subdevice
= 0x8888,
2720 .card
= CX88_BOARD_TBS_8910
,
2722 .subvendor
= 0x8920,
2723 .subdevice
= 0x8888,
2724 .card
= CX88_BOARD_TBS_8920
,
2726 .subvendor
= 0xb022,
2727 .subdevice
= 0x3022,
2728 .card
= CX88_BOARD_PROF_6200
,
2730 .subvendor
= 0xB033,
2731 .subdevice
= 0x3033,
2732 .card
= CX88_BOARD_PROF_7300
,
2734 .subvendor
= 0xb200,
2735 .subdevice
= 0x4200,
2736 .card
= CX88_BOARD_SATTRADE_ST4200
,
2738 .subvendor
= 0x153b,
2739 .subdevice
= 0x1177,
2740 .card
= CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
,
2742 .subvendor
= 0x0070,
2743 .subdevice
= 0x9290,
2744 .card
= CX88_BOARD_HAUPPAUGE_IRONLY
,
2746 .subvendor
= 0x107d,
2747 .subdevice
= 0x6654,
2748 .card
= CX88_BOARD_WINFAST_DTV1800H
,
2750 /* WinFast DTV1800 H with XC4000 tuner */
2751 .subvendor
= 0x107d,
2752 .subdevice
= 0x6f38,
2753 .card
= CX88_BOARD_WINFAST_DTV1800H_XC4000
,
2755 .subvendor
= 0x107d,
2756 .subdevice
= 0x6f42,
2757 .card
= CX88_BOARD_WINFAST_DTV2000H_PLUS
,
2759 /* PVR2000 PAL Model [107d:6630] */
2760 .subvendor
= 0x107d,
2761 .subdevice
= 0x6630,
2762 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2764 /* PVR2000 PAL Model [107d:6638] */
2765 .subvendor
= 0x107d,
2766 .subdevice
= 0x6638,
2767 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2769 /* PVR2000 NTSC Model [107d:6631] */
2770 .subvendor
= 0x107d,
2771 .subdevice
= 0x6631,
2772 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2774 /* PVR2000 NTSC Model [107d:6637] */
2775 .subvendor
= 0x107d,
2776 .subdevice
= 0x6637,
2777 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2779 /* PVR2000 NTSC Model [107d:663d] */
2780 .subvendor
= 0x107d,
2781 .subdevice
= 0x663d,
2782 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2784 /* DV2000 NTSC Model [107d:6621] */
2785 .subvendor
= 0x107d,
2786 .subdevice
= 0x6621,
2787 .card
= CX88_BOARD_WINFAST_DV2000
,
2789 /* TV2000 XP Global [107d:6618] */
2790 .subvendor
= 0x107d,
2791 .subdevice
= 0x6618,
2792 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2794 /* TV2000 XP Global [107d:6618] */
2795 .subvendor
= 0x107d,
2796 .subdevice
= 0x6619,
2797 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2799 /* WinFast TV2000 XP Global with XC4000 tuner */
2800 .subvendor
= 0x107d,
2801 .subdevice
= 0x6f36,
2802 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
,
2804 /* WinFast TV2000 XP Global with XC4000 tuner and different GPIOs */
2805 .subvendor
= 0x107d,
2806 .subdevice
= 0x6f43,
2807 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
,
2809 .subvendor
= 0xb034,
2810 .subdevice
= 0x3034,
2811 .card
= CX88_BOARD_PROF_7301
,
2813 .subvendor
= 0x1822,
2814 .subdevice
= 0x0023,
2815 .card
= CX88_BOARD_TWINHAN_VP1027_DVBS
,
2819 /* ----------------------------------------------------------------------- */
2820 /* some leadtek specific stuff */
2822 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2824 if (eeprom_data
[4] != 0x7d ||
2825 eeprom_data
[5] != 0x10 ||
2826 eeprom_data
[7] != 0x66) {
2827 warn_printk(core
, "Leadtek eeprom invalid.\n");
2831 /* Terry Wu <terrywu2009@gmail.com> */
2832 switch (eeprom_data
[6]) {
2833 case 0x13: /* SSID 6613 for TV2000 XP Expert NTSC Model */
2834 case 0x21: /* SSID 6621 for DV2000 NTSC Model */
2835 case 0x31: /* SSID 6631 for PVR2000 NTSC Model */
2836 case 0x37: /* SSID 6637 for PVR2000 NTSC Model */
2837 case 0x3d: /* SSID 6637 for PVR2000 NTSC Model */
2838 core
->board
.tuner_type
= TUNER_PHILIPS_FM1236_MK3
;
2841 core
->board
.tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
;
2845 info_printk(core
, "Leadtek Winfast 2000XP Expert config: "
2846 "tuner=%d, eeprom[0]=0x%02x\n",
2847 core
->board
.tuner_type
, eeprom_data
[0]);
2850 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2854 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
2855 core
->board
.tuner_type
= tv
.tuner_type
;
2856 core
->tuner_formats
= tv
.tuner_formats
;
2857 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
2859 /* Make sure we support the board model */
2862 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
2863 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
2864 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
2865 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
2866 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
2867 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
2868 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
2869 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
2870 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
2871 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
2872 case 34519: /* WinTV-PCI-FM */
2874 /* WinTV-HVR4000 (DVBS/S2/T, Video and IR, back panel inputs) */
2875 case 69100: /* WinTV-HVR4000LITE (DVBS/S2, IR) */
2876 case 69500: /* WinTV-HVR4000LITE (DVBS/S2, No IR) */
2878 /* WinTV-HVR4000 (DVBS/S2/T, Video no IR, back panel inputs) */
2879 case 69569: /* WinTV-HVR4000 (DVBS/S2/T, Video no IR) */
2880 case 90002: /* Nova-T-PCI (9002) */
2881 case 92001: /* Nova-S-Plus (Video and IR) */
2882 case 92002: /* Nova-S-Plus (Video and IR) */
2883 case 90003: /* Nova-T-PCI (9002 No RF out) */
2884 case 90500: /* Nova-T-PCI (oem) */
2885 case 90501: /* Nova-T-PCI (oem/IR) */
2886 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
2887 case 92900: /* WinTV-IROnly (No analog or digital Video inputs) */
2888 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
2889 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
2890 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
2891 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
2892 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
2893 case 96569: /* WinTV-HVR1300 () */
2894 case 96659: /* WinTV-HVR1300 () */
2895 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
2898 case CX88_BOARD_SAMSUNG_SMT_7020
:
2899 cx_set(MO_GP0_IO
, 0x008989FF);
2902 warn_printk(core
, "warning: unknown hauppauge model #%d\n",
2907 info_printk(core
, "hauppauge eeprom: model=%d\n", tv
.model
);
2910 /* ----------------------------------------------------------------------- */
2911 /* some GDI (was: Modular Technology) specific stuff */
2913 static const struct {
2918 [ 0x01 ] = { .id
= TUNER_ABSENT
,
2920 [ 0x02 ] = { .id
= TUNER_ABSENT
,
2922 [ 0x03 ] = { .id
= TUNER_ABSENT
,
2924 [ 0x04 ] = { .id
= TUNER_ABSENT
,
2926 [ 0x05 ] = { .id
= TUNER_ABSENT
,
2929 [ 0x10 ] = { .id
= TUNER_ABSENT
,
2931 .name
= "TEMIC_4049" },
2932 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
2933 .name
= "TEMIC_4136" },
2934 [ 0x12 ] = { .id
= TUNER_ABSENT
,
2935 .name
= "TEMIC_4146" },
2937 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
2939 .name
= "PHILIPS_FQ1216_MK3" },
2940 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
2941 .name
= "PHILIPS_FQ1236_MK3" },
2942 [ 0x22 ] = { .id
= TUNER_ABSENT
,
2943 .name
= "PHILIPS_FI1236_MK3" },
2944 [ 0x23 ] = { .id
= TUNER_ABSENT
,
2945 .name
= "PHILIPS_FI1216_MK3" },
2948 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2950 const char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
2951 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
2953 info_printk(core
, "GDI: tuner=%s\n", name
? name
: "unknown");
2956 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
2957 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
2961 /* ------------------------------------------------------------------- */
2962 /* some Divco specific stuff */
2963 static int cx88_dvico_xc2028_callback(struct cx88_core
*core
,
2964 int command
, int arg
)
2967 case XC2028_TUNER_RESET
:
2968 switch (core
->boardnr
) {
2969 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2970 /* GPIO-4 xc3028 tuner */
2972 cx_set(MO_GP0_IO
, 0x00001000);
2973 cx_clear(MO_GP0_IO
, 0x00000010);
2975 cx_set(MO_GP0_IO
, 0x00000010);
2979 cx_write(MO_GP0_IO
, 0x101000);
2981 cx_set(MO_GP0_IO
, 0x101010);
2992 /* ----------------------------------------------------------------------- */
2993 /* some Geniatech specific stuff */
2995 static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core
*core
,
2996 int command
, int mode
)
2999 case XC2028_TUNER_RESET
:
3000 switch (INPUT(core
->input
).type
) {
3004 cx_write(MO_GP1_IO
, 0x030302);
3008 cx_write(MO_GP1_IO
, 0x030301);
3011 cx_write(MO_GP1_IO
, 0x101010);
3013 cx_write(MO_GP1_IO
, 0x101000);
3015 cx_write(MO_GP1_IO
, 0x101010);
3022 static int cx88_xc3028_winfast1800h_callback(struct cx88_core
*core
,
3023 int command
, int arg
)
3026 case XC2028_TUNER_RESET
:
3027 /* GPIO 12 (xc3028 tuner reset) */
3028 cx_set(MO_GP1_IO
, 0x1010);
3030 cx_clear(MO_GP1_IO
, 0x10);
3032 cx_set(MO_GP1_IO
, 0x10);
3039 static int cx88_xc4000_winfast2000h_plus_callback(struct cx88_core
*core
,
3040 int command
, int arg
)
3043 case XC4000_TUNER_RESET
:
3044 /* GPIO 12 (xc4000 tuner reset) */
3045 cx_set(MO_GP1_IO
, 0x1010);
3047 cx_clear(MO_GP1_IO
, 0x10);
3049 cx_set(MO_GP1_IO
, 0x10);
3056 /* ------------------------------------------------------------------- */
3057 /* some Divco specific stuff */
3058 static int cx88_pv_8000gt_callback(struct cx88_core
*core
,
3059 int command
, int arg
)
3062 case XC2028_TUNER_RESET
:
3063 cx_write(MO_GP2_IO
, 0xcf7);
3065 cx_write(MO_GP2_IO
, 0xef5);
3067 cx_write(MO_GP2_IO
, 0xcf7);
3076 /* ----------------------------------------------------------------------- */
3077 /* some DViCO specific stuff */
3079 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
3081 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
3083 static u8 init_bufs
[13][5] = {
3084 { 0x10, 0x00, 0x20, 0x01, 0x03 },
3085 { 0x10, 0x10, 0x01, 0x00, 0x21 },
3086 { 0x10, 0x10, 0x10, 0x00, 0xCA },
3087 { 0x10, 0x10, 0x12, 0x00, 0x08 },
3088 { 0x10, 0x10, 0x13, 0x00, 0x0A },
3089 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
3090 { 0x10, 0x10, 0x22, 0x01, 0x3D },
3091 { 0x10, 0x10, 0x73, 0x01, 0x2E },
3092 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
3093 { 0x10, 0x10, 0x71, 0x01, 0x97 },
3094 { 0x10, 0x10, 0x70, 0x00, 0x0F },
3095 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
3099 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
3100 msg
.buf
= init_bufs
[i
];
3101 msg
.len
= (i
!= 12 ? 5 : 2);
3102 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
3104 warn_printk(core
, "dvico_fusionhdtv_hybrid_init buf %d "
3105 "failed (err = %d)!\n", i
, err
);
3111 static int cx88_xc2028_tuner_callback(struct cx88_core
*core
,
3112 int command
, int arg
)
3114 /* Board-specific callbacks */
3115 switch (core
->boardnr
) {
3116 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3117 case CX88_BOARD_GENIATECH_X8000_MT
:
3118 case CX88_BOARD_KWORLD_ATSC_120
:
3119 return cx88_xc3028_geniatech_tuner_callback(core
,
3121 case CX88_BOARD_PROLINK_PV_8000GT
:
3122 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3123 return cx88_pv_8000gt_callback(core
, command
, arg
);
3124 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3125 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3126 return cx88_dvico_xc2028_callback(core
, command
, arg
);
3127 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3128 case CX88_BOARD_WINFAST_DTV1800H
:
3129 return cx88_xc3028_winfast1800h_callback(core
, command
, arg
);
3133 case XC2028_TUNER_RESET
:
3134 switch (INPUT(core
->input
).type
) {
3136 info_printk(core
, "setting GPIO to radio!\n");
3137 cx_write(MO_GP0_IO
, 0x4ff);
3139 cx_write(MO_GP2_IO
, 0xff);
3142 case CX88_VMUX_DVB
: /* Digital TV*/
3143 default: /* Analog TV */
3144 info_printk(core
, "setting GPIO to TV!\n");
3147 cx_write(MO_GP1_IO
, 0x101010);
3149 cx_write(MO_GP1_IO
, 0x101000);
3151 cx_write(MO_GP1_IO
, 0x101010);
3158 static int cx88_xc4000_tuner_callback(struct cx88_core
*core
,
3159 int command
, int arg
)
3161 /* Board-specific callbacks */
3162 switch (core
->boardnr
) {
3163 case CX88_BOARD_WINFAST_DTV1800H_XC4000
:
3164 case CX88_BOARD_WINFAST_DTV2000H_PLUS
:
3165 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
:
3166 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
:
3167 return cx88_xc4000_winfast2000h_plus_callback(core
,
3173 /* ----------------------------------------------------------------------- */
3174 /* Tuner callback function. Currently only needed for the Pinnacle *
3175 * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both *
3176 * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */
3178 static int cx88_xc5000_tuner_callback(struct cx88_core
*core
,
3179 int command
, int arg
)
3181 switch (core
->boardnr
) {
3182 case CX88_BOARD_PINNACLE_PCTV_HD_800i
:
3183 if (command
== 0) { /* This is the reset command from xc5000 */
3185 /* djh - According to the engineer at PCTV Systems,
3186 the xc5000 reset pin is supposed to be on GPIO12.
3187 However, despite three nights of effort, pulling
3188 that GPIO low didn't reset the xc5000. While
3189 pulling MO_SRST_IO low does reset the xc5000, this
3190 also resets in the s5h1409 being reset as well.
3191 This causes tuning to always fail since the internal
3192 state of the s5h1409 does not match the driver's
3193 state. Given that the only two conditions in which
3194 the driver performs a reset is during firmware load
3195 and powering down the chip, I am taking out the
3196 reset. We know that the chip is being reset
3197 when the cx88 comes online, and not being able to
3198 do power management for this board is worse than
3199 not having any tuning at all. */
3202 err_printk(core
, "xc5000: unknown tuner "
3203 "callback command.\n");
3207 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3208 if (command
== 0) { /* This is the reset command from xc5000 */
3209 cx_clear(MO_GP0_IO
, 0x00000010);
3211 cx_set(MO_GP0_IO
, 0x00000010);
3215 "xc5000: unknown tuner callback command.\n");
3220 return 0; /* Should never be here */
3223 int cx88_tuner_callback(void *priv
, int component
, int command
, int arg
)
3225 struct i2c_algo_bit_data
*i2c_algo
= priv
;
3226 struct cx88_core
*core
;
3229 printk(KERN_ERR
"cx88: Error - i2c private data undefined.\n");
3233 core
= i2c_algo
->data
;
3236 printk(KERN_ERR
"cx88: Error - device struct undefined.\n");
3240 if (component
!= DVB_FRONTEND_COMPONENT_TUNER
)
3243 switch (core
->board
.tuner_type
) {
3245 info_printk(core
, "Calling XC2028/3028 callback\n");
3246 return cx88_xc2028_tuner_callback(core
, command
, arg
);
3248 info_printk(core
, "Calling XC4000 callback\n");
3249 return cx88_xc4000_tuner_callback(core
, command
, arg
);
3251 info_printk(core
, "Calling XC5000 callback\n");
3252 return cx88_xc5000_tuner_callback(core
, command
, arg
);
3254 err_printk(core
, "Error: Calling callback for tuner %d\n",
3255 core
->board
.tuner_type
);
3258 EXPORT_SYMBOL(cx88_tuner_callback
);
3260 /* ----------------------------------------------------------------------- */
3262 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
3266 if (0 == pci
->subsystem_vendor
&&
3267 0 == pci
->subsystem_device
) {
3269 "%s: Your board has no valid PCI Subsystem ID and thus can't\n"
3270 "%s: be autodetected. Please pass card=<n> insmod option to\n"
3271 "%s: workaround that. Redirect complaints to the vendor of\n"
3272 "%s: the TV card. Best regards,\n"
3274 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
3277 "%s: Your board isn't known (yet) to the driver. You can\n"
3278 "%s: try to pick one of the existing card configs via\n"
3279 "%s: card=<n> insmod option. Updating to the latest\n"
3280 "%s: version might help as well.\n",
3281 core
->name
,core
->name
,core
->name
,core
->name
);
3283 err_printk(core
, "Here is a list of valid choices for the card=<n> "
3284 "insmod option:\n");
3285 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
3286 printk(KERN_ERR
"%s: card=%d -> %s\n",
3287 core
->name
, i
, cx88_boards
[i
].name
);
3290 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
3292 switch (core
->boardnr
) {
3293 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3295 * Bring the 702 demod up before i2c scanning/attach or devices are hidden
3296 * We leave here with the 702 on the bus
3298 * "reset the IR receiver on GPIO[3]"
3299 * Reported by Mike Crash <mike AT mikecrash.com>
3301 cx_write(MO_GP0_IO
, 0x0000ef88);
3303 cx_clear(MO_GP0_IO
, 0x00000088);
3305 cx_set(MO_GP0_IO
, 0x00000088); /* 702 out of reset */
3309 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3310 case CX88_BOARD_PROLINK_PV_8000GT
:
3311 cx_write(MO_GP2_IO
, 0xcf7);
3313 cx_write(MO_GP2_IO
, 0xef5);
3315 cx_write(MO_GP2_IO
, 0xcf7);
3319 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3320 /* Enable the xc5000 tuner */
3321 cx_set(MO_GP0_IO
, 0x00001010);
3324 case CX88_BOARD_WINFAST_DTV2000H_J
:
3325 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3326 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3328 cx_write(MO_GP0_IO
, core
->board
.input
[0].gpio0
);
3330 cx_clear(MO_GP0_IO
, 0x00000080);
3332 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
3336 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3337 case CX88_BOARD_WINFAST_DTV1800H
:
3338 cx88_xc3028_winfast1800h_callback(core
, XC2028_TUNER_RESET
, 0);
3341 case CX88_BOARD_WINFAST_DTV1800H_XC4000
:
3342 case CX88_BOARD_WINFAST_DTV2000H_PLUS
:
3343 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
:
3344 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
:
3345 cx88_xc4000_winfast2000h_plus_callback(core
,
3346 XC4000_TUNER_RESET
, 0);
3349 case CX88_BOARD_TWINHAN_VP1027_DVBS
:
3350 cx_write(MO_GP0_IO
, 0x00003230);
3351 cx_write(MO_GP0_IO
, 0x00003210);
3353 cx_write(MO_GP0_IO
, 0x00001230);
3359 * Sets board-dependent xc3028 configuration
3361 void cx88_setup_xc3028(struct cx88_core
*core
, struct xc2028_ctrl
*ctl
)
3363 memset(ctl
, 0, sizeof(*ctl
));
3365 ctl
->fname
= XC2028_DEFAULT_FIRMWARE
;
3368 switch (core
->boardnr
) {
3369 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3370 /* Now works with firmware version 2.7 */
3371 if (core
->i2c_algo
.udelay
< 16)
3372 core
->i2c_algo
.udelay
= 16;
3374 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3375 case CX88_BOARD_WINFAST_DTV1800H
:
3376 ctl
->demod
= XC3028_FE_ZARLINK456
;
3378 case CX88_BOARD_KWORLD_ATSC_120
:
3379 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3380 ctl
->demod
= XC3028_FE_OREN538
;
3382 case CX88_BOARD_GENIATECH_X8000_MT
:
3383 /* FIXME: For this board, the xc3028 never recovers after being
3384 powered down (the reset GPIO probably is not set properly).
3385 We don't have access to the hardware so we cannot determine
3386 which GPIO is used for xc3028, so just disable power xc3028
3387 power management for now */
3388 ctl
->disable_power_mgmt
= 1;
3390 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3391 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3392 case CX88_BOARD_PROLINK_PV_8000GT
:
3394 * Those boards uses non-MTS firmware
3397 case CX88_BOARD_PINNACLE_HYBRID_PCTV
:
3398 case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
:
3399 ctl
->demod
= XC3028_FE_ZARLINK456
;
3403 ctl
->demod
= XC3028_FE_OREN538
;
3407 EXPORT_SYMBOL_GPL(cx88_setup_xc3028
);
3409 static void cx88_card_setup(struct cx88_core
*core
)
3411 static u8 eeprom
[256];
3412 struct tuner_setup tun_setup
;
3413 unsigned int mode_mask
= T_RADIO
| T_ANALOG_TV
;
3415 memset(&tun_setup
, 0, sizeof(tun_setup
));
3417 if (0 == core
->i2c_rc
) {
3418 core
->i2c_client
.addr
= 0xa0 >> 1;
3419 tveeprom_read(&core
->i2c_client
, eeprom
, sizeof(eeprom
));
3422 switch (core
->boardnr
) {
3423 case CX88_BOARD_HAUPPAUGE
:
3424 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
3425 if (0 == core
->i2c_rc
)
3426 hauppauge_eeprom(core
, eeprom
+8);
3428 case CX88_BOARD_GDI
:
3429 if (0 == core
->i2c_rc
)
3430 gdi_eeprom(core
, eeprom
);
3432 case CX88_BOARD_LEADTEK_PVR2000
:
3433 case CX88_BOARD_WINFAST_DV2000
:
3434 case CX88_BOARD_WINFAST2000XP_EXPERT
:
3435 if (0 == core
->i2c_rc
)
3436 leadtek_eeprom(core
, eeprom
);
3438 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
3439 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
3440 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
3441 case CX88_BOARD_HAUPPAUGE_HVR1100
:
3442 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
3443 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3444 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3445 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3446 case CX88_BOARD_HAUPPAUGE_HVR4000LITE
:
3447 case CX88_BOARD_HAUPPAUGE_IRONLY
:
3448 if (0 == core
->i2c_rc
)
3449 hauppauge_eeprom(core
, eeprom
);
3451 case CX88_BOARD_KWORLD_DVBS_100
:
3452 cx_write(MO_GP0_IO
, 0x000007f8);
3453 cx_write(MO_GP1_IO
, 0x00000001);
3455 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3456 /* GPIO0:0 is hooked to demod reset */
3457 /* GPIO0:4 is hooked to xc3028 reset */
3458 cx_write(MO_GP0_IO
, 0x00111100);
3460 cx_write(MO_GP0_IO
, 0x00111111);
3462 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
3463 /* GPIO0:6 is hooked to FX2 reset pin */
3464 cx_set(MO_GP0_IO
, 0x00004040);
3465 cx_clear(MO_GP0_IO
, 0x00000040);
3467 cx_set(MO_GP0_IO
, 0x00004040);
3469 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
3470 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
3471 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
3472 /* GPIO0:0 is hooked to mt352 reset pin */
3473 cx_set(MO_GP0_IO
, 0x00000101);
3474 cx_clear(MO_GP0_IO
, 0x00000001);
3476 cx_set(MO_GP0_IO
, 0x00000101);
3477 if (0 == core
->i2c_rc
&&
3478 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
3479 dvico_fusionhdtv_hybrid_init(core
);
3481 case CX88_BOARD_KWORLD_DVB_T
:
3482 case CX88_BOARD_DNTV_LIVE_DVB_T
:
3483 cx_set(MO_GP0_IO
, 0x00000707);
3484 cx_set(MO_GP2_IO
, 0x00000101);
3485 cx_clear(MO_GP2_IO
, 0x00000001);
3487 cx_clear(MO_GP0_IO
, 0x00000007);
3488 cx_set(MO_GP2_IO
, 0x00000101);
3490 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
3491 cx_write(MO_GP0_IO
, 0x00080808);
3493 case CX88_BOARD_ATI_HDTVWONDER
:
3494 if (0 == core
->i2c_rc
) {
3497 static const u8 buffer
[][2] = {
3504 core
->i2c_client
.addr
= 0x0a;
3506 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
3507 if (2 != i2c_master_send(&core
->i2c_client
,
3509 warn_printk(core
, "Unable to enable "
3513 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
3515 struct v4l2_priv_tun_config tea5767_cfg
;
3516 struct tea5767_ctrl ctl
;
3518 memset(&ctl
, 0, sizeof(ctl
));
3523 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
3525 tea5767_cfg
.tuner
= TUNER_TEA5767
;
3526 tea5767_cfg
.priv
= &ctl
;
3528 call_all(core
, tuner
, s_config
, &tea5767_cfg
);
3531 case CX88_BOARD_TEVII_S420
:
3532 case CX88_BOARD_TEVII_S460
:
3533 case CX88_BOARD_TEVII_S464
:
3534 case CX88_BOARD_OMICOM_SS4_PCI
:
3535 case CX88_BOARD_TBS_8910
:
3536 case CX88_BOARD_TBS_8920
:
3537 case CX88_BOARD_PROF_6200
:
3538 case CX88_BOARD_PROF_7300
:
3539 case CX88_BOARD_PROF_7301
:
3540 case CX88_BOARD_SATTRADE_ST4200
:
3541 cx_write(MO_GP0_IO
, 0x8000);
3543 cx_write(MO_SRST_IO
, 0);
3545 cx_write(MO_GP0_IO
, 0x8080);
3547 cx_write(MO_SRST_IO
, 1);
3554 if ((core
->board
.radio_type
!= UNSET
)) {
3555 tun_setup
.mode_mask
= T_RADIO
;
3556 tun_setup
.type
= core
->board
.radio_type
;
3557 tun_setup
.addr
= core
->board
.radio_addr
;
3558 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3559 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3560 mode_mask
&= ~T_RADIO
;
3563 if (core
->board
.tuner_type
!= TUNER_ABSENT
) {
3564 tun_setup
.mode_mask
= mode_mask
;
3565 tun_setup
.type
= core
->board
.tuner_type
;
3566 tun_setup
.addr
= core
->board
.tuner_addr
;
3567 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3569 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3572 if (core
->board
.tda9887_conf
) {
3573 struct v4l2_priv_tun_config tda9887_cfg
;
3575 tda9887_cfg
.tuner
= TUNER_TDA9887
;
3576 tda9887_cfg
.priv
= &core
->board
.tda9887_conf
;
3578 call_all(core
, tuner
, s_config
, &tda9887_cfg
);
3581 if (core
->board
.tuner_type
== TUNER_XC2028
) {
3582 struct v4l2_priv_tun_config xc2028_cfg
;
3583 struct xc2028_ctrl ctl
;
3585 /* Fills device-dependent initialization parameters */
3586 cx88_setup_xc3028(core
, &ctl
);
3588 /* Sends parameters to xc2028/3028 tuner */
3589 memset(&xc2028_cfg
, 0, sizeof(xc2028_cfg
));
3590 xc2028_cfg
.tuner
= TUNER_XC2028
;
3591 xc2028_cfg
.priv
= &ctl
;
3592 info_printk(core
, "Asking xc2028/3028 to load firmware %s\n",
3594 call_all(core
, tuner
, s_config
, &xc2028_cfg
);
3596 call_all(core
, core
, s_power
, 0);
3599 /* ------------------------------------------------------------------ */
3601 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
3603 unsigned int lat
= UNSET
;
3607 /* check pci quirks */
3608 if (pci_pci_problems
& PCIPCI_TRITON
) {
3609 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
3611 ctrl
|= CX88X_EN_TBFX
;
3613 if (pci_pci_problems
& PCIPCI_NATOMA
) {
3614 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
3616 ctrl
|= CX88X_EN_TBFX
;
3618 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
3619 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
3621 ctrl
|= CX88X_EN_TBFX
;
3623 if (pci_pci_problems
& PCIPCI_VSFX
) {
3624 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
3626 ctrl
|= CX88X_EN_VSFX
;
3628 #ifdef PCIPCI_ALIMAGIK
3629 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
3630 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
3636 /* check insmod options */
3637 if (UNSET
!= latency
)
3642 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
3644 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
3647 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
3649 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
3654 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
3656 if (request_mem_region(pci_resource_start(pci
,0),
3657 pci_resource_len(pci
,0),
3661 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3662 core
->name
, PCI_FUNC(pci
->devfn
),
3663 (unsigned long long)pci_resource_start(pci
, 0),
3664 pci
->subsystem_vendor
, pci
->subsystem_device
);
3668 /* Allocate and initialize the cx88 core struct. One should hold the
3669 * devlist mutex before calling this. */
3670 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
3672 struct cx88_core
*core
;
3675 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
3679 atomic_inc(&core
->refcount
);
3680 core
->pci_bus
= pci
->bus
->number
;
3681 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
3682 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
3683 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
3684 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
3685 mutex_init(&core
->lock
);
3688 sprintf(core
->name
, "cx88[%d]", core
->nr
);
3690 strcpy(core
->v4l2_dev
.name
, core
->name
);
3691 if (v4l2_device_register(NULL
, &core
->v4l2_dev
)) {
3696 if (0 != cx88_get_resources(core
, pci
)) {
3697 v4l2_device_unregister(&core
->v4l2_dev
);
3703 cx88_pci_quirks(core
->name
, pci
);
3704 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
3705 pci_resource_len(pci
, 0));
3706 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
3708 if (core
->lmmio
== NULL
) {
3714 core
->boardnr
= UNSET
;
3715 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
3716 core
->boardnr
= card
[core
->nr
];
3717 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
3718 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
3719 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
3720 core
->boardnr
= cx88_subids
[i
].card
;
3721 if (UNSET
== core
->boardnr
) {
3722 core
->boardnr
= CX88_BOARD_UNKNOWN
;
3723 cx88_card_list(core
, pci
);
3726 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
3728 if (!core
->board
.num_frontends
&& (core
->board
.mpeg
& CX88_MPEG_DVB
))
3729 core
->board
.num_frontends
= 1;
3731 info_printk(core
, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3732 pci
->subsystem_vendor
, pci
->subsystem_device
, core
->board
.name
,
3733 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
3734 "insmod option" : "autodetected",
3735 core
->board
.num_frontends
);
3737 if (tuner
[core
->nr
] != UNSET
)
3738 core
->board
.tuner_type
= tuner
[core
->nr
];
3739 if (radio
[core
->nr
] != UNSET
)
3740 core
->board
.radio_type
= radio
[core
->nr
];
3742 info_printk(core
, "TV tuner type %d, Radio tuner type %d\n",
3743 core
->board
.tuner_type
, core
->board
.radio_type
);
3747 cx88_card_setup_pre_i2c(core
);
3748 cx88_i2c_init(core
, pci
);
3750 /* load tuner module, if needed */
3751 if (TUNER_ABSENT
!= core
->board
.tuner_type
) {
3752 /* Ignore 0x6b and 0x6f on cx88 boards.
3753 * FusionHDTV5 RT Gold has an ir receiver at 0x6b
3754 * and an RTC at 0x6f which can get corrupted if probed. */
3755 static const unsigned short tv_addrs
[] = {
3756 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
3757 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3758 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3761 int has_demod
= (core
->board
.tda9887_conf
& TDA9887_PRESENT
);
3763 /* I don't trust the radio_type as is stored in the card
3764 definitions, so we just probe for it.
3765 The radio_type is sometimes missing, or set to UNSET but
3766 later code configures a tea5767.
3768 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3769 "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO
));
3771 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3772 &core
->i2c_adap
, "tuner",
3773 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD
));
3774 if (core
->board
.tuner_addr
== ADDR_UNSET
) {
3775 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3776 &core
->i2c_adap
, "tuner",
3777 0, has_demod
? tv_addrs
+ 4 : tv_addrs
);
3779 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3780 "tuner", core
->board
.tuner_addr
, NULL
);
3784 cx88_card_setup(core
);
3786 cx88_i2c_init_ir(core
);
3787 cx88_ir_init(core
, pci
);