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
,
286 .type
= CX88_VMUX_COMPOSITE1
,
291 .type
= CX88_VMUX_SVIDEO
,
301 .mpeg
= CX88_MPEG_BLACKBIRD
,
303 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
304 .name
= "IODATA GV-VCP3/PCI",
305 .tuner_type
= TUNER_ABSENT
,
307 .tuner_addr
= ADDR_UNSET
,
308 .radio_addr
= ADDR_UNSET
,
310 .type
= CX88_VMUX_COMPOSITE1
,
313 .type
= CX88_VMUX_COMPOSITE2
,
316 .type
= CX88_VMUX_SVIDEO
,
320 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
321 .name
= "Prolink PlayTV PVR",
322 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
324 .tuner_addr
= ADDR_UNSET
,
325 .radio_addr
= ADDR_UNSET
,
326 .tda9887_conf
= TDA9887_PRESENT
,
328 .type
= CX88_VMUX_TELEVISION
,
332 .type
= CX88_VMUX_COMPOSITE1
,
336 .type
= CX88_VMUX_SVIDEO
,
345 [CX88_BOARD_ASUS_PVR_416
] = {
346 .name
= "ASUS PVR-416",
347 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
349 .tuner_addr
= ADDR_UNSET
,
350 .radio_addr
= ADDR_UNSET
,
351 .tda9887_conf
= TDA9887_PRESENT
,
353 .type
= CX88_VMUX_TELEVISION
,
357 .type
= CX88_VMUX_SVIDEO
,
359 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
366 .mpeg
= CX88_MPEG_BLACKBIRD
,
368 [CX88_BOARD_MSI_TVANYWHERE
] = {
369 .name
= "MSI TV-@nywhere",
370 .tuner_type
= TUNER_MT2032
,
372 .tuner_addr
= ADDR_UNSET
,
373 .radio_addr
= ADDR_UNSET
,
374 .tda9887_conf
= TDA9887_PRESENT
,
376 .type
= CX88_VMUX_TELEVISION
,
381 .type
= CX88_VMUX_COMPOSITE1
,
386 .type
= CX88_VMUX_SVIDEO
,
392 [CX88_BOARD_KWORLD_DVB_T
] = {
393 .name
= "KWorld/VStream XPert DVB-T",
394 .tuner_type
= TUNER_ABSENT
,
396 .tuner_addr
= ADDR_UNSET
,
397 .radio_addr
= ADDR_UNSET
,
399 .type
= CX88_VMUX_COMPOSITE1
,
404 .type
= CX88_VMUX_SVIDEO
,
409 .mpeg
= CX88_MPEG_DVB
,
411 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
412 .name
= "DViCO FusionHDTV DVB-T1",
413 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
415 .tuner_addr
= ADDR_UNSET
,
416 .radio_addr
= ADDR_UNSET
,
418 .type
= CX88_VMUX_COMPOSITE1
,
422 .type
= CX88_VMUX_SVIDEO
,
426 .mpeg
= CX88_MPEG_DVB
,
428 [CX88_BOARD_KWORLD_LTV883
] = {
429 .name
= "KWorld LTV883RF",
430 .tuner_type
= TUNER_TNF_8831BGFF
,
432 .tuner_addr
= ADDR_UNSET
,
433 .radio_addr
= ADDR_UNSET
,
435 .type
= CX88_VMUX_TELEVISION
,
439 .type
= CX88_VMUX_DEBUG
,
441 .gpio0
= 0x07f9, // mono from tuner chip
443 .type
= CX88_VMUX_COMPOSITE1
,
447 .type
= CX88_VMUX_SVIDEO
,
456 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
457 .name
= "DViCO FusionHDTV 3 Gold-Q",
458 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
460 .tuner_addr
= ADDR_UNSET
,
461 .radio_addr
= ADDR_UNSET
,
463 GPIO[0] resets DT3302 DTV receiver
466 GPIO[1] mutes analog audio output connector
467 0 - enable selected source
469 GPIO[2] selects source for analog audio output connector
470 0 - analog audio input connector on tab
471 1 - analog DAC output from CX23881 chip
472 GPIO[3] selects RF input connector on tuner module
473 0 - RF connector labeled CABLE
474 1 - RF connector labeled ANT
475 GPIO[4] selects high RF for QAM256 mode
480 .type
= CX88_VMUX_TELEVISION
,
484 .type
= CX88_VMUX_CABLE
,
488 .type
= CX88_VMUX_COMPOSITE1
,
492 .type
= CX88_VMUX_SVIDEO
,
496 .mpeg
= CX88_MPEG_DVB
,
498 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
499 .name
= "Hauppauge Nova-T DVB-T",
500 .tuner_type
= TUNER_ABSENT
,
502 .tuner_addr
= ADDR_UNSET
,
503 .radio_addr
= ADDR_UNSET
,
505 .type
= CX88_VMUX_DVB
,
508 .mpeg
= CX88_MPEG_DVB
,
510 [CX88_BOARD_CONEXANT_DVB_T1
] = {
511 .name
= "Conexant DVB-T reference design",
512 .tuner_type
= TUNER_ABSENT
,
514 .tuner_addr
= ADDR_UNSET
,
515 .radio_addr
= ADDR_UNSET
,
517 .type
= CX88_VMUX_DVB
,
520 .mpeg
= CX88_MPEG_DVB
,
522 [CX88_BOARD_PROVIDEO_PV259
] = {
523 .name
= "Provideo PV259",
524 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
526 .tuner_addr
= ADDR_UNSET
,
527 .radio_addr
= ADDR_UNSET
,
529 .type
= CX88_VMUX_TELEVISION
,
533 .mpeg
= CX88_MPEG_BLACKBIRD
,
535 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
536 .name
= "DViCO FusionHDTV DVB-T Plus",
537 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
539 .tuner_addr
= ADDR_UNSET
,
540 .radio_addr
= ADDR_UNSET
,
542 .type
= CX88_VMUX_COMPOSITE1
,
546 .type
= CX88_VMUX_SVIDEO
,
550 .mpeg
= CX88_MPEG_DVB
,
552 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
553 .name
= "digitalnow DNTV Live! DVB-T",
554 .tuner_type
= TUNER_ABSENT
,
556 .tuner_addr
= ADDR_UNSET
,
557 .radio_addr
= ADDR_UNSET
,
559 .type
= CX88_VMUX_COMPOSITE1
,
564 .type
= CX88_VMUX_SVIDEO
,
569 .mpeg
= CX88_MPEG_DVB
,
571 [CX88_BOARD_PCHDTV_HD3000
] = {
572 .name
= "pcHDTV HD3000 HDTV",
573 .tuner_type
= TUNER_THOMSON_DTT761X
,
575 .tuner_addr
= ADDR_UNSET
,
576 .radio_addr
= ADDR_UNSET
,
577 .tda9887_conf
= TDA9887_PRESENT
,
579 .type
= CX88_VMUX_TELEVISION
,
586 .type
= CX88_VMUX_COMPOSITE1
,
593 .type
= CX88_VMUX_SVIDEO
,
608 .mpeg
= CX88_MPEG_DVB
,
610 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
611 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
612 // GPIO values obtained from regspy, courtesy Sean Covel
613 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
616 .tuner_addr
= ADDR_UNSET
,
617 .radio_addr
= ADDR_UNSET
,
619 .type
= CX88_VMUX_TELEVISION
,
624 .type
= CX88_VMUX_DEBUG
,
628 .type
= CX88_VMUX_COMPOSITE1
,
632 .type
= CX88_VMUX_SVIDEO
,
642 .mpeg
= CX88_MPEG_BLACKBIRD
,
644 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
645 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
646 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
648 .tuner_addr
= ADDR_UNSET
,
649 .radio_addr
= ADDR_UNSET
,
650 .tda9887_conf
= TDA9887_PRESENT
,
652 .type
= CX88_VMUX_TELEVISION
,
657 .type
= CX88_VMUX_COMPOSITE1
,
662 .type
= CX88_VMUX_SVIDEO
,
672 .mpeg
= CX88_MPEG_BLACKBIRD
,
674 [CX88_BOARD_IODATA_GVBCTV7E
] = {
675 .name
= "IODATA GV/BCTV7E",
676 .tuner_type
= TUNER_PHILIPS_FQ1286
,
678 .tuner_addr
= ADDR_UNSET
,
679 .radio_addr
= ADDR_UNSET
,
680 .tda9887_conf
= TDA9887_PRESENT
,
682 .type
= CX88_VMUX_TELEVISION
,
686 .type
= CX88_VMUX_COMPOSITE1
,
690 .type
= CX88_VMUX_SVIDEO
,
695 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
696 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
697 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
698 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
700 .tuner_addr
= ADDR_UNSET
,
701 .radio_addr
= ADDR_UNSET
,
703 .type
= CX88_VMUX_TELEVISION
,
705 .gpio0
= 0xbf61, /* internal decoder */
707 .type
= CX88_VMUX_COMPOSITE1
,
711 .type
= CX88_VMUX_SVIDEO
,
720 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
721 .name
= "DViCO FusionHDTV 3 Gold-T",
722 .tuner_type
= TUNER_THOMSON_DTT761X
,
724 .tuner_addr
= ADDR_UNSET
,
725 .radio_addr
= ADDR_UNSET
,
726 .tda9887_conf
= TDA9887_PRESENT
,
728 .type
= CX88_VMUX_TELEVISION
,
732 .type
= CX88_VMUX_COMPOSITE1
,
736 .type
= CX88_VMUX_SVIDEO
,
740 .mpeg
= CX88_MPEG_DVB
,
742 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
743 .name
= "ADS Tech Instant TV DVB-T PCI",
744 .tuner_type
= TUNER_ABSENT
,
746 .tuner_addr
= ADDR_UNSET
,
747 .radio_addr
= ADDR_UNSET
,
749 .type
= CX88_VMUX_COMPOSITE1
,
754 .type
= CX88_VMUX_SVIDEO
,
759 .mpeg
= CX88_MPEG_DVB
,
761 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
762 .name
= "TerraTec Cinergy 1400 DVB-T",
763 .tuner_type
= TUNER_ABSENT
,
765 .type
= CX88_VMUX_DVB
,
768 .type
= CX88_VMUX_COMPOSITE1
,
771 .type
= CX88_VMUX_SVIDEO
,
774 .mpeg
= CX88_MPEG_DVB
,
776 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
777 .name
= "DViCO FusionHDTV 5 Gold",
778 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
780 .tuner_addr
= ADDR_UNSET
,
781 .radio_addr
= ADDR_UNSET
,
782 .tda9887_conf
= TDA9887_PRESENT
,
784 .type
= CX88_VMUX_TELEVISION
,
788 .type
= CX88_VMUX_COMPOSITE1
,
792 .type
= CX88_VMUX_SVIDEO
,
796 .mpeg
= CX88_MPEG_DVB
,
798 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
799 .name
= "AverMedia UltraTV Media Center PCI 550",
800 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
802 .tuner_addr
= ADDR_UNSET
,
803 .radio_addr
= ADDR_UNSET
,
804 .tda9887_conf
= TDA9887_PRESENT
,
806 .type
= CX88_VMUX_COMPOSITE1
,
811 .type
= CX88_VMUX_SVIDEO
,
816 .type
= CX88_VMUX_TELEVISION
,
827 .mpeg
= CX88_MPEG_BLACKBIRD
,
829 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
830 /* Alexander Wold <awold@bigfoot.com> */
831 .name
= "Kworld V-Stream Xpert DVD",
834 .type
= CX88_VMUX_COMPOSITE1
,
841 .type
= CX88_VMUX_SVIDEO
,
849 [CX88_BOARD_ATI_HDTVWONDER
] = {
850 .name
= "ATI HDTV Wonder",
851 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
853 .tuner_addr
= ADDR_UNSET
,
854 .radio_addr
= ADDR_UNSET
,
856 .type
= CX88_VMUX_TELEVISION
,
863 .type
= CX88_VMUX_COMPOSITE1
,
870 .type
= CX88_VMUX_SVIDEO
,
877 .mpeg
= CX88_MPEG_DVB
,
879 [CX88_BOARD_WINFAST_DTV1000
] = {
880 .name
= "WinFast DTV1000-T",
881 .tuner_type
= TUNER_ABSENT
,
883 .tuner_addr
= ADDR_UNSET
,
884 .radio_addr
= ADDR_UNSET
,
886 .type
= CX88_VMUX_DVB
,
889 .type
= CX88_VMUX_COMPOSITE1
,
892 .type
= CX88_VMUX_SVIDEO
,
895 .mpeg
= CX88_MPEG_DVB
,
897 [CX88_BOARD_AVERTV_303
] = {
898 .name
= "AVerTV 303 (M126)",
899 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
901 .tuner_addr
= ADDR_UNSET
,
902 .radio_addr
= ADDR_UNSET
,
903 .tda9887_conf
= TDA9887_PRESENT
,
905 .type
= CX88_VMUX_TELEVISION
,
912 .type
= CX88_VMUX_COMPOSITE1
,
919 .type
= CX88_VMUX_SVIDEO
,
927 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
928 .name
= "Hauppauge Nova-S-Plus DVB-S",
929 .tuner_type
= TUNER_ABSENT
,
931 .tuner_addr
= ADDR_UNSET
,
932 .radio_addr
= ADDR_UNSET
,
934 .type
= CX88_VMUX_DVB
,
937 .type
= CX88_VMUX_COMPOSITE1
,
940 .type
= CX88_VMUX_SVIDEO
,
943 .mpeg
= CX88_MPEG_DVB
,
945 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
946 .name
= "Hauppauge Nova-SE2 DVB-S",
947 .tuner_type
= TUNER_ABSENT
,
949 .tuner_addr
= ADDR_UNSET
,
950 .radio_addr
= ADDR_UNSET
,
952 .type
= CX88_VMUX_DVB
,
955 .mpeg
= CX88_MPEG_DVB
,
957 [CX88_BOARD_KWORLD_DVBS_100
] = {
958 .name
= "KWorld DVB-S 100",
959 .tuner_type
= TUNER_ABSENT
,
961 .tuner_addr
= ADDR_UNSET
,
962 .radio_addr
= ADDR_UNSET
,
964 .type
= CX88_VMUX_DVB
,
967 .type
= CX88_VMUX_COMPOSITE1
,
970 .type
= CX88_VMUX_SVIDEO
,
973 .mpeg
= CX88_MPEG_DVB
,
975 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
976 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
977 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
979 .tuner_addr
= ADDR_UNSET
,
980 .radio_addr
= ADDR_UNSET
,
981 .tda9887_conf
= TDA9887_PRESENT
,
983 .type
= CX88_VMUX_TELEVISION
,
986 .type
= CX88_VMUX_COMPOSITE1
,
989 .type
= CX88_VMUX_SVIDEO
,
992 /* fixme: Add radio support */
993 .mpeg
= CX88_MPEG_DVB
,
995 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
996 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
997 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
999 .tuner_addr
= ADDR_UNSET
,
1000 .radio_addr
= ADDR_UNSET
,
1001 .tda9887_conf
= TDA9887_PRESENT
,
1003 .type
= CX88_VMUX_TELEVISION
,
1006 .type
= CX88_VMUX_COMPOSITE1
,
1009 /* fixme: Add radio support */
1010 .mpeg
= CX88_MPEG_DVB
,
1012 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1013 .name
= "digitalnow DNTV Live! DVB-T Pro",
1014 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1015 .radio_type
= UNSET
,
1016 .tuner_addr
= ADDR_UNSET
,
1017 .radio_addr
= ADDR_UNSET
,
1018 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1019 TDA9887_PORT2_ACTIVE
,
1021 .type
= CX88_VMUX_TELEVISION
,
1025 .type
= CX88_VMUX_COMPOSITE1
,
1029 .type
= CX88_VMUX_SVIDEO
,
1037 .mpeg
= CX88_MPEG_DVB
,
1039 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1040 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1041 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1042 /* Manenti Marco <marco_manenti@colman.it> */
1043 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1044 .tuner_type
= TUNER_ABSENT
,
1045 .radio_type
= UNSET
,
1046 .tuner_addr
= ADDR_UNSET
,
1047 .radio_addr
= ADDR_UNSET
,
1049 .type
= CX88_VMUX_COMPOSITE1
,
1054 .type
= CX88_VMUX_SVIDEO
,
1059 .mpeg
= CX88_MPEG_DVB
,
1061 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1062 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1063 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1064 .radio_type
= UNSET
,
1065 .tuner_addr
= ADDR_UNSET
,
1066 .radio_addr
= ADDR_UNSET
,
1068 .type
= CX88_VMUX_COMPOSITE1
,
1070 .gpio0
= 0x000067df,
1072 .type
= CX88_VMUX_SVIDEO
,
1074 .gpio0
= 0x000067df,
1076 .mpeg
= CX88_MPEG_DVB
,
1078 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1079 .name
= "KWorld HardwareMpegTV XPert",
1080 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1081 .radio_type
= UNSET
,
1082 .tuner_addr
= ADDR_UNSET
,
1083 .radio_addr
= ADDR_UNSET
,
1085 .type
= CX88_VMUX_TELEVISION
,
1090 .type
= CX88_VMUX_COMPOSITE1
,
1095 .type
= CX88_VMUX_SVIDEO
,
1105 .mpeg
= CX88_MPEG_BLACKBIRD
,
1107 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1108 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1109 .tuner_type
= TUNER_THOMSON_FE6600
,
1110 .radio_type
= UNSET
,
1111 .tuner_addr
= ADDR_UNSET
,
1112 .radio_addr
= ADDR_UNSET
,
1114 .type
= CX88_VMUX_TELEVISION
,
1116 .gpio0
= 0x0000a75f,
1118 .type
= CX88_VMUX_COMPOSITE1
,
1120 .gpio0
= 0x0000a75b,
1122 .type
= CX88_VMUX_SVIDEO
,
1124 .gpio0
= 0x0000a75b,
1126 .mpeg
= CX88_MPEG_DVB
,
1128 [CX88_BOARD_PCHDTV_HD5500
] = {
1129 .name
= "pcHDTV HD5500 HDTV",
1130 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1131 .radio_type
= UNSET
,
1132 .tuner_addr
= ADDR_UNSET
,
1133 .radio_addr
= ADDR_UNSET
,
1134 .tda9887_conf
= TDA9887_PRESENT
,
1136 .type
= CX88_VMUX_TELEVISION
,
1140 .type
= CX88_VMUX_COMPOSITE1
,
1144 .type
= CX88_VMUX_SVIDEO
,
1148 .mpeg
= CX88_MPEG_DVB
,
1150 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1151 /* FIXME: tested TV input only, disabled composite,
1152 svideo and radio until they can be tested also. */
1153 .name
= "Kworld MCE 200 Deluxe",
1154 .tuner_type
= TUNER_TENA_9533_DI
,
1155 .radio_type
= UNSET
,
1156 .tda9887_conf
= TDA9887_PRESENT
,
1157 .tuner_addr
= ADDR_UNSET
,
1158 .radio_addr
= ADDR_UNSET
,
1160 .type
= CX88_VMUX_TELEVISION
,
1164 .mpeg
= CX88_MPEG_BLACKBIRD
,
1166 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1167 /* FIXME: SVideo, Composite and FM inputs are untested */
1168 .name
= "PixelView PlayTV P7000",
1169 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1170 .radio_type
= UNSET
,
1171 .tuner_addr
= ADDR_UNSET
,
1172 .radio_addr
= ADDR_UNSET
,
1173 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1174 TDA9887_PORT2_ACTIVE
,
1176 .type
= CX88_VMUX_TELEVISION
,
1180 .mpeg
= CX88_MPEG_BLACKBIRD
,
1182 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1183 .name
= "NPG Tech Real TV FM Top 10",
1184 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1185 .radio_type
= UNSET
,
1186 .tuner_addr
= ADDR_UNSET
,
1187 .radio_addr
= ADDR_UNSET
,
1189 .type
= CX88_VMUX_TELEVISION
,
1193 .type
= CX88_VMUX_COMPOSITE1
,
1197 .type
= CX88_VMUX_SVIDEO
,
1206 [CX88_BOARD_WINFAST_DTV2000H
] = {
1207 /* video inputs and radio still in testing */
1208 .name
= "WinFast DTV2000 H",
1209 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1210 .radio_type
= UNSET
,
1211 .tuner_addr
= ADDR_UNSET
,
1212 .radio_addr
= ADDR_UNSET
,
1213 .tda9887_conf
= TDA9887_PRESENT
,
1215 .type
= CX88_VMUX_TELEVISION
,
1217 .gpio0
= 0x00017304,
1218 .gpio1
= 0x00008203,
1219 .gpio2
= 0x00017304,
1220 .gpio3
= 0x02000000,
1222 .mpeg
= CX88_MPEG_DVB
,
1224 [CX88_BOARD_GENIATECH_DVBS
] = {
1225 .name
= "Geniatech DVB-S",
1226 .tuner_type
= TUNER_ABSENT
,
1227 .radio_type
= UNSET
,
1228 .tuner_addr
= ADDR_UNSET
,
1229 .radio_addr
= ADDR_UNSET
,
1231 .type
= CX88_VMUX_DVB
,
1234 .type
= CX88_VMUX_COMPOSITE1
,
1237 .mpeg
= CX88_MPEG_DVB
,
1239 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1240 /* FIXME: Add dvb & radio support */
1241 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1242 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1243 .radio_type
= UNSET
,
1244 .tuner_addr
= ADDR_UNSET
,
1245 .radio_addr
= ADDR_UNSET
,
1246 .tda9887_conf
= TDA9887_PRESENT
,
1248 .type
= CX88_VMUX_TELEVISION
,
1252 .type
= CX88_VMUX_COMPOSITE1
,
1256 .type
= CX88_VMUX_SVIDEO
,
1260 .mpeg
= CX88_MPEG_DVB
,
1262 [CX88_BOARD_NORWOOD_MICRO
] = {
1263 .name
= "Norwood Micro TV Tuner",
1264 .tuner_type
= TUNER_TNF_5335MF
,
1265 .radio_type
= UNSET
,
1266 .tuner_addr
= ADDR_UNSET
,
1267 .radio_addr
= ADDR_UNSET
,
1269 .type
= CX88_VMUX_TELEVISION
,
1273 .type
= CX88_VMUX_COMPOSITE1
,
1277 .type
= CX88_VMUX_SVIDEO
,
1282 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1283 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1284 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1285 .radio_type
= UNSET
,
1286 .tuner_addr
= ADDR_UNSET
,
1287 .radio_addr
= ADDR_UNSET
,
1289 .type
= CX88_VMUX_TELEVISION
,
1291 .gpio0
= 0x003fffff,
1292 .gpio1
= 0x00e00000,
1293 .gpio2
= 0x003fffff,
1294 .gpio3
= 0x02000000,
1296 .type
= CX88_VMUX_COMPOSITE1
,
1298 .gpio0
= 0x003fffff,
1299 .gpio1
= 0x00e00000,
1300 .gpio2
= 0x003fffff,
1301 .gpio3
= 0x02000000,
1303 .type
= CX88_VMUX_SVIDEO
,
1305 .gpio0
= 0x003fffff,
1306 .gpio1
= 0x00e00000,
1307 .gpio2
= 0x003fffff,
1308 .gpio3
= 0x02000000,
1311 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1312 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1313 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1314 .radio_type
= UNSET
,
1315 .tuner_addr
= ADDR_UNSET
,
1316 .radio_addr
= ADDR_UNSET
,
1317 .tda9887_conf
= TDA9887_PRESENT
,
1318 .audio_chip
= AUDIO_CHIP_WM8775
,
1320 .type
= CX88_VMUX_TELEVISION
,
1325 .type
= CX88_VMUX_COMPOSITE1
,
1330 .type
= CX88_VMUX_SVIDEO
,
1335 /* fixme: Add radio support */
1336 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1339 const unsigned int cx88_bcount
= ARRAY_SIZE(cx88_boards
);
1341 /* ------------------------------------------------------------------ */
1342 /* PCI subsystem IDs */
1344 struct cx88_subid cx88_subids
[] = {
1346 .subvendor
= 0x0070,
1347 .subdevice
= 0x3400,
1348 .card
= CX88_BOARD_HAUPPAUGE
,
1350 .subvendor
= 0x0070,
1351 .subdevice
= 0x3401,
1352 .card
= CX88_BOARD_HAUPPAUGE
,
1354 .subvendor
= 0x14c7,
1355 .subdevice
= 0x0106,
1356 .card
= CX88_BOARD_GDI
,
1358 .subvendor
= 0x14c7,
1359 .subdevice
= 0x0107, /* with mpeg encoder */
1360 .card
= CX88_BOARD_GDI
,
1362 .subvendor
= PCI_VENDOR_ID_ATI
,
1363 .subdevice
= 0x00f8,
1364 .card
= CX88_BOARD_ATI_WONDER_PRO
,
1366 .subvendor
= 0x107d,
1367 .subdevice
= 0x6611,
1368 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1370 .subvendor
= 0x107d,
1371 .subdevice
= 0x6613, /* NTSC */
1372 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1374 .subvendor
= 0x107d,
1375 .subdevice
= 0x6620,
1376 .card
= CX88_BOARD_WINFAST_DV2000
,
1378 .subvendor
= 0x107d,
1379 .subdevice
= 0x663b,
1380 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1382 .subvendor
= 0x107d,
1383 .subdevice
= 0x663c,
1384 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1386 .subvendor
= 0x1461,
1387 .subdevice
= 0x000b,
1388 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
1390 .subvendor
= 0x1462,
1391 .subdevice
= 0x8606,
1392 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
1394 .subvendor
= 0x10fc,
1395 .subdevice
= 0xd003,
1396 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
1398 .subvendor
= 0x1043,
1399 .subdevice
= 0x4823, /* with mpeg encoder */
1400 .card
= CX88_BOARD_ASUS_PVR_416
,
1402 .subvendor
= 0x17de,
1403 .subdevice
= 0x08a6,
1404 .card
= CX88_BOARD_KWORLD_DVB_T
,
1406 .subvendor
= 0x18ac,
1407 .subdevice
= 0xd810,
1408 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1410 .subvendor
= 0x18ac,
1411 .subdevice
= 0xd820,
1412 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
1414 .subvendor
= 0x18ac,
1415 .subdevice
= 0xdb00,
1416 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
1418 .subvendor
= 0x0070,
1419 .subdevice
= 0x9002,
1420 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1422 .subvendor
= 0x14f1,
1423 .subdevice
= 0x0187,
1424 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
1426 .subvendor
= 0x1540,
1427 .subdevice
= 0x2580,
1428 .card
= CX88_BOARD_PROVIDEO_PV259
,
1430 .subvendor
= 0x18ac,
1431 .subdevice
= 0xdb10,
1432 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1434 .subvendor
= 0x1554,
1435 .subdevice
= 0x4811,
1436 .card
= CX88_BOARD_PIXELVIEW
,
1438 .subvendor
= 0x7063,
1439 .subdevice
= 0x3000, /* HD-3000 card */
1440 .card
= CX88_BOARD_PCHDTV_HD3000
,
1442 .subvendor
= 0x17de,
1443 .subdevice
= 0xa8a6,
1444 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
1446 .subvendor
= 0x0070,
1447 .subdevice
= 0x2801,
1448 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
1450 .subvendor
= 0x14f1,
1451 .subdevice
= 0x0342,
1452 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
1454 .subvendor
= 0x10fc,
1455 .subdevice
= 0xd035,
1456 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
1458 .subvendor
= 0x1421,
1459 .subdevice
= 0x0334,
1460 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
1462 .subvendor
= 0x153b,
1463 .subdevice
= 0x1166,
1464 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
1466 .subvendor
= 0x18ac,
1467 .subdevice
= 0xd500,
1468 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
1470 .subvendor
= 0x1461,
1471 .subdevice
= 0x8011,
1472 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
1474 .subvendor
= PCI_VENDOR_ID_ATI
,
1475 .subdevice
= 0xa101,
1476 .card
= CX88_BOARD_ATI_HDTVWONDER
,
1478 .subvendor
= 0x107d,
1479 .subdevice
= 0x665f,
1480 .card
= CX88_BOARD_WINFAST_DTV1000
,
1482 .subvendor
= 0x1461,
1483 .subdevice
= 0x000a,
1484 .card
= CX88_BOARD_AVERTV_303
,
1486 .subvendor
= 0x0070,
1487 .subdevice
= 0x9200,
1488 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
1490 .subvendor
= 0x0070,
1491 .subdevice
= 0x9201,
1492 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1494 .subvendor
= 0x0070,
1495 .subdevice
= 0x9202,
1496 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1498 .subvendor
= 0x17de,
1499 .subdevice
= 0x08b2,
1500 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1502 .subvendor
= 0x0070,
1503 .subdevice
= 0x9400,
1504 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1506 .subvendor
= 0x0070,
1507 .subdevice
= 0x9402,
1508 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1510 .subvendor
= 0x0070,
1511 .subdevice
= 0x9800,
1512 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1514 .subvendor
= 0x0070,
1515 .subdevice
= 0x9802,
1516 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1518 .subvendor
= 0x0070,
1519 .subdevice
= 0x9001,
1520 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1522 .subvendor
= 0x1822,
1523 .subdevice
= 0x0025,
1524 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1526 .subvendor
= 0x17de,
1527 .subdevice
= 0x08a1,
1528 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1530 .subvendor
= 0x18ac,
1531 .subdevice
= 0xdb50,
1532 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1534 .subvendor
= 0x18ac,
1535 .subdevice
= 0xdb54,
1536 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1537 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1539 .subvendor
= 0x18ac,
1540 .subdevice
= 0xdb11,
1541 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1542 /* Re-branded DViCO: UltraView DVB-T Plus */
1544 .subvendor
= 0x17de,
1545 .subdevice
= 0x0840,
1546 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1548 .subvendor
= 0x1421,
1549 .subdevice
= 0x0305,
1550 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1552 .subvendor
= 0x18ac,
1553 .subdevice
= 0xdb40,
1554 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1556 .subvendor
= 0x18ac,
1557 .subdevice
= 0xdb44,
1558 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1560 .subvendor
= 0x7063,
1561 .subdevice
= 0x5500,
1562 .card
= CX88_BOARD_PCHDTV_HD5500
,
1564 .subvendor
= 0x17de,
1565 .subdevice
= 0x0841,
1566 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
1568 .subvendor
= 0x1822,
1569 .subdevice
= 0x0019,
1570 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1572 .subvendor
= 0x1554,
1573 .subdevice
= 0x4813,
1574 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
1576 .subvendor
= 0x14f1,
1577 .subdevice
= 0x0842,
1578 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
1580 .subvendor
= 0x107d,
1581 .subdevice
= 0x665e,
1582 .card
= CX88_BOARD_WINFAST_DTV2000H
,
1584 .subvendor
= 0x18ac,
1585 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
1586 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1588 .subvendor
= 0x14f1,
1589 .subdevice
= 0x0084,
1590 .card
= CX88_BOARD_GENIATECH_DVBS
,
1592 .subvendor
= 0x0070,
1593 .subdevice
= 0x1404,
1594 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1596 .subvendor
= 0x1461,
1597 .subdevice
= 0xc111, /* AverMedia M150-D */
1598 /* This board is known to work with the ASUS PVR416 config */
1599 .card
= CX88_BOARD_ASUS_PVR_416
,
1601 .subvendor
= 0xc180,
1602 .subdevice
= 0xc980,
1603 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
1605 .subvendor
= 0x0070,
1606 .subdevice
= 0x9600,
1607 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1609 .subvendor
= 0x0070,
1610 .subdevice
= 0x9601,
1611 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1613 .subvendor
= 0x0070,
1614 .subdevice
= 0x9602,
1615 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1617 .subvendor
= 0x107d,
1618 .subdevice
= 0x6632,
1619 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1621 .subvendor
= 0x12ab,
1622 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
1623 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1625 .subvendor
= 0x0070,
1626 .subdevice
= 0x9000,
1627 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1629 .subvendor
= 0x0070,
1630 .subdevice
= 0x1400,
1631 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1633 .subvendor
= 0x0070,
1634 .subdevice
= 0x1401,
1635 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1637 .subvendor
= 0x0070,
1638 .subdevice
= 0x1402,
1639 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1641 .subvendor
= 0x1421,
1642 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
1643 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1646 const unsigned int cx88_idcount
= ARRAY_SIZE(cx88_subids
);
1648 /* ----------------------------------------------------------------------- */
1649 /* some leadtek specific stuff */
1651 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1653 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1656 * Byte 0 is 1 on the NTSC board.
1659 if (eeprom_data
[4] != 0x7d ||
1660 eeprom_data
[5] != 0x10 ||
1661 eeprom_data
[7] != 0x66) {
1662 printk(KERN_WARNING
"%s: Leadtek eeprom invalid.\n",
1667 core
->has_radio
= 1;
1668 core
->tuner_type
= (eeprom_data
[6] == 0x13) ? 43 : 38;
1670 printk(KERN_INFO
"%s: Leadtek Winfast 2000XP Expert config: "
1671 "tuner=%d, eeprom[0]=0x%02x\n",
1672 core
->name
, core
->tuner_type
, eeprom_data
[0]);
1675 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1679 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
1680 core
->tuner_type
= tv
.tuner_type
;
1681 core
->tuner_formats
= tv
.tuner_formats
;
1682 core
->has_radio
= tv
.has_radio
;
1684 /* Make sure we support the board model */
1687 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1688 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1689 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1690 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1691 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1692 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
1693 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
1694 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1695 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
1696 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1697 case 34519: /* WinTV-PCI-FM */
1698 case 90002: /* Nova-T-PCI (9002) */
1699 case 92001: /* Nova-S-Plus (Video and IR) */
1700 case 92002: /* Nova-S-Plus (Video and IR) */
1701 case 90003: /* Nova-T-PCI (9002 No RF out) */
1702 case 90500: /* Nova-T-PCI (oem) */
1703 case 90501: /* Nova-T-PCI (oem/IR) */
1704 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1705 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1706 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1707 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1708 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1709 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1710 case 96569: /* WinTV-HVR1300 () */
1711 case 96659: /* WinTV-HVR1300 () */
1712 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1716 printk("%s: warning: unknown hauppauge model #%d\n",
1717 core
->name
, tv
.model
);
1721 printk(KERN_INFO
"%s: hauppauge eeprom: model=%d\n",
1722 core
->name
, tv
.model
);
1725 /* ----------------------------------------------------------------------- */
1726 /* some GDI (was: Modular Technology) specific stuff */
1733 [ 0x01 ] = { .id
= TUNER_ABSENT
,
1735 [ 0x02 ] = { .id
= TUNER_ABSENT
,
1737 [ 0x03 ] = { .id
= TUNER_ABSENT
,
1739 [ 0x04 ] = { .id
= TUNER_ABSENT
,
1741 [ 0x05 ] = { .id
= TUNER_ABSENT
,
1744 [ 0x10 ] = { .id
= TUNER_ABSENT
,
1746 .name
= "TEMIC_4049" },
1747 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
1748 .name
= "TEMIC_4136" },
1749 [ 0x12 ] = { .id
= TUNER_ABSENT
,
1750 .name
= "TEMIC_4146" },
1752 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
1754 .name
= "PHILIPS_FQ1216_MK3" },
1755 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
1756 .name
= "PHILIPS_FQ1236_MK3" },
1757 [ 0x22 ] = { .id
= TUNER_ABSENT
,
1758 .name
= "PHILIPS_FI1236_MK3" },
1759 [ 0x23 ] = { .id
= TUNER_ABSENT
,
1760 .name
= "PHILIPS_FI1216_MK3" },
1763 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1765 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
1766 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
1768 printk(KERN_INFO
"%s: GDI: tuner=%s\n", core
->name
,
1769 name
? name
: "unknown");
1772 core
->tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
1773 core
->has_radio
= gdi_tuner
[eeprom_data
[0x0d]].fm
;
1776 /* ----------------------------------------------------------------------- */
1777 /* some DViCO specific stuff */
1779 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
1781 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
1783 static u8 init_bufs
[13][5] = {
1784 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1785 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1786 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1787 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1788 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1789 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1790 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1791 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1792 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1793 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1794 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1795 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1799 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
1800 msg
.buf
= init_bufs
[i
];
1801 msg
.len
= (i
!= 12 ? 5 : 2);
1802 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
1804 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i
, err
);
1810 /* ----------------------------------------------------------------------- */
1812 void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
1816 if (0 == pci
->subsystem_vendor
&&
1817 0 == pci
->subsystem_device
) {
1818 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1819 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1820 "%s: workaround that. Redirect complaints to the vendor of\n"
1821 "%s: the TV card. Best regards,\n"
1823 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
1825 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1826 "%s: try to pick one of the existing card configs via\n"
1827 "%s: card=<n> insmod option. Updating to the latest\n"
1828 "%s: version might help as well.\n",
1829 core
->name
,core
->name
,core
->name
,core
->name
);
1831 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1833 for (i
= 0; i
< cx88_bcount
; i
++)
1834 printk("%s: card=%d -> %s\n",
1835 core
->name
, i
, cx88_boards
[i
].name
);
1838 void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
1840 switch (core
->board
) {
1841 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1842 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1843 /* We leave here with the 702 on the bus */
1844 cx_write(MO_GP0_IO
, 0x0000e780);
1846 cx_clear(MO_GP0_IO
, 0x00000080);
1848 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
1854 void cx88_card_setup(struct cx88_core
*core
)
1856 static u8 eeprom
[256];
1858 if (0 == core
->i2c_rc
) {
1859 core
->i2c_client
.addr
= 0xa0 >> 1;
1860 tveeprom_read(&core
->i2c_client
,eeprom
,sizeof(eeprom
));
1863 switch (core
->board
) {
1864 case CX88_BOARD_HAUPPAUGE
:
1865 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
1866 if (0 == core
->i2c_rc
)
1867 hauppauge_eeprom(core
,eeprom
+8);
1869 case CX88_BOARD_GDI
:
1870 if (0 == core
->i2c_rc
)
1871 gdi_eeprom(core
,eeprom
);
1873 case CX88_BOARD_WINFAST2000XP_EXPERT
:
1874 if (0 == core
->i2c_rc
)
1875 leadtek_eeprom(core
,eeprom
);
1877 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
1878 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
1879 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
1880 case CX88_BOARD_HAUPPAUGE_HVR1100
:
1881 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
1882 case CX88_BOARD_HAUPPAUGE_HVR3000
:
1883 case CX88_BOARD_HAUPPAUGE_HVR1300
:
1884 if (0 == core
->i2c_rc
)
1885 hauppauge_eeprom(core
,eeprom
);
1887 case CX88_BOARD_KWORLD_DVBS_100
:
1888 cx_write(MO_GP0_IO
, 0x000007f8);
1889 cx_write(MO_GP1_IO
, 0x00000001);
1891 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
1892 /* GPIO0:6 is hooked to FX2 reset pin */
1893 cx_set(MO_GP0_IO
, 0x00004040);
1894 cx_clear(MO_GP0_IO
, 0x00000040);
1896 cx_set(MO_GP0_IO
, 0x00004040);
1898 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
1899 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
1900 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
1901 /* GPIO0:0 is hooked to mt352 reset pin */
1902 cx_set(MO_GP0_IO
, 0x00000101);
1903 cx_clear(MO_GP0_IO
, 0x00000001);
1905 cx_set(MO_GP0_IO
, 0x00000101);
1906 if (0 == core
->i2c_rc
&&
1907 core
->board
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
1908 dvico_fusionhdtv_hybrid_init(core
);
1910 case CX88_BOARD_KWORLD_DVB_T
:
1911 case CX88_BOARD_DNTV_LIVE_DVB_T
:
1912 cx_set(MO_GP0_IO
, 0x00000707);
1913 cx_set(MO_GP2_IO
, 0x00000101);
1914 cx_clear(MO_GP2_IO
, 0x00000001);
1916 cx_clear(MO_GP0_IO
, 0x00000007);
1917 cx_set(MO_GP2_IO
, 0x00000101);
1919 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
1920 cx_write(MO_GP0_IO
, 0x00080808);
1922 case CX88_BOARD_ATI_HDTVWONDER
:
1923 if (0 == core
->i2c_rc
) {
1926 static const u8 buffer
[][2] = {
1933 core
->i2c_client
.addr
= 0x0a;
1935 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
1936 if (2 != i2c_master_send(&core
->i2c_client
,
1939 "%s: Unable to enable "
1945 if (cx88_boards
[core
->board
].radio
.type
== CX88_RADIO
)
1946 core
->has_radio
= 1;
1949 /* ------------------------------------------------------------------ */
1951 EXPORT_SYMBOL(cx88_boards
);
1957 * 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