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)
62 #define dprintk(level,fmt, arg...) do { \
63 if (cx88_core_debug >= level) \
64 printk(KERN_DEBUG "%s: " fmt, core->name , ## arg); \
68 /* ------------------------------------------------------------------ */
69 /* board config info */
71 /* If radio_type !=UNSET, radio_addr should be specified
74 static const struct cx88_board cx88_boards
[] = {
75 [CX88_BOARD_UNKNOWN
] = {
76 .name
= "UNKNOWN/GENERIC",
79 .tuner_addr
= ADDR_UNSET
,
80 .radio_addr
= ADDR_UNSET
,
82 .type
= CX88_VMUX_COMPOSITE1
,
85 .type
= CX88_VMUX_COMPOSITE2
,
88 .type
= CX88_VMUX_COMPOSITE3
,
91 .type
= CX88_VMUX_COMPOSITE4
,
95 [CX88_BOARD_HAUPPAUGE
] = {
96 .name
= "Hauppauge WinTV 34xxx models",
99 .tuner_addr
= ADDR_UNSET
,
100 .radio_addr
= ADDR_UNSET
,
101 .tda9887_conf
= TDA9887_PRESENT
,
103 .type
= CX88_VMUX_TELEVISION
,
105 .gpio0
= 0xff00, // internal decoder
107 .type
= CX88_VMUX_DEBUG
,
109 .gpio0
= 0xff01, // mono from tuner chip
111 .type
= CX88_VMUX_COMPOSITE1
,
115 .type
= CX88_VMUX_SVIDEO
,
125 .name
= "GDI Black Gold",
128 .tuner_addr
= ADDR_UNSET
,
129 .radio_addr
= ADDR_UNSET
,
131 .type
= CX88_VMUX_TELEVISION
,
134 .type
= CX88_VMUX_SVIDEO
,
138 [CX88_BOARD_PIXELVIEW
] = {
140 .tuner_type
= TUNER_PHILIPS_PAL
,
142 .tuner_addr
= ADDR_UNSET
,
143 .radio_addr
= ADDR_UNSET
,
145 .type
= CX88_VMUX_TELEVISION
,
147 .gpio0
= 0xff00, // internal decoder
149 .type
= CX88_VMUX_COMPOSITE1
,
152 .type
= CX88_VMUX_SVIDEO
,
160 [CX88_BOARD_ATI_WONDER_PRO
] = {
161 .name
= "ATI TV Wonder Pro",
162 .tuner_type
= TUNER_PHILIPS_4IN1
,
164 .tuner_addr
= ADDR_UNSET
,
165 .radio_addr
= ADDR_UNSET
,
166 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
168 .type
= CX88_VMUX_TELEVISION
,
172 .type
= CX88_VMUX_COMPOSITE1
,
176 .type
= CX88_VMUX_SVIDEO
,
181 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
182 .name
= "Leadtek Winfast 2000XP Expert",
183 .tuner_type
= TUNER_PHILIPS_4IN1
,
185 .tuner_addr
= ADDR_UNSET
,
186 .radio_addr
= ADDR_UNSET
,
187 .tda9887_conf
= TDA9887_PRESENT
,
189 .type
= CX88_VMUX_TELEVISION
,
196 .type
= CX88_VMUX_COMPOSITE1
,
203 .type
= CX88_VMUX_SVIDEO
,
218 [CX88_BOARD_AVERTV_STUDIO_303
] = {
219 .name
= "AverTV Studio 303 (M126)",
220 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
222 .tuner_addr
= ADDR_UNSET
,
223 .radio_addr
= ADDR_UNSET
,
224 .tda9887_conf
= TDA9887_PRESENT
,
226 .type
= CX88_VMUX_TELEVISION
,
230 .type
= CX88_VMUX_COMPOSITE1
,
234 .type
= CX88_VMUX_SVIDEO
,
243 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
244 // added gpio values thanks to Michal
245 // values for PAL from DScaler
246 .name
= "MSI TV-@nywhere Master",
247 .tuner_type
= TUNER_MT2032
,
249 .tuner_addr
= ADDR_UNSET
,
250 .radio_addr
= ADDR_UNSET
,
251 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
253 .type
= CX88_VMUX_TELEVISION
,
259 .type
= CX88_VMUX_COMPOSITE1
,
265 .type
= CX88_VMUX_SVIDEO
,
279 [CX88_BOARD_WINFAST_DV2000
] = {
280 .name
= "Leadtek Winfast DV2000",
281 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
283 .tuner_addr
= ADDR_UNSET
,
284 .radio_addr
= ADDR_UNSET
,
285 .tda9887_conf
= TDA9887_PRESENT
,
287 .type
= CX88_VMUX_TELEVISION
,
295 .type
= CX88_VMUX_COMPOSITE1
,
302 .type
= CX88_VMUX_SVIDEO
,
317 [CX88_BOARD_LEADTEK_PVR2000
] = {
318 // gpio values for PAL version from regspy by DScaler
319 .name
= "Leadtek PVR 2000",
320 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
322 .tuner_addr
= ADDR_UNSET
,
323 .radio_addr
= ADDR_UNSET
,
324 .tda9887_conf
= TDA9887_PRESENT
,
326 .type
= CX88_VMUX_TELEVISION
,
331 .type
= CX88_VMUX_COMPOSITE1
,
336 .type
= CX88_VMUX_SVIDEO
,
346 .mpeg
= CX88_MPEG_BLACKBIRD
,
348 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
349 .name
= "IODATA GV-VCP3/PCI",
350 .tuner_type
= TUNER_ABSENT
,
352 .tuner_addr
= ADDR_UNSET
,
353 .radio_addr
= ADDR_UNSET
,
355 .type
= CX88_VMUX_COMPOSITE1
,
358 .type
= CX88_VMUX_COMPOSITE2
,
361 .type
= CX88_VMUX_SVIDEO
,
365 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
366 .name
= "Prolink PlayTV PVR",
367 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
369 .tuner_addr
= ADDR_UNSET
,
370 .radio_addr
= ADDR_UNSET
,
371 .tda9887_conf
= TDA9887_PRESENT
,
373 .type
= CX88_VMUX_TELEVISION
,
377 .type
= CX88_VMUX_COMPOSITE1
,
381 .type
= CX88_VMUX_SVIDEO
,
390 [CX88_BOARD_ASUS_PVR_416
] = {
391 .name
= "ASUS PVR-416",
392 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
394 .tuner_addr
= ADDR_UNSET
,
395 .radio_addr
= ADDR_UNSET
,
396 .tda9887_conf
= TDA9887_PRESENT
,
398 .type
= CX88_VMUX_TELEVISION
,
402 .type
= CX88_VMUX_SVIDEO
,
404 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
411 .mpeg
= CX88_MPEG_BLACKBIRD
,
413 [CX88_BOARD_MSI_TVANYWHERE
] = {
414 .name
= "MSI TV-@nywhere",
415 .tuner_type
= TUNER_MT2032
,
417 .tuner_addr
= ADDR_UNSET
,
418 .radio_addr
= ADDR_UNSET
,
419 .tda9887_conf
= TDA9887_PRESENT
,
421 .type
= CX88_VMUX_TELEVISION
,
426 .type
= CX88_VMUX_COMPOSITE1
,
431 .type
= CX88_VMUX_SVIDEO
,
437 [CX88_BOARD_KWORLD_DVB_T
] = {
438 .name
= "KWorld/VStream XPert DVB-T",
439 .tuner_type
= TUNER_ABSENT
,
441 .tuner_addr
= ADDR_UNSET
,
442 .radio_addr
= ADDR_UNSET
,
444 .type
= CX88_VMUX_COMPOSITE1
,
449 .type
= CX88_VMUX_SVIDEO
,
454 .mpeg
= CX88_MPEG_DVB
,
456 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
457 .name
= "DViCO FusionHDTV DVB-T1",
458 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
460 .tuner_addr
= ADDR_UNSET
,
461 .radio_addr
= ADDR_UNSET
,
463 .type
= CX88_VMUX_COMPOSITE1
,
467 .type
= CX88_VMUX_SVIDEO
,
471 .mpeg
= CX88_MPEG_DVB
,
473 [CX88_BOARD_KWORLD_LTV883
] = {
474 .name
= "KWorld LTV883RF",
475 .tuner_type
= TUNER_TNF_8831BGFF
,
477 .tuner_addr
= ADDR_UNSET
,
478 .radio_addr
= ADDR_UNSET
,
480 .type
= CX88_VMUX_TELEVISION
,
484 .type
= CX88_VMUX_DEBUG
,
486 .gpio0
= 0x07f9, // mono from tuner chip
488 .type
= CX88_VMUX_COMPOSITE1
,
492 .type
= CX88_VMUX_SVIDEO
,
501 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
502 .name
= "DViCO FusionHDTV 3 Gold-Q",
503 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
505 .tuner_addr
= ADDR_UNSET
,
506 .radio_addr
= ADDR_UNSET
,
508 GPIO[0] resets DT3302 DTV receiver
511 GPIO[1] mutes analog audio output connector
512 0 - enable selected source
514 GPIO[2] selects source for analog audio output connector
515 0 - analog audio input connector on tab
516 1 - analog DAC output from CX23881 chip
517 GPIO[3] selects RF input connector on tuner module
518 0 - RF connector labeled CABLE
519 1 - RF connector labeled ANT
520 GPIO[4] selects high RF for QAM256 mode
525 .type
= CX88_VMUX_TELEVISION
,
529 .type
= CX88_VMUX_CABLE
,
533 .type
= CX88_VMUX_COMPOSITE1
,
537 .type
= CX88_VMUX_SVIDEO
,
541 .mpeg
= CX88_MPEG_DVB
,
543 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
544 .name
= "Hauppauge Nova-T DVB-T",
545 .tuner_type
= TUNER_ABSENT
,
547 .tuner_addr
= ADDR_UNSET
,
548 .radio_addr
= ADDR_UNSET
,
550 .type
= CX88_VMUX_DVB
,
553 .mpeg
= CX88_MPEG_DVB
,
555 [CX88_BOARD_CONEXANT_DVB_T1
] = {
556 .name
= "Conexant DVB-T reference design",
557 .tuner_type
= TUNER_ABSENT
,
559 .tuner_addr
= ADDR_UNSET
,
560 .radio_addr
= ADDR_UNSET
,
562 .type
= CX88_VMUX_DVB
,
565 .mpeg
= CX88_MPEG_DVB
,
567 [CX88_BOARD_PROVIDEO_PV259
] = {
568 .name
= "Provideo PV259",
569 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
571 .tuner_addr
= ADDR_UNSET
,
572 .radio_addr
= ADDR_UNSET
,
574 .type
= CX88_VMUX_TELEVISION
,
578 .mpeg
= CX88_MPEG_BLACKBIRD
,
580 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
581 .name
= "DViCO FusionHDTV DVB-T Plus",
582 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
584 .tuner_addr
= ADDR_UNSET
,
585 .radio_addr
= ADDR_UNSET
,
587 .type
= CX88_VMUX_COMPOSITE1
,
591 .type
= CX88_VMUX_SVIDEO
,
595 .mpeg
= CX88_MPEG_DVB
,
597 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
598 .name
= "digitalnow DNTV Live! DVB-T",
599 .tuner_type
= TUNER_ABSENT
,
601 .tuner_addr
= ADDR_UNSET
,
602 .radio_addr
= ADDR_UNSET
,
604 .type
= CX88_VMUX_COMPOSITE1
,
609 .type
= CX88_VMUX_SVIDEO
,
614 .mpeg
= CX88_MPEG_DVB
,
616 [CX88_BOARD_PCHDTV_HD3000
] = {
617 .name
= "pcHDTV HD3000 HDTV",
618 .tuner_type
= TUNER_THOMSON_DTT761X
,
620 .tuner_addr
= ADDR_UNSET
,
621 .radio_addr
= ADDR_UNSET
,
622 .tda9887_conf
= TDA9887_PRESENT
,
623 /* GPIO[2] = audio source for analog audio out connector
624 * 0 = analog audio input connector
625 * 1 = CX88 audio DACs
627 * GPIO[7] = input to CX88's audio/chroma ADC
629 * 1 = Sound 4.5 MHz IF
631 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
633 * GPIO[16] = Remote control input
636 .type
= CX88_VMUX_TELEVISION
,
640 .type
= CX88_VMUX_COMPOSITE1
,
644 .type
= CX88_VMUX_SVIDEO
,
652 .mpeg
= CX88_MPEG_DVB
,
654 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
655 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
656 // GPIO values obtained from regspy, courtesy Sean Covel
657 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
660 .tuner_addr
= ADDR_UNSET
,
661 .radio_addr
= ADDR_UNSET
,
663 .type
= CX88_VMUX_TELEVISION
,
668 .type
= CX88_VMUX_DEBUG
,
672 .type
= CX88_VMUX_COMPOSITE1
,
676 .type
= CX88_VMUX_SVIDEO
,
686 .mpeg
= CX88_MPEG_BLACKBIRD
,
688 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
689 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
690 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
692 .tuner_addr
= ADDR_UNSET
,
693 .radio_addr
= ADDR_UNSET
,
694 .tda9887_conf
= TDA9887_PRESENT
,
696 .type
= CX88_VMUX_TELEVISION
,
701 .type
= CX88_VMUX_COMPOSITE1
,
706 .type
= CX88_VMUX_SVIDEO
,
716 .mpeg
= CX88_MPEG_BLACKBIRD
,
718 [CX88_BOARD_IODATA_GVBCTV7E
] = {
719 .name
= "IODATA GV/BCTV7E",
720 .tuner_type
= TUNER_PHILIPS_FQ1286
,
722 .tuner_addr
= ADDR_UNSET
,
723 .radio_addr
= ADDR_UNSET
,
724 .tda9887_conf
= TDA9887_PRESENT
,
726 .type
= CX88_VMUX_TELEVISION
,
730 .type
= CX88_VMUX_COMPOSITE1
,
734 .type
= CX88_VMUX_SVIDEO
,
739 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
740 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
741 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
742 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
744 .tuner_addr
= ADDR_UNSET
,
745 .radio_addr
= ADDR_UNSET
,
746 /* Some variants use a tda9874 and so need the tvaudio module. */
747 .audio_chip
= V4L2_IDENT_TVAUDIO
,
749 .type
= CX88_VMUX_TELEVISION
,
751 .gpio0
= 0xbf61, /* internal decoder */
753 .type
= CX88_VMUX_COMPOSITE1
,
757 .type
= CX88_VMUX_SVIDEO
,
766 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
767 .name
= "DViCO FusionHDTV 3 Gold-T",
768 .tuner_type
= TUNER_THOMSON_DTT761X
,
770 .tuner_addr
= ADDR_UNSET
,
771 .radio_addr
= ADDR_UNSET
,
772 .tda9887_conf
= TDA9887_PRESENT
,
774 .type
= CX88_VMUX_TELEVISION
,
778 .type
= CX88_VMUX_COMPOSITE1
,
782 .type
= CX88_VMUX_SVIDEO
,
786 .mpeg
= CX88_MPEG_DVB
,
788 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
789 .name
= "ADS Tech Instant TV DVB-T PCI",
790 .tuner_type
= TUNER_ABSENT
,
792 .tuner_addr
= ADDR_UNSET
,
793 .radio_addr
= ADDR_UNSET
,
795 .type
= CX88_VMUX_COMPOSITE1
,
800 .type
= CX88_VMUX_SVIDEO
,
805 .mpeg
= CX88_MPEG_DVB
,
807 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
808 .name
= "TerraTec Cinergy 1400 DVB-T",
809 .tuner_type
= TUNER_ABSENT
,
811 .type
= CX88_VMUX_DVB
,
814 .type
= CX88_VMUX_COMPOSITE1
,
817 .type
= CX88_VMUX_SVIDEO
,
820 .mpeg
= CX88_MPEG_DVB
,
822 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
823 .name
= "DViCO FusionHDTV 5 Gold",
824 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
826 .tuner_addr
= ADDR_UNSET
,
827 .radio_addr
= ADDR_UNSET
,
828 .tda9887_conf
= TDA9887_PRESENT
,
830 .type
= CX88_VMUX_TELEVISION
,
834 .type
= CX88_VMUX_COMPOSITE1
,
838 .type
= CX88_VMUX_SVIDEO
,
842 .mpeg
= CX88_MPEG_DVB
,
844 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
845 .name
= "AverMedia UltraTV Media Center PCI 550",
846 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
848 .tuner_addr
= ADDR_UNSET
,
849 .radio_addr
= ADDR_UNSET
,
850 .tda9887_conf
= TDA9887_PRESENT
,
852 .type
= CX88_VMUX_COMPOSITE1
,
857 .type
= CX88_VMUX_SVIDEO
,
862 .type
= CX88_VMUX_TELEVISION
,
873 .mpeg
= CX88_MPEG_BLACKBIRD
,
875 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
876 /* Alexander Wold <awold@bigfoot.com> */
877 .name
= "Kworld V-Stream Xpert DVD",
880 .type
= CX88_VMUX_COMPOSITE1
,
887 .type
= CX88_VMUX_SVIDEO
,
895 [CX88_BOARD_ATI_HDTVWONDER
] = {
896 .name
= "ATI HDTV Wonder",
897 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
899 .tuner_addr
= ADDR_UNSET
,
900 .radio_addr
= ADDR_UNSET
,
902 .type
= CX88_VMUX_TELEVISION
,
909 .type
= CX88_VMUX_COMPOSITE1
,
916 .type
= CX88_VMUX_SVIDEO
,
923 .mpeg
= CX88_MPEG_DVB
,
925 [CX88_BOARD_WINFAST_DTV1000
] = {
926 .name
= "WinFast DTV1000-T",
927 .tuner_type
= TUNER_ABSENT
,
929 .tuner_addr
= ADDR_UNSET
,
930 .radio_addr
= ADDR_UNSET
,
932 .type
= CX88_VMUX_DVB
,
935 .type
= CX88_VMUX_COMPOSITE1
,
938 .type
= CX88_VMUX_SVIDEO
,
941 .mpeg
= CX88_MPEG_DVB
,
943 [CX88_BOARD_AVERTV_303
] = {
944 .name
= "AVerTV 303 (M126)",
945 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
947 .tuner_addr
= ADDR_UNSET
,
948 .radio_addr
= ADDR_UNSET
,
949 .tda9887_conf
= TDA9887_PRESENT
,
951 .type
= CX88_VMUX_TELEVISION
,
958 .type
= CX88_VMUX_COMPOSITE1
,
965 .type
= CX88_VMUX_SVIDEO
,
973 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
974 .name
= "Hauppauge Nova-S-Plus DVB-S",
975 .tuner_type
= TUNER_ABSENT
,
977 .tuner_addr
= ADDR_UNSET
,
978 .radio_addr
= ADDR_UNSET
,
979 .audio_chip
= V4L2_IDENT_WM8775
,
982 .type
= CX88_VMUX_DVB
,
987 .type
= CX88_VMUX_COMPOSITE1
,
992 .type
= CX88_VMUX_SVIDEO
,
997 .mpeg
= CX88_MPEG_DVB
,
999 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
1000 .name
= "Hauppauge Nova-SE2 DVB-S",
1001 .tuner_type
= TUNER_ABSENT
,
1002 .radio_type
= UNSET
,
1003 .tuner_addr
= ADDR_UNSET
,
1004 .radio_addr
= ADDR_UNSET
,
1006 .type
= CX88_VMUX_DVB
,
1009 .mpeg
= CX88_MPEG_DVB
,
1011 [CX88_BOARD_KWORLD_DVBS_100
] = {
1012 .name
= "KWorld DVB-S 100",
1013 .tuner_type
= TUNER_ABSENT
,
1014 .radio_type
= UNSET
,
1015 .tuner_addr
= ADDR_UNSET
,
1016 .radio_addr
= ADDR_UNSET
,
1017 .audio_chip
= V4L2_IDENT_WM8775
,
1019 .type
= CX88_VMUX_DVB
,
1024 .type
= CX88_VMUX_COMPOSITE1
,
1029 .type
= CX88_VMUX_SVIDEO
,
1034 .mpeg
= CX88_MPEG_DVB
,
1036 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
1037 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
1038 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1039 .radio_type
= UNSET
,
1040 .tuner_addr
= ADDR_UNSET
,
1041 .radio_addr
= ADDR_UNSET
,
1042 .tda9887_conf
= TDA9887_PRESENT
,
1044 .type
= CX88_VMUX_TELEVISION
,
1047 .type
= CX88_VMUX_COMPOSITE1
,
1050 .type
= CX88_VMUX_SVIDEO
,
1053 /* fixme: Add radio support */
1054 .mpeg
= CX88_MPEG_DVB
,
1056 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1057 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1058 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1059 .radio_type
= UNSET
,
1060 .tuner_addr
= ADDR_UNSET
,
1061 .radio_addr
= ADDR_UNSET
,
1062 .tda9887_conf
= TDA9887_PRESENT
,
1064 .type
= CX88_VMUX_TELEVISION
,
1067 .type
= CX88_VMUX_COMPOSITE1
,
1070 /* fixme: Add radio support */
1071 .mpeg
= CX88_MPEG_DVB
,
1073 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1074 .name
= "digitalnow DNTV Live! DVB-T Pro",
1075 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1076 .radio_type
= UNSET
,
1077 .tuner_addr
= ADDR_UNSET
,
1078 .radio_addr
= ADDR_UNSET
,
1079 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1080 TDA9887_PORT2_ACTIVE
,
1082 .type
= CX88_VMUX_TELEVISION
,
1086 .type
= CX88_VMUX_COMPOSITE1
,
1090 .type
= CX88_VMUX_SVIDEO
,
1098 .mpeg
= CX88_MPEG_DVB
,
1100 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1101 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1102 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1103 /* Manenti Marco <marco_manenti@colman.it> */
1104 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1105 .tuner_type
= TUNER_ABSENT
,
1106 .radio_type
= UNSET
,
1107 .tuner_addr
= ADDR_UNSET
,
1108 .radio_addr
= ADDR_UNSET
,
1110 .type
= CX88_VMUX_COMPOSITE1
,
1115 .type
= CX88_VMUX_SVIDEO
,
1120 .mpeg
= CX88_MPEG_DVB
,
1122 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1123 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1124 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1125 .radio_type
= UNSET
,
1126 .tuner_addr
= ADDR_UNSET
,
1127 .radio_addr
= ADDR_UNSET
,
1129 .type
= CX88_VMUX_COMPOSITE1
,
1131 .gpio0
= 0x000067df,
1133 .type
= CX88_VMUX_SVIDEO
,
1135 .gpio0
= 0x000067df,
1137 .mpeg
= CX88_MPEG_DVB
,
1139 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1140 .name
= "KWorld HardwareMpegTV XPert",
1141 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1142 .radio_type
= UNSET
,
1143 .tuner_addr
= ADDR_UNSET
,
1144 .radio_addr
= ADDR_UNSET
,
1146 .type
= CX88_VMUX_TELEVISION
,
1151 .type
= CX88_VMUX_COMPOSITE1
,
1156 .type
= CX88_VMUX_SVIDEO
,
1166 .mpeg
= CX88_MPEG_BLACKBIRD
,
1168 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1169 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1170 .tuner_type
= TUNER_THOMSON_FE6600
,
1171 .radio_type
= UNSET
,
1172 .tuner_addr
= ADDR_UNSET
,
1173 .radio_addr
= ADDR_UNSET
,
1175 .type
= CX88_VMUX_TELEVISION
,
1177 .gpio0
= 0x0000a75f,
1179 .type
= CX88_VMUX_COMPOSITE1
,
1181 .gpio0
= 0x0000a75b,
1183 .type
= CX88_VMUX_SVIDEO
,
1185 .gpio0
= 0x0000a75b,
1187 .mpeg
= CX88_MPEG_DVB
,
1189 [CX88_BOARD_PCHDTV_HD5500
] = {
1190 .name
= "pcHDTV HD5500 HDTV",
1191 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1192 .radio_type
= UNSET
,
1193 .tuner_addr
= ADDR_UNSET
,
1194 .radio_addr
= ADDR_UNSET
,
1195 .tda9887_conf
= TDA9887_PRESENT
,
1197 .type
= CX88_VMUX_TELEVISION
,
1201 .type
= CX88_VMUX_COMPOSITE1
,
1205 .type
= CX88_VMUX_SVIDEO
,
1209 .mpeg
= CX88_MPEG_DVB
,
1211 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1212 /* FIXME: tested TV input only, disabled composite,
1213 svideo and radio until they can be tested also. */
1214 .name
= "Kworld MCE 200 Deluxe",
1215 .tuner_type
= TUNER_TENA_9533_DI
,
1216 .radio_type
= UNSET
,
1217 .tda9887_conf
= TDA9887_PRESENT
,
1218 .tuner_addr
= ADDR_UNSET
,
1219 .radio_addr
= ADDR_UNSET
,
1221 .type
= CX88_VMUX_TELEVISION
,
1225 .mpeg
= CX88_MPEG_BLACKBIRD
,
1227 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1228 /* FIXME: SVideo, Composite and FM inputs are untested */
1229 .name
= "PixelView PlayTV P7000",
1230 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1231 .radio_type
= UNSET
,
1232 .tuner_addr
= ADDR_UNSET
,
1233 .radio_addr
= ADDR_UNSET
,
1234 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1235 TDA9887_PORT2_ACTIVE
,
1237 .type
= CX88_VMUX_TELEVISION
,
1241 .mpeg
= CX88_MPEG_BLACKBIRD
,
1243 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1244 .name
= "NPG Tech Real TV FM Top 10",
1245 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1246 .radio_type
= UNSET
,
1247 .tuner_addr
= ADDR_UNSET
,
1248 .radio_addr
= ADDR_UNSET
,
1250 .type
= CX88_VMUX_TELEVISION
,
1254 .type
= CX88_VMUX_COMPOSITE1
,
1258 .type
= CX88_VMUX_SVIDEO
,
1267 [CX88_BOARD_WINFAST_DTV2000H
] = {
1268 .name
= "WinFast DTV2000 H",
1269 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1270 .radio_type
= UNSET
,
1271 .tuner_addr
= ADDR_UNSET
,
1272 .radio_addr
= ADDR_UNSET
,
1273 .tda9887_conf
= TDA9887_PRESENT
,
1275 .type
= CX88_VMUX_TELEVISION
,
1277 .gpio0
= 0x00017304,
1278 .gpio1
= 0x00008203,
1279 .gpio2
= 0x00017304,
1280 .gpio3
= 0x02000000,
1282 .type
= CX88_VMUX_COMPOSITE1
,
1284 .gpio0
= 0x0001d701,
1285 .gpio1
= 0x0000b207,
1286 .gpio2
= 0x0001d701,
1287 .gpio3
= 0x02000000,
1289 .type
= CX88_VMUX_COMPOSITE2
,
1291 .gpio0
= 0x0001d503,
1292 .gpio1
= 0x0000b207,
1293 .gpio2
= 0x0001d503,
1294 .gpio3
= 0x02000000,
1296 .type
= CX88_VMUX_SVIDEO
,
1298 .gpio0
= 0x0001d701,
1299 .gpio1
= 0x0000b207,
1300 .gpio2
= 0x0001d701,
1301 .gpio3
= 0x02000000,
1305 .gpio0
= 0x00015702,
1306 .gpio1
= 0x0000f207,
1307 .gpio2
= 0x00015702,
1308 .gpio3
= 0x02000000,
1310 .mpeg
= CX88_MPEG_DVB
,
1312 [CX88_BOARD_WINFAST_DTV2000H_J
] = {
1313 .name
= "WinFast DTV2000 H rev. J",
1314 .tuner_type
= TUNER_PHILIPS_FMD1216MEX_MK3
,
1315 .radio_type
= UNSET
,
1316 .tuner_addr
= ADDR_UNSET
,
1317 .radio_addr
= ADDR_UNSET
,
1318 .tda9887_conf
= TDA9887_PRESENT
,
1320 .type
= CX88_VMUX_TELEVISION
,
1322 .gpio0
= 0x00017300,
1323 .gpio1
= 0x00008207,
1324 .gpio2
= 0x00000000,
1325 .gpio3
= 0x02000000,
1327 .type
= CX88_VMUX_TELEVISION
,
1329 .gpio0
= 0x00018300,
1330 .gpio1
= 0x0000f207,
1331 .gpio2
= 0x00017304,
1332 .gpio3
= 0x02000000,
1334 .type
= CX88_VMUX_COMPOSITE1
,
1336 .gpio0
= 0x00018301,
1337 .gpio1
= 0x0000f207,
1338 .gpio2
= 0x00017304,
1339 .gpio3
= 0x02000000,
1341 .type
= CX88_VMUX_SVIDEO
,
1343 .gpio0
= 0x00018301,
1344 .gpio1
= 0x0000f207,
1345 .gpio2
= 0x00017304,
1346 .gpio3
= 0x02000000,
1350 .gpio0
= 0x00015702,
1351 .gpio1
= 0x0000f207,
1352 .gpio2
= 0x00015702,
1353 .gpio3
= 0x02000000,
1355 .mpeg
= CX88_MPEG_DVB
,
1357 [CX88_BOARD_GENIATECH_DVBS
] = {
1358 .name
= "Geniatech DVB-S",
1359 .tuner_type
= TUNER_ABSENT
,
1360 .radio_type
= UNSET
,
1361 .tuner_addr
= ADDR_UNSET
,
1362 .radio_addr
= ADDR_UNSET
,
1364 .type
= CX88_VMUX_DVB
,
1367 .type
= CX88_VMUX_COMPOSITE1
,
1370 .mpeg
= CX88_MPEG_DVB
,
1372 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1373 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1374 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1375 .radio_type
= UNSET
,
1376 .tuner_addr
= ADDR_UNSET
,
1377 .radio_addr
= ADDR_UNSET
,
1378 .tda9887_conf
= TDA9887_PRESENT
,
1379 .audio_chip
= V4L2_IDENT_WM8775
,
1381 .type
= CX88_VMUX_TELEVISION
,
1384 /* 1: TV Audio / FM Mono */
1387 .type
= CX88_VMUX_COMPOSITE1
,
1393 .type
= CX88_VMUX_SVIDEO
,
1402 /* 4: FM Stereo (untested) */
1405 .mpeg
= CX88_MPEG_DVB
,
1408 [CX88_BOARD_NORWOOD_MICRO
] = {
1409 .name
= "Norwood Micro TV Tuner",
1410 .tuner_type
= TUNER_TNF_5335MF
,
1411 .radio_type
= UNSET
,
1412 .tuner_addr
= ADDR_UNSET
,
1413 .radio_addr
= ADDR_UNSET
,
1415 .type
= CX88_VMUX_TELEVISION
,
1419 .type
= CX88_VMUX_COMPOSITE1
,
1423 .type
= CX88_VMUX_SVIDEO
,
1428 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1429 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1430 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1431 .radio_type
= UNSET
,
1432 .tuner_addr
= ADDR_UNSET
,
1433 .radio_addr
= ADDR_UNSET
,
1435 .type
= CX88_VMUX_TELEVISION
,
1437 .gpio0
= 0x003fffff,
1438 .gpio1
= 0x00e00000,
1439 .gpio2
= 0x003fffff,
1440 .gpio3
= 0x02000000,
1442 .type
= CX88_VMUX_COMPOSITE1
,
1444 .gpio0
= 0x003fffff,
1445 .gpio1
= 0x00e00000,
1446 .gpio2
= 0x003fffff,
1447 .gpio3
= 0x02000000,
1449 .type
= CX88_VMUX_SVIDEO
,
1451 .gpio0
= 0x003fffff,
1452 .gpio1
= 0x00e00000,
1453 .gpio2
= 0x003fffff,
1454 .gpio3
= 0x02000000,
1457 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1458 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1459 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1460 .radio_type
= UNSET
,
1461 .tuner_addr
= ADDR_UNSET
,
1462 .radio_addr
= ADDR_UNSET
,
1463 .tda9887_conf
= TDA9887_PRESENT
,
1464 .audio_chip
= V4L2_IDENT_WM8775
,
1466 * gpio0 as reported by Mike Crash <mike AT mikecrash.com>
1469 .type
= CX88_VMUX_TELEVISION
,
1472 /* 1: TV Audio / FM Mono */
1475 .type
= CX88_VMUX_COMPOSITE1
,
1481 .type
= CX88_VMUX_SVIDEO
,
1487 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1491 /* 4: FM Stereo (untested) */
1495 [CX88_BOARD_SAMSUNG_SMT_7020
] = {
1496 .name
= "Samsung SMT 7020 DVB-S",
1497 .tuner_type
= TUNER_ABSENT
,
1498 .radio_type
= UNSET
,
1499 .tuner_addr
= ADDR_UNSET
,
1500 .radio_addr
= ADDR_UNSET
,
1502 .type
= CX88_VMUX_DVB
,
1505 .mpeg
= CX88_MPEG_DVB
,
1507 [CX88_BOARD_ADSTECH_PTV_390
] = {
1508 .name
= "ADS Tech Instant Video PCI",
1509 .tuner_type
= TUNER_ABSENT
,
1510 .radio_type
= UNSET
,
1511 .tuner_addr
= ADDR_UNSET
,
1512 .radio_addr
= ADDR_UNSET
,
1514 .type
= CX88_VMUX_DEBUG
,
1518 .type
= CX88_VMUX_COMPOSITE1
,
1522 .type
= CX88_VMUX_SVIDEO
,
1527 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1528 .name
= "Pinnacle PCTV HD 800i",
1529 .tuner_type
= TUNER_XC5000
,
1530 .radio_type
= UNSET
,
1531 .tuner_addr
= ADDR_UNSET
,
1532 .radio_addr
= ADDR_UNSET
,
1534 .type
= CX88_VMUX_TELEVISION
,
1539 .type
= CX88_VMUX_COMPOSITE1
,
1545 .type
= CX88_VMUX_SVIDEO
,
1551 .mpeg
= CX88_MPEG_DVB
,
1553 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1554 .name
= "DViCO FusionHDTV 5 PCI nano",
1555 /* xc3008 tuner, digital only for now */
1556 .tuner_type
= TUNER_ABSENT
,
1557 .radio_type
= UNSET
,
1558 .tuner_addr
= ADDR_UNSET
,
1559 .radio_addr
= ADDR_UNSET
,
1561 .type
= CX88_VMUX_TELEVISION
,
1563 .gpio0
= 0x000027df, /* Unconfirmed */
1565 .type
= CX88_VMUX_COMPOSITE1
,
1567 .gpio0
= 0x000027df, /* Unconfirmed */
1570 .type
= CX88_VMUX_SVIDEO
,
1572 .gpio0
= 0x000027df, /* Unconfirmed */
1575 .mpeg
= CX88_MPEG_DVB
,
1577 [CX88_BOARD_PINNACLE_HYBRID_PCTV
] = {
1578 .name
= "Pinnacle Hybrid PCTV",
1579 .tuner_type
= TUNER_XC2028
,
1581 .radio_type
= UNSET
,
1582 .radio_addr
= ADDR_UNSET
,
1584 .type
= CX88_VMUX_TELEVISION
,
1590 .type
= CX88_VMUX_COMPOSITE1
,
1596 .type
= CX88_VMUX_SVIDEO
,
1608 .mpeg
= CX88_MPEG_DVB
,
1610 /* Terry Wu <terrywu2009@gmail.com> */
1611 /* TV Audio : set GPIO 2, 18, 19 value to 0, 1, 0 */
1612 /* FM Audio : set GPIO 2, 18, 19 value to 0, 0, 0 */
1613 /* Line-in Audio : set GPIO 2, 18, 19 value to 0, 1, 1 */
1614 /* Mute Audio : set GPIO 2 value to 1 */
1615 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
] = {
1616 .name
= "Leadtek TV2000 XP Global",
1617 .tuner_type
= TUNER_XC2028
,
1619 .radio_type
= UNSET
,
1620 .radio_addr
= ADDR_UNSET
,
1622 .type
= CX88_VMUX_TELEVISION
,
1624 .gpio0
= 0x0400, /* pin 2 = 0 */
1626 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1629 .type
= CX88_VMUX_COMPOSITE1
,
1631 .gpio0
= 0x0400, /* pin 2 = 0 */
1633 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1636 .type
= CX88_VMUX_SVIDEO
,
1638 .gpio0
= 0x0400, /* pin 2 = 0 */
1640 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1645 .gpio0
= 0x0400, /* pin 2 = 0 */
1647 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1651 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
] = {
1652 .name
= "Leadtek TV2000 XP Global (SC4100)",
1653 .tuner_type
= TUNER_XC4000
,
1655 .radio_type
= UNSET
,
1656 .radio_addr
= ADDR_UNSET
,
1658 .type
= CX88_VMUX_TELEVISION
,
1660 .gpio0
= 0x0400, /* pin 2 = 0 */
1662 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1665 .type
= CX88_VMUX_COMPOSITE1
,
1667 .gpio0
= 0x0400, /* pin 2 = 0 */
1669 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1672 .type
= CX88_VMUX_SVIDEO
,
1674 .gpio0
= 0x0400, /* pin 2 = 0 */
1676 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1681 .gpio0
= 0x0400, /* pin 2 = 0 */
1683 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1687 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
] = {
1688 .name
= "Leadtek TV2000 XP Global (XC4100)",
1689 .tuner_type
= TUNER_XC4000
,
1691 .radio_type
= UNSET
,
1692 .radio_addr
= ADDR_UNSET
,
1694 .type
= CX88_VMUX_TELEVISION
,
1696 .gpio0
= 0x0400, /* pin 2 = 0 */
1697 .gpio1
= 0x6040, /* pin 14 = 1, pin 13 = 0 */
1701 .type
= CX88_VMUX_COMPOSITE1
,
1703 .gpio0
= 0x0400, /* pin 2 = 0 */
1704 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1708 .type
= CX88_VMUX_SVIDEO
,
1710 .gpio0
= 0x0400, /* pin 2 = 0 */
1711 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1717 .gpio0
= 0x0400, /* pin 2 = 0 */
1718 .gpio1
= 0x6000, /* pin 14 = 1, pin 13 = 0 */
1723 [CX88_BOARD_POWERCOLOR_REAL_ANGEL
] = {
1724 .name
= "PowerColor RA330", /* Long names may confuse LIRC. */
1725 .tuner_type
= TUNER_XC2028
,
1728 .type
= CX88_VMUX_DEBUG
,
1729 .vmux
= 3, /* Due to the way the cx88 driver is written, */
1730 .gpio0
= 0x00ff, /* there is no way to deactivate audio pass- */
1731 .gpio1
= 0xf39d, /* through without this entry. Furthermore, if */
1732 .gpio3
= 0x0000, /* the TV mux entry is first, you get audio */
1733 }, { /* from the tuner on boot for a little while. */
1734 .type
= CX88_VMUX_TELEVISION
,
1740 .type
= CX88_VMUX_COMPOSITE1
,
1746 .type
= CX88_VMUX_SVIDEO
,
1759 [CX88_BOARD_GENIATECH_X8000_MT
] = {
1760 /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */
1761 .name
= "Geniatech X8000-MT DVBT",
1762 .tuner_type
= TUNER_XC2028
,
1765 .type
= CX88_VMUX_TELEVISION
,
1767 .gpio0
= 0x00000000,
1768 .gpio1
= 0x00e3e341,
1769 .gpio2
= 0x00000000,
1770 .gpio3
= 0x00000000,
1772 .type
= CX88_VMUX_COMPOSITE1
,
1774 .gpio0
= 0x00000000,
1775 .gpio1
= 0x00e3e361,
1776 .gpio2
= 0x00000000,
1777 .gpio3
= 0x00000000,
1779 .type
= CX88_VMUX_SVIDEO
,
1781 .gpio0
= 0x00000000,
1782 .gpio1
= 0x00e3e361,
1783 .gpio2
= 0x00000000,
1784 .gpio3
= 0x00000000,
1788 .gpio0
= 0x00000000,
1789 .gpio1
= 0x00e3e341,
1790 .gpio2
= 0x00000000,
1791 .gpio3
= 0x00000000,
1793 .mpeg
= CX88_MPEG_DVB
,
1795 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
] = {
1796 .name
= "DViCO FusionHDTV DVB-T PRO",
1797 .tuner_type
= TUNER_XC2028
,
1799 .radio_type
= UNSET
,
1800 .radio_addr
= ADDR_UNSET
,
1802 .type
= CX88_VMUX_COMPOSITE1
,
1804 .gpio0
= 0x000067df,
1806 .type
= CX88_VMUX_SVIDEO
,
1808 .gpio0
= 0x000067df,
1810 .mpeg
= CX88_MPEG_DVB
,
1812 [CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
] = {
1813 .name
= "DViCO FusionHDTV 7 Gold",
1814 .tuner_type
= TUNER_XC5000
,
1815 .radio_type
= UNSET
,
1816 .tuner_addr
= ADDR_UNSET
,
1817 .radio_addr
= ADDR_UNSET
,
1819 .type
= CX88_VMUX_TELEVISION
,
1823 .type
= CX88_VMUX_COMPOSITE1
,
1827 .type
= CX88_VMUX_SVIDEO
,
1831 .mpeg
= CX88_MPEG_DVB
,
1833 [CX88_BOARD_PROLINK_PV_8000GT
] = {
1834 .name
= "Prolink Pixelview MPEG 8000GT",
1835 .tuner_type
= TUNER_XC2028
,
1838 .type
= CX88_VMUX_TELEVISION
,
1843 .type
= CX88_VMUX_COMPOSITE1
,
1847 .type
= CX88_VMUX_SVIDEO
,
1856 [CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
] = {
1857 .name
= "Prolink Pixelview Global Extreme",
1858 .tuner_type
= TUNER_XC2028
,
1861 .type
= CX88_VMUX_TELEVISION
,
1867 .type
= CX88_VMUX_COMPOSITE1
,
1873 .type
= CX88_VMUX_SVIDEO
,
1886 /* Both radio, analog and ATSC work with this board.
1887 However, for analog to work, s5h1409 gate should be open,
1888 otherwise, tuner-xc3028 won't be detected.
1889 A proper fix require using the newer i2c methods to add
1890 tuner-xc3028 without doing an i2c probe.
1892 [CX88_BOARD_KWORLD_ATSC_120
] = {
1893 .name
= "Kworld PlusTV HD PCI 120 (ATSC 120)",
1894 .tuner_type
= TUNER_XC2028
,
1895 .radio_type
= UNSET
,
1896 .tuner_addr
= ADDR_UNSET
,
1897 .radio_addr
= ADDR_UNSET
,
1899 .type
= CX88_VMUX_TELEVISION
,
1901 .gpio0
= 0x000000ff,
1902 .gpio1
= 0x0000f35d,
1903 .gpio2
= 0x00000000,
1905 .type
= CX88_VMUX_COMPOSITE1
,
1907 .gpio0
= 0x000000ff,
1908 .gpio1
= 0x0000f37e,
1909 .gpio2
= 0x00000000,
1911 .type
= CX88_VMUX_SVIDEO
,
1913 .gpio0
= 0x000000ff,
1914 .gpio1
= 0x0000f37e,
1915 .gpio2
= 0x00000000,
1919 .gpio0
= 0x000000ff,
1920 .gpio1
= 0x0000f35d,
1921 .gpio2
= 0x00000000,
1923 .mpeg
= CX88_MPEG_DVB
,
1925 [CX88_BOARD_HAUPPAUGE_HVR4000
] = {
1926 .name
= "Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1927 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1928 .radio_type
= UNSET
,
1929 .tuner_addr
= ADDR_UNSET
,
1930 .radio_addr
= ADDR_UNSET
,
1931 .tda9887_conf
= TDA9887_PRESENT
,
1932 .audio_chip
= V4L2_IDENT_WM8775
,
1936 * Analogue SAT DVB-T
1937 * Antenna 0xc4bf 0xc4bb
1938 * Composite 0xc4bf 0xc4bb
1939 * S-Video 0xc4bf 0xc4bb
1940 * Composite1 0xc4ff 0xc4fb
1941 * S-Video1 0xc4ff 0xc4fb
1943 * BIT VALUE FUNCTION GP{x}_IO
1946 * 2 1 O:MPEG PORT 0=DVB-T 1=DVB-S
1950 * 6 0 O:INPUT SELECTOR 0=INTERNAL 1=EXPANSION
1951 * 7 1 O:DVB-T DEMOD RESET LOW
1953 * BIT VALUE FUNCTION GP{x}_OE
1965 * 1: TV Audio / FM Mono
1967 * 3: Line-In Expansion
1971 .type
= CX88_VMUX_TELEVISION
,
1974 /* 1: TV Audio / FM Mono */
1977 .type
= CX88_VMUX_COMPOSITE1
,
1983 .type
= CX88_VMUX_SVIDEO
,
1995 .mpeg
= CX88_MPEG_DVB
,
1998 [CX88_BOARD_HAUPPAUGE_HVR4000LITE
] = {
1999 .name
= "Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
2000 .tuner_type
= UNSET
,
2001 .radio_type
= UNSET
,
2002 .tuner_addr
= ADDR_UNSET
,
2003 .radio_addr
= ADDR_UNSET
,
2005 .type
= CX88_VMUX_DVB
,
2008 .mpeg
= CX88_MPEG_DVB
,
2010 [CX88_BOARD_TEVII_S420
] = {
2011 .name
= "TeVii S420 DVB-S",
2012 .tuner_type
= UNSET
,
2013 .radio_type
= UNSET
,
2014 .tuner_addr
= ADDR_UNSET
,
2015 .radio_addr
= ADDR_UNSET
,
2017 .type
= CX88_VMUX_DVB
,
2020 .mpeg
= CX88_MPEG_DVB
,
2022 [CX88_BOARD_TEVII_S460
] = {
2023 .name
= "TeVii S460 DVB-S/S2",
2024 .tuner_type
= UNSET
,
2025 .radio_type
= UNSET
,
2026 .tuner_addr
= ADDR_UNSET
,
2027 .radio_addr
= ADDR_UNSET
,
2029 .type
= CX88_VMUX_DVB
,
2032 .mpeg
= CX88_MPEG_DVB
,
2034 [CX88_BOARD_TEVII_S464
] = {
2035 .name
= "TeVii S464 DVB-S/S2",
2036 .tuner_type
= UNSET
,
2037 .radio_type
= UNSET
,
2038 .tuner_addr
= ADDR_UNSET
,
2039 .radio_addr
= ADDR_UNSET
,
2041 .type
= CX88_VMUX_DVB
,
2044 .mpeg
= CX88_MPEG_DVB
,
2046 [CX88_BOARD_OMICOM_SS4_PCI
] = {
2047 .name
= "Omicom SS4 DVB-S/S2 PCI",
2048 .tuner_type
= UNSET
,
2049 .radio_type
= UNSET
,
2050 .tuner_addr
= ADDR_UNSET
,
2051 .radio_addr
= ADDR_UNSET
,
2053 .type
= CX88_VMUX_DVB
,
2056 .mpeg
= CX88_MPEG_DVB
,
2058 [CX88_BOARD_TBS_8910
] = {
2059 .name
= "TBS 8910 DVB-S",
2060 .tuner_type
= UNSET
,
2061 .radio_type
= UNSET
,
2062 .tuner_addr
= ADDR_UNSET
,
2063 .radio_addr
= ADDR_UNSET
,
2065 .type
= CX88_VMUX_DVB
,
2068 .mpeg
= CX88_MPEG_DVB
,
2070 [CX88_BOARD_TBS_8920
] = {
2071 .name
= "TBS 8920 DVB-S/S2",
2072 .tuner_type
= TUNER_ABSENT
,
2073 .radio_type
= UNSET
,
2074 .tuner_addr
= ADDR_UNSET
,
2075 .radio_addr
= ADDR_UNSET
,
2077 .type
= CX88_VMUX_DVB
,
2081 .mpeg
= CX88_MPEG_DVB
,
2083 [CX88_BOARD_PROF_6200
] = {
2084 .name
= "Prof 6200 DVB-S",
2085 .tuner_type
= UNSET
,
2086 .radio_type
= UNSET
,
2087 .tuner_addr
= ADDR_UNSET
,
2088 .radio_addr
= ADDR_UNSET
,
2090 .type
= CX88_VMUX_DVB
,
2093 .mpeg
= CX88_MPEG_DVB
,
2095 [CX88_BOARD_PROF_7300
] = {
2096 .name
= "PROF 7300 DVB-S/S2",
2097 .tuner_type
= UNSET
,
2098 .radio_type
= UNSET
,
2099 .tuner_addr
= ADDR_UNSET
,
2100 .radio_addr
= ADDR_UNSET
,
2102 .type
= CX88_VMUX_DVB
,
2105 .mpeg
= CX88_MPEG_DVB
,
2107 [CX88_BOARD_SATTRADE_ST4200
] = {
2108 .name
= "SATTRADE ST4200 DVB-S/S2",
2109 .tuner_type
= UNSET
,
2110 .radio_type
= UNSET
,
2111 .tuner_addr
= ADDR_UNSET
,
2112 .radio_addr
= ADDR_UNSET
,
2114 .type
= CX88_VMUX_DVB
,
2117 .mpeg
= CX88_MPEG_DVB
,
2119 [CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
] = {
2120 .name
= "Terratec Cinergy HT PCI MKII",
2121 .tuner_type
= TUNER_XC2028
,
2123 .radio_type
= UNSET
,
2124 .radio_addr
= ADDR_UNSET
,
2126 .type
= CX88_VMUX_TELEVISION
,
2132 .type
= CX88_VMUX_COMPOSITE1
,
2138 .type
= CX88_VMUX_SVIDEO
,
2150 .mpeg
= CX88_MPEG_DVB
,
2152 [CX88_BOARD_HAUPPAUGE_IRONLY
] = {
2153 .name
= "Hauppauge WinTV-IR Only",
2154 .tuner_type
= UNSET
,
2155 .radio_type
= UNSET
,
2156 .tuner_addr
= ADDR_UNSET
,
2157 .radio_addr
= ADDR_UNSET
,
2159 [CX88_BOARD_WINFAST_DTV1800H
] = {
2160 .name
= "Leadtek WinFast DTV1800 Hybrid",
2161 .tuner_type
= TUNER_XC2028
,
2162 .radio_type
= UNSET
,
2164 .radio_addr
= ADDR_UNSET
,
2168 * 2: mute (0=off,1=on)
2169 * 12: tuner reset pin
2170 * 13: audio source (0=tuner audio,1=line in)
2171 * 14: FM (0=on,1=off ???)
2174 .type
= CX88_VMUX_TELEVISION
,
2176 .gpio0
= 0x0400, /* pin 2 = 0 */
2177 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2180 .type
= CX88_VMUX_COMPOSITE1
,
2182 .gpio0
= 0x0400, /* pin 2 = 0 */
2183 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2186 .type
= CX88_VMUX_SVIDEO
,
2188 .gpio0
= 0x0400, /* pin 2 = 0 */
2189 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2194 .gpio0
= 0x0400, /* pin 2 = 0 */
2195 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2198 .mpeg
= CX88_MPEG_DVB
,
2200 [CX88_BOARD_WINFAST_DTV1800H_XC4000
] = {
2201 .name
= "Leadtek WinFast DTV1800 H (XC4000)",
2202 .tuner_type
= TUNER_XC4000
,
2203 .radio_type
= UNSET
,
2205 .radio_addr
= ADDR_UNSET
,
2209 * 2: mute (0=off,1=on)
2210 * 12: tuner reset pin
2211 * 13: audio source (0=tuner audio,1=line in)
2212 * 14: FM (0=on,1=off ???)
2215 .type
= CX88_VMUX_TELEVISION
,
2217 .gpio0
= 0x0400, /* pin 2 = 0 */
2218 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2221 .type
= CX88_VMUX_COMPOSITE1
,
2223 .gpio0
= 0x0400, /* pin 2 = 0 */
2224 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2227 .type
= CX88_VMUX_SVIDEO
,
2229 .gpio0
= 0x0400, /* pin 2 = 0 */
2230 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2235 .gpio0
= 0x0400, /* pin 2 = 0 */
2236 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2239 .mpeg
= CX88_MPEG_DVB
,
2241 [CX88_BOARD_WINFAST_DTV2000H_PLUS
] = {
2242 .name
= "Leadtek WinFast DTV2000 H PLUS",
2243 .tuner_type
= TUNER_XC4000
,
2244 .radio_type
= UNSET
,
2246 .radio_addr
= ADDR_UNSET
,
2250 * 12: 0: reset XC4000
2251 * 13: 1: audio input is line in (0: tuner)
2253 * 16: 0: RF input is cable
2256 .type
= CX88_VMUX_TELEVISION
,
2263 .type
= CX88_VMUX_CABLE
,
2270 .type
= CX88_VMUX_COMPOSITE1
,
2272 .gpio0
= 0x0403, /* was 0x0407 */
2277 .type
= CX88_VMUX_SVIDEO
,
2279 .gpio0
= 0x0403, /* was 0x0407 */
2291 .mpeg
= CX88_MPEG_DVB
,
2293 [CX88_BOARD_PROF_7301
] = {
2294 .name
= "Prof 7301 DVB-S/S2",
2295 .tuner_type
= UNSET
,
2296 .radio_type
= UNSET
,
2297 .tuner_addr
= ADDR_UNSET
,
2298 .radio_addr
= ADDR_UNSET
,
2300 .type
= CX88_VMUX_DVB
,
2303 .mpeg
= CX88_MPEG_DVB
,
2305 [CX88_BOARD_TWINHAN_VP1027_DVBS
] = {
2306 .name
= "Twinhan VP-1027 DVB-S",
2307 .tuner_type
= TUNER_ABSENT
,
2308 .radio_type
= UNSET
,
2309 .tuner_addr
= ADDR_UNSET
,
2310 .radio_addr
= ADDR_UNSET
,
2312 .type
= CX88_VMUX_DVB
,
2315 .mpeg
= CX88_MPEG_DVB
,
2319 /* ------------------------------------------------------------------ */
2320 /* PCI subsystem IDs */
2322 static const struct cx88_subid cx88_subids
[] = {
2324 .subvendor
= 0x0070,
2325 .subdevice
= 0x3400,
2326 .card
= CX88_BOARD_HAUPPAUGE
,
2328 .subvendor
= 0x0070,
2329 .subdevice
= 0x3401,
2330 .card
= CX88_BOARD_HAUPPAUGE
,
2332 .subvendor
= 0x14c7,
2333 .subdevice
= 0x0106,
2334 .card
= CX88_BOARD_GDI
,
2336 .subvendor
= 0x14c7,
2337 .subdevice
= 0x0107, /* with mpeg encoder */
2338 .card
= CX88_BOARD_GDI
,
2340 .subvendor
= PCI_VENDOR_ID_ATI
,
2341 .subdevice
= 0x00f8,
2342 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2344 .subvendor
= PCI_VENDOR_ID_ATI
,
2345 .subdevice
= 0x00f9,
2346 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2348 .subvendor
= 0x107d,
2349 .subdevice
= 0x6611,
2350 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2352 .subvendor
= 0x107d,
2353 .subdevice
= 0x6613, /* NTSC */
2354 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2356 .subvendor
= 0x107d,
2357 .subdevice
= 0x6620,
2358 .card
= CX88_BOARD_WINFAST_DV2000
,
2360 .subvendor
= 0x107d,
2361 .subdevice
= 0x663b,
2362 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2364 .subvendor
= 0x107d,
2365 .subdevice
= 0x663c,
2366 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2368 .subvendor
= 0x1461,
2369 .subdevice
= 0x000b,
2370 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
2372 .subvendor
= 0x1462,
2373 .subdevice
= 0x8606,
2374 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
2376 .subvendor
= 0x10fc,
2377 .subdevice
= 0xd003,
2378 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
2380 .subvendor
= 0x1043,
2381 .subdevice
= 0x4823, /* with mpeg encoder */
2382 .card
= CX88_BOARD_ASUS_PVR_416
,
2384 .subvendor
= 0x17de,
2385 .subdevice
= 0x08a6,
2386 .card
= CX88_BOARD_KWORLD_DVB_T
,
2388 .subvendor
= 0x18ac,
2389 .subdevice
= 0xd810,
2390 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2392 .subvendor
= 0x18ac,
2393 .subdevice
= 0xd820,
2394 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
2396 .subvendor
= 0x18ac,
2397 .subdevice
= 0xdb00,
2398 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
2400 .subvendor
= 0x0070,
2401 .subdevice
= 0x9002,
2402 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2404 .subvendor
= 0x14f1,
2405 .subdevice
= 0x0187,
2406 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
2408 .subvendor
= 0x1540,
2409 .subdevice
= 0x2580,
2410 .card
= CX88_BOARD_PROVIDEO_PV259
,
2412 .subvendor
= 0x18ac,
2413 .subdevice
= 0xdb10,
2414 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2416 .subvendor
= 0x1554,
2417 .subdevice
= 0x4811,
2418 .card
= CX88_BOARD_PIXELVIEW
,
2420 .subvendor
= 0x7063,
2421 .subdevice
= 0x3000, /* HD-3000 card */
2422 .card
= CX88_BOARD_PCHDTV_HD3000
,
2424 .subvendor
= 0x17de,
2425 .subdevice
= 0xa8a6,
2426 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
2428 .subvendor
= 0x0070,
2429 .subdevice
= 0x2801,
2430 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
2432 .subvendor
= 0x14f1,
2433 .subdevice
= 0x0342,
2434 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
2436 .subvendor
= 0x10fc,
2437 .subdevice
= 0xd035,
2438 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
2440 .subvendor
= 0x1421,
2441 .subdevice
= 0x0334,
2442 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
2444 .subvendor
= 0x153b,
2445 .subdevice
= 0x1166,
2446 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
2448 .subvendor
= 0x18ac,
2449 .subdevice
= 0xd500,
2450 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
2452 .subvendor
= 0x1461,
2453 .subdevice
= 0x8011,
2454 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
2456 .subvendor
= PCI_VENDOR_ID_ATI
,
2457 .subdevice
= 0xa101,
2458 .card
= CX88_BOARD_ATI_HDTVWONDER
,
2460 .subvendor
= 0x107d,
2461 .subdevice
= 0x665f,
2462 .card
= CX88_BOARD_WINFAST_DTV1000
,
2464 .subvendor
= 0x1461,
2465 .subdevice
= 0x000a,
2466 .card
= CX88_BOARD_AVERTV_303
,
2468 .subvendor
= 0x0070,
2469 .subdevice
= 0x9200,
2470 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
2472 .subvendor
= 0x0070,
2473 .subdevice
= 0x9201,
2474 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2476 .subvendor
= 0x0070,
2477 .subdevice
= 0x9202,
2478 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2480 .subvendor
= 0x17de,
2481 .subdevice
= 0x08b2,
2482 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2484 .subvendor
= 0x0070,
2485 .subdevice
= 0x9400,
2486 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2488 .subvendor
= 0x0070,
2489 .subdevice
= 0x9402,
2490 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2492 .subvendor
= 0x0070,
2493 .subdevice
= 0x9800,
2494 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2496 .subvendor
= 0x0070,
2497 .subdevice
= 0x9802,
2498 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2500 .subvendor
= 0x0070,
2501 .subdevice
= 0x9001,
2502 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2504 .subvendor
= 0x1822,
2505 .subdevice
= 0x0025,
2506 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2508 .subvendor
= 0x17de,
2509 .subdevice
= 0x08a1,
2510 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2512 .subvendor
= 0x18ac,
2513 .subdevice
= 0xdb50,
2514 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2516 .subvendor
= 0x18ac,
2517 .subdevice
= 0xdb54,
2518 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2519 /* Re-branded DViCO: DigitalNow DVB-T Dual */
2521 .subvendor
= 0x18ac,
2522 .subdevice
= 0xdb11,
2523 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2524 /* Re-branded DViCO: UltraView DVB-T Plus */
2526 .subvendor
= 0x18ac,
2527 .subdevice
= 0xdb30,
2528 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
,
2530 .subvendor
= 0x17de,
2531 .subdevice
= 0x0840,
2532 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2534 .subvendor
= 0x1421,
2535 .subdevice
= 0x0305,
2536 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2538 .subvendor
= 0x18ac,
2539 .subdevice
= 0xdb40,
2540 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2542 .subvendor
= 0x18ac,
2543 .subdevice
= 0xdb44,
2544 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2546 .subvendor
= 0x7063,
2547 .subdevice
= 0x5500,
2548 .card
= CX88_BOARD_PCHDTV_HD5500
,
2550 .subvendor
= 0x17de,
2551 .subdevice
= 0x0841,
2552 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
2554 .subvendor
= 0x1822,
2555 .subdevice
= 0x0019,
2556 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2558 .subvendor
= 0x1554,
2559 .subdevice
= 0x4813,
2560 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
2562 .subvendor
= 0x14f1,
2563 .subdevice
= 0x0842,
2564 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
2566 .subvendor
= 0x107d,
2567 .subdevice
= 0x665e,
2568 .card
= CX88_BOARD_WINFAST_DTV2000H
,
2570 .subvendor
= 0x107d,
2571 .subdevice
= 0x6f2b,
2572 .card
= CX88_BOARD_WINFAST_DTV2000H_J
,
2574 .subvendor
= 0x18ac,
2575 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
2576 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2578 .subvendor
= 0x14f1,
2579 .subdevice
= 0x0084,
2580 .card
= CX88_BOARD_GENIATECH_DVBS
,
2582 .subvendor
= 0x0070,
2583 .subdevice
= 0x1404,
2584 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2586 .subvendor
= 0x18ac,
2587 .subdevice
= 0xdc00,
2588 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2590 .subvendor
= 0x18ac,
2591 .subdevice
= 0xdccd,
2592 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2594 .subvendor
= 0x1461,
2595 .subdevice
= 0xc111, /* AverMedia M150-D */
2596 /* This board is known to work with the ASUS PVR416 config */
2597 .card
= CX88_BOARD_ASUS_PVR_416
,
2599 .subvendor
= 0xc180,
2600 .subdevice
= 0xc980,
2601 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
2603 .subvendor
= 0x0070,
2604 .subdevice
= 0x9600,
2605 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2607 .subvendor
= 0x0070,
2608 .subdevice
= 0x9601,
2609 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2611 .subvendor
= 0x0070,
2612 .subdevice
= 0x9602,
2613 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2615 .subvendor
= 0x107d,
2616 .subdevice
= 0x6632,
2617 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2619 .subvendor
= 0x12ab,
2620 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
2621 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2623 .subvendor
= 0x0070,
2624 .subdevice
= 0x9000,
2625 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2627 .subvendor
= 0x0070,
2628 .subdevice
= 0x1400,
2629 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2631 .subvendor
= 0x0070,
2632 .subdevice
= 0x1401,
2633 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2635 .subvendor
= 0x0070,
2636 .subdevice
= 0x1402,
2637 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2639 .subvendor
= 0x1421,
2640 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
2641 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2643 .subvendor
= 0x1421,
2644 .subdevice
= 0x0390,
2645 .card
= CX88_BOARD_ADSTECH_PTV_390
,
2647 .subvendor
= 0x11bd,
2648 .subdevice
= 0x0051,
2649 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
2651 .subvendor
= 0x18ac,
2652 .subdevice
= 0xd530,
2653 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
2655 .subvendor
= 0x12ab,
2656 .subdevice
= 0x1788,
2657 .card
= CX88_BOARD_PINNACLE_HYBRID_PCTV
,
2659 .subvendor
= 0x14f1,
2660 .subdevice
= 0xea3d,
2661 .card
= CX88_BOARD_POWERCOLOR_REAL_ANGEL
,
2663 .subvendor
= 0x107d,
2664 .subdevice
= 0x6f18,
2665 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2667 .subvendor
= 0x14f1,
2668 .subdevice
= 0x8852,
2669 .card
= CX88_BOARD_GENIATECH_X8000_MT
,
2671 .subvendor
= 0x18ac,
2672 .subdevice
= 0xd610,
2673 .card
= CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
,
2675 .subvendor
= 0x1554,
2676 .subdevice
= 0x4935,
2677 .card
= CX88_BOARD_PROLINK_PV_8000GT
,
2679 .subvendor
= 0x1554,
2680 .subdevice
= 0x4976,
2681 .card
= CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
,
2683 .subvendor
= 0x17de,
2684 .subdevice
= 0x08c1,
2685 .card
= CX88_BOARD_KWORLD_ATSC_120
,
2687 .subvendor
= 0x0070,
2688 .subdevice
= 0x6900,
2689 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2691 .subvendor
= 0x0070,
2692 .subdevice
= 0x6904,
2693 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2695 .subvendor
= 0x0070,
2696 .subdevice
= 0x6902,
2697 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2699 .subvendor
= 0x0070,
2700 .subdevice
= 0x6905,
2701 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2703 .subvendor
= 0x0070,
2704 .subdevice
= 0x6906,
2705 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2707 .subvendor
= 0xd420,
2708 .subdevice
= 0x9022,
2709 .card
= CX88_BOARD_TEVII_S420
,
2711 .subvendor
= 0xd460,
2712 .subdevice
= 0x9022,
2713 .card
= CX88_BOARD_TEVII_S460
,
2715 .subvendor
= 0xd464,
2716 .subdevice
= 0x9022,
2717 .card
= CX88_BOARD_TEVII_S464
,
2719 .subvendor
= 0xA044,
2720 .subdevice
= 0x2011,
2721 .card
= CX88_BOARD_OMICOM_SS4_PCI
,
2723 .subvendor
= 0x8910,
2724 .subdevice
= 0x8888,
2725 .card
= CX88_BOARD_TBS_8910
,
2727 .subvendor
= 0x8920,
2728 .subdevice
= 0x8888,
2729 .card
= CX88_BOARD_TBS_8920
,
2731 .subvendor
= 0xb022,
2732 .subdevice
= 0x3022,
2733 .card
= CX88_BOARD_PROF_6200
,
2735 .subvendor
= 0xB033,
2736 .subdevice
= 0x3033,
2737 .card
= CX88_BOARD_PROF_7300
,
2739 .subvendor
= 0xb200,
2740 .subdevice
= 0x4200,
2741 .card
= CX88_BOARD_SATTRADE_ST4200
,
2743 .subvendor
= 0x153b,
2744 .subdevice
= 0x1177,
2745 .card
= CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
,
2747 .subvendor
= 0x0070,
2748 .subdevice
= 0x9290,
2749 .card
= CX88_BOARD_HAUPPAUGE_IRONLY
,
2751 .subvendor
= 0x107d,
2752 .subdevice
= 0x6654,
2753 .card
= CX88_BOARD_WINFAST_DTV1800H
,
2755 /* WinFast DTV1800 H with XC4000 tuner */
2756 .subvendor
= 0x107d,
2757 .subdevice
= 0x6f38,
2758 .card
= CX88_BOARD_WINFAST_DTV1800H_XC4000
,
2760 .subvendor
= 0x107d,
2761 .subdevice
= 0x6f42,
2762 .card
= CX88_BOARD_WINFAST_DTV2000H_PLUS
,
2764 /* PVR2000 PAL Model [107d:6630] */
2765 .subvendor
= 0x107d,
2766 .subdevice
= 0x6630,
2767 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2769 /* PVR2000 PAL Model [107d:6638] */
2770 .subvendor
= 0x107d,
2771 .subdevice
= 0x6638,
2772 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2774 /* PVR2000 NTSC Model [107d:6631] */
2775 .subvendor
= 0x107d,
2776 .subdevice
= 0x6631,
2777 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2779 /* PVR2000 NTSC Model [107d:6637] */
2780 .subvendor
= 0x107d,
2781 .subdevice
= 0x6637,
2782 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2784 /* PVR2000 NTSC Model [107d:663d] */
2785 .subvendor
= 0x107d,
2786 .subdevice
= 0x663d,
2787 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2789 /* DV2000 NTSC Model [107d:6621] */
2790 .subvendor
= 0x107d,
2791 .subdevice
= 0x6621,
2792 .card
= CX88_BOARD_WINFAST_DV2000
,
2794 /* TV2000 XP Global [107d:6618] */
2795 .subvendor
= 0x107d,
2796 .subdevice
= 0x6618,
2797 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2799 /* TV2000 XP Global [107d:6618] */
2800 .subvendor
= 0x107d,
2801 .subdevice
= 0x6619,
2802 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2804 /* WinFast TV2000 XP Global with XC4000 tuner */
2805 .subvendor
= 0x107d,
2806 .subdevice
= 0x6f36,
2807 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
,
2809 /* WinFast TV2000 XP Global with XC4000 tuner and different GPIOs */
2810 .subvendor
= 0x107d,
2811 .subdevice
= 0x6f43,
2812 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
,
2814 .subvendor
= 0xb034,
2815 .subdevice
= 0x3034,
2816 .card
= CX88_BOARD_PROF_7301
,
2818 .subvendor
= 0x1822,
2819 .subdevice
= 0x0023,
2820 .card
= CX88_BOARD_TWINHAN_VP1027_DVBS
,
2824 /* ----------------------------------------------------------------------- */
2825 /* some leadtek specific stuff */
2827 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2829 if (eeprom_data
[4] != 0x7d ||
2830 eeprom_data
[5] != 0x10 ||
2831 eeprom_data
[7] != 0x66) {
2832 warn_printk(core
, "Leadtek eeprom invalid.\n");
2836 /* Terry Wu <terrywu2009@gmail.com> */
2837 switch (eeprom_data
[6]) {
2838 case 0x13: /* SSID 6613 for TV2000 XP Expert NTSC Model */
2839 case 0x21: /* SSID 6621 for DV2000 NTSC Model */
2840 case 0x31: /* SSID 6631 for PVR2000 NTSC Model */
2841 case 0x37: /* SSID 6637 for PVR2000 NTSC Model */
2842 case 0x3d: /* SSID 6637 for PVR2000 NTSC Model */
2843 core
->board
.tuner_type
= TUNER_PHILIPS_FM1236_MK3
;
2846 core
->board
.tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
;
2850 info_printk(core
, "Leadtek Winfast 2000XP Expert config: "
2851 "tuner=%d, eeprom[0]=0x%02x\n",
2852 core
->board
.tuner_type
, eeprom_data
[0]);
2855 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2859 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
2860 core
->board
.tuner_type
= tv
.tuner_type
;
2861 core
->tuner_formats
= tv
.tuner_formats
;
2862 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
2863 core
->model
= tv
.model
;
2865 /* Make sure we support the board model */
2868 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
2869 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
2870 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
2871 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
2872 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
2873 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
2874 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
2875 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
2876 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
2877 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
2878 case 34519: /* WinTV-PCI-FM */
2880 /* WinTV-HVR4000 (DVBS/S2/T, Video and IR, back panel inputs) */
2881 case 69100: /* WinTV-HVR4000LITE (DVBS/S2, IR) */
2882 case 69500: /* WinTV-HVR4000LITE (DVBS/S2, No IR) */
2884 /* WinTV-HVR4000 (DVBS/S2/T, Video no IR, back panel inputs) */
2885 case 69569: /* WinTV-HVR4000 (DVBS/S2/T, Video no IR) */
2886 case 90002: /* Nova-T-PCI (9002) */
2887 case 92001: /* Nova-S-Plus (Video and IR) */
2888 case 92002: /* Nova-S-Plus (Video and IR) */
2889 case 90003: /* Nova-T-PCI (9002 No RF out) */
2890 case 90500: /* Nova-T-PCI (oem) */
2891 case 90501: /* Nova-T-PCI (oem/IR) */
2892 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
2893 case 92900: /* WinTV-IROnly (No analog or digital Video inputs) */
2894 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
2895 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
2896 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
2897 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
2898 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
2899 case 96569: /* WinTV-HVR1300 () */
2900 case 96659: /* WinTV-HVR1300 () */
2901 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
2904 case CX88_BOARD_SAMSUNG_SMT_7020
:
2905 cx_set(MO_GP0_IO
, 0x008989FF);
2908 warn_printk(core
, "warning: unknown hauppauge model #%d\n",
2913 info_printk(core
, "hauppauge eeprom: model=%d\n", tv
.model
);
2916 /* ----------------------------------------------------------------------- */
2917 /* some GDI (was: Modular Technology) specific stuff */
2919 static const struct {
2924 [ 0x01 ] = { .id
= TUNER_ABSENT
,
2926 [ 0x02 ] = { .id
= TUNER_ABSENT
,
2928 [ 0x03 ] = { .id
= TUNER_ABSENT
,
2930 [ 0x04 ] = { .id
= TUNER_ABSENT
,
2932 [ 0x05 ] = { .id
= TUNER_ABSENT
,
2935 [ 0x10 ] = { .id
= TUNER_ABSENT
,
2937 .name
= "TEMIC_4049" },
2938 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
2939 .name
= "TEMIC_4136" },
2940 [ 0x12 ] = { .id
= TUNER_ABSENT
,
2941 .name
= "TEMIC_4146" },
2943 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
2945 .name
= "PHILIPS_FQ1216_MK3" },
2946 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
2947 .name
= "PHILIPS_FQ1236_MK3" },
2948 [ 0x22 ] = { .id
= TUNER_ABSENT
,
2949 .name
= "PHILIPS_FI1236_MK3" },
2950 [ 0x23 ] = { .id
= TUNER_ABSENT
,
2951 .name
= "PHILIPS_FI1216_MK3" },
2954 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2956 const char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
2957 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
2959 info_printk(core
, "GDI: tuner=%s\n", name
? name
: "unknown");
2962 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
2963 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
2967 /* ------------------------------------------------------------------- */
2968 /* some Divco specific stuff */
2969 static int cx88_dvico_xc2028_callback(struct cx88_core
*core
,
2970 int command
, int arg
)
2973 case XC2028_TUNER_RESET
:
2974 switch (core
->boardnr
) {
2975 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2976 /* GPIO-4 xc3028 tuner */
2978 cx_set(MO_GP0_IO
, 0x00001000);
2979 cx_clear(MO_GP0_IO
, 0x00000010);
2981 cx_set(MO_GP0_IO
, 0x00000010);
2985 cx_write(MO_GP0_IO
, 0x101000);
2987 cx_set(MO_GP0_IO
, 0x101010);
2998 /* ----------------------------------------------------------------------- */
2999 /* some Geniatech specific stuff */
3001 static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core
*core
,
3002 int command
, int mode
)
3005 case XC2028_TUNER_RESET
:
3006 switch (INPUT(core
->input
).type
) {
3010 cx_write(MO_GP1_IO
, 0x030302);
3014 cx_write(MO_GP1_IO
, 0x030301);
3017 cx_write(MO_GP1_IO
, 0x101010);
3019 cx_write(MO_GP1_IO
, 0x101000);
3021 cx_write(MO_GP1_IO
, 0x101010);
3028 static int cx88_xc3028_winfast1800h_callback(struct cx88_core
*core
,
3029 int command
, int arg
)
3032 case XC2028_TUNER_RESET
:
3033 /* GPIO 12 (xc3028 tuner reset) */
3034 cx_set(MO_GP1_IO
, 0x1010);
3036 cx_clear(MO_GP1_IO
, 0x10);
3038 cx_set(MO_GP1_IO
, 0x10);
3045 static int cx88_xc4000_winfast2000h_plus_callback(struct cx88_core
*core
,
3046 int command
, int arg
)
3049 case XC4000_TUNER_RESET
:
3050 /* GPIO 12 (xc4000 tuner reset) */
3051 cx_set(MO_GP1_IO
, 0x1010);
3053 cx_clear(MO_GP1_IO
, 0x10);
3055 cx_set(MO_GP1_IO
, 0x10);
3062 /* ------------------------------------------------------------------- */
3063 /* some Divco specific stuff */
3064 static int cx88_pv_8000gt_callback(struct cx88_core
*core
,
3065 int command
, int arg
)
3068 case XC2028_TUNER_RESET
:
3069 cx_write(MO_GP2_IO
, 0xcf7);
3071 cx_write(MO_GP2_IO
, 0xef5);
3073 cx_write(MO_GP2_IO
, 0xcf7);
3082 /* ----------------------------------------------------------------------- */
3083 /* some DViCO specific stuff */
3085 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
3087 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
3089 static u8 init_bufs
[13][5] = {
3090 { 0x10, 0x00, 0x20, 0x01, 0x03 },
3091 { 0x10, 0x10, 0x01, 0x00, 0x21 },
3092 { 0x10, 0x10, 0x10, 0x00, 0xCA },
3093 { 0x10, 0x10, 0x12, 0x00, 0x08 },
3094 { 0x10, 0x10, 0x13, 0x00, 0x0A },
3095 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
3096 { 0x10, 0x10, 0x22, 0x01, 0x3D },
3097 { 0x10, 0x10, 0x73, 0x01, 0x2E },
3098 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
3099 { 0x10, 0x10, 0x71, 0x01, 0x97 },
3100 { 0x10, 0x10, 0x70, 0x00, 0x0F },
3101 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
3105 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
3106 msg
.buf
= init_bufs
[i
];
3107 msg
.len
= (i
!= 12 ? 5 : 2);
3108 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
3110 warn_printk(core
, "dvico_fusionhdtv_hybrid_init buf %d "
3111 "failed (err = %d)!\n", i
, err
);
3117 static int cx88_xc2028_tuner_callback(struct cx88_core
*core
,
3118 int command
, int arg
)
3120 /* Board-specific callbacks */
3121 switch (core
->boardnr
) {
3122 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3123 case CX88_BOARD_GENIATECH_X8000_MT
:
3124 case CX88_BOARD_KWORLD_ATSC_120
:
3125 return cx88_xc3028_geniatech_tuner_callback(core
,
3127 case CX88_BOARD_PROLINK_PV_8000GT
:
3128 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3129 return cx88_pv_8000gt_callback(core
, command
, arg
);
3130 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3131 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3132 return cx88_dvico_xc2028_callback(core
, command
, arg
);
3133 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3134 case CX88_BOARD_WINFAST_DTV1800H
:
3135 return cx88_xc3028_winfast1800h_callback(core
, command
, arg
);
3139 case XC2028_TUNER_RESET
:
3140 switch (INPUT(core
->input
).type
) {
3142 dprintk(1, "setting GPIO to radio!\n");
3143 cx_write(MO_GP0_IO
, 0x4ff);
3145 cx_write(MO_GP2_IO
, 0xff);
3148 case CX88_VMUX_DVB
: /* Digital TV*/
3149 default: /* Analog TV */
3150 dprintk(1, "setting GPIO to TV!\n");
3153 cx_write(MO_GP1_IO
, 0x101010);
3155 cx_write(MO_GP1_IO
, 0x101000);
3157 cx_write(MO_GP1_IO
, 0x101010);
3164 static int cx88_xc4000_tuner_callback(struct cx88_core
*core
,
3165 int command
, int arg
)
3167 /* Board-specific callbacks */
3168 switch (core
->boardnr
) {
3169 case CX88_BOARD_WINFAST_DTV1800H_XC4000
:
3170 case CX88_BOARD_WINFAST_DTV2000H_PLUS
:
3171 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
:
3172 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
:
3173 return cx88_xc4000_winfast2000h_plus_callback(core
,
3179 /* ----------------------------------------------------------------------- */
3180 /* Tuner callback function. Currently only needed for the Pinnacle *
3181 * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both *
3182 * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */
3184 static int cx88_xc5000_tuner_callback(struct cx88_core
*core
,
3185 int command
, int arg
)
3187 switch (core
->boardnr
) {
3188 case CX88_BOARD_PINNACLE_PCTV_HD_800i
:
3189 if (command
== 0) { /* This is the reset command from xc5000 */
3191 /* djh - According to the engineer at PCTV Systems,
3192 the xc5000 reset pin is supposed to be on GPIO12.
3193 However, despite three nights of effort, pulling
3194 that GPIO low didn't reset the xc5000. While
3195 pulling MO_SRST_IO low does reset the xc5000, this
3196 also resets in the s5h1409 being reset as well.
3197 This causes tuning to always fail since the internal
3198 state of the s5h1409 does not match the driver's
3199 state. Given that the only two conditions in which
3200 the driver performs a reset is during firmware load
3201 and powering down the chip, I am taking out the
3202 reset. We know that the chip is being reset
3203 when the cx88 comes online, and not being able to
3204 do power management for this board is worse than
3205 not having any tuning at all. */
3208 dprintk(1, "xc5000: unknown tuner callback command.\n");
3212 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3213 if (command
== 0) { /* This is the reset command from xc5000 */
3214 cx_clear(MO_GP0_IO
, 0x00000010);
3216 cx_set(MO_GP0_IO
, 0x00000010);
3219 dprintk(1, "xc5000: unknown tuner callback command.\n");
3224 return 0; /* Should never be here */
3227 int cx88_tuner_callback(void *priv
, int component
, int command
, int arg
)
3229 struct i2c_algo_bit_data
*i2c_algo
= priv
;
3230 struct cx88_core
*core
;
3233 printk(KERN_ERR
"cx88: Error - i2c private data undefined.\n");
3237 core
= i2c_algo
->data
;
3240 printk(KERN_ERR
"cx88: Error - device struct undefined.\n");
3244 if (component
!= DVB_FRONTEND_COMPONENT_TUNER
)
3247 switch (core
->board
.tuner_type
) {
3249 dprintk(1, "Calling XC2028/3028 callback\n");
3250 return cx88_xc2028_tuner_callback(core
, command
, arg
);
3252 dprintk(1, "Calling XC4000 callback\n");
3253 return cx88_xc4000_tuner_callback(core
, command
, arg
);
3255 dprintk(1, "Calling XC5000 callback\n");
3256 return cx88_xc5000_tuner_callback(core
, command
, arg
);
3258 err_printk(core
, "Error: Calling callback for tuner %d\n",
3259 core
->board
.tuner_type
);
3262 EXPORT_SYMBOL(cx88_tuner_callback
);
3264 /* ----------------------------------------------------------------------- */
3266 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
3270 if (0 == pci
->subsystem_vendor
&&
3271 0 == pci
->subsystem_device
) {
3273 "%s: Your board has no valid PCI Subsystem ID and thus can't\n"
3274 "%s: be autodetected. Please pass card=<n> insmod option to\n"
3275 "%s: workaround that. Redirect complaints to the vendor of\n"
3276 "%s: the TV card. Best regards,\n"
3278 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
3281 "%s: Your board isn't known (yet) to the driver. You can\n"
3282 "%s: try to pick one of the existing card configs via\n"
3283 "%s: card=<n> insmod option. Updating to the latest\n"
3284 "%s: version might help as well.\n",
3285 core
->name
,core
->name
,core
->name
,core
->name
);
3287 err_printk(core
, "Here is a list of valid choices for the card=<n> "
3288 "insmod option:\n");
3289 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
3290 printk(KERN_ERR
"%s: card=%d -> %s\n",
3291 core
->name
, i
, cx88_boards
[i
].name
);
3294 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
3296 switch (core
->boardnr
) {
3297 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3299 * Bring the 702 demod up before i2c scanning/attach or devices are hidden
3300 * We leave here with the 702 on the bus
3302 * "reset the IR receiver on GPIO[3]"
3303 * Reported by Mike Crash <mike AT mikecrash.com>
3305 cx_write(MO_GP0_IO
, 0x0000ef88);
3307 cx_clear(MO_GP0_IO
, 0x00000088);
3309 cx_set(MO_GP0_IO
, 0x00000088); /* 702 out of reset */
3313 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3314 case CX88_BOARD_PROLINK_PV_8000GT
:
3315 cx_write(MO_GP2_IO
, 0xcf7);
3317 cx_write(MO_GP2_IO
, 0xef5);
3319 cx_write(MO_GP2_IO
, 0xcf7);
3323 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3324 /* Enable the xc5000 tuner */
3325 cx_set(MO_GP0_IO
, 0x00001010);
3328 case CX88_BOARD_WINFAST_DTV2000H_J
:
3329 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3330 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3332 cx_write(MO_GP0_IO
, core
->board
.input
[0].gpio0
);
3334 cx_clear(MO_GP0_IO
, 0x00000080);
3336 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
3340 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3341 case CX88_BOARD_WINFAST_DTV1800H
:
3342 cx88_xc3028_winfast1800h_callback(core
, XC2028_TUNER_RESET
, 0);
3345 case CX88_BOARD_WINFAST_DTV1800H_XC4000
:
3346 case CX88_BOARD_WINFAST_DTV2000H_PLUS
:
3347 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
:
3348 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
:
3349 cx88_xc4000_winfast2000h_plus_callback(core
,
3350 XC4000_TUNER_RESET
, 0);
3353 case CX88_BOARD_TWINHAN_VP1027_DVBS
:
3354 cx_write(MO_GP0_IO
, 0x00003230);
3355 cx_write(MO_GP0_IO
, 0x00003210);
3357 cx_write(MO_GP0_IO
, 0x00001230);
3363 * Sets board-dependent xc3028 configuration
3365 void cx88_setup_xc3028(struct cx88_core
*core
, struct xc2028_ctrl
*ctl
)
3367 memset(ctl
, 0, sizeof(*ctl
));
3369 ctl
->fname
= XC2028_DEFAULT_FIRMWARE
;
3372 switch (core
->boardnr
) {
3373 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3374 /* Now works with firmware version 2.7 */
3375 if (core
->i2c_algo
.udelay
< 16)
3376 core
->i2c_algo
.udelay
= 16;
3378 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3379 case CX88_BOARD_WINFAST_DTV1800H
:
3380 ctl
->demod
= XC3028_FE_ZARLINK456
;
3382 case CX88_BOARD_KWORLD_ATSC_120
:
3383 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3384 ctl
->demod
= XC3028_FE_OREN538
;
3386 case CX88_BOARD_GENIATECH_X8000_MT
:
3387 /* FIXME: For this board, the xc3028 never recovers after being
3388 powered down (the reset GPIO probably is not set properly).
3389 We don't have access to the hardware so we cannot determine
3390 which GPIO is used for xc3028, so just disable power xc3028
3391 power management for now */
3392 ctl
->disable_power_mgmt
= 1;
3394 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3395 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3396 case CX88_BOARD_PROLINK_PV_8000GT
:
3398 * Those boards uses non-MTS firmware
3401 case CX88_BOARD_PINNACLE_HYBRID_PCTV
:
3402 case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
:
3403 ctl
->demod
= XC3028_FE_ZARLINK456
;
3407 ctl
->demod
= XC3028_FE_OREN538
;
3411 EXPORT_SYMBOL_GPL(cx88_setup_xc3028
);
3413 static void cx88_card_setup(struct cx88_core
*core
)
3415 static u8 eeprom
[256];
3416 struct tuner_setup tun_setup
;
3417 unsigned int mode_mask
= T_RADIO
| T_ANALOG_TV
;
3419 memset(&tun_setup
, 0, sizeof(tun_setup
));
3421 if (0 == core
->i2c_rc
) {
3422 core
->i2c_client
.addr
= 0xa0 >> 1;
3423 tveeprom_read(&core
->i2c_client
, eeprom
, sizeof(eeprom
));
3426 switch (core
->boardnr
) {
3427 case CX88_BOARD_HAUPPAUGE
:
3428 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
3429 if (0 == core
->i2c_rc
)
3430 hauppauge_eeprom(core
, eeprom
+8);
3432 case CX88_BOARD_GDI
:
3433 if (0 == core
->i2c_rc
)
3434 gdi_eeprom(core
, eeprom
);
3436 case CX88_BOARD_LEADTEK_PVR2000
:
3437 case CX88_BOARD_WINFAST_DV2000
:
3438 case CX88_BOARD_WINFAST2000XP_EXPERT
:
3439 if (0 == core
->i2c_rc
)
3440 leadtek_eeprom(core
, eeprom
);
3442 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
3443 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
3444 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
3445 case CX88_BOARD_HAUPPAUGE_HVR1100
:
3446 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
3447 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3448 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3449 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3450 case CX88_BOARD_HAUPPAUGE_HVR4000LITE
:
3451 case CX88_BOARD_HAUPPAUGE_IRONLY
:
3452 if (0 == core
->i2c_rc
)
3453 hauppauge_eeprom(core
, eeprom
);
3455 case CX88_BOARD_KWORLD_DVBS_100
:
3456 cx_write(MO_GP0_IO
, 0x000007f8);
3457 cx_write(MO_GP1_IO
, 0x00000001);
3459 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3460 /* GPIO0:0 is hooked to demod reset */
3461 /* GPIO0:4 is hooked to xc3028 reset */
3462 cx_write(MO_GP0_IO
, 0x00111100);
3464 cx_write(MO_GP0_IO
, 0x00111111);
3466 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
3467 /* GPIO0:6 is hooked to FX2 reset pin */
3468 cx_set(MO_GP0_IO
, 0x00004040);
3469 cx_clear(MO_GP0_IO
, 0x00000040);
3471 cx_set(MO_GP0_IO
, 0x00004040);
3473 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
3474 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
3475 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
3476 /* GPIO0:0 is hooked to mt352 reset pin */
3477 cx_set(MO_GP0_IO
, 0x00000101);
3478 cx_clear(MO_GP0_IO
, 0x00000001);
3480 cx_set(MO_GP0_IO
, 0x00000101);
3481 if (0 == core
->i2c_rc
&&
3482 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
3483 dvico_fusionhdtv_hybrid_init(core
);
3485 case CX88_BOARD_KWORLD_DVB_T
:
3486 case CX88_BOARD_DNTV_LIVE_DVB_T
:
3487 cx_set(MO_GP0_IO
, 0x00000707);
3488 cx_set(MO_GP2_IO
, 0x00000101);
3489 cx_clear(MO_GP2_IO
, 0x00000001);
3491 cx_clear(MO_GP0_IO
, 0x00000007);
3492 cx_set(MO_GP2_IO
, 0x00000101);
3494 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
3495 cx_write(MO_GP0_IO
, 0x00080808);
3497 case CX88_BOARD_ATI_HDTVWONDER
:
3498 if (0 == core
->i2c_rc
) {
3501 static const u8 buffer
[][2] = {
3508 core
->i2c_client
.addr
= 0x0a;
3510 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
3511 if (2 != i2c_master_send(&core
->i2c_client
,
3513 warn_printk(core
, "Unable to enable "
3517 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
3519 struct v4l2_priv_tun_config tea5767_cfg
;
3520 struct tea5767_ctrl ctl
;
3522 memset(&ctl
, 0, sizeof(ctl
));
3527 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
3529 tea5767_cfg
.tuner
= TUNER_TEA5767
;
3530 tea5767_cfg
.priv
= &ctl
;
3532 call_all(core
, tuner
, s_config
, &tea5767_cfg
);
3535 case CX88_BOARD_TEVII_S420
:
3536 case CX88_BOARD_TEVII_S460
:
3537 case CX88_BOARD_TEVII_S464
:
3538 case CX88_BOARD_OMICOM_SS4_PCI
:
3539 case CX88_BOARD_TBS_8910
:
3540 case CX88_BOARD_TBS_8920
:
3541 case CX88_BOARD_PROF_6200
:
3542 case CX88_BOARD_PROF_7300
:
3543 case CX88_BOARD_PROF_7301
:
3544 case CX88_BOARD_SATTRADE_ST4200
:
3545 cx_write(MO_GP0_IO
, 0x8000);
3547 cx_write(MO_SRST_IO
, 0);
3549 cx_write(MO_GP0_IO
, 0x8080);
3551 cx_write(MO_SRST_IO
, 1);
3558 if ((core
->board
.radio_type
!= UNSET
)) {
3559 tun_setup
.mode_mask
= T_RADIO
;
3560 tun_setup
.type
= core
->board
.radio_type
;
3561 tun_setup
.addr
= core
->board
.radio_addr
;
3562 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3563 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3564 mode_mask
&= ~T_RADIO
;
3567 if (core
->board
.tuner_type
!= TUNER_ABSENT
) {
3568 tun_setup
.mode_mask
= mode_mask
;
3569 tun_setup
.type
= core
->board
.tuner_type
;
3570 tun_setup
.addr
= core
->board
.tuner_addr
;
3571 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3573 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3576 if (core
->board
.tda9887_conf
) {
3577 struct v4l2_priv_tun_config tda9887_cfg
;
3579 tda9887_cfg
.tuner
= TUNER_TDA9887
;
3580 tda9887_cfg
.priv
= &core
->board
.tda9887_conf
;
3582 call_all(core
, tuner
, s_config
, &tda9887_cfg
);
3585 if (core
->board
.tuner_type
== TUNER_XC2028
) {
3586 struct v4l2_priv_tun_config xc2028_cfg
;
3587 struct xc2028_ctrl ctl
;
3589 /* Fills device-dependent initialization parameters */
3590 cx88_setup_xc3028(core
, &ctl
);
3592 /* Sends parameters to xc2028/3028 tuner */
3593 memset(&xc2028_cfg
, 0, sizeof(xc2028_cfg
));
3594 xc2028_cfg
.tuner
= TUNER_XC2028
;
3595 xc2028_cfg
.priv
= &ctl
;
3596 dprintk(1, "Asking xc2028/3028 to load firmware %s\n",
3598 call_all(core
, tuner
, s_config
, &xc2028_cfg
);
3600 call_all(core
, core
, s_power
, 0);
3603 /* ------------------------------------------------------------------ */
3605 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
3607 unsigned int lat
= UNSET
;
3611 /* check pci quirks */
3612 if (pci_pci_problems
& PCIPCI_TRITON
) {
3613 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
3615 ctrl
|= CX88X_EN_TBFX
;
3617 if (pci_pci_problems
& PCIPCI_NATOMA
) {
3618 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
3620 ctrl
|= CX88X_EN_TBFX
;
3622 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
3623 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
3625 ctrl
|= CX88X_EN_TBFX
;
3627 if (pci_pci_problems
& PCIPCI_VSFX
) {
3628 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
3630 ctrl
|= CX88X_EN_VSFX
;
3632 #ifdef PCIPCI_ALIMAGIK
3633 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
3634 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
3640 /* check insmod options */
3641 if (UNSET
!= latency
)
3646 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
3648 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
3651 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
3653 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
3658 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
3660 if (request_mem_region(pci_resource_start(pci
,0),
3661 pci_resource_len(pci
,0),
3665 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3666 core
->name
, PCI_FUNC(pci
->devfn
),
3667 (unsigned long long)pci_resource_start(pci
, 0),
3668 pci
->subsystem_vendor
, pci
->subsystem_device
);
3672 /* Allocate and initialize the cx88 core struct. One should hold the
3673 * devlist mutex before calling this. */
3674 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
3676 struct cx88_core
*core
;
3679 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
3683 atomic_inc(&core
->refcount
);
3684 core
->pci_bus
= pci
->bus
->number
;
3685 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
3686 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
3687 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
3688 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
3689 mutex_init(&core
->lock
);
3692 sprintf(core
->name
, "cx88[%d]", core
->nr
);
3694 strcpy(core
->v4l2_dev
.name
, core
->name
);
3695 if (v4l2_device_register(NULL
, &core
->v4l2_dev
)) {
3700 if (v4l2_ctrl_handler_init(&core
->video_hdl
, 13)) {
3701 v4l2_device_unregister(&core
->v4l2_dev
);
3706 if (v4l2_ctrl_handler_init(&core
->audio_hdl
, 13)) {
3707 v4l2_ctrl_handler_free(&core
->video_hdl
);
3708 v4l2_device_unregister(&core
->v4l2_dev
);
3713 if (0 != cx88_get_resources(core
, pci
)) {
3714 v4l2_ctrl_handler_free(&core
->video_hdl
);
3715 v4l2_ctrl_handler_free(&core
->audio_hdl
);
3716 v4l2_device_unregister(&core
->v4l2_dev
);
3722 cx88_pci_quirks(core
->name
, pci
);
3723 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
3724 pci_resource_len(pci
, 0));
3725 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
3727 if (core
->lmmio
== NULL
) {
3728 release_mem_region(pci_resource_start(pci
, 0),
3729 pci_resource_len(pci
, 0));
3730 v4l2_ctrl_handler_free(&core
->video_hdl
);
3731 v4l2_ctrl_handler_free(&core
->audio_hdl
);
3732 v4l2_device_unregister(&core
->v4l2_dev
);
3738 core
->boardnr
= UNSET
;
3739 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
3740 core
->boardnr
= card
[core
->nr
];
3741 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
3742 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
3743 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
3744 core
->boardnr
= cx88_subids
[i
].card
;
3745 if (UNSET
== core
->boardnr
) {
3746 core
->boardnr
= CX88_BOARD_UNKNOWN
;
3747 cx88_card_list(core
, pci
);
3750 core
->board
= cx88_boards
[core
->boardnr
];
3752 if (!core
->board
.num_frontends
&& (core
->board
.mpeg
& CX88_MPEG_DVB
))
3753 core
->board
.num_frontends
= 1;
3755 info_printk(core
, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3756 pci
->subsystem_vendor
, pci
->subsystem_device
, core
->board
.name
,
3757 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
3758 "insmod option" : "autodetected",
3759 core
->board
.num_frontends
);
3761 if (tuner
[core
->nr
] != UNSET
)
3762 core
->board
.tuner_type
= tuner
[core
->nr
];
3763 if (radio
[core
->nr
] != UNSET
)
3764 core
->board
.radio_type
= radio
[core
->nr
];
3766 dprintk(1, "TV tuner type %d, Radio tuner type %d\n",
3767 core
->board
.tuner_type
, core
->board
.radio_type
);
3771 cx88_card_setup_pre_i2c(core
);
3772 cx88_i2c_init(core
, pci
);
3774 /* load tuner module, if needed */
3775 if (TUNER_ABSENT
!= core
->board
.tuner_type
) {
3776 /* Ignore 0x6b and 0x6f on cx88 boards.
3777 * FusionHDTV5 RT Gold has an ir receiver at 0x6b
3778 * and an RTC at 0x6f which can get corrupted if probed. */
3779 static const unsigned short tv_addrs
[] = {
3780 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
3781 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3782 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3785 int has_demod
= (core
->board
.tda9887_conf
& TDA9887_PRESENT
);
3787 /* I don't trust the radio_type as is stored in the card
3788 definitions, so we just probe for it.
3789 The radio_type is sometimes missing, or set to UNSET but
3790 later code configures a tea5767.
3792 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3793 "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO
));
3795 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3796 &core
->i2c_adap
, "tuner",
3797 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD
));
3798 if (core
->board
.tuner_addr
== ADDR_UNSET
) {
3799 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3800 &core
->i2c_adap
, "tuner",
3801 0, has_demod
? tv_addrs
+ 4 : tv_addrs
);
3803 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3804 "tuner", core
->board
.tuner_addr
, NULL
);
3808 cx88_card_setup(core
);
3810 cx88_i2c_init_ir(core
);
3811 cx88_ir_init(core
, pci
);