2 * device driver for Conexant 2388x based TV cards
5 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
22 #include <linux/init.h>
23 #include <linux/module.h>
24 #include <linux/pci.h>
25 #include <linux/delay.h>
26 #include <linux/slab.h>
28 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
29 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
30 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
32 module_param_array(tuner
, int, NULL
, 0444);
33 module_param_array(radio
, int, NULL
, 0444);
34 module_param_array(card
, int, NULL
, 0444);
36 MODULE_PARM_DESC(tuner
, "tuner type");
37 MODULE_PARM_DESC(radio
, "radio tuner type");
38 MODULE_PARM_DESC(card
, "card type");
40 static unsigned int latency
= UNSET
;
41 module_param(latency
, int, 0444);
42 MODULE_PARM_DESC(latency
, "pci latency timer");
44 static int disable_ir
;
45 module_param(disable_ir
, int, 0444);
46 MODULE_PARM_DESC(disable_ir
, "Disable IR support");
48 #define dprintk(level, fmt, arg...) do { \
49 if (cx88_core_debug >= level) \
50 printk(KERN_DEBUG pr_fmt("%s: core:" fmt), \
54 /* ------------------------------------------------------------------ */
55 /* board config info */
57 /* If radio_type !=UNSET, radio_addr should be specified
60 static const struct cx88_board cx88_boards
[] = {
61 [CX88_BOARD_UNKNOWN
] = {
62 .name
= "UNKNOWN/GENERIC",
65 .tuner_addr
= ADDR_UNSET
,
66 .radio_addr
= ADDR_UNSET
,
68 .type
= CX88_VMUX_COMPOSITE1
,
71 .type
= CX88_VMUX_COMPOSITE2
,
74 .type
= CX88_VMUX_COMPOSITE3
,
77 .type
= CX88_VMUX_COMPOSITE4
,
81 [CX88_BOARD_HAUPPAUGE
] = {
82 .name
= "Hauppauge WinTV 34xxx models",
85 .tuner_addr
= ADDR_UNSET
,
86 .radio_addr
= ADDR_UNSET
,
87 .tda9887_conf
= TDA9887_PRESENT
,
89 .type
= CX88_VMUX_TELEVISION
,
91 .gpio0
= 0xff00, // internal decoder
93 .type
= CX88_VMUX_DEBUG
,
95 .gpio0
= 0xff01, // mono from tuner chip
97 .type
= CX88_VMUX_COMPOSITE1
,
101 .type
= CX88_VMUX_SVIDEO
,
111 .name
= "GDI Black Gold",
114 .tuner_addr
= ADDR_UNSET
,
115 .radio_addr
= ADDR_UNSET
,
117 .type
= CX88_VMUX_TELEVISION
,
120 .type
= CX88_VMUX_SVIDEO
,
124 [CX88_BOARD_PIXELVIEW
] = {
126 .tuner_type
= TUNER_PHILIPS_PAL
,
128 .tuner_addr
= ADDR_UNSET
,
129 .radio_addr
= ADDR_UNSET
,
131 .type
= CX88_VMUX_TELEVISION
,
133 .gpio0
= 0xff00, // internal decoder
135 .type
= CX88_VMUX_COMPOSITE1
,
138 .type
= CX88_VMUX_SVIDEO
,
146 [CX88_BOARD_ATI_WONDER_PRO
] = {
147 .name
= "ATI TV Wonder Pro",
148 .tuner_type
= TUNER_PHILIPS_4IN1
,
150 .tuner_addr
= ADDR_UNSET
,
151 .radio_addr
= ADDR_UNSET
,
152 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
154 .type
= CX88_VMUX_TELEVISION
,
158 .type
= CX88_VMUX_COMPOSITE1
,
162 .type
= CX88_VMUX_SVIDEO
,
167 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
168 .name
= "Leadtek Winfast 2000XP Expert",
169 .tuner_type
= TUNER_PHILIPS_4IN1
,
171 .tuner_addr
= ADDR_UNSET
,
172 .radio_addr
= ADDR_UNSET
,
173 .tda9887_conf
= TDA9887_PRESENT
,
175 .type
= CX88_VMUX_TELEVISION
,
182 .type
= CX88_VMUX_COMPOSITE1
,
189 .type
= CX88_VMUX_SVIDEO
,
204 [CX88_BOARD_AVERTV_STUDIO_303
] = {
205 .name
= "AverTV Studio 303 (M126)",
206 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
208 .tuner_addr
= ADDR_UNSET
,
209 .radio_addr
= ADDR_UNSET
,
210 .tda9887_conf
= TDA9887_PRESENT
,
212 .type
= CX88_VMUX_TELEVISION
,
216 .type
= CX88_VMUX_COMPOSITE1
,
220 .type
= CX88_VMUX_SVIDEO
,
229 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
230 // added gpio values thanks to Michal
231 // values for PAL from DScaler
232 .name
= "MSI TV-@nywhere Master",
233 .tuner_type
= TUNER_MT2032
,
235 .tuner_addr
= ADDR_UNSET
,
236 .radio_addr
= ADDR_UNSET
,
237 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
239 .type
= CX88_VMUX_TELEVISION
,
245 .type
= CX88_VMUX_COMPOSITE1
,
251 .type
= CX88_VMUX_SVIDEO
,
265 [CX88_BOARD_WINFAST_DV2000
] = {
266 .name
= "Leadtek Winfast DV2000",
267 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
269 .tuner_addr
= ADDR_UNSET
,
270 .radio_addr
= ADDR_UNSET
,
271 .tda9887_conf
= TDA9887_PRESENT
,
273 .type
= CX88_VMUX_TELEVISION
,
280 .type
= CX88_VMUX_COMPOSITE1
,
287 .type
= CX88_VMUX_SVIDEO
,
302 [CX88_BOARD_LEADTEK_PVR2000
] = {
303 // gpio values for PAL version from regspy by DScaler
304 .name
= "Leadtek PVR 2000",
305 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
307 .tuner_addr
= ADDR_UNSET
,
308 .radio_addr
= ADDR_UNSET
,
309 .tda9887_conf
= TDA9887_PRESENT
,
311 .type
= CX88_VMUX_TELEVISION
,
316 .type
= CX88_VMUX_COMPOSITE1
,
321 .type
= CX88_VMUX_SVIDEO
,
331 .mpeg
= CX88_MPEG_BLACKBIRD
,
333 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
334 .name
= "IODATA GV-VCP3/PCI",
337 .tuner_addr
= ADDR_UNSET
,
338 .radio_addr
= ADDR_UNSET
,
340 .type
= CX88_VMUX_COMPOSITE1
,
343 .type
= CX88_VMUX_COMPOSITE2
,
346 .type
= CX88_VMUX_SVIDEO
,
350 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
351 .name
= "Prolink PlayTV PVR",
352 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
354 .tuner_addr
= ADDR_UNSET
,
355 .radio_addr
= ADDR_UNSET
,
356 .tda9887_conf
= TDA9887_PRESENT
,
358 .type
= CX88_VMUX_TELEVISION
,
362 .type
= CX88_VMUX_COMPOSITE1
,
366 .type
= CX88_VMUX_SVIDEO
,
375 [CX88_BOARD_ASUS_PVR_416
] = {
376 .name
= "ASUS PVR-416",
377 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
379 .tuner_addr
= ADDR_UNSET
,
380 .radio_addr
= ADDR_UNSET
,
381 .tda9887_conf
= TDA9887_PRESENT
,
383 .type
= CX88_VMUX_TELEVISION
,
387 .type
= CX88_VMUX_SVIDEO
,
389 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
396 .mpeg
= CX88_MPEG_BLACKBIRD
,
398 [CX88_BOARD_MSI_TVANYWHERE
] = {
399 .name
= "MSI TV-@nywhere",
400 .tuner_type
= TUNER_MT2032
,
402 .tuner_addr
= ADDR_UNSET
,
403 .radio_addr
= ADDR_UNSET
,
404 .tda9887_conf
= TDA9887_PRESENT
,
406 .type
= CX88_VMUX_TELEVISION
,
411 .type
= CX88_VMUX_COMPOSITE1
,
416 .type
= CX88_VMUX_SVIDEO
,
422 [CX88_BOARD_KWORLD_DVB_T
] = {
423 .name
= "KWorld/VStream XPert DVB-T",
426 .tuner_addr
= ADDR_UNSET
,
427 .radio_addr
= ADDR_UNSET
,
429 .type
= CX88_VMUX_COMPOSITE1
,
434 .type
= CX88_VMUX_SVIDEO
,
439 .mpeg
= CX88_MPEG_DVB
,
441 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
442 .name
= "DViCO FusionHDTV DVB-T1",
443 .tuner_type
= UNSET
, /* No analog tuner */
445 .tuner_addr
= ADDR_UNSET
,
446 .radio_addr
= ADDR_UNSET
,
448 .type
= CX88_VMUX_COMPOSITE1
,
452 .type
= CX88_VMUX_SVIDEO
,
456 .mpeg
= CX88_MPEG_DVB
,
458 [CX88_BOARD_KWORLD_LTV883
] = {
459 .name
= "KWorld LTV883RF",
460 .tuner_type
= TUNER_TNF_8831BGFF
,
462 .tuner_addr
= ADDR_UNSET
,
463 .radio_addr
= ADDR_UNSET
,
465 .type
= CX88_VMUX_TELEVISION
,
469 .type
= CX88_VMUX_DEBUG
,
471 .gpio0
= 0x07f9, // mono from tuner chip
473 .type
= CX88_VMUX_COMPOSITE1
,
477 .type
= CX88_VMUX_SVIDEO
,
486 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
487 .name
= "DViCO FusionHDTV 3 Gold-Q",
488 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
490 .tuner_addr
= ADDR_UNSET
,
491 .radio_addr
= ADDR_UNSET
,
493 * GPIO[0] resets DT3302 DTV receiver
495 * 1 - normal operation
496 * GPIO[1] mutes analog audio output connector
497 * 0 - enable selected source
499 * GPIO[2] selects source for analog audio output connector
500 * 0 - analog audio input connector on tab
501 * 1 - analog DAC output from CX23881 chip
502 * GPIO[3] selects RF input connector on tuner module
503 * 0 - RF connector labeled CABLE
504 * 1 - RF connector labeled ANT
505 * GPIO[4] selects high RF for QAM256 mode
510 .type
= CX88_VMUX_TELEVISION
,
514 .type
= CX88_VMUX_CABLE
,
518 .type
= CX88_VMUX_COMPOSITE1
,
522 .type
= CX88_VMUX_SVIDEO
,
526 .mpeg
= CX88_MPEG_DVB
,
528 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
529 .name
= "Hauppauge Nova-T DVB-T",
532 .tuner_addr
= ADDR_UNSET
,
533 .radio_addr
= ADDR_UNSET
,
535 .type
= CX88_VMUX_DVB
,
538 .mpeg
= CX88_MPEG_DVB
,
540 [CX88_BOARD_CONEXANT_DVB_T1
] = {
541 .name
= "Conexant DVB-T reference design",
544 .tuner_addr
= ADDR_UNSET
,
545 .radio_addr
= ADDR_UNSET
,
547 .type
= CX88_VMUX_DVB
,
550 .mpeg
= CX88_MPEG_DVB
,
552 [CX88_BOARD_PROVIDEO_PV259
] = {
553 .name
= "Provideo PV259",
554 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
556 .tuner_addr
= ADDR_UNSET
,
557 .radio_addr
= ADDR_UNSET
,
559 .type
= CX88_VMUX_TELEVISION
,
563 .mpeg
= CX88_MPEG_BLACKBIRD
,
565 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
566 .name
= "DViCO FusionHDTV DVB-T Plus",
567 .tuner_type
= UNSET
, /* No analog tuner */
569 .tuner_addr
= ADDR_UNSET
,
570 .radio_addr
= ADDR_UNSET
,
572 .type
= CX88_VMUX_COMPOSITE1
,
576 .type
= CX88_VMUX_SVIDEO
,
580 .mpeg
= CX88_MPEG_DVB
,
582 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
583 .name
= "digitalnow DNTV Live! DVB-T",
586 .tuner_addr
= ADDR_UNSET
,
587 .radio_addr
= ADDR_UNSET
,
589 .type
= CX88_VMUX_COMPOSITE1
,
594 .type
= CX88_VMUX_SVIDEO
,
599 .mpeg
= CX88_MPEG_DVB
,
601 [CX88_BOARD_PCHDTV_HD3000
] = {
602 .name
= "pcHDTV HD3000 HDTV",
603 .tuner_type
= TUNER_THOMSON_DTT761X
,
605 .tuner_addr
= ADDR_UNSET
,
606 .radio_addr
= ADDR_UNSET
,
607 .tda9887_conf
= TDA9887_PRESENT
,
608 /* GPIO[2] = audio source for analog audio out connector
609 * 0 = analog audio input connector
610 * 1 = CX88 audio DACs
612 * GPIO[7] = input to CX88's audio/chroma ADC
614 * 1 = Sound 4.5 MHz IF
616 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
618 * GPIO[16] = Remote control input
621 .type
= CX88_VMUX_TELEVISION
,
625 .type
= CX88_VMUX_COMPOSITE1
,
629 .type
= CX88_VMUX_SVIDEO
,
637 .mpeg
= CX88_MPEG_DVB
,
639 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
640 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
641 // GPIO values obtained from regspy, courtesy Sean Covel
642 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
645 .tuner_addr
= ADDR_UNSET
,
646 .radio_addr
= ADDR_UNSET
,
648 .type
= CX88_VMUX_TELEVISION
,
653 .type
= CX88_VMUX_DEBUG
,
657 .type
= CX88_VMUX_COMPOSITE1
,
661 .type
= CX88_VMUX_SVIDEO
,
671 .mpeg
= CX88_MPEG_BLACKBIRD
,
673 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
674 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
675 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
677 .tuner_addr
= ADDR_UNSET
,
678 .radio_addr
= ADDR_UNSET
,
679 .tda9887_conf
= TDA9887_PRESENT
,
681 .type
= CX88_VMUX_TELEVISION
,
686 .type
= CX88_VMUX_COMPOSITE1
,
691 .type
= CX88_VMUX_SVIDEO
,
701 .mpeg
= CX88_MPEG_BLACKBIRD
,
703 [CX88_BOARD_IODATA_GVBCTV7E
] = {
704 .name
= "IODATA GV/BCTV7E",
705 .tuner_type
= TUNER_PHILIPS_FQ1286
,
707 .tuner_addr
= ADDR_UNSET
,
708 .radio_addr
= ADDR_UNSET
,
709 .tda9887_conf
= TDA9887_PRESENT
,
711 .type
= CX88_VMUX_TELEVISION
,
715 .type
= CX88_VMUX_COMPOSITE1
,
719 .type
= CX88_VMUX_SVIDEO
,
724 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
725 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
726 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
727 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
729 .tuner_addr
= ADDR_UNSET
,
730 .radio_addr
= ADDR_UNSET
,
732 * Some variants use a tda9874 and so need the
735 .audio_chip
= CX88_AUDIO_TVAUDIO
,
737 .type
= CX88_VMUX_TELEVISION
,
739 .gpio0
= 0xbf61, /* internal decoder */
741 .type
= CX88_VMUX_COMPOSITE1
,
745 .type
= CX88_VMUX_SVIDEO
,
754 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
755 .name
= "DViCO FusionHDTV 3 Gold-T",
756 .tuner_type
= TUNER_THOMSON_DTT761X
,
758 .tuner_addr
= ADDR_UNSET
,
759 .radio_addr
= ADDR_UNSET
,
760 .tda9887_conf
= TDA9887_PRESENT
,
762 .type
= CX88_VMUX_TELEVISION
,
766 .type
= CX88_VMUX_COMPOSITE1
,
770 .type
= CX88_VMUX_SVIDEO
,
774 .mpeg
= CX88_MPEG_DVB
,
776 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
777 .name
= "ADS Tech Instant TV DVB-T PCI",
780 .tuner_addr
= ADDR_UNSET
,
781 .radio_addr
= ADDR_UNSET
,
783 .type
= CX88_VMUX_COMPOSITE1
,
788 .type
= CX88_VMUX_SVIDEO
,
793 .mpeg
= CX88_MPEG_DVB
,
795 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
796 .name
= "TerraTec Cinergy 1400 DVB-T",
799 .type
= CX88_VMUX_DVB
,
802 .type
= CX88_VMUX_COMPOSITE1
,
805 .type
= CX88_VMUX_SVIDEO
,
808 .mpeg
= CX88_MPEG_DVB
,
810 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
811 .name
= "DViCO FusionHDTV 5 Gold",
812 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
814 .tuner_addr
= ADDR_UNSET
,
815 .radio_addr
= ADDR_UNSET
,
816 .tda9887_conf
= TDA9887_PRESENT
,
818 .type
= CX88_VMUX_TELEVISION
,
822 .type
= CX88_VMUX_COMPOSITE1
,
826 .type
= CX88_VMUX_SVIDEO
,
830 .mpeg
= CX88_MPEG_DVB
,
832 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
833 .name
= "AverMedia UltraTV Media Center PCI 550",
834 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
836 .tuner_addr
= ADDR_UNSET
,
837 .radio_addr
= ADDR_UNSET
,
838 .tda9887_conf
= TDA9887_PRESENT
,
840 .type
= CX88_VMUX_COMPOSITE1
,
845 .type
= CX88_VMUX_SVIDEO
,
850 .type
= CX88_VMUX_TELEVISION
,
861 .mpeg
= CX88_MPEG_BLACKBIRD
,
863 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
864 /* Alexander Wold <awold@bigfoot.com> */
865 .name
= "Kworld V-Stream Xpert DVD",
868 .type
= CX88_VMUX_COMPOSITE1
,
875 .type
= CX88_VMUX_SVIDEO
,
883 [CX88_BOARD_ATI_HDTVWONDER
] = {
884 .name
= "ATI HDTV Wonder",
885 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
887 .tuner_addr
= ADDR_UNSET
,
888 .radio_addr
= ADDR_UNSET
,
890 .type
= CX88_VMUX_TELEVISION
,
897 .type
= CX88_VMUX_COMPOSITE1
,
904 .type
= CX88_VMUX_SVIDEO
,
911 .mpeg
= CX88_MPEG_DVB
,
913 [CX88_BOARD_WINFAST_DTV1000
] = {
914 .name
= "WinFast DTV1000-T",
917 .tuner_addr
= ADDR_UNSET
,
918 .radio_addr
= ADDR_UNSET
,
920 .type
= CX88_VMUX_DVB
,
923 .type
= CX88_VMUX_COMPOSITE1
,
926 .type
= CX88_VMUX_SVIDEO
,
929 .mpeg
= CX88_MPEG_DVB
,
931 [CX88_BOARD_AVERTV_303
] = {
932 .name
= "AVerTV 303 (M126)",
933 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
935 .tuner_addr
= ADDR_UNSET
,
936 .radio_addr
= ADDR_UNSET
,
937 .tda9887_conf
= TDA9887_PRESENT
,
939 .type
= CX88_VMUX_TELEVISION
,
946 .type
= CX88_VMUX_COMPOSITE1
,
953 .type
= CX88_VMUX_SVIDEO
,
961 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
962 .name
= "Hauppauge Nova-S-Plus DVB-S",
965 .tuner_addr
= ADDR_UNSET
,
966 .radio_addr
= ADDR_UNSET
,
967 .audio_chip
= CX88_AUDIO_WM8775
,
970 .type
= CX88_VMUX_DVB
,
975 .type
= CX88_VMUX_COMPOSITE1
,
980 .type
= CX88_VMUX_SVIDEO
,
985 .mpeg
= CX88_MPEG_DVB
,
987 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
988 .name
= "Hauppauge Nova-SE2 DVB-S",
991 .tuner_addr
= ADDR_UNSET
,
992 .radio_addr
= ADDR_UNSET
,
994 .type
= CX88_VMUX_DVB
,
997 .mpeg
= CX88_MPEG_DVB
,
999 [CX88_BOARD_KWORLD_DVBS_100
] = {
1000 .name
= "KWorld DVB-S 100",
1001 .tuner_type
= UNSET
,
1002 .radio_type
= UNSET
,
1003 .tuner_addr
= ADDR_UNSET
,
1004 .radio_addr
= ADDR_UNSET
,
1005 .audio_chip
= CX88_AUDIO_WM8775
,
1007 .type
= CX88_VMUX_DVB
,
1012 .type
= CX88_VMUX_COMPOSITE1
,
1017 .type
= CX88_VMUX_SVIDEO
,
1022 .mpeg
= CX88_MPEG_DVB
,
1024 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
1025 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
1026 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1027 .radio_type
= UNSET
,
1028 .tuner_addr
= ADDR_UNSET
,
1029 .radio_addr
= ADDR_UNSET
,
1030 .tda9887_conf
= TDA9887_PRESENT
,
1032 .type
= CX88_VMUX_TELEVISION
,
1035 .type
= CX88_VMUX_COMPOSITE1
,
1038 .type
= CX88_VMUX_SVIDEO
,
1041 /* fixme: Add radio support */
1042 .mpeg
= CX88_MPEG_DVB
,
1044 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1045 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1046 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1047 .radio_type
= UNSET
,
1048 .tuner_addr
= ADDR_UNSET
,
1049 .radio_addr
= ADDR_UNSET
,
1050 .tda9887_conf
= TDA9887_PRESENT
,
1052 .type
= CX88_VMUX_TELEVISION
,
1055 .type
= CX88_VMUX_COMPOSITE1
,
1058 /* fixme: Add radio support */
1059 .mpeg
= CX88_MPEG_DVB
,
1061 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1062 .name
= "digitalnow DNTV Live! DVB-T Pro",
1063 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1064 .radio_type
= UNSET
,
1065 .tuner_addr
= ADDR_UNSET
,
1066 .radio_addr
= ADDR_UNSET
,
1067 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1068 TDA9887_PORT2_ACTIVE
,
1070 .type
= CX88_VMUX_TELEVISION
,
1074 .type
= CX88_VMUX_COMPOSITE1
,
1078 .type
= CX88_VMUX_SVIDEO
,
1086 .mpeg
= CX88_MPEG_DVB
,
1088 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1089 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1090 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1091 /* Manenti Marco <marco_manenti@colman.it> */
1092 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1093 .tuner_type
= UNSET
,
1094 .radio_type
= UNSET
,
1095 .tuner_addr
= ADDR_UNSET
,
1096 .radio_addr
= ADDR_UNSET
,
1098 .type
= CX88_VMUX_COMPOSITE1
,
1103 .type
= CX88_VMUX_SVIDEO
,
1108 .mpeg
= CX88_MPEG_DVB
,
1110 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1111 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1112 .tuner_type
= UNSET
, /* No analog tuner */
1113 .radio_type
= UNSET
,
1114 .tuner_addr
= ADDR_UNSET
,
1115 .radio_addr
= ADDR_UNSET
,
1117 .type
= CX88_VMUX_COMPOSITE1
,
1119 .gpio0
= 0x000067df,
1121 .type
= CX88_VMUX_SVIDEO
,
1123 .gpio0
= 0x000067df,
1125 .mpeg
= CX88_MPEG_DVB
,
1127 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1128 .name
= "KWorld HardwareMpegTV XPert",
1129 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1130 .radio_type
= UNSET
,
1131 .tuner_addr
= ADDR_UNSET
,
1132 .radio_addr
= ADDR_UNSET
,
1134 .type
= CX88_VMUX_TELEVISION
,
1139 .type
= CX88_VMUX_COMPOSITE1
,
1144 .type
= CX88_VMUX_SVIDEO
,
1154 .mpeg
= CX88_MPEG_BLACKBIRD
,
1156 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1157 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1158 .tuner_type
= TUNER_THOMSON_FE6600
,
1159 .radio_type
= UNSET
,
1160 .tuner_addr
= ADDR_UNSET
,
1161 .radio_addr
= ADDR_UNSET
,
1163 .type
= CX88_VMUX_TELEVISION
,
1165 .gpio0
= 0x0000a75f,
1167 .type
= CX88_VMUX_COMPOSITE1
,
1169 .gpio0
= 0x0000a75b,
1171 .type
= CX88_VMUX_SVIDEO
,
1173 .gpio0
= 0x0000a75b,
1175 .mpeg
= CX88_MPEG_DVB
,
1177 [CX88_BOARD_PCHDTV_HD5500
] = {
1178 .name
= "pcHDTV HD5500 HDTV",
1179 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1180 .radio_type
= UNSET
,
1181 .tuner_addr
= ADDR_UNSET
,
1182 .radio_addr
= ADDR_UNSET
,
1183 .tda9887_conf
= TDA9887_PRESENT
,
1185 .type
= CX88_VMUX_TELEVISION
,
1189 .type
= CX88_VMUX_COMPOSITE1
,
1193 .type
= CX88_VMUX_SVIDEO
,
1197 .mpeg
= CX88_MPEG_DVB
,
1199 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1201 * FIXME: tested TV input only, disabled composite,
1202 * svideo and radio until they can be tested also.
1204 .name
= "Kworld MCE 200 Deluxe",
1205 .tuner_type
= TUNER_TENA_9533_DI
,
1206 .radio_type
= UNSET
,
1207 .tda9887_conf
= TDA9887_PRESENT
,
1208 .tuner_addr
= ADDR_UNSET
,
1209 .radio_addr
= ADDR_UNSET
,
1211 .type
= CX88_VMUX_TELEVISION
,
1215 .mpeg
= CX88_MPEG_BLACKBIRD
,
1217 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1218 /* FIXME: SVideo, Composite and FM inputs are untested */
1219 .name
= "PixelView PlayTV P7000",
1220 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1221 .radio_type
= UNSET
,
1222 .tuner_addr
= ADDR_UNSET
,
1223 .radio_addr
= ADDR_UNSET
,
1224 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1225 TDA9887_PORT2_ACTIVE
,
1227 .type
= CX88_VMUX_TELEVISION
,
1231 .mpeg
= CX88_MPEG_BLACKBIRD
,
1233 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1234 .name
= "NPG Tech Real TV FM Top 10",
1235 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1236 .radio_type
= UNSET
,
1237 .tuner_addr
= ADDR_UNSET
,
1238 .radio_addr
= ADDR_UNSET
,
1240 .type
= CX88_VMUX_TELEVISION
,
1244 .type
= CX88_VMUX_COMPOSITE1
,
1248 .type
= CX88_VMUX_SVIDEO
,
1257 [CX88_BOARD_WINFAST_DTV2000H
] = {
1258 .name
= "WinFast DTV2000 H",
1259 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1260 .radio_type
= UNSET
,
1261 .tuner_addr
= ADDR_UNSET
,
1262 .radio_addr
= ADDR_UNSET
,
1263 .tda9887_conf
= TDA9887_PRESENT
,
1265 .type
= CX88_VMUX_TELEVISION
,
1267 .gpio0
= 0x00017304,
1268 .gpio1
= 0x00008203,
1269 .gpio2
= 0x00017304,
1270 .gpio3
= 0x02000000,
1272 .type
= CX88_VMUX_COMPOSITE1
,
1274 .gpio0
= 0x0001d701,
1275 .gpio1
= 0x0000b207,
1276 .gpio2
= 0x0001d701,
1277 .gpio3
= 0x02000000,
1279 .type
= CX88_VMUX_COMPOSITE2
,
1281 .gpio0
= 0x0001d503,
1282 .gpio1
= 0x0000b207,
1283 .gpio2
= 0x0001d503,
1284 .gpio3
= 0x02000000,
1286 .type
= CX88_VMUX_SVIDEO
,
1288 .gpio0
= 0x0001d701,
1289 .gpio1
= 0x0000b207,
1290 .gpio2
= 0x0001d701,
1291 .gpio3
= 0x02000000,
1295 .gpio0
= 0x00015702,
1296 .gpio1
= 0x0000f207,
1297 .gpio2
= 0x00015702,
1298 .gpio3
= 0x02000000,
1300 .mpeg
= CX88_MPEG_DVB
,
1302 [CX88_BOARD_WINFAST_DTV2000H_J
] = {
1303 .name
= "WinFast DTV2000 H rev. J",
1304 .tuner_type
= TUNER_PHILIPS_FMD1216MEX_MK3
,
1305 .radio_type
= UNSET
,
1306 .tuner_addr
= ADDR_UNSET
,
1307 .radio_addr
= ADDR_UNSET
,
1308 .tda9887_conf
= TDA9887_PRESENT
,
1310 .type
= CX88_VMUX_TELEVISION
,
1312 .gpio0
= 0x00017300,
1313 .gpio1
= 0x00008207,
1314 .gpio2
= 0x00000000,
1315 .gpio3
= 0x02000000,
1317 .type
= CX88_VMUX_TELEVISION
,
1319 .gpio0
= 0x00018300,
1320 .gpio1
= 0x0000f207,
1321 .gpio2
= 0x00017304,
1322 .gpio3
= 0x02000000,
1324 .type
= CX88_VMUX_COMPOSITE1
,
1326 .gpio0
= 0x00018301,
1327 .gpio1
= 0x0000f207,
1328 .gpio2
= 0x00017304,
1329 .gpio3
= 0x02000000,
1331 .type
= CX88_VMUX_SVIDEO
,
1333 .gpio0
= 0x00018301,
1334 .gpio1
= 0x0000f207,
1335 .gpio2
= 0x00017304,
1336 .gpio3
= 0x02000000,
1340 .gpio0
= 0x00015702,
1341 .gpio1
= 0x0000f207,
1342 .gpio2
= 0x00015702,
1343 .gpio3
= 0x02000000,
1345 .mpeg
= CX88_MPEG_DVB
,
1347 [CX88_BOARD_GENIATECH_DVBS
] = {
1348 .name
= "Geniatech DVB-S",
1349 .tuner_type
= UNSET
,
1350 .radio_type
= UNSET
,
1351 .tuner_addr
= ADDR_UNSET
,
1352 .radio_addr
= ADDR_UNSET
,
1354 .type
= CX88_VMUX_DVB
,
1357 .type
= CX88_VMUX_COMPOSITE1
,
1360 .mpeg
= CX88_MPEG_DVB
,
1362 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1363 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1364 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1365 .radio_type
= UNSET
,
1366 .tuner_addr
= ADDR_UNSET
,
1367 .radio_addr
= ADDR_UNSET
,
1368 .tda9887_conf
= TDA9887_PRESENT
,
1369 .audio_chip
= CX88_AUDIO_WM8775
,
1371 .type
= CX88_VMUX_TELEVISION
,
1374 /* 1: TV Audio / FM Mono */
1377 .type
= CX88_VMUX_COMPOSITE1
,
1383 .type
= CX88_VMUX_SVIDEO
,
1392 /* 4: FM Stereo (untested) */
1395 .mpeg
= CX88_MPEG_DVB
,
1398 [CX88_BOARD_NORWOOD_MICRO
] = {
1399 .name
= "Norwood Micro TV Tuner",
1400 .tuner_type
= TUNER_TNF_5335MF
,
1401 .radio_type
= UNSET
,
1402 .tuner_addr
= ADDR_UNSET
,
1403 .radio_addr
= ADDR_UNSET
,
1405 .type
= CX88_VMUX_TELEVISION
,
1409 .type
= CX88_VMUX_COMPOSITE1
,
1413 .type
= CX88_VMUX_SVIDEO
,
1418 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1419 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1420 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1421 .radio_type
= UNSET
,
1422 .tuner_addr
= ADDR_UNSET
,
1423 .radio_addr
= ADDR_UNSET
,
1425 .type
= CX88_VMUX_TELEVISION
,
1427 .gpio0
= 0x003fffff,
1428 .gpio1
= 0x00e00000,
1429 .gpio2
= 0x003fffff,
1430 .gpio3
= 0x02000000,
1432 .type
= CX88_VMUX_COMPOSITE1
,
1434 .gpio0
= 0x003fffff,
1435 .gpio1
= 0x00e00000,
1436 .gpio2
= 0x003fffff,
1437 .gpio3
= 0x02000000,
1439 .type
= CX88_VMUX_SVIDEO
,
1441 .gpio0
= 0x003fffff,
1442 .gpio1
= 0x00e00000,
1443 .gpio2
= 0x003fffff,
1444 .gpio3
= 0x02000000,
1447 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1448 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1449 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1450 .radio_type
= UNSET
,
1451 .tuner_addr
= ADDR_UNSET
,
1452 .radio_addr
= ADDR_UNSET
,
1453 .tda9887_conf
= TDA9887_PRESENT
,
1454 .audio_chip
= CX88_AUDIO_WM8775
,
1456 * gpio0 as reported by Mike Crash <mike AT mikecrash.com>
1459 .type
= CX88_VMUX_TELEVISION
,
1462 /* 1: TV Audio / FM Mono */
1465 .type
= CX88_VMUX_COMPOSITE1
,
1471 .type
= CX88_VMUX_SVIDEO
,
1477 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1481 /* 4: FM Stereo (untested) */
1485 [CX88_BOARD_SAMSUNG_SMT_7020
] = {
1486 .name
= "Samsung SMT 7020 DVB-S",
1487 .tuner_type
= UNSET
,
1488 .radio_type
= UNSET
,
1489 .tuner_addr
= ADDR_UNSET
,
1490 .radio_addr
= ADDR_UNSET
,
1492 .type
= CX88_VMUX_DVB
,
1495 .mpeg
= CX88_MPEG_DVB
,
1497 [CX88_BOARD_ADSTECH_PTV_390
] = {
1498 .name
= "ADS Tech Instant Video PCI",
1499 .tuner_type
= UNSET
,
1500 .radio_type
= UNSET
,
1501 .tuner_addr
= ADDR_UNSET
,
1502 .radio_addr
= ADDR_UNSET
,
1504 .type
= CX88_VMUX_DEBUG
,
1508 .type
= CX88_VMUX_COMPOSITE1
,
1512 .type
= CX88_VMUX_SVIDEO
,
1517 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1518 .name
= "Pinnacle PCTV HD 800i",
1519 .tuner_type
= TUNER_XC5000
,
1520 .radio_type
= UNSET
,
1521 .tuner_addr
= ADDR_UNSET
,
1522 .radio_addr
= ADDR_UNSET
,
1524 .type
= CX88_VMUX_TELEVISION
,
1529 .type
= CX88_VMUX_COMPOSITE1
,
1535 .type
= CX88_VMUX_SVIDEO
,
1541 .mpeg
= CX88_MPEG_DVB
,
1543 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1544 .name
= "DViCO FusionHDTV 5 PCI nano",
1545 /* xc3008 tuner, digital only for now */
1546 .tuner_type
= UNSET
,
1547 .radio_type
= UNSET
,
1548 .tuner_addr
= ADDR_UNSET
,
1549 .radio_addr
= ADDR_UNSET
,
1551 .type
= CX88_VMUX_TELEVISION
,
1553 .gpio0
= 0x000027df, /* Unconfirmed */
1555 .type
= CX88_VMUX_COMPOSITE1
,
1557 .gpio0
= 0x000027df, /* Unconfirmed */
1560 .type
= CX88_VMUX_SVIDEO
,
1562 .gpio0
= 0x000027df, /* Unconfirmed */
1565 .mpeg
= CX88_MPEG_DVB
,
1567 [CX88_BOARD_PINNACLE_HYBRID_PCTV
] = {
1568 .name
= "Pinnacle Hybrid PCTV",
1569 .tuner_type
= TUNER_XC2028
,
1571 .radio_type
= UNSET
,
1572 .radio_addr
= ADDR_UNSET
,
1574 .type
= CX88_VMUX_TELEVISION
,
1580 .type
= CX88_VMUX_COMPOSITE1
,
1586 .type
= CX88_VMUX_SVIDEO
,
1598 .mpeg
= CX88_MPEG_DVB
,
1600 /* Terry Wu <terrywu2009@gmail.com> */
1601 /* TV Audio : set GPIO 2, 18, 19 value to 0, 1, 0 */
1602 /* FM Audio : set GPIO 2, 18, 19 value to 0, 0, 0 */
1603 /* Line-in Audio : set GPIO 2, 18, 19 value to 0, 1, 1 */
1604 /* Mute Audio : set GPIO 2 value to 1 */
1605 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
] = {
1606 .name
= "Leadtek TV2000 XP Global",
1607 .tuner_type
= TUNER_XC2028
,
1609 .radio_type
= UNSET
,
1610 .radio_addr
= ADDR_UNSET
,
1612 .type
= CX88_VMUX_TELEVISION
,
1614 .gpio0
= 0x0400, /* pin 2 = 0 */
1616 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1619 .type
= CX88_VMUX_COMPOSITE1
,
1621 .gpio0
= 0x0400, /* pin 2 = 0 */
1623 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1626 .type
= CX88_VMUX_SVIDEO
,
1628 .gpio0
= 0x0400, /* pin 2 = 0 */
1630 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1635 .gpio0
= 0x0400, /* pin 2 = 0 */
1637 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1641 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
] = {
1642 .name
= "Leadtek TV2000 XP Global (SC4100)",
1643 .tuner_type
= TUNER_XC4000
,
1645 .radio_type
= UNSET
,
1646 .radio_addr
= ADDR_UNSET
,
1648 .type
= CX88_VMUX_TELEVISION
,
1650 .gpio0
= 0x0400, /* pin 2 = 0 */
1652 .gpio2
= 0x0C04, /* pin 18 = 1, pin 19 = 0 */
1655 .type
= CX88_VMUX_COMPOSITE1
,
1657 .gpio0
= 0x0400, /* pin 2 = 0 */
1659 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1662 .type
= CX88_VMUX_SVIDEO
,
1664 .gpio0
= 0x0400, /* pin 2 = 0 */
1666 .gpio2
= 0x0C0C, /* pin 18 = 1, pin 19 = 1 */
1671 .gpio0
= 0x0400, /* pin 2 = 0 */
1673 .gpio2
= 0x0C00, /* pin 18 = 0, pin 19 = 0 */
1677 [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
] = {
1678 .name
= "Leadtek TV2000 XP Global (XC4100)",
1679 .tuner_type
= TUNER_XC4000
,
1681 .radio_type
= UNSET
,
1682 .radio_addr
= ADDR_UNSET
,
1684 .type
= CX88_VMUX_TELEVISION
,
1686 .gpio0
= 0x0400, /* pin 2 = 0 */
1687 .gpio1
= 0x6040, /* pin 14 = 1, pin 13 = 0 */
1691 .type
= CX88_VMUX_COMPOSITE1
,
1693 .gpio0
= 0x0400, /* pin 2 = 0 */
1694 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1698 .type
= CX88_VMUX_SVIDEO
,
1700 .gpio0
= 0x0400, /* pin 2 = 0 */
1701 .gpio1
= 0x6060, /* pin 14 = 1, pin 13 = 1 */
1707 .gpio0
= 0x0400, /* pin 2 = 0 */
1708 .gpio1
= 0x6000, /* pin 14 = 1, pin 13 = 0 */
1713 [CX88_BOARD_POWERCOLOR_REAL_ANGEL
] = {
1714 /* Long names may confuse LIRC. */
1715 .name
= "PowerColor RA330",
1716 .tuner_type
= TUNER_XC2028
,
1720 * Due to the way the cx88 driver is written,
1721 * there is no way to deactivate audio pass-
1722 * through without this entry. Furthermore, if
1723 * the TV mux entry is first, you get audio
1724 * from the tuner on boot for a little while.
1726 .type
= CX88_VMUX_DEBUG
,
1732 .type
= CX88_VMUX_TELEVISION
,
1738 .type
= CX88_VMUX_COMPOSITE1
,
1744 .type
= CX88_VMUX_SVIDEO
,
1757 [CX88_BOARD_GENIATECH_X8000_MT
] = {
1758 /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */
1759 .name
= "Geniatech X8000-MT DVBT",
1760 .tuner_type
= TUNER_XC2028
,
1763 .type
= CX88_VMUX_TELEVISION
,
1765 .gpio0
= 0x00000000,
1766 .gpio1
= 0x00e3e341,
1767 .gpio2
= 0x00000000,
1768 .gpio3
= 0x00000000,
1770 .type
= CX88_VMUX_COMPOSITE1
,
1772 .gpio0
= 0x00000000,
1773 .gpio1
= 0x00e3e361,
1774 .gpio2
= 0x00000000,
1775 .gpio3
= 0x00000000,
1777 .type
= CX88_VMUX_SVIDEO
,
1779 .gpio0
= 0x00000000,
1780 .gpio1
= 0x00e3e361,
1781 .gpio2
= 0x00000000,
1782 .gpio3
= 0x00000000,
1786 .gpio0
= 0x00000000,
1787 .gpio1
= 0x00e3e341,
1788 .gpio2
= 0x00000000,
1789 .gpio3
= 0x00000000,
1791 .mpeg
= CX88_MPEG_DVB
,
1793 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
] = {
1794 .name
= "DViCO FusionHDTV DVB-T PRO",
1795 .tuner_type
= TUNER_XC2028
,
1797 .radio_type
= UNSET
,
1798 .radio_addr
= ADDR_UNSET
,
1800 .type
= CX88_VMUX_COMPOSITE1
,
1802 .gpio0
= 0x000067df,
1804 .type
= CX88_VMUX_SVIDEO
,
1806 .gpio0
= 0x000067df,
1808 .mpeg
= CX88_MPEG_DVB
,
1810 [CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
] = {
1811 .name
= "DViCO FusionHDTV 7 Gold",
1812 .tuner_type
= TUNER_XC5000
,
1813 .radio_type
= UNSET
,
1814 .tuner_addr
= ADDR_UNSET
,
1815 .radio_addr
= ADDR_UNSET
,
1817 .type
= CX88_VMUX_TELEVISION
,
1821 .type
= CX88_VMUX_COMPOSITE1
,
1825 .type
= CX88_VMUX_SVIDEO
,
1829 .mpeg
= CX88_MPEG_DVB
,
1831 [CX88_BOARD_PROLINK_PV_8000GT
] = {
1832 .name
= "Prolink Pixelview MPEG 8000GT",
1833 .tuner_type
= TUNER_XC2028
,
1836 .type
= CX88_VMUX_TELEVISION
,
1841 .type
= CX88_VMUX_COMPOSITE1
,
1845 .type
= CX88_VMUX_SVIDEO
,
1854 [CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
] = {
1855 .name
= "Prolink Pixelview Global Extreme",
1856 .tuner_type
= TUNER_XC2028
,
1859 .type
= CX88_VMUX_TELEVISION
,
1865 .type
= CX88_VMUX_COMPOSITE1
,
1871 .type
= CX88_VMUX_SVIDEO
,
1885 * Both radio, analog and ATSC work with this board.
1886 * However, for analog to work, s5h1409 gate should be open,
1887 * otherwise, tuner-xc3028 won't be detected.
1888 * A proper fix require using the newer i2c methods to add
1889 * tuner-xc3028 without doing an i2c probe.
1891 [CX88_BOARD_KWORLD_ATSC_120
] = {
1892 .name
= "Kworld PlusTV HD PCI 120 (ATSC 120)",
1893 .tuner_type
= TUNER_XC2028
,
1894 .radio_type
= UNSET
,
1895 .tuner_addr
= ADDR_UNSET
,
1896 .radio_addr
= ADDR_UNSET
,
1898 .type
= CX88_VMUX_TELEVISION
,
1900 .gpio0
= 0x000000ff,
1901 .gpio1
= 0x0000f35d,
1902 .gpio2
= 0x00000000,
1904 .type
= CX88_VMUX_COMPOSITE1
,
1906 .gpio0
= 0x000000ff,
1907 .gpio1
= 0x0000f37e,
1908 .gpio2
= 0x00000000,
1910 .type
= CX88_VMUX_SVIDEO
,
1912 .gpio0
= 0x000000ff,
1913 .gpio1
= 0x0000f37e,
1914 .gpio2
= 0x00000000,
1918 .gpio0
= 0x000000ff,
1919 .gpio1
= 0x0000f35d,
1920 .gpio2
= 0x00000000,
1922 .mpeg
= CX88_MPEG_DVB
,
1924 [CX88_BOARD_HAUPPAUGE_HVR4000
] = {
1925 .name
= "Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid",
1926 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1927 .radio_type
= UNSET
,
1928 .tuner_addr
= ADDR_UNSET
,
1929 .radio_addr
= ADDR_UNSET
,
1930 .tda9887_conf
= TDA9887_PRESENT
,
1931 .audio_chip
= CX88_AUDIO_WM8775
,
1935 * Analogue SAT DVB-T
1936 * Antenna 0xc4bf 0xc4bb
1937 * Composite 0xc4bf 0xc4bb
1938 * S-Video 0xc4bf 0xc4bb
1939 * Composite1 0xc4ff 0xc4fb
1940 * S-Video1 0xc4ff 0xc4fb
1942 * BIT VALUE FUNCTION GP{x}_IO
1945 * 2 1 O:MPEG PORT 0=DVB-T 1=DVB-S
1949 * 6 0 O:INPUT SELECTOR 0=INTERNAL 1=EXPANSION
1950 * 7 1 O:DVB-T DEMOD RESET LOW
1952 * BIT VALUE FUNCTION GP{x}_OE
1964 * 1: TV Audio / FM Mono
1966 * 3: Line-In Expansion
1970 .type
= CX88_VMUX_TELEVISION
,
1973 /* 1: TV Audio / FM Mono */
1976 .type
= CX88_VMUX_COMPOSITE1
,
1982 .type
= CX88_VMUX_SVIDEO
,
1994 .mpeg
= CX88_MPEG_DVB
,
1997 [CX88_BOARD_HAUPPAUGE_HVR4000LITE
] = {
1998 .name
= "Hauppauge WinTV-HVR4000(Lite) DVB-S/S2",
1999 .tuner_type
= UNSET
,
2000 .radio_type
= UNSET
,
2001 .tuner_addr
= ADDR_UNSET
,
2002 .radio_addr
= ADDR_UNSET
,
2004 .type
= CX88_VMUX_DVB
,
2007 .mpeg
= CX88_MPEG_DVB
,
2009 [CX88_BOARD_TEVII_S420
] = {
2010 .name
= "TeVii S420 DVB-S",
2011 .tuner_type
= UNSET
,
2012 .radio_type
= UNSET
,
2013 .tuner_addr
= ADDR_UNSET
,
2014 .radio_addr
= ADDR_UNSET
,
2016 .type
= CX88_VMUX_DVB
,
2019 .mpeg
= CX88_MPEG_DVB
,
2021 [CX88_BOARD_TEVII_S460
] = {
2022 .name
= "TeVii S460 DVB-S/S2",
2023 .tuner_type
= UNSET
,
2024 .radio_type
= UNSET
,
2025 .tuner_addr
= ADDR_UNSET
,
2026 .radio_addr
= ADDR_UNSET
,
2028 .type
= CX88_VMUX_DVB
,
2031 .mpeg
= CX88_MPEG_DVB
,
2033 [CX88_BOARD_TEVII_S464
] = {
2034 .name
= "TeVii S464 DVB-S/S2",
2035 .tuner_type
= UNSET
,
2036 .radio_type
= UNSET
,
2037 .tuner_addr
= ADDR_UNSET
,
2038 .radio_addr
= ADDR_UNSET
,
2040 .type
= CX88_VMUX_DVB
,
2043 .mpeg
= CX88_MPEG_DVB
,
2045 [CX88_BOARD_OMICOM_SS4_PCI
] = {
2046 .name
= "Omicom SS4 DVB-S/S2 PCI",
2047 .tuner_type
= UNSET
,
2048 .radio_type
= UNSET
,
2049 .tuner_addr
= ADDR_UNSET
,
2050 .radio_addr
= ADDR_UNSET
,
2052 .type
= CX88_VMUX_DVB
,
2055 .mpeg
= CX88_MPEG_DVB
,
2057 [CX88_BOARD_TBS_8910
] = {
2058 .name
= "TBS 8910 DVB-S",
2059 .tuner_type
= UNSET
,
2060 .radio_type
= UNSET
,
2061 .tuner_addr
= ADDR_UNSET
,
2062 .radio_addr
= ADDR_UNSET
,
2064 .type
= CX88_VMUX_DVB
,
2067 .mpeg
= CX88_MPEG_DVB
,
2069 [CX88_BOARD_TBS_8920
] = {
2070 .name
= "TBS 8920 DVB-S/S2",
2071 .tuner_type
= UNSET
,
2072 .radio_type
= UNSET
,
2073 .tuner_addr
= ADDR_UNSET
,
2074 .radio_addr
= ADDR_UNSET
,
2076 .type
= CX88_VMUX_DVB
,
2080 .mpeg
= CX88_MPEG_DVB
,
2082 [CX88_BOARD_PROF_6200
] = {
2083 .name
= "Prof 6200 DVB-S",
2084 .tuner_type
= UNSET
,
2085 .radio_type
= UNSET
,
2086 .tuner_addr
= ADDR_UNSET
,
2087 .radio_addr
= ADDR_UNSET
,
2089 .type
= CX88_VMUX_DVB
,
2092 .mpeg
= CX88_MPEG_DVB
,
2094 [CX88_BOARD_PROF_7300
] = {
2095 .name
= "PROF 7300 DVB-S/S2",
2096 .tuner_type
= UNSET
,
2097 .radio_type
= UNSET
,
2098 .tuner_addr
= ADDR_UNSET
,
2099 .radio_addr
= ADDR_UNSET
,
2101 .type
= CX88_VMUX_DVB
,
2104 .mpeg
= CX88_MPEG_DVB
,
2106 [CX88_BOARD_SATTRADE_ST4200
] = {
2107 .name
= "SATTRADE ST4200 DVB-S/S2",
2108 .tuner_type
= UNSET
,
2109 .radio_type
= UNSET
,
2110 .tuner_addr
= ADDR_UNSET
,
2111 .radio_addr
= ADDR_UNSET
,
2113 .type
= CX88_VMUX_DVB
,
2116 .mpeg
= CX88_MPEG_DVB
,
2118 [CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
] = {
2119 .name
= "Terratec Cinergy HT PCI MKII",
2120 .tuner_type
= TUNER_XC2028
,
2122 .radio_type
= UNSET
,
2123 .radio_addr
= ADDR_UNSET
,
2125 .type
= CX88_VMUX_TELEVISION
,
2131 .type
= CX88_VMUX_COMPOSITE1
,
2137 .type
= CX88_VMUX_SVIDEO
,
2149 .mpeg
= CX88_MPEG_DVB
,
2151 [CX88_BOARD_HAUPPAUGE_IRONLY
] = {
2152 .name
= "Hauppauge WinTV-IR Only",
2153 .tuner_type
= UNSET
,
2154 .radio_type
= UNSET
,
2155 .tuner_addr
= ADDR_UNSET
,
2156 .radio_addr
= ADDR_UNSET
,
2158 [CX88_BOARD_WINFAST_DTV1800H
] = {
2159 .name
= "Leadtek WinFast DTV1800 Hybrid",
2160 .tuner_type
= TUNER_XC2028
,
2161 .radio_type
= UNSET
,
2163 .radio_addr
= ADDR_UNSET
,
2167 * 2: mute (0=off,1=on)
2168 * 12: tuner reset pin
2169 * 13: audio source (0=tuner audio,1=line in)
2170 * 14: FM (0=on,1=off ???)
2173 .type
= CX88_VMUX_TELEVISION
,
2175 .gpio0
= 0x0400, /* pin 2 = 0 */
2176 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2179 .type
= CX88_VMUX_COMPOSITE1
,
2181 .gpio0
= 0x0400, /* pin 2 = 0 */
2182 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2185 .type
= CX88_VMUX_SVIDEO
,
2187 .gpio0
= 0x0400, /* pin 2 = 0 */
2188 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2193 .gpio0
= 0x0400, /* pin 2 = 0 */
2194 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2197 .mpeg
= CX88_MPEG_DVB
,
2199 [CX88_BOARD_WINFAST_DTV1800H_XC4000
] = {
2200 .name
= "Leadtek WinFast DTV1800 H (XC4000)",
2201 .tuner_type
= TUNER_XC4000
,
2202 .radio_type
= UNSET
,
2204 .radio_addr
= ADDR_UNSET
,
2208 * 2: mute (0=off,1=on)
2209 * 12: tuner reset pin
2210 * 13: audio source (0=tuner audio,1=line in)
2211 * 14: FM (0=on,1=off ???)
2214 .type
= CX88_VMUX_TELEVISION
,
2216 .gpio0
= 0x0400, /* pin 2 = 0 */
2217 .gpio1
= 0x6040, /* pin 13 = 0, pin 14 = 1 */
2220 .type
= CX88_VMUX_COMPOSITE1
,
2222 .gpio0
= 0x0400, /* pin 2 = 0 */
2223 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2226 .type
= CX88_VMUX_SVIDEO
,
2228 .gpio0
= 0x0400, /* pin 2 = 0 */
2229 .gpio1
= 0x6060, /* pin 13 = 1, pin 14 = 1 */
2234 .gpio0
= 0x0400, /* pin 2 = 0 */
2235 .gpio1
= 0x6000, /* pin 13 = 0, pin 14 = 0 */
2238 .mpeg
= CX88_MPEG_DVB
,
2240 [CX88_BOARD_WINFAST_DTV2000H_PLUS
] = {
2241 .name
= "Leadtek WinFast DTV2000 H PLUS",
2242 .tuner_type
= TUNER_XC4000
,
2243 .radio_type
= UNSET
,
2245 .radio_addr
= ADDR_UNSET
,
2249 * 12: 0: reset XC4000
2250 * 13: 1: audio input is line in (0: tuner)
2252 * 16: 0: RF input is cable
2255 .type
= CX88_VMUX_TELEVISION
,
2262 .type
= CX88_VMUX_CABLE
,
2269 .type
= CX88_VMUX_COMPOSITE1
,
2271 .gpio0
= 0x0403, /* was 0x0407 */
2276 .type
= CX88_VMUX_SVIDEO
,
2278 .gpio0
= 0x0403, /* was 0x0407 */
2290 .mpeg
= CX88_MPEG_DVB
,
2292 [CX88_BOARD_PROF_7301
] = {
2293 .name
= "Prof 7301 DVB-S/S2",
2294 .tuner_type
= UNSET
,
2295 .radio_type
= UNSET
,
2296 .tuner_addr
= ADDR_UNSET
,
2297 .radio_addr
= ADDR_UNSET
,
2299 .type
= CX88_VMUX_DVB
,
2302 .mpeg
= CX88_MPEG_DVB
,
2304 [CX88_BOARD_TWINHAN_VP1027_DVBS
] = {
2305 .name
= "Twinhan VP-1027 DVB-S",
2306 .tuner_type
= UNSET
,
2307 .radio_type
= UNSET
,
2308 .tuner_addr
= ADDR_UNSET
,
2309 .radio_addr
= ADDR_UNSET
,
2311 .type
= CX88_VMUX_DVB
,
2314 .mpeg
= CX88_MPEG_DVB
,
2318 /* ------------------------------------------------------------------ */
2319 /* PCI subsystem IDs */
2321 static const struct cx88_subid cx88_subids
[] = {
2323 .subvendor
= 0x0070,
2324 .subdevice
= 0x3400,
2325 .card
= CX88_BOARD_HAUPPAUGE
,
2327 .subvendor
= 0x0070,
2328 .subdevice
= 0x3401,
2329 .card
= CX88_BOARD_HAUPPAUGE
,
2331 .subvendor
= 0x14c7,
2332 .subdevice
= 0x0106,
2333 .card
= CX88_BOARD_GDI
,
2335 .subvendor
= 0x14c7,
2336 .subdevice
= 0x0107, /* with mpeg encoder */
2337 .card
= CX88_BOARD_GDI
,
2339 .subvendor
= PCI_VENDOR_ID_ATI
,
2340 .subdevice
= 0x00f8,
2341 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2343 .subvendor
= PCI_VENDOR_ID_ATI
,
2344 .subdevice
= 0x00f9,
2345 .card
= CX88_BOARD_ATI_WONDER_PRO
,
2347 .subvendor
= 0x107d,
2348 .subdevice
= 0x6611,
2349 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2351 .subvendor
= 0x107d,
2352 .subdevice
= 0x6613, /* NTSC */
2353 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
2355 .subvendor
= 0x107d,
2356 .subdevice
= 0x6620,
2357 .card
= CX88_BOARD_WINFAST_DV2000
,
2359 .subvendor
= 0x107d,
2360 .subdevice
= 0x663b,
2361 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2363 .subvendor
= 0x107d,
2364 .subdevice
= 0x663c,
2365 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2367 .subvendor
= 0x1461,
2368 .subdevice
= 0x000b,
2369 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
2371 .subvendor
= 0x1462,
2372 .subdevice
= 0x8606,
2373 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
2375 .subvendor
= 0x10fc,
2376 .subdevice
= 0xd003,
2377 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
2379 .subvendor
= 0x1043,
2380 .subdevice
= 0x4823, /* with mpeg encoder */
2381 .card
= CX88_BOARD_ASUS_PVR_416
,
2383 .subvendor
= 0x17de,
2384 .subdevice
= 0x08a6,
2385 .card
= CX88_BOARD_KWORLD_DVB_T
,
2387 .subvendor
= 0x18ac,
2388 .subdevice
= 0xd810,
2389 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2391 .subvendor
= 0x18ac,
2392 .subdevice
= 0xd820,
2393 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
2395 .subvendor
= 0x18ac,
2396 .subdevice
= 0xdb00,
2397 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
2399 .subvendor
= 0x0070,
2400 .subdevice
= 0x9002,
2401 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2403 .subvendor
= 0x14f1,
2404 .subdevice
= 0x0187,
2405 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
2407 .subvendor
= 0x1540,
2408 .subdevice
= 0x2580,
2409 .card
= CX88_BOARD_PROVIDEO_PV259
,
2411 .subvendor
= 0x18ac,
2412 .subdevice
= 0xdb10,
2413 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2415 .subvendor
= 0x1554,
2416 .subdevice
= 0x4811,
2417 .card
= CX88_BOARD_PIXELVIEW
,
2419 .subvendor
= 0x7063,
2420 .subdevice
= 0x3000, /* HD-3000 card */
2421 .card
= CX88_BOARD_PCHDTV_HD3000
,
2423 .subvendor
= 0x17de,
2424 .subdevice
= 0xa8a6,
2425 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
2427 .subvendor
= 0x0070,
2428 .subdevice
= 0x2801,
2429 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
2431 .subvendor
= 0x14f1,
2432 .subdevice
= 0x0342,
2433 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
2435 .subvendor
= 0x10fc,
2436 .subdevice
= 0xd035,
2437 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
2439 .subvendor
= 0x1421,
2440 .subdevice
= 0x0334,
2441 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
2443 .subvendor
= 0x153b,
2444 .subdevice
= 0x1166,
2445 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
2447 .subvendor
= 0x18ac,
2448 .subdevice
= 0xd500,
2449 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
2451 .subvendor
= 0x1461,
2452 .subdevice
= 0x8011,
2453 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
2455 .subvendor
= PCI_VENDOR_ID_ATI
,
2456 .subdevice
= 0xa101,
2457 .card
= CX88_BOARD_ATI_HDTVWONDER
,
2459 .subvendor
= 0x107d,
2460 .subdevice
= 0x665f,
2461 .card
= CX88_BOARD_WINFAST_DTV1000
,
2463 .subvendor
= 0x1461,
2464 .subdevice
= 0x000a,
2465 .card
= CX88_BOARD_AVERTV_303
,
2467 .subvendor
= 0x0070,
2468 .subdevice
= 0x9200,
2469 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
2471 .subvendor
= 0x0070,
2472 .subdevice
= 0x9201,
2473 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2475 .subvendor
= 0x0070,
2476 .subdevice
= 0x9202,
2477 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
2479 .subvendor
= 0x17de,
2480 .subdevice
= 0x08b2,
2481 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2483 .subvendor
= 0x0070,
2484 .subdevice
= 0x9400,
2485 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2487 .subvendor
= 0x0070,
2488 .subdevice
= 0x9402,
2489 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
2491 .subvendor
= 0x0070,
2492 .subdevice
= 0x9800,
2493 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2495 .subvendor
= 0x0070,
2496 .subdevice
= 0x9802,
2497 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
2499 .subvendor
= 0x0070,
2500 .subdevice
= 0x9001,
2501 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2503 .subvendor
= 0x1822,
2504 .subdevice
= 0x0025,
2505 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2507 .subvendor
= 0x17de,
2508 .subdevice
= 0x08a1,
2509 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2511 .subvendor
= 0x18ac,
2512 .subdevice
= 0xdb50,
2513 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2515 .subvendor
= 0x18ac,
2516 .subdevice
= 0xdb54,
2517 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
2518 /* Re-branded DViCO: DigitalNow DVB-T Dual */
2520 .subvendor
= 0x18ac,
2521 .subdevice
= 0xdb11,
2522 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
2523 /* Re-branded DViCO: UltraView DVB-T Plus */
2525 .subvendor
= 0x18ac,
2526 .subdevice
= 0xdb30,
2527 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
,
2529 .subvendor
= 0x17de,
2530 .subdevice
= 0x0840,
2531 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2533 .subvendor
= 0x1421,
2534 .subdevice
= 0x0305,
2535 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
2537 .subvendor
= 0x18ac,
2538 .subdevice
= 0xdb40,
2539 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2541 .subvendor
= 0x18ac,
2542 .subdevice
= 0xdb44,
2543 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
2545 .subvendor
= 0x7063,
2546 .subdevice
= 0x5500,
2547 .card
= CX88_BOARD_PCHDTV_HD5500
,
2549 .subvendor
= 0x17de,
2550 .subdevice
= 0x0841,
2551 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
2553 .subvendor
= 0x1822,
2554 .subdevice
= 0x0019,
2555 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
2557 .subvendor
= 0x1554,
2558 .subdevice
= 0x4813,
2559 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
2561 .subvendor
= 0x14f1,
2562 .subdevice
= 0x0842,
2563 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
2565 .subvendor
= 0x107d,
2566 .subdevice
= 0x665e,
2567 .card
= CX88_BOARD_WINFAST_DTV2000H
,
2569 .subvendor
= 0x107d,
2570 .subdevice
= 0x6f2b,
2571 .card
= CX88_BOARD_WINFAST_DTV2000H_J
,
2573 .subvendor
= 0x18ac,
2574 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
2575 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
2577 .subvendor
= 0x14f1,
2578 .subdevice
= 0x0084,
2579 .card
= CX88_BOARD_GENIATECH_DVBS
,
2581 .subvendor
= 0x0070,
2582 .subdevice
= 0x1404,
2583 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2585 .subvendor
= 0x18ac,
2586 .subdevice
= 0xdc00,
2587 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2589 .subvendor
= 0x18ac,
2590 .subdevice
= 0xdccd,
2591 .card
= CX88_BOARD_SAMSUNG_SMT_7020
,
2593 .subvendor
= 0x1461,
2594 .subdevice
= 0xc111, /* AverMedia M150-D */
2595 /* This board is known to work with the ASUS PVR416 config */
2596 .card
= CX88_BOARD_ASUS_PVR_416
,
2598 .subvendor
= 0xc180,
2599 .subdevice
= 0xc980,
2600 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
2602 .subvendor
= 0x0070,
2603 .subdevice
= 0x9600,
2604 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2606 .subvendor
= 0x0070,
2607 .subdevice
= 0x9601,
2608 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2610 .subvendor
= 0x0070,
2611 .subdevice
= 0x9602,
2612 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
2614 .subvendor
= 0x107d,
2615 .subdevice
= 0x6632,
2616 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2618 .subvendor
= 0x12ab,
2619 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
2620 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
2622 .subvendor
= 0x0070,
2623 .subdevice
= 0x9000,
2624 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
2626 .subvendor
= 0x0070,
2627 .subdevice
= 0x1400,
2628 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2630 .subvendor
= 0x0070,
2631 .subdevice
= 0x1401,
2632 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2634 .subvendor
= 0x0070,
2635 .subdevice
= 0x1402,
2636 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
2638 .subvendor
= 0x1421,
2639 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
2640 .card
= CX88_BOARD_KWORLD_DVBS_100
,
2642 .subvendor
= 0x1421,
2643 .subdevice
= 0x0390,
2644 .card
= CX88_BOARD_ADSTECH_PTV_390
,
2646 .subvendor
= 0x11bd,
2647 .subdevice
= 0x0051,
2648 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
2650 .subvendor
= 0x18ac,
2651 .subdevice
= 0xd530,
2652 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
2654 .subvendor
= 0x12ab,
2655 .subdevice
= 0x1788,
2656 .card
= CX88_BOARD_PINNACLE_HYBRID_PCTV
,
2658 .subvendor
= 0x14f1,
2659 .subdevice
= 0xea3d,
2660 .card
= CX88_BOARD_POWERCOLOR_REAL_ANGEL
,
2662 .subvendor
= 0x107d,
2663 .subdevice
= 0x6f18,
2664 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2666 .subvendor
= 0x14f1,
2667 .subdevice
= 0x8852,
2668 .card
= CX88_BOARD_GENIATECH_X8000_MT
,
2670 .subvendor
= 0x18ac,
2671 .subdevice
= 0xd610,
2672 .card
= CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
,
2674 .subvendor
= 0x1554,
2675 .subdevice
= 0x4935,
2676 .card
= CX88_BOARD_PROLINK_PV_8000GT
,
2678 .subvendor
= 0x1554,
2679 .subdevice
= 0x4976,
2680 .card
= CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
,
2682 .subvendor
= 0x17de,
2683 .subdevice
= 0x08c1,
2684 .card
= CX88_BOARD_KWORLD_ATSC_120
,
2686 .subvendor
= 0x0070,
2687 .subdevice
= 0x6900,
2688 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2690 .subvendor
= 0x0070,
2691 .subdevice
= 0x6904,
2692 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2694 .subvendor
= 0x0070,
2695 .subdevice
= 0x6902,
2696 .card
= CX88_BOARD_HAUPPAUGE_HVR4000
,
2698 .subvendor
= 0x0070,
2699 .subdevice
= 0x6905,
2700 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2702 .subvendor
= 0x0070,
2703 .subdevice
= 0x6906,
2704 .card
= CX88_BOARD_HAUPPAUGE_HVR4000LITE
,
2706 .subvendor
= 0xd420,
2707 .subdevice
= 0x9022,
2708 .card
= CX88_BOARD_TEVII_S420
,
2710 .subvendor
= 0xd460,
2711 .subdevice
= 0x9022,
2712 .card
= CX88_BOARD_TEVII_S460
,
2714 .subvendor
= 0xd464,
2715 .subdevice
= 0x9022,
2716 .card
= CX88_BOARD_TEVII_S464
,
2718 .subvendor
= 0xA044,
2719 .subdevice
= 0x2011,
2720 .card
= CX88_BOARD_OMICOM_SS4_PCI
,
2722 .subvendor
= 0x8910,
2723 .subdevice
= 0x8888,
2724 .card
= CX88_BOARD_TBS_8910
,
2726 .subvendor
= 0x8920,
2727 .subdevice
= 0x8888,
2728 .card
= CX88_BOARD_TBS_8920
,
2730 .subvendor
= 0xb022,
2731 .subdevice
= 0x3022,
2732 .card
= CX88_BOARD_PROF_6200
,
2734 .subvendor
= 0xB033,
2735 .subdevice
= 0x3033,
2736 .card
= CX88_BOARD_PROF_7300
,
2738 .subvendor
= 0xb200,
2739 .subdevice
= 0x4200,
2740 .card
= CX88_BOARD_SATTRADE_ST4200
,
2742 .subvendor
= 0x153b,
2743 .subdevice
= 0x1177,
2744 .card
= CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
,
2746 .subvendor
= 0x0070,
2747 .subdevice
= 0x9290,
2748 .card
= CX88_BOARD_HAUPPAUGE_IRONLY
,
2750 .subvendor
= 0x107d,
2751 .subdevice
= 0x6654,
2752 .card
= CX88_BOARD_WINFAST_DTV1800H
,
2754 /* WinFast DTV1800 H with XC4000 tuner */
2755 .subvendor
= 0x107d,
2756 .subdevice
= 0x6f38,
2757 .card
= CX88_BOARD_WINFAST_DTV1800H_XC4000
,
2759 .subvendor
= 0x107d,
2760 .subdevice
= 0x6f42,
2761 .card
= CX88_BOARD_WINFAST_DTV2000H_PLUS
,
2763 /* PVR2000 PAL Model [107d:6630] */
2764 .subvendor
= 0x107d,
2765 .subdevice
= 0x6630,
2766 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2768 /* PVR2000 PAL Model [107d:6638] */
2769 .subvendor
= 0x107d,
2770 .subdevice
= 0x6638,
2771 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2773 /* PVR2000 NTSC Model [107d:6631] */
2774 .subvendor
= 0x107d,
2775 .subdevice
= 0x6631,
2776 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2778 /* PVR2000 NTSC Model [107d:6637] */
2779 .subvendor
= 0x107d,
2780 .subdevice
= 0x6637,
2781 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2783 /* PVR2000 NTSC Model [107d:663d] */
2784 .subvendor
= 0x107d,
2785 .subdevice
= 0x663d,
2786 .card
= CX88_BOARD_LEADTEK_PVR2000
,
2788 /* DV2000 NTSC Model [107d:6621] */
2789 .subvendor
= 0x107d,
2790 .subdevice
= 0x6621,
2791 .card
= CX88_BOARD_WINFAST_DV2000
,
2793 /* TV2000 XP Global [107d:6618] */
2794 .subvendor
= 0x107d,
2795 .subdevice
= 0x6618,
2796 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2798 /* TV2000 XP Global [107d:6618] */
2799 .subvendor
= 0x107d,
2800 .subdevice
= 0x6619,
2801 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
,
2803 /* WinFast TV2000 XP Global with XC4000 tuner */
2804 .subvendor
= 0x107d,
2805 .subdevice
= 0x6f36,
2806 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
,
2808 /* WinFast TV2000 XP Global with XC4000 tuner and different GPIOs */
2809 .subvendor
= 0x107d,
2810 .subdevice
= 0x6f43,
2811 .card
= CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
,
2813 .subvendor
= 0xb034,
2814 .subdevice
= 0x3034,
2815 .card
= CX88_BOARD_PROF_7301
,
2817 .subvendor
= 0x1822,
2818 .subdevice
= 0x0023,
2819 .card
= CX88_BOARD_TWINHAN_VP1027_DVBS
,
2824 * some leadtek specific stuff
2826 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2828 if (eeprom_data
[4] != 0x7d ||
2829 eeprom_data
[5] != 0x10 ||
2830 eeprom_data
[7] != 0x66) {
2831 pr_warn("Leadtek eeprom invalid.\n");
2835 /* Terry Wu <terrywu2009@gmail.com> */
2836 switch (eeprom_data
[6]) {
2837 case 0x13: /* SSID 6613 for TV2000 XP Expert NTSC Model */
2838 case 0x21: /* SSID 6621 for DV2000 NTSC Model */
2839 case 0x31: /* SSID 6631 for PVR2000 NTSC Model */
2840 case 0x37: /* SSID 6637 for PVR2000 NTSC Model */
2841 case 0x3d: /* SSID 6637 for PVR2000 NTSC Model */
2842 core
->board
.tuner_type
= TUNER_PHILIPS_FM1236_MK3
;
2845 core
->board
.tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
;
2849 pr_info("Leadtek Winfast 2000XP Expert config: tuner=%d, eeprom[0]=0x%02x\n",
2850 core
->board
.tuner_type
, eeprom_data
[0]);
2853 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2857 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
2858 core
->board
.tuner_type
= tv
.tuner_type
;
2859 core
->tuner_formats
= tv
.tuner_formats
;
2860 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
2861 core
->model
= tv
.model
;
2863 /* Make sure we support the board model */
2865 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
2866 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
2867 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
2868 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
2869 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
2870 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
2871 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
2872 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
2873 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
2874 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
2875 case 34519: /* WinTV-PCI-FM */
2877 /* WinTV-HVR4000 (DVBS/S2/T, Video and IR, back panel inputs) */
2878 case 69100: /* WinTV-HVR4000LITE (DVBS/S2, IR) */
2879 case 69500: /* WinTV-HVR4000LITE (DVBS/S2, No IR) */
2881 /* WinTV-HVR4000 (DVBS/S2/T, Video no IR, back panel inputs) */
2882 case 69569: /* WinTV-HVR4000 (DVBS/S2/T, Video no IR) */
2883 case 90002: /* Nova-T-PCI (9002) */
2884 case 92001: /* Nova-S-Plus (Video and IR) */
2885 case 92002: /* Nova-S-Plus (Video and IR) */
2886 case 90003: /* Nova-T-PCI (9002 No RF out) */
2887 case 90500: /* Nova-T-PCI (oem) */
2888 case 90501: /* Nova-T-PCI (oem/IR) */
2889 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
2890 case 92900: /* WinTV-IROnly (No analog or digital Video inputs) */
2891 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
2892 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
2893 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
2894 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
2895 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
2896 case 96569: /* WinTV-HVR1300 () */
2897 case 96659: /* WinTV-HVR1300 () */
2898 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
2901 case CX88_BOARD_SAMSUNG_SMT_7020
:
2902 cx_set(MO_GP0_IO
, 0x008989FF);
2905 pr_warn("warning: unknown hauppauge model #%d\n", tv
.model
);
2909 pr_info("hauppauge eeprom: model=%d\n", tv
.model
);
2913 * some GDI (was: Modular Technology) specific stuff
2916 static const struct {
2921 [0x01] = { .id
= UNSET
,
2923 [0x02] = { .id
= UNSET
,
2925 [0x03] = { .id
= UNSET
,
2927 [0x04] = { .id
= UNSET
,
2929 [0x05] = { .id
= UNSET
,
2932 [0x10] = { .id
= UNSET
,
2934 .name
= "TEMIC_4049" },
2935 [0x11] = { .id
= TUNER_TEMIC_4136FY5
,
2936 .name
= "TEMIC_4136" },
2937 [0x12] = { .id
= UNSET
,
2938 .name
= "TEMIC_4146" },
2940 [0x20] = { .id
= TUNER_PHILIPS_FQ1216ME
,
2942 .name
= "PHILIPS_FQ1216_MK3" },
2943 [0x21] = { .id
= UNSET
, .fm
= 1,
2944 .name
= "PHILIPS_FQ1236_MK3" },
2945 [0x22] = { .id
= UNSET
,
2946 .name
= "PHILIPS_FI1236_MK3" },
2947 [0x23] = { .id
= UNSET
,
2948 .name
= "PHILIPS_FI1216_MK3" },
2951 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
2953 const char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
2954 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
2956 pr_info("GDI: tuner=%s\n", name
? name
: "unknown");
2959 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
2960 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
2965 * some Divco specific stuff
2967 static int cx88_dvico_xc2028_callback(struct cx88_core
*core
,
2968 int command
, int arg
)
2971 case XC2028_TUNER_RESET
:
2972 switch (core
->boardnr
) {
2973 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
2974 /* GPIO-4 xc3028 tuner */
2976 cx_set(MO_GP0_IO
, 0x00001000);
2977 cx_clear(MO_GP0_IO
, 0x00000010);
2979 cx_set(MO_GP0_IO
, 0x00000010);
2983 cx_write(MO_GP0_IO
, 0x101000);
2985 cx_set(MO_GP0_IO
, 0x101010);
2996 * some Geniatech specific stuff
2999 static int cx88_xc3028_geniatech_tuner_callback(struct cx88_core
*core
,
3000 int command
, int mode
)
3003 case XC2028_TUNER_RESET
:
3004 switch (INPUT(core
->input
).type
) {
3008 cx_write(MO_GP1_IO
, 0x030302);
3012 cx_write(MO_GP1_IO
, 0x030301);
3015 cx_write(MO_GP1_IO
, 0x101010);
3017 cx_write(MO_GP1_IO
, 0x101000);
3019 cx_write(MO_GP1_IO
, 0x101010);
3026 static int cx88_xc3028_winfast1800h_callback(struct cx88_core
*core
,
3027 int command
, int arg
)
3030 case XC2028_TUNER_RESET
:
3031 /* GPIO 12 (xc3028 tuner reset) */
3032 cx_set(MO_GP1_IO
, 0x1010);
3034 cx_clear(MO_GP1_IO
, 0x10);
3036 cx_set(MO_GP1_IO
, 0x10);
3043 static int cx88_xc4000_winfast2000h_plus_callback(struct cx88_core
*core
,
3044 int command
, int arg
)
3047 case XC4000_TUNER_RESET
:
3048 /* GPIO 12 (xc4000 tuner reset) */
3049 cx_set(MO_GP1_IO
, 0x1010);
3051 cx_clear(MO_GP1_IO
, 0x10);
3053 cx_set(MO_GP1_IO
, 0x10);
3061 * some Divco specific stuff
3063 static int cx88_pv_8000gt_callback(struct cx88_core
*core
,
3064 int command
, int arg
)
3067 case XC2028_TUNER_RESET
:
3068 cx_write(MO_GP2_IO
, 0xcf7);
3070 cx_write(MO_GP2_IO
, 0xef5);
3072 cx_write(MO_GP2_IO
, 0xcf7);
3082 * 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 pr_warn("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n",
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
,
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 */
3192 * djh - According to the engineer at PCTV Systems,
3193 * the xc5000 reset pin is supposed to be on GPIO12.
3194 * However, despite three nights of effort, pulling
3195 * that GPIO low didn't reset the xc5000. While
3196 * pulling MO_SRST_IO low does reset the xc5000, this
3197 * also resets in the s5h1409 being reset as well.
3198 * This causes tuning to always fail since the internal
3199 * state of the s5h1409 does not match the driver's
3200 * state. Given that the only two conditions in which
3201 * the driver performs a reset is during firmware load
3202 * and powering down the chip, I am taking out the
3203 * reset. We know that the chip is being reset
3204 * when the cx88 comes online, and not being able to
3205 * do power management for this board is worse than
3206 * not having any tuning at all.
3211 dprintk(1, "xc5000: unknown tuner callback command.\n");
3213 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3214 if (command
== 0) { /* This is the reset command from xc5000 */
3215 cx_clear(MO_GP0_IO
, 0x00000010);
3216 usleep_range(10000, 20000);
3217 cx_set(MO_GP0_IO
, 0x00000010);
3221 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 pr_err("Error - i2c private data undefined.\n");
3237 core
= i2c_algo
->data
;
3240 pr_err("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 pr_err("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 (!pci
->subsystem_vendor
&& !pci
->subsystem_device
) {
3271 pr_err("Your board has no valid PCI Subsystem ID and thus can't\n");
3272 pr_err("be autodetected. Please pass card=<n> insmod option to\n");
3273 pr_err("workaround that. Redirect complaints to the vendor of\n");
3274 pr_err("the TV card\n");
3276 pr_err("Your board isn't known (yet) to the driver. You can\n");
3277 pr_err("try to pick one of the existing card configs via\n");
3278 pr_err("card=<n> insmod option. Updating to the latest\n");
3279 pr_err("version might help as well.\n");
3281 pr_err("Here is a list of valid choices for the card=<n> insmod option:\n");
3282 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
3283 pr_err(" card=%d -> %s\n", i
, cx88_boards
[i
].name
);
3286 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
3288 switch (core
->boardnr
) {
3289 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3291 * Bring the 702 demod up before i2c scanning/attach or
3292 * devices are hidden.
3294 * We leave here with the 702 on the bus
3296 * "reset the IR receiver on GPIO[3]"
3297 * Reported by Mike Crash <mike AT mikecrash.com>
3299 cx_write(MO_GP0_IO
, 0x0000ef88);
3301 cx_clear(MO_GP0_IO
, 0x00000088);
3303 cx_set(MO_GP0_IO
, 0x00000088); /* 702 out of reset */
3307 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3308 case CX88_BOARD_PROLINK_PV_8000GT
:
3309 cx_write(MO_GP2_IO
, 0xcf7);
3311 cx_write(MO_GP2_IO
, 0xef5);
3313 cx_write(MO_GP2_IO
, 0xcf7);
3314 usleep_range(10000, 20000);
3317 case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD
:
3318 /* Enable the xc5000 tuner */
3319 cx_set(MO_GP0_IO
, 0x00001010);
3322 case CX88_BOARD_WINFAST_DTV2000H_J
:
3323 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3324 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3326 cx_write(MO_GP0_IO
, core
->board
.input
[0].gpio0
);
3328 cx_clear(MO_GP0_IO
, 0x00000080);
3330 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
3334 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3335 case CX88_BOARD_WINFAST_DTV1800H
:
3336 cx88_xc3028_winfast1800h_callback(core
, XC2028_TUNER_RESET
, 0);
3339 case CX88_BOARD_WINFAST_DTV1800H_XC4000
:
3340 case CX88_BOARD_WINFAST_DTV2000H_PLUS
:
3341 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36
:
3342 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43
:
3343 cx88_xc4000_winfast2000h_plus_callback(core
,
3344 XC4000_TUNER_RESET
, 0);
3347 case CX88_BOARD_TWINHAN_VP1027_DVBS
:
3348 cx_write(MO_GP0_IO
, 0x00003230);
3349 cx_write(MO_GP0_IO
, 0x00003210);
3350 usleep_range(10000, 20000);
3351 cx_write(MO_GP0_IO
, 0x00001230);
3357 * Sets board-dependent xc3028 configuration
3359 void cx88_setup_xc3028(struct cx88_core
*core
, struct xc2028_ctrl
*ctl
)
3361 memset(ctl
, 0, sizeof(*ctl
));
3363 ctl
->fname
= XC2028_DEFAULT_FIRMWARE
;
3366 switch (core
->boardnr
) {
3367 case CX88_BOARD_POWERCOLOR_REAL_ANGEL
:
3368 /* Now works with firmware version 2.7 */
3369 if (core
->i2c_algo
.udelay
< 16)
3370 core
->i2c_algo
.udelay
= 16;
3372 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3373 case CX88_BOARD_WINFAST_DTV1800H
:
3374 ctl
->demod
= XC3028_FE_ZARLINK456
;
3376 case CX88_BOARD_KWORLD_ATSC_120
:
3377 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
:
3378 ctl
->demod
= XC3028_FE_OREN538
;
3380 case CX88_BOARD_GENIATECH_X8000_MT
:
3382 * FIXME: For this board, the xc3028 never recovers after being
3383 * powered down (the reset GPIO probably is not set properly).
3384 * We don't have access to the hardware so we cannot determine
3385 * which GPIO is used for xc3028, so just disable power xc3028
3386 * power management for now
3388 ctl
->disable_power_mgmt
= 1;
3390 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL
:
3391 case CX88_BOARD_PROLINK_PV_GLOBAL_XTREME
:
3392 case CX88_BOARD_PROLINK_PV_8000GT
:
3394 * Those boards uses non-MTS firmware
3397 case CX88_BOARD_PINNACLE_HYBRID_PCTV
:
3398 case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII
:
3399 ctl
->demod
= XC3028_FE_ZARLINK456
;
3403 ctl
->demod
= XC3028_FE_OREN538
;
3407 EXPORT_SYMBOL_GPL(cx88_setup_xc3028
);
3409 static void cx88_card_setup(struct cx88_core
*core
)
3411 static u8 eeprom
[256];
3412 struct tuner_setup tun_setup
;
3413 unsigned int mode_mask
= T_RADIO
| T_ANALOG_TV
;
3415 memset(&tun_setup
, 0, sizeof(tun_setup
));
3417 if (!core
->i2c_rc
) {
3418 core
->i2c_client
.addr
= 0xa0 >> 1;
3419 tveeprom_read(&core
->i2c_client
, eeprom
, sizeof(eeprom
));
3422 switch (core
->boardnr
) {
3423 case CX88_BOARD_HAUPPAUGE
:
3424 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
3426 hauppauge_eeprom(core
, eeprom
+ 8);
3428 case CX88_BOARD_GDI
:
3430 gdi_eeprom(core
, eeprom
);
3432 case CX88_BOARD_LEADTEK_PVR2000
:
3433 case CX88_BOARD_WINFAST_DV2000
:
3434 case CX88_BOARD_WINFAST2000XP_EXPERT
:
3436 leadtek_eeprom(core
, eeprom
);
3438 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
3439 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
3440 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
3441 case CX88_BOARD_HAUPPAUGE_HVR1100
:
3442 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
3443 case CX88_BOARD_HAUPPAUGE_HVR3000
:
3444 case CX88_BOARD_HAUPPAUGE_HVR1300
:
3445 case CX88_BOARD_HAUPPAUGE_HVR4000
:
3446 case CX88_BOARD_HAUPPAUGE_HVR4000LITE
:
3447 case CX88_BOARD_HAUPPAUGE_IRONLY
:
3449 hauppauge_eeprom(core
, eeprom
);
3451 case CX88_BOARD_KWORLD_DVBS_100
:
3452 cx_write(MO_GP0_IO
, 0x000007f8);
3453 cx_write(MO_GP1_IO
, 0x00000001);
3455 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO
:
3456 /* GPIO0:0 is hooked to demod reset */
3457 /* GPIO0:4 is hooked to xc3028 reset */
3458 cx_write(MO_GP0_IO
, 0x00111100);
3459 usleep_range(10000, 20000);
3460 cx_write(MO_GP0_IO
, 0x00111111);
3462 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
3463 /* GPIO0:6 is hooked to FX2 reset pin */
3464 cx_set(MO_GP0_IO
, 0x00004040);
3465 cx_clear(MO_GP0_IO
, 0x00000040);
3467 cx_set(MO_GP0_IO
, 0x00004040);
3469 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
3470 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
3471 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
3472 /* GPIO0:0 is hooked to mt352 reset pin */
3473 cx_set(MO_GP0_IO
, 0x00000101);
3474 cx_clear(MO_GP0_IO
, 0x00000001);
3475 usleep_range(10000, 20000);
3476 cx_set(MO_GP0_IO
, 0x00000101);
3477 if (!core
->i2c_rc
&&
3478 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
3479 dvico_fusionhdtv_hybrid_init(core
);
3481 case CX88_BOARD_KWORLD_DVB_T
:
3482 case CX88_BOARD_DNTV_LIVE_DVB_T
:
3483 cx_set(MO_GP0_IO
, 0x00000707);
3484 cx_set(MO_GP2_IO
, 0x00000101);
3485 cx_clear(MO_GP2_IO
, 0x00000001);
3486 usleep_range(10000, 20000);
3487 cx_clear(MO_GP0_IO
, 0x00000007);
3488 cx_set(MO_GP2_IO
, 0x00000101);
3490 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
3491 cx_write(MO_GP0_IO
, 0x00080808);
3493 case CX88_BOARD_ATI_HDTVWONDER
:
3494 if (!core
->i2c_rc
) {
3497 static const u8 buffer
[][2] = {
3504 core
->i2c_client
.addr
= 0x0a;
3506 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
3507 if (i2c_master_send(&core
->i2c_client
,
3509 pr_warn("Unable to enable tuner(%i).\n",
3513 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
3515 struct v4l2_priv_tun_config tea5767_cfg
;
3516 struct tea5767_ctrl ctl
;
3518 memset(&ctl
, 0, sizeof(ctl
));
3523 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
3525 tea5767_cfg
.tuner
= TUNER_TEA5767
;
3526 tea5767_cfg
.priv
= &ctl
;
3528 call_all(core
, tuner
, s_config
, &tea5767_cfg
);
3531 case CX88_BOARD_TEVII_S420
:
3532 case CX88_BOARD_TEVII_S460
:
3533 case CX88_BOARD_TEVII_S464
:
3534 case CX88_BOARD_OMICOM_SS4_PCI
:
3535 case CX88_BOARD_TBS_8910
:
3536 case CX88_BOARD_TBS_8920
:
3537 case CX88_BOARD_PROF_6200
:
3538 case CX88_BOARD_PROF_7300
:
3539 case CX88_BOARD_PROF_7301
:
3540 case CX88_BOARD_SATTRADE_ST4200
:
3541 cx_write(MO_GP0_IO
, 0x8000);
3543 cx_write(MO_SRST_IO
, 0);
3544 usleep_range(10000, 20000);
3545 cx_write(MO_GP0_IO
, 0x8080);
3547 cx_write(MO_SRST_IO
, 1);
3553 if (core
->board
.radio_type
!= UNSET
) {
3554 tun_setup
.mode_mask
= T_RADIO
;
3555 tun_setup
.type
= core
->board
.radio_type
;
3556 tun_setup
.addr
= core
->board
.radio_addr
;
3557 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3558 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3559 mode_mask
&= ~T_RADIO
;
3562 if (core
->board
.tuner_type
!= UNSET
) {
3563 tun_setup
.mode_mask
= mode_mask
;
3564 tun_setup
.type
= core
->board
.tuner_type
;
3565 tun_setup
.addr
= core
->board
.tuner_addr
;
3566 tun_setup
.tuner_callback
= cx88_tuner_callback
;
3568 call_all(core
, tuner
, s_type_addr
, &tun_setup
);
3571 if (core
->board
.tda9887_conf
) {
3572 struct v4l2_priv_tun_config tda9887_cfg
;
3574 tda9887_cfg
.tuner
= TUNER_TDA9887
;
3575 tda9887_cfg
.priv
= &core
->board
.tda9887_conf
;
3577 call_all(core
, tuner
, s_config
, &tda9887_cfg
);
3580 if (core
->board
.tuner_type
== TUNER_XC2028
) {
3581 struct v4l2_priv_tun_config xc2028_cfg
;
3582 struct xc2028_ctrl ctl
;
3584 /* Fills device-dependent initialization parameters */
3585 cx88_setup_xc3028(core
, &ctl
);
3587 /* Sends parameters to xc2028/3028 tuner */
3588 memset(&xc2028_cfg
, 0, sizeof(xc2028_cfg
));
3589 xc2028_cfg
.tuner
= TUNER_XC2028
;
3590 xc2028_cfg
.priv
= &ctl
;
3591 dprintk(1, "Asking xc2028/3028 to load firmware %s\n",
3593 call_all(core
, tuner
, s_config
, &xc2028_cfg
);
3595 call_all(core
, core
, s_power
, 0);
3598 /* ------------------------------------------------------------------ */
3600 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
3602 unsigned int lat
= UNSET
;
3606 /* check pci quirks */
3607 if (pci_pci_problems
& PCIPCI_TRITON
) {
3608 pr_info("quirk: PCIPCI_TRITON -- set TBFX\n");
3609 ctrl
|= CX88X_EN_TBFX
;
3611 if (pci_pci_problems
& PCIPCI_NATOMA
) {
3612 pr_info("quirk: PCIPCI_NATOMA -- set TBFX\n");
3613 ctrl
|= CX88X_EN_TBFX
;
3615 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
3616 pr_info("quirk: PCIPCI_VIAETBF -- set TBFX\n");
3617 ctrl
|= CX88X_EN_TBFX
;
3619 if (pci_pci_problems
& PCIPCI_VSFX
) {
3620 pr_info("quirk: PCIPCI_VSFX -- set VSFX\n");
3621 ctrl
|= CX88X_EN_VSFX
;
3623 #ifdef PCIPCI_ALIMAGIK
3624 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
3625 pr_info("quirk: PCIPCI_ALIMAGIK -- latency fixup\n");
3630 /* check insmod options */
3631 if (latency
!= UNSET
)
3636 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
3638 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
3641 pr_info("setting pci latency timer to %d\n", latency
);
3642 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
3647 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
3649 if (request_mem_region(pci_resource_start(pci
, 0),
3650 pci_resource_len(pci
, 0),
3653 pr_err("func %d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
3654 PCI_FUNC(pci
->devfn
),
3655 (unsigned long long)pci_resource_start(pci
, 0),
3656 pci
->subsystem_vendor
, pci
->subsystem_device
);
3661 * Allocate and initialize the cx88 core struct. One should hold the
3662 * devlist mutex before calling this.
3664 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
3666 struct cx88_core
*core
;
3669 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
3673 atomic_inc(&core
->refcount
);
3674 core
->pci_bus
= pci
->bus
->number
;
3675 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
3676 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
3677 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
3678 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
3679 mutex_init(&core
->lock
);
3682 sprintf(core
->name
, "cx88[%d]", core
->nr
);
3684 core
->tvnorm
= V4L2_STD_NTSC_M
;
3687 core
->field
= V4L2_FIELD_INTERLACED
;
3689 strcpy(core
->v4l2_dev
.name
, core
->name
);
3690 if (v4l2_device_register(NULL
, &core
->v4l2_dev
)) {
3695 if (v4l2_ctrl_handler_init(&core
->video_hdl
, 13)) {
3696 v4l2_device_unregister(&core
->v4l2_dev
);
3701 if (v4l2_ctrl_handler_init(&core
->audio_hdl
, 13)) {
3702 v4l2_ctrl_handler_free(&core
->video_hdl
);
3703 v4l2_device_unregister(&core
->v4l2_dev
);
3708 if (cx88_get_resources(core
, pci
) != 0) {
3709 v4l2_ctrl_handler_free(&core
->video_hdl
);
3710 v4l2_ctrl_handler_free(&core
->audio_hdl
);
3711 v4l2_device_unregister(&core
->v4l2_dev
);
3717 cx88_pci_quirks(core
->name
, pci
);
3718 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
3719 pci_resource_len(pci
, 0));
3720 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
3723 release_mem_region(pci_resource_start(pci
, 0),
3724 pci_resource_len(pci
, 0));
3725 v4l2_ctrl_handler_free(&core
->video_hdl
);
3726 v4l2_ctrl_handler_free(&core
->audio_hdl
);
3727 v4l2_device_unregister(&core
->v4l2_dev
);
3733 core
->boardnr
= UNSET
;
3734 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
3735 core
->boardnr
= card
[core
->nr
];
3736 for (i
= 0; core
->boardnr
== UNSET
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
3737 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
3738 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
3739 core
->boardnr
= cx88_subids
[i
].card
;
3740 if (core
->boardnr
== UNSET
) {
3741 core
->boardnr
= CX88_BOARD_UNKNOWN
;
3742 cx88_card_list(core
, pci
);
3745 core
->board
= cx88_boards
[core
->boardnr
];
3747 if (!core
->board
.num_frontends
&& (core
->board
.mpeg
& CX88_MPEG_DVB
))
3748 core
->board
.num_frontends
= 1;
3750 pr_info("subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n",
3751 pci
->subsystem_vendor
, pci
->subsystem_device
, core
->board
.name
,
3752 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
3753 "insmod option" : "autodetected",
3754 core
->board
.num_frontends
);
3756 if (tuner
[core
->nr
] != UNSET
)
3757 core
->board
.tuner_type
= tuner
[core
->nr
];
3758 if (radio
[core
->nr
] != UNSET
)
3759 core
->board
.radio_type
= radio
[core
->nr
];
3761 dprintk(1, "TV tuner type %d, Radio tuner type %d\n",
3762 core
->board
.tuner_type
, core
->board
.radio_type
);
3766 cx88_card_setup_pre_i2c(core
);
3767 cx88_i2c_init(core
, pci
);
3769 /* load tuner module, if needed */
3770 if (core
->board
.tuner_type
!= UNSET
) {
3772 * Ignore 0x6b and 0x6f on cx88 boards.
3773 * FusionHDTV5 RT Gold has an ir receiver at 0x6b
3774 * and an RTC at 0x6f which can get corrupted if probed.
3776 static const unsigned short tv_addrs
[] = {
3777 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
3778 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
3779 0x68, 0x69, 0x6a, 0x6c, 0x6d, 0x6e,
3782 int has_demod
= (core
->board
.tda9887_conf
& TDA9887_PRESENT
);
3785 * I don't trust the radio_type as is stored in the card
3786 * definitions, so we just probe for it.
3787 * The radio_type is sometimes missing, or set to UNSET but
3788 * later code configures a tea5767.
3790 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3792 v4l2_i2c_tuner_addrs(ADDRS_RADIO
));
3794 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3795 &core
->i2c_adap
, "tuner",
3796 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD
));
3797 if (core
->board
.tuner_addr
== ADDR_UNSET
) {
3798 v4l2_i2c_new_subdev(&core
->v4l2_dev
,
3799 &core
->i2c_adap
, "tuner",
3800 0, has_demod
? tv_addrs
+ 4 : tv_addrs
);
3802 v4l2_i2c_new_subdev(&core
->v4l2_dev
, &core
->i2c_adap
,
3803 "tuner", core
->board
.tuner_addr
,
3808 cx88_card_setup(core
);
3810 cx88_i2c_init_ir(core
);
3811 cx88_ir_init(core
, pci
);