3 * device driver for Conexant 2388x based TV cards
6 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <linux/init.h>
24 #include <linux/module.h>
25 #include <linux/pci.h>
26 #include <linux/delay.h>
30 #include "tuner-xc2028.h"
32 static unsigned int tuner
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
33 static unsigned int radio
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
34 static unsigned int card
[] = {[0 ... (CX88_MAXBOARDS
- 1)] = UNSET
};
36 module_param_array(tuner
, int, NULL
, 0444);
37 module_param_array(radio
, int, NULL
, 0444);
38 module_param_array(card
, int, NULL
, 0444);
40 MODULE_PARM_DESC(tuner
,"tuner type");
41 MODULE_PARM_DESC(radio
,"radio tuner type");
42 MODULE_PARM_DESC(card
,"card type");
44 static unsigned int latency
= UNSET
;
45 module_param(latency
,int,0444);
46 MODULE_PARM_DESC(latency
,"pci latency timer");
48 /* ------------------------------------------------------------------ */
49 /* board config info */
51 static const struct cx88_board cx88_boards
[] = {
52 [CX88_BOARD_UNKNOWN
] = {
53 .name
= "UNKNOWN/GENERIC",
56 .tuner_addr
= ADDR_UNSET
,
57 .radio_addr
= ADDR_UNSET
,
59 .type
= CX88_VMUX_COMPOSITE1
,
62 .type
= CX88_VMUX_COMPOSITE2
,
65 .type
= CX88_VMUX_COMPOSITE3
,
68 .type
= CX88_VMUX_COMPOSITE4
,
72 [CX88_BOARD_HAUPPAUGE
] = {
73 .name
= "Hauppauge WinTV 34xxx models",
76 .tuner_addr
= ADDR_UNSET
,
77 .radio_addr
= ADDR_UNSET
,
78 .tda9887_conf
= TDA9887_PRESENT
,
80 .type
= CX88_VMUX_TELEVISION
,
82 .gpio0
= 0xff00, // internal decoder
84 .type
= CX88_VMUX_DEBUG
,
86 .gpio0
= 0xff01, // mono from tuner chip
88 .type
= CX88_VMUX_COMPOSITE1
,
92 .type
= CX88_VMUX_SVIDEO
,
102 .name
= "GDI Black Gold",
105 .tuner_addr
= ADDR_UNSET
,
106 .radio_addr
= ADDR_UNSET
,
108 .type
= CX88_VMUX_TELEVISION
,
111 .type
= CX88_VMUX_SVIDEO
,
115 [CX88_BOARD_PIXELVIEW
] = {
117 .tuner_type
= TUNER_PHILIPS_PAL
,
119 .tuner_addr
= ADDR_UNSET
,
120 .radio_addr
= ADDR_UNSET
,
122 .type
= CX88_VMUX_TELEVISION
,
124 .gpio0
= 0xff00, // internal decoder
126 .type
= CX88_VMUX_COMPOSITE1
,
129 .type
= CX88_VMUX_SVIDEO
,
137 [CX88_BOARD_ATI_WONDER_PRO
] = {
138 .name
= "ATI TV Wonder Pro",
139 .tuner_type
= TUNER_PHILIPS_4IN1
,
141 .tuner_addr
= ADDR_UNSET
,
142 .radio_addr
= ADDR_UNSET
,
143 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER
,
145 .type
= CX88_VMUX_TELEVISION
,
149 .type
= CX88_VMUX_COMPOSITE1
,
153 .type
= CX88_VMUX_SVIDEO
,
158 [CX88_BOARD_WINFAST2000XP_EXPERT
] = {
159 .name
= "Leadtek Winfast 2000XP Expert",
160 .tuner_type
= TUNER_PHILIPS_4IN1
,
162 .tuner_addr
= ADDR_UNSET
,
163 .radio_addr
= ADDR_UNSET
,
164 .tda9887_conf
= TDA9887_PRESENT
,
166 .type
= CX88_VMUX_TELEVISION
,
173 .type
= CX88_VMUX_COMPOSITE1
,
180 .type
= CX88_VMUX_SVIDEO
,
195 [CX88_BOARD_AVERTV_STUDIO_303
] = {
196 .name
= "AverTV Studio 303 (M126)",
197 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
199 .tuner_addr
= ADDR_UNSET
,
200 .radio_addr
= ADDR_UNSET
,
201 .tda9887_conf
= TDA9887_PRESENT
,
203 .type
= CX88_VMUX_TELEVISION
,
207 .type
= CX88_VMUX_COMPOSITE1
,
211 .type
= CX88_VMUX_SVIDEO
,
220 [CX88_BOARD_MSI_TVANYWHERE_MASTER
] = {
221 // added gpio values thanks to Michal
222 // values for PAL from DScaler
223 .name
= "MSI TV-@nywhere Master",
224 .tuner_type
= TUNER_MT2032
,
226 .tuner_addr
= ADDR_UNSET
,
227 .radio_addr
= ADDR_UNSET
,
228 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_INTERCARRIER_NTSC
,
230 .type
= CX88_VMUX_TELEVISION
,
236 .type
= CX88_VMUX_COMPOSITE1
,
242 .type
= CX88_VMUX_SVIDEO
,
256 [CX88_BOARD_WINFAST_DV2000
] = {
257 .name
= "Leadtek Winfast DV2000",
258 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
260 .tuner_addr
= ADDR_UNSET
,
261 .radio_addr
= ADDR_UNSET
,
262 .tda9887_conf
= TDA9887_PRESENT
,
264 .type
= CX88_VMUX_TELEVISION
,
272 .type
= CX88_VMUX_COMPOSITE1
,
279 .type
= CX88_VMUX_SVIDEO
,
294 [CX88_BOARD_LEADTEK_PVR2000
] = {
295 // gpio values for PAL version from regspy by DScaler
296 .name
= "Leadtek PVR 2000",
297 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
299 .tuner_addr
= ADDR_UNSET
,
300 .radio_addr
= ADDR_UNSET
,
301 .tda9887_conf
= TDA9887_PRESENT
,
303 .type
= CX88_VMUX_TELEVISION
,
308 .type
= CX88_VMUX_COMPOSITE1
,
313 .type
= CX88_VMUX_SVIDEO
,
323 .mpeg
= CX88_MPEG_BLACKBIRD
,
325 [CX88_BOARD_IODATA_GVVCP3PCI
] = {
326 .name
= "IODATA GV-VCP3/PCI",
327 .tuner_type
= TUNER_ABSENT
,
329 .tuner_addr
= ADDR_UNSET
,
330 .radio_addr
= ADDR_UNSET
,
332 .type
= CX88_VMUX_COMPOSITE1
,
335 .type
= CX88_VMUX_COMPOSITE2
,
338 .type
= CX88_VMUX_SVIDEO
,
342 [CX88_BOARD_PROLINK_PLAYTVPVR
] = {
343 .name
= "Prolink PlayTV PVR",
344 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
346 .tuner_addr
= ADDR_UNSET
,
347 .radio_addr
= ADDR_UNSET
,
348 .tda9887_conf
= TDA9887_PRESENT
,
350 .type
= CX88_VMUX_TELEVISION
,
354 .type
= CX88_VMUX_COMPOSITE1
,
358 .type
= CX88_VMUX_SVIDEO
,
367 [CX88_BOARD_ASUS_PVR_416
] = {
368 .name
= "ASUS PVR-416",
369 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
371 .tuner_addr
= ADDR_UNSET
,
372 .radio_addr
= ADDR_UNSET
,
373 .tda9887_conf
= TDA9887_PRESENT
,
375 .type
= CX88_VMUX_TELEVISION
,
379 .type
= CX88_VMUX_SVIDEO
,
381 .gpio0
= 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
388 .mpeg
= CX88_MPEG_BLACKBIRD
,
390 [CX88_BOARD_MSI_TVANYWHERE
] = {
391 .name
= "MSI TV-@nywhere",
392 .tuner_type
= TUNER_MT2032
,
394 .tuner_addr
= ADDR_UNSET
,
395 .radio_addr
= ADDR_UNSET
,
396 .tda9887_conf
= TDA9887_PRESENT
,
398 .type
= CX88_VMUX_TELEVISION
,
403 .type
= CX88_VMUX_COMPOSITE1
,
408 .type
= CX88_VMUX_SVIDEO
,
414 [CX88_BOARD_KWORLD_DVB_T
] = {
415 .name
= "KWorld/VStream XPert DVB-T",
416 .tuner_type
= TUNER_ABSENT
,
418 .tuner_addr
= ADDR_UNSET
,
419 .radio_addr
= ADDR_UNSET
,
421 .type
= CX88_VMUX_COMPOSITE1
,
426 .type
= CX88_VMUX_SVIDEO
,
431 .mpeg
= CX88_MPEG_DVB
,
433 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
] = {
434 .name
= "DViCO FusionHDTV DVB-T1",
435 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
437 .tuner_addr
= ADDR_UNSET
,
438 .radio_addr
= ADDR_UNSET
,
440 .type
= CX88_VMUX_COMPOSITE1
,
444 .type
= CX88_VMUX_SVIDEO
,
448 .mpeg
= CX88_MPEG_DVB
,
450 [CX88_BOARD_KWORLD_LTV883
] = {
451 .name
= "KWorld LTV883RF",
452 .tuner_type
= TUNER_TNF_8831BGFF
,
454 .tuner_addr
= ADDR_UNSET
,
455 .radio_addr
= ADDR_UNSET
,
457 .type
= CX88_VMUX_TELEVISION
,
461 .type
= CX88_VMUX_DEBUG
,
463 .gpio0
= 0x07f9, // mono from tuner chip
465 .type
= CX88_VMUX_COMPOSITE1
,
469 .type
= CX88_VMUX_SVIDEO
,
478 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
] = {
479 .name
= "DViCO FusionHDTV 3 Gold-Q",
480 .tuner_type
= TUNER_MICROTUNE_4042FI5
,
482 .tuner_addr
= ADDR_UNSET
,
483 .radio_addr
= ADDR_UNSET
,
485 GPIO[0] resets DT3302 DTV receiver
488 GPIO[1] mutes analog audio output connector
489 0 - enable selected source
491 GPIO[2] selects source for analog audio output connector
492 0 - analog audio input connector on tab
493 1 - analog DAC output from CX23881 chip
494 GPIO[3] selects RF input connector on tuner module
495 0 - RF connector labeled CABLE
496 1 - RF connector labeled ANT
497 GPIO[4] selects high RF for QAM256 mode
502 .type
= CX88_VMUX_TELEVISION
,
506 .type
= CX88_VMUX_CABLE
,
510 .type
= CX88_VMUX_COMPOSITE1
,
514 .type
= CX88_VMUX_SVIDEO
,
518 .mpeg
= CX88_MPEG_DVB
,
520 [CX88_BOARD_HAUPPAUGE_DVB_T1
] = {
521 .name
= "Hauppauge Nova-T DVB-T",
522 .tuner_type
= TUNER_ABSENT
,
524 .tuner_addr
= ADDR_UNSET
,
525 .radio_addr
= ADDR_UNSET
,
527 .type
= CX88_VMUX_DVB
,
530 .mpeg
= CX88_MPEG_DVB
,
532 [CX88_BOARD_CONEXANT_DVB_T1
] = {
533 .name
= "Conexant DVB-T reference design",
534 .tuner_type
= TUNER_ABSENT
,
536 .tuner_addr
= ADDR_UNSET
,
537 .radio_addr
= ADDR_UNSET
,
539 .type
= CX88_VMUX_DVB
,
542 .mpeg
= CX88_MPEG_DVB
,
544 [CX88_BOARD_PROVIDEO_PV259
] = {
545 .name
= "Provideo PV259",
546 .tuner_type
= TUNER_PHILIPS_FQ1216ME
,
548 .tuner_addr
= ADDR_UNSET
,
549 .radio_addr
= ADDR_UNSET
,
551 .type
= CX88_VMUX_TELEVISION
,
555 .mpeg
= CX88_MPEG_BLACKBIRD
,
557 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
] = {
558 .name
= "DViCO FusionHDTV DVB-T Plus",
559 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
561 .tuner_addr
= ADDR_UNSET
,
562 .radio_addr
= ADDR_UNSET
,
564 .type
= CX88_VMUX_COMPOSITE1
,
568 .type
= CX88_VMUX_SVIDEO
,
572 .mpeg
= CX88_MPEG_DVB
,
574 [CX88_BOARD_DNTV_LIVE_DVB_T
] = {
575 .name
= "digitalnow DNTV Live! DVB-T",
576 .tuner_type
= TUNER_ABSENT
,
578 .tuner_addr
= ADDR_UNSET
,
579 .radio_addr
= ADDR_UNSET
,
581 .type
= CX88_VMUX_COMPOSITE1
,
586 .type
= CX88_VMUX_SVIDEO
,
591 .mpeg
= CX88_MPEG_DVB
,
593 [CX88_BOARD_PCHDTV_HD3000
] = {
594 .name
= "pcHDTV HD3000 HDTV",
595 .tuner_type
= TUNER_THOMSON_DTT761X
,
597 .tuner_addr
= ADDR_UNSET
,
598 .radio_addr
= ADDR_UNSET
,
599 .tda9887_conf
= TDA9887_PRESENT
,
600 /* GPIO[2] = audio source for analog audio out connector
601 * 0 = analog audio input connector
602 * 1 = CX88 audio DACs
604 * GPIO[7] = input to CX88's audio/chroma ADC
606 * 1 = Sound 4.5 MHz IF
608 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
610 * GPIO[16] = Remote control input
613 .type
= CX88_VMUX_TELEVISION
,
617 .type
= CX88_VMUX_COMPOSITE1
,
621 .type
= CX88_VMUX_SVIDEO
,
629 .mpeg
= CX88_MPEG_DVB
,
631 [CX88_BOARD_HAUPPAUGE_ROSLYN
] = {
632 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
633 // GPIO values obtained from regspy, courtesy Sean Covel
634 .name
= "Hauppauge WinTV 28xxx (Roslyn) models",
637 .tuner_addr
= ADDR_UNSET
,
638 .radio_addr
= ADDR_UNSET
,
640 .type
= CX88_VMUX_TELEVISION
,
645 .type
= CX88_VMUX_DEBUG
,
649 .type
= CX88_VMUX_COMPOSITE1
,
653 .type
= CX88_VMUX_SVIDEO
,
663 .mpeg
= CX88_MPEG_BLACKBIRD
,
665 [CX88_BOARD_DIGITALLOGIC_MEC
] = {
666 .name
= "Digital-Logic MICROSPACE Entertainment Center (MEC)",
667 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
669 .tuner_addr
= ADDR_UNSET
,
670 .radio_addr
= ADDR_UNSET
,
671 .tda9887_conf
= TDA9887_PRESENT
,
673 .type
= CX88_VMUX_TELEVISION
,
678 .type
= CX88_VMUX_COMPOSITE1
,
683 .type
= CX88_VMUX_SVIDEO
,
693 .mpeg
= CX88_MPEG_BLACKBIRD
,
695 [CX88_BOARD_IODATA_GVBCTV7E
] = {
696 .name
= "IODATA GV/BCTV7E",
697 .tuner_type
= TUNER_PHILIPS_FQ1286
,
699 .tuner_addr
= ADDR_UNSET
,
700 .radio_addr
= ADDR_UNSET
,
701 .tda9887_conf
= TDA9887_PRESENT
,
703 .type
= CX88_VMUX_TELEVISION
,
707 .type
= CX88_VMUX_COMPOSITE1
,
711 .type
= CX88_VMUX_SVIDEO
,
716 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO
] = {
717 .name
= "PixelView PlayTV Ultra Pro (Stereo)",
718 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
719 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
721 .tuner_addr
= ADDR_UNSET
,
722 .radio_addr
= ADDR_UNSET
,
724 .type
= CX88_VMUX_TELEVISION
,
726 .gpio0
= 0xbf61, /* internal decoder */
728 .type
= CX88_VMUX_COMPOSITE1
,
732 .type
= CX88_VMUX_SVIDEO
,
741 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
] = {
742 .name
= "DViCO FusionHDTV 3 Gold-T",
743 .tuner_type
= TUNER_THOMSON_DTT761X
,
745 .tuner_addr
= ADDR_UNSET
,
746 .radio_addr
= ADDR_UNSET
,
747 .tda9887_conf
= TDA9887_PRESENT
,
749 .type
= CX88_VMUX_TELEVISION
,
753 .type
= CX88_VMUX_COMPOSITE1
,
757 .type
= CX88_VMUX_SVIDEO
,
761 .mpeg
= CX88_MPEG_DVB
,
763 [CX88_BOARD_ADSTECH_DVB_T_PCI
] = {
764 .name
= "ADS Tech Instant TV DVB-T PCI",
765 .tuner_type
= TUNER_ABSENT
,
767 .tuner_addr
= ADDR_UNSET
,
768 .radio_addr
= ADDR_UNSET
,
770 .type
= CX88_VMUX_COMPOSITE1
,
775 .type
= CX88_VMUX_SVIDEO
,
780 .mpeg
= CX88_MPEG_DVB
,
782 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
] = {
783 .name
= "TerraTec Cinergy 1400 DVB-T",
784 .tuner_type
= TUNER_ABSENT
,
786 .type
= CX88_VMUX_DVB
,
789 .type
= CX88_VMUX_COMPOSITE1
,
792 .type
= CX88_VMUX_SVIDEO
,
795 .mpeg
= CX88_MPEG_DVB
,
797 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
] = {
798 .name
= "DViCO FusionHDTV 5 Gold",
799 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H062F */
801 .tuner_addr
= ADDR_UNSET
,
802 .radio_addr
= ADDR_UNSET
,
803 .tda9887_conf
= TDA9887_PRESENT
,
805 .type
= CX88_VMUX_TELEVISION
,
809 .type
= CX88_VMUX_COMPOSITE1
,
813 .type
= CX88_VMUX_SVIDEO
,
817 .mpeg
= CX88_MPEG_DVB
,
819 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
] = {
820 .name
= "AverMedia UltraTV Media Center PCI 550",
821 .tuner_type
= TUNER_PHILIPS_FM1236_MK3
,
823 .tuner_addr
= ADDR_UNSET
,
824 .radio_addr
= ADDR_UNSET
,
825 .tda9887_conf
= TDA9887_PRESENT
,
827 .type
= CX88_VMUX_COMPOSITE1
,
832 .type
= CX88_VMUX_SVIDEO
,
837 .type
= CX88_VMUX_TELEVISION
,
848 .mpeg
= CX88_MPEG_BLACKBIRD
,
850 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD
] = {
851 /* Alexander Wold <awold@bigfoot.com> */
852 .name
= "Kworld V-Stream Xpert DVD",
855 .type
= CX88_VMUX_COMPOSITE1
,
862 .type
= CX88_VMUX_SVIDEO
,
870 [CX88_BOARD_ATI_HDTVWONDER
] = {
871 .name
= "ATI HDTV Wonder",
872 .tuner_type
= TUNER_PHILIPS_TUV1236D
,
874 .tuner_addr
= ADDR_UNSET
,
875 .radio_addr
= ADDR_UNSET
,
877 .type
= CX88_VMUX_TELEVISION
,
884 .type
= CX88_VMUX_COMPOSITE1
,
891 .type
= CX88_VMUX_SVIDEO
,
898 .mpeg
= CX88_MPEG_DVB
,
900 [CX88_BOARD_WINFAST_DTV1000
] = {
901 .name
= "WinFast DTV1000-T",
902 .tuner_type
= TUNER_ABSENT
,
904 .tuner_addr
= ADDR_UNSET
,
905 .radio_addr
= ADDR_UNSET
,
907 .type
= CX88_VMUX_DVB
,
910 .type
= CX88_VMUX_COMPOSITE1
,
913 .type
= CX88_VMUX_SVIDEO
,
916 .mpeg
= CX88_MPEG_DVB
,
918 [CX88_BOARD_AVERTV_303
] = {
919 .name
= "AVerTV 303 (M126)",
920 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
922 .tuner_addr
= ADDR_UNSET
,
923 .radio_addr
= ADDR_UNSET
,
924 .tda9887_conf
= TDA9887_PRESENT
,
926 .type
= CX88_VMUX_TELEVISION
,
933 .type
= CX88_VMUX_COMPOSITE1
,
940 .type
= CX88_VMUX_SVIDEO
,
948 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
] = {
949 .name
= "Hauppauge Nova-S-Plus DVB-S",
950 .tuner_type
= TUNER_ABSENT
,
952 .tuner_addr
= ADDR_UNSET
,
953 .radio_addr
= ADDR_UNSET
,
955 .type
= CX88_VMUX_DVB
,
958 .type
= CX88_VMUX_COMPOSITE1
,
961 .type
= CX88_VMUX_SVIDEO
,
964 .mpeg
= CX88_MPEG_DVB
,
966 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1
] = {
967 .name
= "Hauppauge Nova-SE2 DVB-S",
968 .tuner_type
= TUNER_ABSENT
,
970 .tuner_addr
= ADDR_UNSET
,
971 .radio_addr
= ADDR_UNSET
,
973 .type
= CX88_VMUX_DVB
,
976 .mpeg
= CX88_MPEG_DVB
,
978 [CX88_BOARD_KWORLD_DVBS_100
] = {
979 .name
= "KWorld DVB-S 100",
980 .tuner_type
= TUNER_ABSENT
,
982 .tuner_addr
= ADDR_UNSET
,
983 .radio_addr
= ADDR_UNSET
,
985 .type
= CX88_VMUX_DVB
,
988 .type
= CX88_VMUX_COMPOSITE1
,
991 .type
= CX88_VMUX_SVIDEO
,
994 .mpeg
= CX88_MPEG_DVB
,
996 [CX88_BOARD_HAUPPAUGE_HVR1100
] = {
997 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
998 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1000 .tuner_addr
= ADDR_UNSET
,
1001 .radio_addr
= ADDR_UNSET
,
1002 .tda9887_conf
= TDA9887_PRESENT
,
1004 .type
= CX88_VMUX_TELEVISION
,
1007 .type
= CX88_VMUX_COMPOSITE1
,
1010 .type
= CX88_VMUX_SVIDEO
,
1013 /* fixme: Add radio support */
1014 .mpeg
= CX88_MPEG_DVB
,
1016 [CX88_BOARD_HAUPPAUGE_HVR1100LP
] = {
1017 .name
= "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
1018 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1019 .radio_type
= UNSET
,
1020 .tuner_addr
= ADDR_UNSET
,
1021 .radio_addr
= ADDR_UNSET
,
1022 .tda9887_conf
= TDA9887_PRESENT
,
1024 .type
= CX88_VMUX_TELEVISION
,
1027 .type
= CX88_VMUX_COMPOSITE1
,
1030 /* fixme: Add radio support */
1031 .mpeg
= CX88_MPEG_DVB
,
1033 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO
] = {
1034 .name
= "digitalnow DNTV Live! DVB-T Pro",
1035 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1036 .radio_type
= UNSET
,
1037 .tuner_addr
= ADDR_UNSET
,
1038 .radio_addr
= ADDR_UNSET
,
1039 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1040 TDA9887_PORT2_ACTIVE
,
1042 .type
= CX88_VMUX_TELEVISION
,
1046 .type
= CX88_VMUX_COMPOSITE1
,
1050 .type
= CX88_VMUX_SVIDEO
,
1058 .mpeg
= CX88_MPEG_DVB
,
1060 [CX88_BOARD_KWORLD_DVB_T_CX22702
] = {
1061 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1062 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1063 /* Manenti Marco <marco_manenti@colman.it> */
1064 .name
= "KWorld/VStream XPert DVB-T with cx22702",
1065 .tuner_type
= TUNER_ABSENT
,
1066 .radio_type
= UNSET
,
1067 .tuner_addr
= ADDR_UNSET
,
1068 .radio_addr
= ADDR_UNSET
,
1070 .type
= CX88_VMUX_COMPOSITE1
,
1075 .type
= CX88_VMUX_SVIDEO
,
1080 .mpeg
= CX88_MPEG_DVB
,
1082 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
] = {
1083 .name
= "DViCO FusionHDTV DVB-T Dual Digital",
1084 .tuner_type
= TUNER_ABSENT
, /* No analog tuner */
1085 .radio_type
= UNSET
,
1086 .tuner_addr
= ADDR_UNSET
,
1087 .radio_addr
= ADDR_UNSET
,
1089 .type
= CX88_VMUX_COMPOSITE1
,
1091 .gpio0
= 0x000067df,
1093 .type
= CX88_VMUX_SVIDEO
,
1095 .gpio0
= 0x000067df,
1097 .mpeg
= CX88_MPEG_DVB
,
1099 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
] = {
1100 .name
= "KWorld HardwareMpegTV XPert",
1101 .tuner_type
= TUNER_PHILIPS_TDA8290
,
1102 .radio_type
= UNSET
,
1103 .tuner_addr
= ADDR_UNSET
,
1104 .radio_addr
= ADDR_UNSET
,
1106 .type
= CX88_VMUX_TELEVISION
,
1111 .type
= CX88_VMUX_COMPOSITE1
,
1116 .type
= CX88_VMUX_SVIDEO
,
1126 .mpeg
= CX88_MPEG_BLACKBIRD
,
1128 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
] = {
1129 .name
= "DViCO FusionHDTV DVB-T Hybrid",
1130 .tuner_type
= TUNER_THOMSON_FE6600
,
1131 .radio_type
= UNSET
,
1132 .tuner_addr
= ADDR_UNSET
,
1133 .radio_addr
= ADDR_UNSET
,
1135 .type
= CX88_VMUX_TELEVISION
,
1137 .gpio0
= 0x0000a75f,
1139 .type
= CX88_VMUX_COMPOSITE1
,
1141 .gpio0
= 0x0000a75b,
1143 .type
= CX88_VMUX_SVIDEO
,
1145 .gpio0
= 0x0000a75b,
1147 .mpeg
= CX88_MPEG_DVB
,
1149 [CX88_BOARD_PCHDTV_HD5500
] = {
1150 .name
= "pcHDTV HD5500 HDTV",
1151 .tuner_type
= TUNER_LG_TDVS_H06XF
, /* TDVS-H064F */
1152 .radio_type
= UNSET
,
1153 .tuner_addr
= ADDR_UNSET
,
1154 .radio_addr
= ADDR_UNSET
,
1155 .tda9887_conf
= TDA9887_PRESENT
,
1157 .type
= CX88_VMUX_TELEVISION
,
1161 .type
= CX88_VMUX_COMPOSITE1
,
1165 .type
= CX88_VMUX_SVIDEO
,
1169 .mpeg
= CX88_MPEG_DVB
,
1171 [CX88_BOARD_KWORLD_MCE200_DELUXE
] = {
1172 /* FIXME: tested TV input only, disabled composite,
1173 svideo and radio until they can be tested also. */
1174 .name
= "Kworld MCE 200 Deluxe",
1175 .tuner_type
= TUNER_TENA_9533_DI
,
1176 .radio_type
= UNSET
,
1177 .tda9887_conf
= TDA9887_PRESENT
,
1178 .tuner_addr
= ADDR_UNSET
,
1179 .radio_addr
= ADDR_UNSET
,
1181 .type
= CX88_VMUX_TELEVISION
,
1185 .mpeg
= CX88_MPEG_BLACKBIRD
,
1187 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000
] = {
1188 /* FIXME: SVideo, Composite and FM inputs are untested */
1189 .name
= "PixelView PlayTV P7000",
1190 .tuner_type
= TUNER_PHILIPS_FM1216ME_MK3
,
1191 .radio_type
= UNSET
,
1192 .tuner_addr
= ADDR_UNSET
,
1193 .radio_addr
= ADDR_UNSET
,
1194 .tda9887_conf
= TDA9887_PRESENT
| TDA9887_PORT1_ACTIVE
|
1195 TDA9887_PORT2_ACTIVE
,
1197 .type
= CX88_VMUX_TELEVISION
,
1201 .mpeg
= CX88_MPEG_BLACKBIRD
,
1203 [CX88_BOARD_NPGTECH_REALTV_TOP10FM
] = {
1204 .name
= "NPG Tech Real TV FM Top 10",
1205 .tuner_type
= TUNER_TNF_5335MF
, /* Actually a TNF9535 */
1206 .radio_type
= UNSET
,
1207 .tuner_addr
= ADDR_UNSET
,
1208 .radio_addr
= ADDR_UNSET
,
1210 .type
= CX88_VMUX_TELEVISION
,
1214 .type
= CX88_VMUX_COMPOSITE1
,
1218 .type
= CX88_VMUX_SVIDEO
,
1227 [CX88_BOARD_WINFAST_DTV2000H
] = {
1228 /* video inputs and radio still in testing */
1229 .name
= "WinFast DTV2000 H",
1230 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1231 .radio_type
= UNSET
,
1232 .tuner_addr
= ADDR_UNSET
,
1233 .radio_addr
= ADDR_UNSET
,
1234 .tda9887_conf
= TDA9887_PRESENT
,
1236 .type
= CX88_VMUX_TELEVISION
,
1238 .gpio0
= 0x00017304,
1239 .gpio1
= 0x00008203,
1240 .gpio2
= 0x00017304,
1241 .gpio3
= 0x02000000,
1243 .mpeg
= CX88_MPEG_DVB
,
1245 [CX88_BOARD_GENIATECH_DVBS
] = {
1246 .name
= "Geniatech DVB-S",
1247 .tuner_type
= TUNER_ABSENT
,
1248 .radio_type
= UNSET
,
1249 .tuner_addr
= ADDR_UNSET
,
1250 .radio_addr
= ADDR_UNSET
,
1252 .type
= CX88_VMUX_DVB
,
1255 .type
= CX88_VMUX_COMPOSITE1
,
1258 .mpeg
= CX88_MPEG_DVB
,
1260 [CX88_BOARD_HAUPPAUGE_HVR3000
] = {
1261 /* FIXME: Add dvb & radio support */
1262 .name
= "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1263 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1264 .radio_type
= UNSET
,
1265 .tuner_addr
= ADDR_UNSET
,
1266 .radio_addr
= ADDR_UNSET
,
1267 .tda9887_conf
= TDA9887_PRESENT
,
1269 .type
= CX88_VMUX_TELEVISION
,
1273 .type
= CX88_VMUX_COMPOSITE1
,
1277 .type
= CX88_VMUX_SVIDEO
,
1281 .mpeg
= CX88_MPEG_DVB
,
1283 [CX88_BOARD_NORWOOD_MICRO
] = {
1284 .name
= "Norwood Micro TV Tuner",
1285 .tuner_type
= TUNER_TNF_5335MF
,
1286 .radio_type
= UNSET
,
1287 .tuner_addr
= ADDR_UNSET
,
1288 .radio_addr
= ADDR_UNSET
,
1290 .type
= CX88_VMUX_TELEVISION
,
1294 .type
= CX88_VMUX_COMPOSITE1
,
1298 .type
= CX88_VMUX_SVIDEO
,
1303 [CX88_BOARD_TE_DTV_250_OEM_SWANN
] = {
1304 .name
= "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1305 .tuner_type
= TUNER_LG_PAL_NEW_TAPC
,
1306 .radio_type
= UNSET
,
1307 .tuner_addr
= ADDR_UNSET
,
1308 .radio_addr
= ADDR_UNSET
,
1310 .type
= CX88_VMUX_TELEVISION
,
1312 .gpio0
= 0x003fffff,
1313 .gpio1
= 0x00e00000,
1314 .gpio2
= 0x003fffff,
1315 .gpio3
= 0x02000000,
1317 .type
= CX88_VMUX_COMPOSITE1
,
1319 .gpio0
= 0x003fffff,
1320 .gpio1
= 0x00e00000,
1321 .gpio2
= 0x003fffff,
1322 .gpio3
= 0x02000000,
1324 .type
= CX88_VMUX_SVIDEO
,
1326 .gpio0
= 0x003fffff,
1327 .gpio1
= 0x00e00000,
1328 .gpio2
= 0x003fffff,
1329 .gpio3
= 0x02000000,
1332 [CX88_BOARD_HAUPPAUGE_HVR1300
] = {
1333 .name
= "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1334 .tuner_type
= TUNER_PHILIPS_FMD1216ME_MK3
,
1335 .radio_type
= UNSET
,
1336 .tuner_addr
= ADDR_UNSET
,
1337 .radio_addr
= ADDR_UNSET
,
1338 .tda9887_conf
= TDA9887_PRESENT
,
1339 .audio_chip
= AUDIO_CHIP_WM8775
,
1341 .type
= CX88_VMUX_TELEVISION
,
1346 .type
= CX88_VMUX_COMPOSITE1
,
1351 .type
= CX88_VMUX_SVIDEO
,
1356 /* fixme: Add radio support */
1357 .mpeg
= CX88_MPEG_DVB
| CX88_MPEG_BLACKBIRD
,
1359 [CX88_BOARD_ADSTECH_PTV_390
] = {
1360 .name
= "ADS Tech Instant Video PCI",
1361 .tuner_type
= TUNER_ABSENT
,
1362 .radio_type
= UNSET
,
1363 .tuner_addr
= ADDR_UNSET
,
1364 .radio_addr
= ADDR_UNSET
,
1366 .type
= CX88_VMUX_DEBUG
,
1370 .type
= CX88_VMUX_COMPOSITE1
,
1374 .type
= CX88_VMUX_SVIDEO
,
1379 [CX88_BOARD_PINNACLE_PCTV_HD_800i
] = {
1380 .name
= "Pinnacle PCTV HD 800i",
1381 .tuner_type
= TUNER_XC5000
,
1382 .radio_type
= UNSET
,
1383 .tuner_addr
= ADDR_UNSET
,
1384 .radio_addr
= ADDR_UNSET
,
1386 .type
= CX88_VMUX_TELEVISION
,
1391 .type
= CX88_VMUX_COMPOSITE1
,
1397 .type
= CX88_VMUX_SVIDEO
,
1403 .mpeg
= CX88_MPEG_DVB
,
1405 [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
] = {
1406 .name
= "DViCO FusionHDTV 5 PCI nano",
1407 /* xc3008 tuner, digital only for now */
1408 .tuner_type
= TUNER_ABSENT
,
1409 .radio_type
= UNSET
,
1410 .tuner_addr
= ADDR_UNSET
,
1411 .radio_addr
= ADDR_UNSET
,
1413 .type
= CX88_VMUX_TELEVISION
,
1415 .gpio0
= 0x000027df, /* Unconfirmed */
1417 .type
= CX88_VMUX_COMPOSITE1
,
1419 .gpio0
= 0x000027df, /* Unconfirmed */
1422 .type
= CX88_VMUX_SVIDEO
,
1424 .gpio0
= 0x000027df, /* Unconfirmed */
1427 .mpeg
= CX88_MPEG_DVB
,
1431 /* ------------------------------------------------------------------ */
1432 /* PCI subsystem IDs */
1434 static const struct cx88_subid cx88_subids
[] = {
1436 .subvendor
= 0x0070,
1437 .subdevice
= 0x3400,
1438 .card
= CX88_BOARD_HAUPPAUGE
,
1440 .subvendor
= 0x0070,
1441 .subdevice
= 0x3401,
1442 .card
= CX88_BOARD_HAUPPAUGE
,
1444 .subvendor
= 0x14c7,
1445 .subdevice
= 0x0106,
1446 .card
= CX88_BOARD_GDI
,
1448 .subvendor
= 0x14c7,
1449 .subdevice
= 0x0107, /* with mpeg encoder */
1450 .card
= CX88_BOARD_GDI
,
1452 .subvendor
= PCI_VENDOR_ID_ATI
,
1453 .subdevice
= 0x00f8,
1454 .card
= CX88_BOARD_ATI_WONDER_PRO
,
1456 .subvendor
= 0x107d,
1457 .subdevice
= 0x6611,
1458 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1460 .subvendor
= 0x107d,
1461 .subdevice
= 0x6613, /* NTSC */
1462 .card
= CX88_BOARD_WINFAST2000XP_EXPERT
,
1464 .subvendor
= 0x107d,
1465 .subdevice
= 0x6620,
1466 .card
= CX88_BOARD_WINFAST_DV2000
,
1468 .subvendor
= 0x107d,
1469 .subdevice
= 0x663b,
1470 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1472 .subvendor
= 0x107d,
1473 .subdevice
= 0x663c,
1474 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1476 .subvendor
= 0x1461,
1477 .subdevice
= 0x000b,
1478 .card
= CX88_BOARD_AVERTV_STUDIO_303
,
1480 .subvendor
= 0x1462,
1481 .subdevice
= 0x8606,
1482 .card
= CX88_BOARD_MSI_TVANYWHERE_MASTER
,
1484 .subvendor
= 0x10fc,
1485 .subdevice
= 0xd003,
1486 .card
= CX88_BOARD_IODATA_GVVCP3PCI
,
1488 .subvendor
= 0x1043,
1489 .subdevice
= 0x4823, /* with mpeg encoder */
1490 .card
= CX88_BOARD_ASUS_PVR_416
,
1492 .subvendor
= 0x17de,
1493 .subdevice
= 0x08a6,
1494 .card
= CX88_BOARD_KWORLD_DVB_T
,
1496 .subvendor
= 0x18ac,
1497 .subdevice
= 0xd810,
1498 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1500 .subvendor
= 0x18ac,
1501 .subdevice
= 0xd820,
1502 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T
,
1504 .subvendor
= 0x18ac,
1505 .subdevice
= 0xdb00,
1506 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
,
1508 .subvendor
= 0x0070,
1509 .subdevice
= 0x9002,
1510 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1512 .subvendor
= 0x14f1,
1513 .subdevice
= 0x0187,
1514 .card
= CX88_BOARD_CONEXANT_DVB_T1
,
1516 .subvendor
= 0x1540,
1517 .subdevice
= 0x2580,
1518 .card
= CX88_BOARD_PROVIDEO_PV259
,
1520 .subvendor
= 0x18ac,
1521 .subdevice
= 0xdb10,
1522 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1524 .subvendor
= 0x1554,
1525 .subdevice
= 0x4811,
1526 .card
= CX88_BOARD_PIXELVIEW
,
1528 .subvendor
= 0x7063,
1529 .subdevice
= 0x3000, /* HD-3000 card */
1530 .card
= CX88_BOARD_PCHDTV_HD3000
,
1532 .subvendor
= 0x17de,
1533 .subdevice
= 0xa8a6,
1534 .card
= CX88_BOARD_DNTV_LIVE_DVB_T
,
1536 .subvendor
= 0x0070,
1537 .subdevice
= 0x2801,
1538 .card
= CX88_BOARD_HAUPPAUGE_ROSLYN
,
1540 .subvendor
= 0x14f1,
1541 .subdevice
= 0x0342,
1542 .card
= CX88_BOARD_DIGITALLOGIC_MEC
,
1544 .subvendor
= 0x10fc,
1545 .subdevice
= 0xd035,
1546 .card
= CX88_BOARD_IODATA_GVBCTV7E
,
1548 .subvendor
= 0x1421,
1549 .subdevice
= 0x0334,
1550 .card
= CX88_BOARD_ADSTECH_DVB_T_PCI
,
1552 .subvendor
= 0x153b,
1553 .subdevice
= 0x1166,
1554 .card
= CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1
,
1556 .subvendor
= 0x18ac,
1557 .subdevice
= 0xd500,
1558 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD
,
1560 .subvendor
= 0x1461,
1561 .subdevice
= 0x8011,
1562 .card
= CX88_BOARD_AVERMEDIA_ULTRATV_MC_550
,
1564 .subvendor
= PCI_VENDOR_ID_ATI
,
1565 .subdevice
= 0xa101,
1566 .card
= CX88_BOARD_ATI_HDTVWONDER
,
1568 .subvendor
= 0x107d,
1569 .subdevice
= 0x665f,
1570 .card
= CX88_BOARD_WINFAST_DTV1000
,
1572 .subvendor
= 0x1461,
1573 .subdevice
= 0x000a,
1574 .card
= CX88_BOARD_AVERTV_303
,
1576 .subvendor
= 0x0070,
1577 .subdevice
= 0x9200,
1578 .card
= CX88_BOARD_HAUPPAUGE_NOVASE2_S1
,
1580 .subvendor
= 0x0070,
1581 .subdevice
= 0x9201,
1582 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1584 .subvendor
= 0x0070,
1585 .subdevice
= 0x9202,
1586 .card
= CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
,
1588 .subvendor
= 0x17de,
1589 .subdevice
= 0x08b2,
1590 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1592 .subvendor
= 0x0070,
1593 .subdevice
= 0x9400,
1594 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1596 .subvendor
= 0x0070,
1597 .subdevice
= 0x9402,
1598 .card
= CX88_BOARD_HAUPPAUGE_HVR1100
,
1600 .subvendor
= 0x0070,
1601 .subdevice
= 0x9800,
1602 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1604 .subvendor
= 0x0070,
1605 .subdevice
= 0x9802,
1606 .card
= CX88_BOARD_HAUPPAUGE_HVR1100LP
,
1608 .subvendor
= 0x0070,
1609 .subdevice
= 0x9001,
1610 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1612 .subvendor
= 0x1822,
1613 .subdevice
= 0x0025,
1614 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1616 .subvendor
= 0x17de,
1617 .subdevice
= 0x08a1,
1618 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1620 .subvendor
= 0x18ac,
1621 .subdevice
= 0xdb50,
1622 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1624 .subvendor
= 0x18ac,
1625 .subdevice
= 0xdb54,
1626 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
,
1627 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1629 .subvendor
= 0x18ac,
1630 .subdevice
= 0xdb11,
1631 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
,
1632 /* Re-branded DViCO: UltraView DVB-T Plus */
1634 .subvendor
= 0x17de,
1635 .subdevice
= 0x0840,
1636 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1638 .subvendor
= 0x1421,
1639 .subdevice
= 0x0305,
1640 .card
= CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT
,
1642 .subvendor
= 0x18ac,
1643 .subdevice
= 0xdb40,
1644 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1646 .subvendor
= 0x18ac,
1647 .subdevice
= 0xdb44,
1648 .card
= CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
,
1650 .subvendor
= 0x7063,
1651 .subdevice
= 0x5500,
1652 .card
= CX88_BOARD_PCHDTV_HD5500
,
1654 .subvendor
= 0x17de,
1655 .subdevice
= 0x0841,
1656 .card
= CX88_BOARD_KWORLD_MCE200_DELUXE
,
1658 .subvendor
= 0x1822,
1659 .subdevice
= 0x0019,
1660 .card
= CX88_BOARD_DNTV_LIVE_DVB_T_PRO
,
1662 .subvendor
= 0x1554,
1663 .subdevice
= 0x4813,
1664 .card
= CX88_BOARD_PIXELVIEW_PLAYTV_P7000
,
1666 .subvendor
= 0x14f1,
1667 .subdevice
= 0x0842,
1668 .card
= CX88_BOARD_NPGTECH_REALTV_TOP10FM
,
1670 .subvendor
= 0x107d,
1671 .subdevice
= 0x665e,
1672 .card
= CX88_BOARD_WINFAST_DTV2000H
,
1674 .subvendor
= 0x18ac,
1675 .subdevice
= 0xd800, /* FusionHDTV 3 Gold (original revision) */
1676 .card
= CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q
,
1678 .subvendor
= 0x14f1,
1679 .subdevice
= 0x0084,
1680 .card
= CX88_BOARD_GENIATECH_DVBS
,
1682 .subvendor
= 0x0070,
1683 .subdevice
= 0x1404,
1684 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1686 .subvendor
= 0x1461,
1687 .subdevice
= 0xc111, /* AverMedia M150-D */
1688 /* This board is known to work with the ASUS PVR416 config */
1689 .card
= CX88_BOARD_ASUS_PVR_416
,
1691 .subvendor
= 0xc180,
1692 .subdevice
= 0xc980,
1693 .card
= CX88_BOARD_TE_DTV_250_OEM_SWANN
,
1695 .subvendor
= 0x0070,
1696 .subdevice
= 0x9600,
1697 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1699 .subvendor
= 0x0070,
1700 .subdevice
= 0x9601,
1701 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1703 .subvendor
= 0x0070,
1704 .subdevice
= 0x9602,
1705 .card
= CX88_BOARD_HAUPPAUGE_HVR1300
,
1707 .subvendor
= 0x107d,
1708 .subdevice
= 0x6632,
1709 .card
= CX88_BOARD_LEADTEK_PVR2000
,
1711 .subvendor
= 0x12ab,
1712 .subdevice
= 0x2300, /* Club3D Zap TV2100 */
1713 .card
= CX88_BOARD_KWORLD_DVB_T_CX22702
,
1715 .subvendor
= 0x0070,
1716 .subdevice
= 0x9000,
1717 .card
= CX88_BOARD_HAUPPAUGE_DVB_T1
,
1719 .subvendor
= 0x0070,
1720 .subdevice
= 0x1400,
1721 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1723 .subvendor
= 0x0070,
1724 .subdevice
= 0x1401,
1725 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1727 .subvendor
= 0x0070,
1728 .subdevice
= 0x1402,
1729 .card
= CX88_BOARD_HAUPPAUGE_HVR3000
,
1731 .subvendor
= 0x1421,
1732 .subdevice
= 0x0341, /* ADS Tech InstantTV DVB-S */
1733 .card
= CX88_BOARD_KWORLD_DVBS_100
,
1735 .subvendor
= 0x1421,
1736 .subdevice
= 0x0390,
1737 .card
= CX88_BOARD_ADSTECH_PTV_390
,
1739 .subvendor
= 0x11bd,
1740 .subdevice
= 0x0051,
1741 .card
= CX88_BOARD_PINNACLE_PCTV_HD_800i
,
1743 .subvendor
= 0x18ac,
1744 .subdevice
= 0xd530,
1745 .card
= CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO
,
1749 /* ----------------------------------------------------------------------- */
1750 /* some leadtek specific stuff */
1752 static void leadtek_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1754 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1757 * Byte 0 is 1 on the NTSC board.
1760 if (eeprom_data
[4] != 0x7d ||
1761 eeprom_data
[5] != 0x10 ||
1762 eeprom_data
[7] != 0x66) {
1763 printk(KERN_WARNING
"%s: Leadtek eeprom invalid.\n",
1768 core
->board
.tuner_type
= (eeprom_data
[6] == 0x13) ?
1769 TUNER_PHILIPS_FM1236_MK3
: TUNER_PHILIPS_FM1216ME_MK3
;
1771 printk(KERN_INFO
"%s: Leadtek Winfast 2000XP Expert config: "
1772 "tuner=%d, eeprom[0]=0x%02x\n",
1773 core
->name
, core
->board
.tuner_type
, eeprom_data
[0]);
1776 static void hauppauge_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1780 tveeprom_hauppauge_analog(&core
->i2c_client
, &tv
, eeprom_data
);
1781 core
->board
.tuner_type
= tv
.tuner_type
;
1782 core
->tuner_formats
= tv
.tuner_formats
;
1783 core
->board
.radio
.type
= tv
.has_radio
? CX88_RADIO
: 0;
1785 /* Make sure we support the board model */
1788 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1789 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1790 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1791 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1792 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1793 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
1794 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
1795 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1796 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
1797 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1798 case 34519: /* WinTV-PCI-FM */
1799 case 90002: /* Nova-T-PCI (9002) */
1800 case 92001: /* Nova-S-Plus (Video and IR) */
1801 case 92002: /* Nova-S-Plus (Video and IR) */
1802 case 90003: /* Nova-T-PCI (9002 No RF out) */
1803 case 90500: /* Nova-T-PCI (oem) */
1804 case 90501: /* Nova-T-PCI (oem/IR) */
1805 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1806 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1807 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1808 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1809 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1810 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1811 case 96569: /* WinTV-HVR1300 () */
1812 case 96659: /* WinTV-HVR1300 () */
1813 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1817 printk("%s: warning: unknown hauppauge model #%d\n",
1818 core
->name
, tv
.model
);
1822 printk(KERN_INFO
"%s: hauppauge eeprom: model=%d\n",
1823 core
->name
, tv
.model
);
1826 /* ----------------------------------------------------------------------- */
1827 /* some GDI (was: Modular Technology) specific stuff */
1834 [ 0x01 ] = { .id
= TUNER_ABSENT
,
1836 [ 0x02 ] = { .id
= TUNER_ABSENT
,
1838 [ 0x03 ] = { .id
= TUNER_ABSENT
,
1840 [ 0x04 ] = { .id
= TUNER_ABSENT
,
1842 [ 0x05 ] = { .id
= TUNER_ABSENT
,
1845 [ 0x10 ] = { .id
= TUNER_ABSENT
,
1847 .name
= "TEMIC_4049" },
1848 [ 0x11 ] = { .id
= TUNER_TEMIC_4136FY5
,
1849 .name
= "TEMIC_4136" },
1850 [ 0x12 ] = { .id
= TUNER_ABSENT
,
1851 .name
= "TEMIC_4146" },
1853 [ 0x20 ] = { .id
= TUNER_PHILIPS_FQ1216ME
,
1855 .name
= "PHILIPS_FQ1216_MK3" },
1856 [ 0x21 ] = { .id
= TUNER_ABSENT
, .fm
= 1,
1857 .name
= "PHILIPS_FQ1236_MK3" },
1858 [ 0x22 ] = { .id
= TUNER_ABSENT
,
1859 .name
= "PHILIPS_FI1236_MK3" },
1860 [ 0x23 ] = { .id
= TUNER_ABSENT
,
1861 .name
= "PHILIPS_FI1216_MK3" },
1864 static void gdi_eeprom(struct cx88_core
*core
, u8
*eeprom_data
)
1866 char *name
= (eeprom_data
[0x0d] < ARRAY_SIZE(gdi_tuner
))
1867 ? gdi_tuner
[eeprom_data
[0x0d]].name
: NULL
;
1869 printk(KERN_INFO
"%s: GDI: tuner=%s\n", core
->name
,
1870 name
? name
: "unknown");
1873 core
->board
.tuner_type
= gdi_tuner
[eeprom_data
[0x0d]].id
;
1874 core
->board
.radio
.type
= gdi_tuner
[eeprom_data
[0x0d]].fm
?
1878 /* ----------------------------------------------------------------------- */
1879 /* some DViCO specific stuff */
1881 static void dvico_fusionhdtv_hybrid_init(struct cx88_core
*core
)
1883 struct i2c_msg msg
= { .addr
= 0x45, .flags
= 0 };
1885 static u8 init_bufs
[13][5] = {
1886 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1887 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1888 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1889 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1890 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1891 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1892 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1893 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1894 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1895 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1896 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1897 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1901 for (i
= 0; i
< ARRAY_SIZE(init_bufs
); i
++) {
1902 msg
.buf
= init_bufs
[i
];
1903 msg
.len
= (i
!= 12 ? 5 : 2);
1904 err
= i2c_transfer(&core
->i2c_adap
, &msg
, 1);
1906 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i
, err
);
1912 static int cx88_xc2028_tuner_callback(void *priv
, int command
, int arg
)
1914 struct i2c_algo_bit_data
*i2c_algo
= priv
;
1915 struct cx88_core
*core
= i2c_algo
->data
;
1918 case XC2028_TUNER_RESET
:
1920 switch (INPUT(core
->input
).type
) {
1922 printk(KERN_INFO
"setting GPIO to radio!\n");
1923 cx_write(MO_GP0_IO
, 0x4ff);
1925 cx_write(MO_GP2_IO
, 0xff);
1927 cx_write(MO_GP1_IO
, 0x101010);
1929 cx_write(MO_GP1_IO
, 0x101000);
1931 cx_write(MO_GP1_IO
, 0x101010);
1934 case CX88_VMUX_DVB
: /* Digital TV*/
1935 default: /* Analog TV */
1936 printk(KERN_INFO
"setting GPIO to TV!\n");
1937 cx_write(MO_GP1_IO
, 0x101010);
1939 cx_write(MO_GP1_IO
, 0x101000);
1941 cx_write(MO_GP1_IO
, 0x101010);
1950 /* ----------------------------------------------------------------------- */
1951 /* Tuner callback function. Currently only needed for the Pinnacle *
1952 * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both *
1953 * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */
1955 static int cx88_xc5000_tuner_callback(void *priv
, int command
, int arg
)
1957 struct i2c_algo_bit_data
*i2c_algo
= priv
;
1958 struct cx88_core
*core
= i2c_algo
->data
;
1960 switch (core
->boardnr
) {
1961 case CX88_BOARD_PINNACLE_PCTV_HD_800i
:
1962 if (command
== 0) { /* This is the reset command from xc5000 */
1963 /* Reset XC5000 tuner via SYS_RSTO_pin */
1964 cx_write(MO_SRST_IO
, 0);
1966 cx_write(MO_SRST_IO
, 1);
1970 "xc5000: unknown tuner callback command.\n");
1975 return 0; /* Should never be here */
1978 int cx88_tuner_callback(void *priv
, int command
, int arg
)
1980 struct i2c_algo_bit_data
*i2c_algo
= priv
;
1981 struct cx88_core
*core
= i2c_algo
->data
;
1983 switch (core
->board
.tuner_type
) {
1985 return cx88_xc2028_tuner_callback(priv
, command
, arg
);
1987 return cx88_xc5000_tuner_callback(priv
, command
, arg
);
1991 EXPORT_SYMBOL(cx88_tuner_callback
);
1993 /* ----------------------------------------------------------------------- */
1995 static void cx88_card_list(struct cx88_core
*core
, struct pci_dev
*pci
)
1999 if (0 == pci
->subsystem_vendor
&&
2000 0 == pci
->subsystem_device
) {
2001 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
2002 "%s: be autodetected. Please pass card=<n> insmod option to\n"
2003 "%s: workaround that. Redirect complaints to the vendor of\n"
2004 "%s: the TV card. Best regards,\n"
2006 core
->name
,core
->name
,core
->name
,core
->name
,core
->name
);
2008 printk("%s: Your board isn't known (yet) to the driver. You can\n"
2009 "%s: try to pick one of the existing card configs via\n"
2010 "%s: card=<n> insmod option. Updating to the latest\n"
2011 "%s: version might help as well.\n",
2012 core
->name
,core
->name
,core
->name
,core
->name
);
2014 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
2016 for (i
= 0; i
< ARRAY_SIZE(cx88_boards
); i
++)
2017 printk("%s: card=%d -> %s\n",
2018 core
->name
, i
, cx88_boards
[i
].name
);
2021 static void cx88_card_setup_pre_i2c(struct cx88_core
*core
)
2023 switch (core
->boardnr
) {
2024 case CX88_BOARD_HAUPPAUGE_HVR1300
:
2025 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
2026 /* We leave here with the 702 on the bus */
2027 cx_write(MO_GP0_IO
, 0x0000e780);
2029 cx_clear(MO_GP0_IO
, 0x00000080);
2031 cx_set(MO_GP0_IO
, 0x00000080); /* 702 out of reset */
2037 static void cx88_card_setup(struct cx88_core
*core
)
2039 static u8 eeprom
[256];
2041 if (0 == core
->i2c_rc
) {
2042 core
->i2c_client
.addr
= 0xa0 >> 1;
2043 tveeprom_read(&core
->i2c_client
,eeprom
,sizeof(eeprom
));
2046 switch (core
->boardnr
) {
2047 case CX88_BOARD_HAUPPAUGE
:
2048 case CX88_BOARD_HAUPPAUGE_ROSLYN
:
2049 if (0 == core
->i2c_rc
)
2050 hauppauge_eeprom(core
,eeprom
+8);
2052 case CX88_BOARD_GDI
:
2053 if (0 == core
->i2c_rc
)
2054 gdi_eeprom(core
,eeprom
);
2056 case CX88_BOARD_WINFAST2000XP_EXPERT
:
2057 if (0 == core
->i2c_rc
)
2058 leadtek_eeprom(core
,eeprom
);
2060 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1
:
2061 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1
:
2062 case CX88_BOARD_HAUPPAUGE_DVB_T1
:
2063 case CX88_BOARD_HAUPPAUGE_HVR1100
:
2064 case CX88_BOARD_HAUPPAUGE_HVR1100LP
:
2065 case CX88_BOARD_HAUPPAUGE_HVR3000
:
2066 case CX88_BOARD_HAUPPAUGE_HVR1300
:
2067 if (0 == core
->i2c_rc
)
2068 hauppauge_eeprom(core
,eeprom
);
2070 case CX88_BOARD_KWORLD_DVBS_100
:
2071 cx_write(MO_GP0_IO
, 0x000007f8);
2072 cx_write(MO_GP1_IO
, 0x00000001);
2074 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL
:
2075 /* GPIO0:6 is hooked to FX2 reset pin */
2076 cx_set(MO_GP0_IO
, 0x00004040);
2077 cx_clear(MO_GP0_IO
, 0x00000040);
2079 cx_set(MO_GP0_IO
, 0x00004040);
2081 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1
:
2082 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS
:
2083 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
:
2084 /* GPIO0:0 is hooked to mt352 reset pin */
2085 cx_set(MO_GP0_IO
, 0x00000101);
2086 cx_clear(MO_GP0_IO
, 0x00000001);
2088 cx_set(MO_GP0_IO
, 0x00000101);
2089 if (0 == core
->i2c_rc
&&
2090 core
->boardnr
== CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID
)
2091 dvico_fusionhdtv_hybrid_init(core
);
2093 case CX88_BOARD_KWORLD_DVB_T
:
2094 case CX88_BOARD_DNTV_LIVE_DVB_T
:
2095 cx_set(MO_GP0_IO
, 0x00000707);
2096 cx_set(MO_GP2_IO
, 0x00000101);
2097 cx_clear(MO_GP2_IO
, 0x00000001);
2099 cx_clear(MO_GP0_IO
, 0x00000007);
2100 cx_set(MO_GP2_IO
, 0x00000101);
2102 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO
:
2103 cx_write(MO_GP0_IO
, 0x00080808);
2105 case CX88_BOARD_ATI_HDTVWONDER
:
2106 if (0 == core
->i2c_rc
) {
2109 static const u8 buffer
[][2] = {
2116 core
->i2c_client
.addr
= 0x0a;
2118 for (i
= 0; i
< ARRAY_SIZE(buffer
); i
++)
2119 if (2 != i2c_master_send(&core
->i2c_client
,
2122 "%s: Unable to enable "
2127 case CX88_BOARD_MSI_TVANYWHERE_MASTER
:
2129 struct v4l2_priv_tun_config tea5767_cfg
;
2130 struct tea5767_ctrl ctl
;
2132 memset(&ctl
, 0, sizeof(ctl
));
2137 ctl
.xtal_freq
= TEA5767_HIGH_LO_13MHz
;
2139 tea5767_cfg
.tuner
= TUNER_TEA5767
;
2140 tea5767_cfg
.priv
= &ctl
;
2142 cx88_call_i2c_clients(core
, TUNER_SET_CONFIG
, &tea5767_cfg
);
2146 if (core
->board
.tuner_type
== TUNER_XC2028
) {
2147 struct v4l2_priv_tun_config xc2028_cfg
;
2148 struct xc2028_ctrl ctl
;
2150 memset(&xc2028_cfg
, 0, sizeof(ctl
));
2151 memset(&ctl
, 0, sizeof(ctl
));
2153 ctl
.fname
= XC2028_DEFAULT_FIRMWARE
;
2155 /* FIXME: Those should be device-dependent */
2156 ctl
.demod
= XC3028_FE_OREN538
;
2159 xc2028_cfg
.tuner
= TUNER_XC2028
;
2160 xc2028_cfg
.priv
= &ctl
;
2162 cx88_call_i2c_clients(core
, TUNER_SET_CONFIG
, &xc2028_cfg
);
2167 /* ------------------------------------------------------------------ */
2169 static int cx88_pci_quirks(const char *name
, struct pci_dev
*pci
)
2171 unsigned int lat
= UNSET
;
2175 /* check pci quirks */
2176 if (pci_pci_problems
& PCIPCI_TRITON
) {
2177 printk(KERN_INFO
"%s: quirk: PCIPCI_TRITON -- set TBFX\n",
2179 ctrl
|= CX88X_EN_TBFX
;
2181 if (pci_pci_problems
& PCIPCI_NATOMA
) {
2182 printk(KERN_INFO
"%s: quirk: PCIPCI_NATOMA -- set TBFX\n",
2184 ctrl
|= CX88X_EN_TBFX
;
2186 if (pci_pci_problems
& PCIPCI_VIAETBF
) {
2187 printk(KERN_INFO
"%s: quirk: PCIPCI_VIAETBF -- set TBFX\n",
2189 ctrl
|= CX88X_EN_TBFX
;
2191 if (pci_pci_problems
& PCIPCI_VSFX
) {
2192 printk(KERN_INFO
"%s: quirk: PCIPCI_VSFX -- set VSFX\n",
2194 ctrl
|= CX88X_EN_VSFX
;
2196 #ifdef PCIPCI_ALIMAGIK
2197 if (pci_pci_problems
& PCIPCI_ALIMAGIK
) {
2198 printk(KERN_INFO
"%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
2204 /* check insmod options */
2205 if (UNSET
!= latency
)
2210 pci_read_config_byte(pci
, CX88X_DEVCTRL
, &value
);
2212 pci_write_config_byte(pci
, CX88X_DEVCTRL
, value
);
2215 printk(KERN_INFO
"%s: setting pci latency timer to %d\n",
2217 pci_write_config_byte(pci
, PCI_LATENCY_TIMER
, latency
);
2222 int cx88_get_resources(const struct cx88_core
*core
, struct pci_dev
*pci
)
2224 if (request_mem_region(pci_resource_start(pci
,0),
2225 pci_resource_len(pci
,0),
2229 "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n",
2230 core
->name
, PCI_FUNC(pci
->devfn
),
2231 (unsigned long long)pci_resource_start(pci
, 0),
2232 pci
->subsystem_vendor
, pci
->subsystem_device
);
2236 /* Allocate and initialize the cx88 core struct. One should hold the
2237 * devlist mutex before calling this. */
2238 struct cx88_core
*cx88_core_create(struct pci_dev
*pci
, int nr
)
2240 struct cx88_core
*core
;
2243 core
= kzalloc(sizeof(*core
), GFP_KERNEL
);
2245 atomic_inc(&core
->refcount
);
2246 core
->pci_bus
= pci
->bus
->number
;
2247 core
->pci_slot
= PCI_SLOT(pci
->devfn
);
2248 core
->pci_irqmask
= PCI_INT_RISC_RD_BERRINT
| PCI_INT_RISC_WR_BERRINT
|
2249 PCI_INT_BRDG_BERRINT
| PCI_INT_SRC_DMA_BERRINT
|
2250 PCI_INT_DST_DMA_BERRINT
| PCI_INT_IPB_DMA_BERRINT
;
2251 mutex_init(&core
->lock
);
2254 sprintf(core
->name
, "cx88[%d]", core
->nr
);
2255 if (0 != cx88_get_resources(core
, pci
)) {
2261 cx88_pci_quirks(core
->name
, pci
);
2262 core
->lmmio
= ioremap(pci_resource_start(pci
, 0),
2263 pci_resource_len(pci
, 0));
2264 core
->bmmio
= (u8 __iomem
*)core
->lmmio
;
2267 core
->boardnr
= UNSET
;
2268 if (card
[core
->nr
] < ARRAY_SIZE(cx88_boards
))
2269 core
->boardnr
= card
[core
->nr
];
2270 for (i
= 0; UNSET
== core
->boardnr
&& i
< ARRAY_SIZE(cx88_subids
); i
++)
2271 if (pci
->subsystem_vendor
== cx88_subids
[i
].subvendor
&&
2272 pci
->subsystem_device
== cx88_subids
[i
].subdevice
)
2273 core
->boardnr
= cx88_subids
[i
].card
;
2274 if (UNSET
== core
->boardnr
) {
2275 core
->boardnr
= CX88_BOARD_UNKNOWN
;
2276 cx88_card_list(core
, pci
);
2279 memcpy(&core
->board
, &cx88_boards
[core
->boardnr
], sizeof(core
->board
));
2281 printk(KERN_INFO
"%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
2282 core
->name
,pci
->subsystem_vendor
,
2283 pci
->subsystem_device
, core
->board
.name
,
2284 core
->boardnr
, card
[core
->nr
] == core
->boardnr
?
2285 "insmod option" : "autodetected");
2287 if (tuner
[core
->nr
] != UNSET
)
2288 core
->board
.tuner_type
= tuner
[core
->nr
];
2289 if (radio
[core
->nr
] != UNSET
)
2290 core
->board
.radio_type
= radio
[core
->nr
];
2292 printk(KERN_INFO
"%s: TV tuner type %d, Radio tuner type %d\n",
2293 core
->name
, core
->board
.tuner_type
, core
->board
.radio_type
);
2297 cx88_card_setup_pre_i2c(core
);
2298 cx88_i2c_init(core
, pci
);
2300 /* load tuner module, if needed */
2301 if (TUNER_ABSENT
!= core
->board
.tuner_type
)
2302 request_module("tuner");
2304 cx88_call_i2c_clients (core
, TUNER_SET_STANDBY
, NULL
);
2305 cx88_card_setup(core
);
2306 cx88_ir_init(core
, pci
);