3 * device driver for Conexant 2388x based TV cards
6 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <linux/init.h>
24 #include <linux/module.h>
25 #include <linux/pci.h>
26 #include <linux/delay.h>
30 /* ------------------------------------------------------------------ */
31 /* board config info */
33 struct cx88_board cx88_boards
[] = {
34 [CX88_BOARD_UNKNOWN
] = {
35 .name
= "UNKNOWN/GENERIC",
38 .tuner_addr
= ADDR_UNSET
,
39 .radio_addr
= ADDR_UNSET
,
41 .type
= CX88_VMUX_COMPOSITE1
,
44 .type
= CX88_VMUX_COMPOSITE2
,
47 .type
= CX88_VMUX_COMPOSITE3
,
50 .type
= CX88_VMUX_COMPOSITE4
,
54 [CX88_BOARD_HAUPPAUGE
] = {
55 .name
= "Hauppauge WinTV 34xxx models",
58 .tuner_addr
= ADDR_UNSET
,
59 .radio_addr
= ADDR_UNSET
,
60 .tda9887_conf
= TDA9887_PRESENT
,
62 .type
= CX88_VMUX_TELEVISION
,
64 .gpio0
= 0xff00, // internal decoder
66 .type
= CX88_VMUX_DEBUG
,
68 .gpio0
= 0xff01, // mono from tuner chip
70 .type
= CX88_VMUX_COMPOSITE1
,
74 .type
= CX88_VMUX_SVIDEO
,
84 .name
= "GDI Black Gold",
87 .tuner_addr
= ADDR_UNSET
,
88 .radio_addr
= ADDR_UNSET
,
90 .type
= CX88_VMUX_TELEVISION
,
93 .type
= CX88_VMUX_SVIDEO
,
97 [CX88_BOARD_PIXELVIEW
] = {
99 .tuner_type
= TUNER_PHILIPS_PAL
,
101 .tuner_addr
= ADDR_UNSET
,
102 .radio_addr
= ADDR_UNSET
,
104 .type
= CX88_VMUX_TELEVISION
,
106 .gpio0
= 0xff00, // internal decoder
108 .type
= CX88_VMUX_COMPOSITE1
,
111 .type
= CX88_VMUX_SVIDEO
,
119 [CX88_BOARD_ATI_WONDER_PRO
] = {
120 .name
= "ATI TV Wonder Pro",
121 .tuner_type
= TUNER_PHILIPS_4IN1
,
123 .tuner_addr
= ADDR_UNSET
,
124 .radio_addr
= ADDR_UNSET
,
125 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
127 .type
= CX88_VMUX_TELEVISION
,
131 .type
= CX88_VMUX_COMPOSITE1
,
135 .type
= CX88_VMUX_SVIDEO
,
140 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
141 .name
= "Leadtek Winfast 2000XP Expert",
142 .tuner_type
= TUNER_PHILIPS_4IN1
,
144 .tuner_addr
= ADDR_UNSET
,
145 .radio_addr
= ADDR_UNSET
,
146 .tda9887_conf
= TDA9887_PRESENT
,
148 .type
= CX88_VMUX_TELEVISION
,
155 .type
= CX88_VMUX_COMPOSITE1
,
162 .type
= CX88_VMUX_SVIDEO
,
177 [CX88_BOARD_AVERTV_STUDIO_303
] = {
178 .name
= "AverTV Studio 303 (M126)",
179 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
181 .tuner_addr
= ADDR_UNSET
,
182 .radio_addr
= ADDR_UNSET
,
183 .tda9887_conf
= TDA9887_PRESENT
,
185 .type
= CX88_VMUX_TELEVISION
,
189 .type
= CX88_VMUX_COMPOSITE1
,
193 .type
= CX88_VMUX_SVIDEO
,
202 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
203 // added gpio values thanks to Michal
204 // values for PAL from DScaler
205 .name
= "MSI TV-@nywhere Master",
206 .tuner_type
= TUNER_MT2032
,
208 .tuner_addr
= ADDR_UNSET
,
209 .radio_addr
= ADDR_UNSET
,
210 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
212 .type
= CX88_VMUX_TELEVISION
,
218 .type
= CX88_VMUX_COMPOSITE1
,
224 .type
= CX88_VMUX_SVIDEO
,
234 [CX88_BOARD_WINFAST_DV2000
] = {
235 .name
= "Leadtek Winfast DV2000",
236 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
238 .tuner_addr
= ADDR_UNSET
,
239 .radio_addr
= ADDR_UNSET
,
240 .tda9887_conf
= TDA9887_PRESENT
,
242 .type
= CX88_VMUX_TELEVISION
,
250 .type
= CX88_VMUX_COMPOSITE1
,
257 .type
= CX88_VMUX_SVIDEO
,
272 [CX88_BOARD_LEADTEK_PVR2000
] = {
273 // gpio values for PAL version from regspy by DScaler
274 .name
= "Leadtek PVR 2000",
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
,
285 .type
= CX88_VMUX_COMPOSITE1
,
289 .type
= CX88_VMUX_SVIDEO
,
299 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
300 .name
= "IODATA GV-VCP3/PCI",
301 .tuner_type
= TUNER_ABSENT
,
303 .tuner_addr
= ADDR_UNSET
,
304 .radio_addr
= ADDR_UNSET
,
306 .type
= CX88_VMUX_COMPOSITE1
,
309 .type
= CX88_VMUX_COMPOSITE2
,
312 .type
= CX88_VMUX_SVIDEO
,
316 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
317 .name
= "Prolink PlayTV PVR",
318 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
320 .tuner_addr
= ADDR_UNSET
,
321 .radio_addr
= ADDR_UNSET
,
322 .tda9887_conf
= TDA9887_PRESENT
,
324 .type
= CX88_VMUX_TELEVISION
,
328 .type
= CX88_VMUX_COMPOSITE1
,
332 .type
= CX88_VMUX_SVIDEO
,
341 [CX88_BOARD_ASUS_PVR_416
] = {
342 .name
= "ASUS PVR-416",
343 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
345 .tuner_addr
= ADDR_UNSET
,
346 .radio_addr
= ADDR_UNSET
,
347 .tda9887_conf
= TDA9887_PRESENT
,
349 .type
= CX88_VMUX_TELEVISION
,
353 .type
= CX88_VMUX_SVIDEO
,
355 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
363 [CX88_BOARD_MSI_TVANYWHERE
] = {
364 .name
= "MSI TV-@nywhere",
365 .tuner_type
= TUNER_MT2032
,
367 .tuner_addr
= ADDR_UNSET
,
368 .radio_addr
= ADDR_UNSET
,
369 .tda9887_conf
= TDA9887_PRESENT
,
371 .type
= CX88_VMUX_TELEVISION
,
376 .type
= CX88_VMUX_COMPOSITE1
,
381 .type
= CX88_VMUX_SVIDEO
,
387 [CX88_BOARD_KWORLD_DVB_T
] = {
388 .name
= "KWorld/VStream XPert DVB-T",
389 .tuner_type
= TUNER_ABSENT
,
391 .tuner_addr
= ADDR_UNSET
,
392 .radio_addr
= ADDR_UNSET
,
394 .type
= CX88_VMUX_COMPOSITE1
,
399 .type
= CX88_VMUX_SVIDEO
,
406 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
407 .name
= "DViCO FusionHDTV DVB-T1",
408 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
410 .tuner_addr
= ADDR_UNSET
,
411 .radio_addr
= ADDR_UNSET
,
413 .type
= CX88_VMUX_COMPOSITE1
,
417 .type
= CX88_VMUX_SVIDEO
,
423 [CX88_BOARD_KWORLD_LTV883
] = {
424 .name
= "KWorld LTV883RF",
425 .tuner_type
= TUNER_TNF_8831BGFF
,
427 .tuner_addr
= ADDR_UNSET
,
428 .radio_addr
= ADDR_UNSET
,
430 .type
= CX88_VMUX_TELEVISION
,
434 .type
= CX88_VMUX_DEBUG
,
436 .gpio0
= 0x07f9, // mono from tuner chip
438 .type
= CX88_VMUX_COMPOSITE1
,
442 .type
= CX88_VMUX_SVIDEO
,
451 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
452 .name
= "DViCO FusionHDTV 3 Gold-Q",
453 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
455 .tuner_addr
= ADDR_UNSET
,
456 .radio_addr
= ADDR_UNSET
,
458 GPIO[0] resets DT3302 DTV receiver
461 GPIO[1] mutes analog audio output connector
462 0 - enable selected source
464 GPIO[2] selects source for analog audio output connector
465 0 - analog audio input connector on tab
466 1 - analog DAC output from CX23881 chip
467 GPIO[3] selects RF input connector on tuner module
468 0 - RF connector labeled CABLE
469 1 - RF connector labeled ANT
470 GPIO[4] selects high RF for QAM256 mode
475 .type
= CX88_VMUX_TELEVISION
,
479 .type
= CX88_VMUX_CABLE
,
483 .type
= CX88_VMUX_COMPOSITE1
,
487 .type
= CX88_VMUX_SVIDEO
,
493 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
494 .name
= "Hauppauge Nova-T DVB-T",
495 .tuner_type
= TUNER_ABSENT
,
497 .tuner_addr
= ADDR_UNSET
,
498 .radio_addr
= ADDR_UNSET
,
500 .type
= CX88_VMUX_DVB
,
505 [CX88_BOARD_CONEXANT_DVB_T1
] = {
506 .name
= "Conexant DVB-T reference design",
507 .tuner_type
= TUNER_ABSENT
,
509 .tuner_addr
= ADDR_UNSET
,
510 .radio_addr
= ADDR_UNSET
,
512 .type
= CX88_VMUX_DVB
,
517 [CX88_BOARD_PROVIDEO_PV259
] = {
518 .name
= "Provideo PV259",
519 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
521 .tuner_addr
= ADDR_UNSET
,
522 .radio_addr
= ADDR_UNSET
,
524 .type
= CX88_VMUX_TELEVISION
,
529 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
530 .name
= "DViCO FusionHDTV DVB-T Plus",
531 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
533 .tuner_addr
= ADDR_UNSET
,
534 .radio_addr
= ADDR_UNSET
,
536 .type
= CX88_VMUX_COMPOSITE1
,
540 .type
= CX88_VMUX_SVIDEO
,
546 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
547 .name
= "digitalnow DNTV Live! DVB-T",
548 .tuner_type
= TUNER_ABSENT
,
550 .tuner_addr
= ADDR_UNSET
,
551 .radio_addr
= ADDR_UNSET
,
553 .type
= CX88_VMUX_COMPOSITE1
,
558 .type
= CX88_VMUX_SVIDEO
,
565 [CX88_BOARD_PCHDTV_HD3000
] = {
566 .name
= "pcHDTV HD3000 HDTV",
567 .tuner_type
= TUNER_THOMSON_DTT761X
,
569 .tuner_addr
= ADDR_UNSET
,
570 .radio_addr
= ADDR_UNSET
,
571 .tda9887_conf
= TDA9887_PRESENT
,
573 .type
= CX88_VMUX_TELEVISION
,
580 .type
= CX88_VMUX_COMPOSITE1
,
587 .type
= CX88_VMUX_SVIDEO
,
604 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
605 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
606 // GPIO values obtained from regspy, courtesy Sean Covel
607 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
610 .tuner_addr
= ADDR_UNSET
,
611 .radio_addr
= ADDR_UNSET
,
613 .type
= CX88_VMUX_TELEVISION
,
618 .type
= CX88_VMUX_DEBUG
,
622 .type
= CX88_VMUX_COMPOSITE1
,
626 .type
= CX88_VMUX_SVIDEO
,
638 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
639 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
640 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
642 .tuner_addr
= ADDR_UNSET
,
643 .radio_addr
= ADDR_UNSET
,
644 .tda9887_conf
= TDA9887_PRESENT
,
646 .type
= CX88_VMUX_TELEVISION
,
650 .type
= CX88_VMUX_COMPOSITE1
,
654 .type
= CX88_VMUX_SVIDEO
,
664 [CX88_BOARD_IODATA_GVBCTV7E
] = {
665 .name
= "IODATA GV/BCTV7E",
666 .tuner_type
= TUNER_PHILIPS_FQ1286
,
668 .tuner_addr
= ADDR_UNSET
,
669 .radio_addr
= ADDR_UNSET
,
670 .tda9887_conf
= TDA9887_PRESENT
,
672 .type
= CX88_VMUX_TELEVISION
,
676 .type
= CX88_VMUX_COMPOSITE1
,
680 .type
= CX88_VMUX_SVIDEO
,
685 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
686 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
687 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
688 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
690 .tuner_addr
= ADDR_UNSET
,
691 .radio_addr
= ADDR_UNSET
,
693 .type
= CX88_VMUX_TELEVISION
,
695 .gpio0
= 0xbf61, /* internal decoder */
697 .type
= CX88_VMUX_COMPOSITE1
,
701 .type
= CX88_VMUX_SVIDEO
,
710 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
711 .name
= "DViCO FusionHDTV 3 Gold-T",
712 .tuner_type
= TUNER_THOMSON_DTT761X
,
714 .tuner_addr
= ADDR_UNSET
,
715 .radio_addr
= ADDR_UNSET
,
716 .tda9887_conf
= TDA9887_PRESENT
,
718 .type
= CX88_VMUX_TELEVISION
,
722 .type
= CX88_VMUX_COMPOSITE1
,
726 .type
= CX88_VMUX_SVIDEO
,
732 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
733 .name
= "ADS Tech Instant TV DVB-T PCI",
734 .tuner_type
= TUNER_ABSENT
,
736 .tuner_addr
= ADDR_UNSET
,
737 .radio_addr
= ADDR_UNSET
,
739 .type
= CX88_VMUX_COMPOSITE1
,
744 .type
= CX88_VMUX_SVIDEO
,
751 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
752 .name
= "TerraTec Cinergy 1400 DVB-T",
753 .tuner_type
= TUNER_ABSENT
,
755 .type
= CX88_VMUX_DVB
,
760 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
761 .name
= "DViCO FusionHDTV 5 Gold",
762 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
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
,
782 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
783 .name
= "AverMedia UltraTV Media Center PCI 550",
784 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
786 .tuner_addr
= ADDR_UNSET
,
787 .radio_addr
= ADDR_UNSET
,
788 .tda9887_conf
= TDA9887_PRESENT
,
791 .type
= CX88_VMUX_COMPOSITE1
,
795 .type
= CX88_VMUX_SVIDEO
,
799 .type
= CX88_VMUX_TELEVISION
,
809 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
810 /* Alexander Wold <awold@bigfoot.com> */
811 .name
= "Kworld V-Stream Xpert DVD",
814 .type
= CX88_VMUX_COMPOSITE1
,
821 .type
= CX88_VMUX_SVIDEO
,
829 [CX88_BOARD_ATI_HDTVWONDER
] = {
830 .name
= "ATI HDTV Wonder",
831 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
833 .tuner_addr
= ADDR_UNSET
,
834 .radio_addr
= ADDR_UNSET
,
836 .type
= CX88_VMUX_TELEVISION
,
843 .type
= CX88_VMUX_COMPOSITE1
,
850 .type
= CX88_VMUX_SVIDEO
,
859 [CX88_BOARD_WINFAST_DTV1000
] = {
860 .name
= "WinFast DTV1000-T",
861 .tuner_type
= TUNER_ABSENT
,
863 .tuner_addr
= ADDR_UNSET
,
864 .radio_addr
= ADDR_UNSET
,
866 .type
= CX88_VMUX_DVB
,
871 [CX88_BOARD_AVERTV_303
] = {
872 .name
= "AVerTV 303 (M126)",
873 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
875 .tuner_addr
= ADDR_UNSET
,
876 .radio_addr
= ADDR_UNSET
,
877 .tda9887_conf
= TDA9887_PRESENT
,
879 .type
= CX88_VMUX_TELEVISION
,
886 .type
= CX88_VMUX_COMPOSITE1
,
893 .type
= CX88_VMUX_SVIDEO
,
901 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
902 .name
= "Hauppauge Nova-S-Plus DVB-S",
903 .tuner_type
= TUNER_ABSENT
,
905 .tuner_addr
= ADDR_UNSET
,
906 .radio_addr
= ADDR_UNSET
,
908 .type
= CX88_VMUX_DVB
,
911 .type
= CX88_VMUX_COMPOSITE1
,
914 .type
= CX88_VMUX_SVIDEO
,
919 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
920 .name
= "Hauppauge Nova-SE2 DVB-S",
921 .tuner_type
= TUNER_ABSENT
,
923 .tuner_addr
= ADDR_UNSET
,
924 .radio_addr
= ADDR_UNSET
,
926 .type
= CX88_VMUX_DVB
,
931 [CX88_BOARD_KWORLD_DVBS_100
] = {
932 .name
= "KWorld DVB-S 100",
933 .tuner_type
= TUNER_ABSENT
,
935 .tuner_addr
= ADDR_UNSET
,
936 .radio_addr
= ADDR_UNSET
,
938 .type
= CX88_VMUX_DVB
,
941 .type
= CX88_VMUX_COMPOSITE1
,
944 .type
= CX88_VMUX_SVIDEO
,
949 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
950 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
951 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
953 .tuner_addr
= ADDR_UNSET
,
954 .radio_addr
= ADDR_UNSET
,
955 .tda9887_conf
= TDA9887_PRESENT
,
957 .type
= CX88_VMUX_TELEVISION
,
960 .type
= CX88_VMUX_COMPOSITE1
,
963 .type
= CX88_VMUX_SVIDEO
,
966 /* fixme: Add radio support */
969 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
970 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
971 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
973 .tuner_addr
= ADDR_UNSET
,
974 .radio_addr
= ADDR_UNSET
,
975 .tda9887_conf
= TDA9887_PRESENT
,
977 .type
= CX88_VMUX_TELEVISION
,
980 .type
= CX88_VMUX_COMPOSITE1
,
983 /* fixme: Add radio support */
986 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
987 .name
= "digitalnow DNTV Live! DVB-T Pro",
988 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
990 .tuner_addr
= ADDR_UNSET
,
991 .radio_addr
= ADDR_UNSET
,
992 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
993 TDA9887_PORT2_ACTIVE
,
995 .type
= CX88_VMUX_TELEVISION
,
999 .type
= CX88_VMUX_COMPOSITE1
,
1003 .type
= CX88_VMUX_SVIDEO
,
1013 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1014 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1015 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1016 /* Manenti Marco <marco_manenti@colman.it> */
1017 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1018 .tuner_type
= TUNER_ABSENT
,
1019 .radio_type
= UNSET
,
1020 .tuner_addr
= ADDR_UNSET
,
1021 .radio_addr
= ADDR_UNSET
,
1023 .type
= CX88_VMUX_COMPOSITE1
,
1028 .type
= CX88_VMUX_SVIDEO
,
1035 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1036 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1037 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1038 .radio_type
= UNSET
,
1039 .tuner_addr
= ADDR_UNSET
,
1040 .radio_addr
= ADDR_UNSET
,
1042 .type
= CX88_VMUX_COMPOSITE1
,
1044 .gpio0
= 0x000027df,
1046 .type
= CX88_VMUX_SVIDEO
,
1048 .gpio0
= 0x000027df,
1052 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1053 /* FIXME: Audio not working for s-video / composite inputs. */
1054 .name
= "KWorld HardwareMpegTV XPert",
1055 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1056 .radio_type
= UNSET
,
1057 .tuner_addr
= ADDR_UNSET
,
1058 .radio_addr
= ADDR_UNSET
,
1060 .type
= CX88_VMUX_TELEVISION
,
1065 .type
= CX88_VMUX_COMPOSITE1
,
1069 .type
= CX88_VMUX_SVIDEO
,
1080 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1081 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1082 .tuner_type
= TUNER_THOMSON_FE6600
,
1083 .radio_type
= UNSET
,
1084 .tuner_addr
= ADDR_UNSET
,
1085 .radio_addr
= ADDR_UNSET
,
1087 .type
= CX88_VMUX_TELEVISION
,
1089 .gpio0
= 0x0000a75f,
1091 .type
= CX88_VMUX_COMPOSITE1
,
1093 .gpio0
= 0x0000a75b,
1095 .type
= CX88_VMUX_SVIDEO
,
1097 .gpio0
= 0x0000a75b,
1101 [CX88_BOARD_PCHDTV_HD5500
] = {
1102 .name
= "pcHDTV HD5500 HDTV",
1103 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1104 .radio_type
= UNSET
,
1105 .tuner_addr
= ADDR_UNSET
,
1106 .radio_addr
= ADDR_UNSET
,
1107 .tda9887_conf
= TDA9887_PRESENT
,
1109 .type
= CX88_VMUX_TELEVISION
,
1113 .type
= CX88_VMUX_COMPOSITE1
,
1117 .type
= CX88_VMUX_SVIDEO
,
1123 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1124 /* FIXME: tested TV input only, disabled composite,
1125 svideo and radio until they can be tested also. */
1126 .name
= "Kworld MCE 200 Deluxe",
1127 .tuner_type
= TUNER_TENA_9533_DI
,
1128 .radio_type
= UNSET
,
1129 .tda9887_conf
= TDA9887_PRESENT
,
1130 .tuner_addr
= ADDR_UNSET
,
1131 .radio_addr
= ADDR_UNSET
,
1133 .type
= CX88_VMUX_TELEVISION
,
1139 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1140 /* FIXME: SVideo, Composite and FM inputs are untested */
1141 .name
= "PixelView PlayTV P7000",
1142 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1143 .radio_type
= UNSET
,
1144 .tuner_addr
= ADDR_UNSET
,
1145 .radio_addr
= ADDR_UNSET
,
1146 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1147 TDA9887_PORT2_ACTIVE
,
1149 .type
= CX88_VMUX_TELEVISION
,
1155 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1156 .name
= "NPG Tech Real TV FM Top 10",
1157 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1158 .radio_type
= UNSET
,
1159 .tuner_addr
= ADDR_UNSET
,
1160 .radio_addr
= ADDR_UNSET
,
1162 .type
= CX88_VMUX_TELEVISION
,
1166 .type
= CX88_VMUX_COMPOSITE1
,
1170 .type
= CX88_VMUX_SVIDEO
,
1179 [CX88_BOARD_WINFAST_DTV2000H
] = {
1180 /* video inputs and radio still in testing */
1181 .name
= "WinFast DTV2000 H",
1182 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1183 .radio_type
= UNSET
,
1184 .tuner_addr
= ADDR_UNSET
,
1185 .radio_addr
= ADDR_UNSET
,
1186 .tda9887_conf
= TDA9887_PRESENT
,
1188 .type
= CX88_VMUX_TELEVISION
,
1190 .gpio0
= 0x00017304,
1191 .gpio1
= 0x00008203,
1192 .gpio2
= 0x00017304,
1193 .gpio3
= 0x02000000,
1198 const unsigned int cx88_bcount
= ARRAY_SIZE(cx88_boards
);
1200 /* ------------------------------------------------------------------ */
1201 /* PCI subsystem IDs */
1203 struct cx88_subid cx88_subids
[] = {
1205 .subvendor
= 0x0070,
1206 .subdevice
= 0x3400,
1207 .card
= CX88_BOARD_HAUPPAUGE
,
1209 .subvendor
= 0x0070,
1210 .subdevice
= 0x3401,
1211 .card
= CX88_BOARD_HAUPPAUGE
,
1213 .subvendor
= 0x14c7,
1214 .subdevice
= 0x0106,
1215 .card
= CX88_BOARD_GDI
,
1217 .subvendor
= 0x14c7,
1218 .subdevice
= 0x0107, /* with mpeg encoder */
1219 .card
= CX88_BOARD_GDI
,
1221 .subvendor
= PCI_VENDOR_ID_ATI
,
1222 .subdevice
= 0x00f8,
1223 .card
= CX88_BOARD_ATI_WONDER_PRO
,
1225 .subvendor
= 0x107d,
1226 .subdevice
= 0x6611,
1227 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1229 .subvendor
= 0x107d,
1230 .subdevice
= 0x6613, /* NTSC */
1231 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1233 .subvendor
= 0x107d,
1234 .subdevice
= 0x6620,
1235 .card
= CX88_BOARD_WINFAST_DV2000
,
1237 .subvendor
= 0x107d,
1238 .subdevice
= 0x663b,
1239 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1241 .subvendor
= 0x107d,
1242 .subdevice
= 0x663C,
1243 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1245 .subvendor
= 0x1461,
1246 .subdevice
= 0x000b,
1247 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
1249 .subvendor
= 0x1462,
1250 .subdevice
= 0x8606,
1251 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
1253 .subvendor
= 0x10fc,
1254 .subdevice
= 0xd003,
1255 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
1257 .subvendor
= 0x1043,
1258 .subdevice
= 0x4823, /* with mpeg encoder */
1259 .card
= CX88_BOARD_ASUS_PVR_416
,
1261 .subvendor
= 0x17de,
1262 .subdevice
= 0x08a6,
1263 .card
= CX88_BOARD_KWORLD_DVB_T
,
1265 .subvendor
= 0x18ac,
1266 .subdevice
= 0xd810,
1267 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1269 .subvendor
= 0x18ac,
1270 .subdevice
= 0xd820,
1271 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
1273 .subvendor
= 0x18ac,
1274 .subdevice
= 0xdb00,
1275 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
1277 .subvendor
= 0x0070,
1278 .subdevice
= 0x9002,
1279 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1281 .subvendor
= 0x14f1,
1282 .subdevice
= 0x0187,
1283 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
1285 .subvendor
= 0x1540,
1286 .subdevice
= 0x2580,
1287 .card
= CX88_BOARD_PROVIDEO_PV259
,
1289 .subvendor
= 0x18ac,
1290 .subdevice
= 0xdb10,
1291 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1293 .subvendor
= 0x1554,
1294 .subdevice
= 0x4811,
1295 .card
= CX88_BOARD_PIXELVIEW
,
1297 .subvendor
= 0x7063,
1298 .subdevice
= 0x3000, /* HD-3000 card */
1299 .card
= CX88_BOARD_PCHDTV_HD3000
,
1301 .subvendor
= 0x17de,
1302 .subdevice
= 0xa8a6,
1303 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
1305 .subvendor
= 0x0070,
1306 .subdevice
= 0x2801,
1307 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
1309 .subvendor
= 0x14f1,
1310 .subdevice
= 0x0342,
1311 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
1313 .subvendor
= 0x10fc,
1314 .subdevice
= 0xd035,
1315 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
1317 .subvendor
= 0x1421,
1318 .subdevice
= 0x0334,
1319 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
1321 .subvendor
= 0x153b,
1322 .subdevice
= 0x1166,
1323 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
1325 .subvendor
= 0x18ac,
1326 .subdevice
= 0xd500,
1327 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
1329 .subvendor
= 0x1461,
1330 .subdevice
= 0x8011,
1331 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
1333 .subvendor
= PCI_VENDOR_ID_ATI
,
1334 .subdevice
= 0xa101,
1335 .card
= CX88_BOARD_ATI_HDTVWONDER
,
1337 .subvendor
= 0x107d,
1338 .subdevice
= 0x665f,
1339 .card
= CX88_BOARD_WINFAST_DTV1000
,
1341 .subvendor
= 0x1461,
1342 .subdevice
= 0x000a,
1343 .card
= CX88_BOARD_AVERTV_303
,
1345 .subvendor
= 0x0070,
1346 .subdevice
= 0x9200,
1347 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
1349 .subvendor
= 0x0070,
1350 .subdevice
= 0x9201,
1351 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1353 .subvendor
= 0x0070,
1354 .subdevice
= 0x9202,
1355 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1357 .subvendor
= 0x17de,
1358 .subdevice
= 0x08b2,
1359 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1361 .subvendor
= 0x0070,
1362 .subdevice
= 0x9400,
1363 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1365 .subvendor
= 0x0070,
1366 .subdevice
= 0x9402,
1367 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1369 .subvendor
= 0x0070,
1370 .subdevice
= 0x9800,
1371 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1373 .subvendor
= 0x0070,
1374 .subdevice
= 0x9802,
1375 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1377 .subvendor
= 0x0070,
1378 .subdevice
= 0x9001,
1379 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1381 .subvendor
= 0x1822,
1382 .subdevice
= 0x0025,
1383 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1385 .subvendor
= 0x17de,
1386 .subdevice
= 0x08a1,
1387 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1389 .subvendor
= 0x18ac,
1390 .subdevice
= 0xdb50,
1391 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1393 .subvendor
= 0x18ac,
1394 .subdevice
= 0xdb54,
1395 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1396 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1398 .subvendor
= 0x18ac,
1399 .subdevice
= 0xdb11,
1400 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1401 /* Re-branded DViCO: UltraView DVB-T Plus */
1403 .subvendor
= 0x17de,
1404 .subdevice
= 0x0840,
1405 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1407 .subvendor
= 0x18ac,
1408 .subdevice
= 0xdb40,
1409 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1411 .subvendor
= 0x18ac,
1412 .subdevice
= 0xdb44,
1413 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1415 .subvendor
= 0x7063,
1416 .subdevice
= 0x5500,
1417 .card
= CX88_BOARD_PCHDTV_HD5500
,
1419 .subvendor
= 0x17de,
1420 .subdevice
= 0x0841,
1421 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
1423 .subvendor
= 0x1822,
1424 .subdevice
= 0x0019,
1425 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1427 .subvendor
= 0x1554,
1428 .subdevice
= 0x4813,
1429 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
1431 .subvendor
= 0x14f1,
1432 .subdevice
= 0x0842,
1433 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
1435 .subvendor
= 0x107d,
1436 .subdevice
= 0x665e,
1437 .card
= CX88_BOARD_WINFAST_DTV2000H
,
1440 const unsigned int cx88_idcount
= ARRAY_SIZE(cx88_subids
);
1442 /* ----------------------------------------------------------------------- */
1443 /* some leadtek specific stuff */
1445 static void __devinit
leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1447 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1450 * Byte 0 is 1 on the NTSC board.
1453 if (eeprom_data
[4] != 0x7d ||
1454 eeprom_data
[5] != 0x10 ||
1455 eeprom_data
[7] != 0x66) {
1456 printk(KERN_WARNING
"%s: Leadtek eeprom invalid.\n",
1461 core
->has_radio
= 1;
1462 core
->tuner_type
= (eeprom_data
[6] == 0x13) ? 43 : 38;
1464 printk(KERN_INFO
"%s: Leadtek Winfast 2000XP Expert config: "
1465 "tuner=%d, eeprom[0]=0x%02x\n",
1466 core
->name
, core
->tuner_type
, eeprom_data
[0]);
1469 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1473 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
1474 core
->tuner_type
= tv
.tuner_type
;
1475 core
->tuner_formats
= tv
.tuner_formats
;
1476 core
->has_radio
= tv
.has_radio
;
1478 /* Make sure we support the board model */
1481 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1482 case 34519: /* WinTV-PCI-FM */
1483 case 90002: /* Nova-T-PCI (9002) */
1484 case 92001: /* Nova-S-Plus (Video and IR) */
1485 case 92002: /* Nova-S-Plus (Video and IR) */
1486 case 90003: /* Nova-T-PCI (9002 No RF out) */
1487 case 90500: /* Nova-T-PCI (oem) */
1488 case 90501: /* Nova-T-PCI (oem/IR) */
1489 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1490 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1491 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1492 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1496 printk("%s: warning: unknown hauppauge model #%d\n",
1497 core
->name
, tv
.model
);
1501 printk(KERN_INFO
"%s: hauppauge eeprom: model=%d\n",
1502 core
->name
, tv
.model
);
1505 /* ----------------------------------------------------------------------- */
1506 /* some GDI (was: Modular Technology) specific stuff */
1513 [ 0x01 ] = { .id
= TUNER_ABSENT
,
1515 [ 0x02 ] = { .id
= TUNER_ABSENT
,
1517 [ 0x03 ] = { .id
= TUNER_ABSENT
,
1519 [ 0x04 ] = { .id
= TUNER_ABSENT
,
1521 [ 0x05 ] = { .id
= TUNER_ABSENT
,
1524 [ 0x10 ] = { .id
= TUNER_ABSENT
,
1526 .name
= "TEMIC_4049" },
1527 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
1528 .name
= "TEMIC_4136" },
1529 [ 0x12 ] = { .id
= TUNER_ABSENT
,
1530 .name
= "TEMIC_4146" },
1532 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
1534 .name
= "PHILIPS_FQ1216_MK3" },
1535 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
1536 .name
= "PHILIPS_FQ1236_MK3" },
1537 [ 0x22 ] = { .id
= TUNER_ABSENT
,
1538 .name
= "PHILIPS_FI1236_MK3" },
1539 [ 0x23 ] = { .id
= TUNER_ABSENT
,
1540 .name
= "PHILIPS_FI1216_MK3" },
1543 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1545 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
1546 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
1548 printk(KERN_INFO
"%s: GDI: tuner=%s\n", core
->name
,
1549 name
? name
: "unknown");
1552 core
->tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
1553 core
->has_radio
= gdi_tuner
[eeprom_data
[0x0d]].fm
;
1556 /* ----------------------------------------------------------------------- */
1557 /* some DViCO specific stuff */
1559 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
1561 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
1563 static u8 init_bufs
[13][5] = {
1564 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1565 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1566 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1567 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1568 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1569 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1570 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1571 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1572 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1573 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1574 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1575 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1579 for (i
= 0; i
< 13; i
++) {
1580 msg
.buf
= init_bufs
[i
];
1581 msg
.len
= (i
!= 12 ? 5 : 2);
1582 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
1584 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i
, err
);
1590 /* ----------------------------------------------------------------------- */
1592 void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
1596 if (0 == pci
->subsystem_vendor
&&
1597 0 == pci
->subsystem_device
) {
1598 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1599 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1600 "%s: workaround that. Redirect complaints to the vendor of\n"
1601 "%s: the TV card. Best regards,\n"
1603 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
1605 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1606 "%s: try to pick one of the existing card configs via\n"
1607 "%s: card=<n> insmod option. Updating to the latest\n"
1608 "%s: version might help as well.\n",
1609 core
->name
,core
->name
,core
->name
,core
->name
);
1611 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1613 for (i
= 0; i
< cx88_bcount
; i
++)
1614 printk("%s: card=%d -> %s\n",
1615 core
->name
, i
, cx88_boards
[i
].name
);
1618 void cx88_card_setup(struct cx88_core
*core
)
1620 static u8 eeprom
[256];
1622 if (0 == core
->i2c_rc
) {
1623 core
->i2c_client
.addr
= 0xa0 >> 1;
1624 tveeprom_read(&core
->i2c_client
,eeprom
,sizeof(eeprom
));
1627 switch (core
->board
) {
1628 case CX88_BOARD_HAUPPAUGE
:
1629 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
1630 if (0 == core
->i2c_rc
)
1631 hauppauge_eeprom(core
,eeprom
+8);
1633 case CX88_BOARD_GDI
:
1634 if (0 == core
->i2c_rc
)
1635 gdi_eeprom(core
,eeprom
);
1637 case CX88_BOARD_WINFAST2000XP_EXPERT
:
1638 if (0 == core
->i2c_rc
)
1639 leadtek_eeprom(core
,eeprom
);
1641 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
1642 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
1643 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
1644 case CX88_BOARD_HAUPPAUGE_HVR1100
:
1645 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
1646 if (0 == core
->i2c_rc
)
1647 hauppauge_eeprom(core
,eeprom
);
1649 case CX88_BOARD_KWORLD_DVBS_100
:
1650 cx_write(MO_GP0_IO
, 0x000007f8);
1651 cx_write(MO_GP1_IO
, 0x00000001);
1653 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
1654 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
1655 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
1656 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
1657 /* GPIO0:0 is hooked to mt352 reset pin */
1658 cx_set(MO_GP0_IO
, 0x00000101);
1659 cx_clear(MO_GP0_IO
, 0x00000001);
1661 cx_set(MO_GP0_IO
, 0x00000101);
1662 if (0 == core
->i2c_rc
&&
1663 core
->board
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
1664 dvico_fusionhdtv_hybrid_init(core
);
1666 case CX88_BOARD_KWORLD_DVB_T
:
1667 case CX88_BOARD_DNTV_LIVE_DVB_T
:
1668 cx_set(MO_GP0_IO
, 0x00000707);
1669 cx_set(MO_GP2_IO
, 0x00000101);
1670 cx_clear(MO_GP2_IO
, 0x00000001);
1672 cx_clear(MO_GP0_IO
, 0x00000007);
1673 cx_set(MO_GP2_IO
, 0x00000101);
1675 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
1676 cx_write(MO_GP0_IO
, 0x00080808);
1678 case CX88_BOARD_ATI_HDTVWONDER
:
1679 if (0 == core
->i2c_rc
) {
1682 static const u8 buffer
[] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
1683 core
->i2c_client
.addr
= 0x0a;
1685 for (i
= 0; i
< 5; i
++)
1686 if (2 != i2c_master_send(&core
->i2c_client
,&buffer
[i
*2],2))
1687 printk(KERN_WARNING
"%s: Unable to enable tuner(%i).\n",
1692 if (cx88_boards
[core
->board
].radio
.type
== CX88_RADIO
)
1693 core
->has_radio
= 1;
1696 /* ------------------------------------------------------------------ */
1698 EXPORT_SYMBOL(cx88_boards
);
1699 EXPORT_SYMBOL(cx88_bcount
);
1700 EXPORT_SYMBOL(cx88_subids
);
1701 EXPORT_SYMBOL(cx88_idcount
);
1702 EXPORT_SYMBOL(cx88_card_list
);
1703 EXPORT_SYMBOL(cx88_card_setup
);
1709 * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off