]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | |
3 | bttv-cards.c | |
4 | ||
5 | this file has configuration informations - card-specific stuff | |
6 | like the big tvcards array for the most part | |
7 | ||
8 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) | |
4ac97914 | 9 | & Marcus Metzler (mocm@thp.uni-koeln.de) |
1da177e4 LT |
10 | (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de> |
11 | ||
12 | This program is free software; you can redistribute it and/or modify | |
13 | it under the terms of the GNU General Public License as published by | |
14 | the Free Software Foundation; either version 2 of the License, or | |
15 | (at your option) any later version. | |
16 | ||
17 | This program is distributed in the hope that it will be useful, | |
18 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | GNU General Public License for more details. | |
21 | ||
22 | You should have received a copy of the GNU General Public License | |
23 | along with this program; if not, write to the Free Software | |
24 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
25 | ||
26 | */ | |
27 | ||
8af443e5 JP |
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
29 | ||
1da177e4 LT |
30 | #include <linux/delay.h> |
31 | #include <linux/module.h> | |
1da177e4 LT |
32 | #include <linux/kmod.h> |
33 | #include <linux/init.h> | |
34 | #include <linux/pci.h> | |
35 | #include <linux/vmalloc.h> | |
36 | #include <linux/firmware.h> | |
cf784d55 | 37 | #include <net/checksum.h> |
1da177e4 | 38 | |
c1c36f31 | 39 | #include <asm/unaligned.h> |
1da177e4 LT |
40 | #include <asm/io.h> |
41 | ||
42 | #include "bttvp.h" | |
5e453dc7 | 43 | #include <media/v4l2-common.h> |
8bf2f8e7 | 44 | #include <media/tvaudio.h> |
c2806d03 | 45 | #include "bttv-audio-hook.h" |
1da177e4 LT |
46 | |
47 | /* fwd decl */ | |
48 | static void boot_msp34xx(struct bttv *btv, int pin); | |
1da177e4 LT |
49 | static void hauppauge_eeprom(struct bttv *btv); |
50 | static void avermedia_eeprom(struct bttv *btv); | |
cf784d55 | 51 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); |
1da177e4 LT |
52 | static void modtec_eeprom(struct bttv *btv); |
53 | static void init_PXC200(struct bttv *btv); | |
93b43f13 | 54 | static void init_RTV24(struct bttv *btv); |
1da177e4 | 55 | |
1da177e4 LT |
56 | static void rv605_muxsel(struct bttv *btv, unsigned int input); |
57 | static void eagle_muxsel(struct bttv *btv, unsigned int input); | |
58 | static void xguard_muxsel(struct bttv *btv, unsigned int input); | |
59 | static void ivc120_muxsel(struct bttv *btv, unsigned int input); | |
60 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input); | |
61 | ||
62 | static void PXC200_muxsel(struct bttv *btv, unsigned int input); | |
63 | ||
64 | static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input); | |
65 | static void picolo_tetra_init(struct bttv *btv); | |
66 | ||
67 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input); | |
68 | static void tibetCS16_init(struct bttv *btv); | |
69 | ||
70 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input); | |
71 | static void kodicom4400r_init(struct bttv *btv); | |
72 | ||
73 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input); | |
74 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input); | |
75 | ||
97275ac5 EHN |
76 | static void geovision_muxsel(struct bttv *btv, unsigned int input); |
77 | ||
15f8eeb2 TP |
78 | static void phytec_muxsel(struct bttv *btv, unsigned int input); |
79 | ||
0c5db425 BC |
80 | static void gv800s_muxsel(struct bttv *btv, unsigned int input); |
81 | static void gv800s_init(struct bttv *btv); | |
82 | ||
de2843b6 PDS |
83 | static void td3116_muxsel(struct bttv *btv, unsigned int input); |
84 | ||
1da177e4 LT |
85 | static int terratec_active_radio_upgrade(struct bttv *btv); |
86 | static int tea5757_read(struct bttv *btv); | |
87 | static int tea5757_write(struct bttv *btv, int value); | |
88 | static void identify_by_eeprom(struct bttv *btv, | |
89 | unsigned char eeprom_data[256]); | |
4c62e976 | 90 | static int pvr_boot(struct bttv *btv); |
1da177e4 LT |
91 | |
92 | /* config variables */ | |
a5ed425c MCC |
93 | static unsigned int triton1; |
94 | static unsigned int vsfx; | |
1da177e4 | 95 | static unsigned int latency = UNSET; |
4dcef524 | 96 | int no_overlay=-1; |
1da177e4 LT |
97 | |
98 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; | |
99 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; | |
100 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; | |
101 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; | |
102 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; | |
859f0277 HV |
103 | static unsigned int audiodev[BTTV_MAX]; |
104 | static unsigned int saa6588[BTTV_MAX]; | |
1da177e4 | 105 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
859f0277 | 106 | static unsigned int autoload = UNSET; |
1da177e4 LT |
107 | static unsigned int gpiomask = UNSET; |
108 | static unsigned int audioall = UNSET; | |
109 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; | |
110 | ||
111 | /* insmod options */ | |
112 | module_param(triton1, int, 0444); | |
113 | module_param(vsfx, int, 0444); | |
114 | module_param(no_overlay, int, 0444); | |
115 | module_param(latency, int, 0444); | |
116 | module_param(gpiomask, int, 0444); | |
117 | module_param(audioall, int, 0444); | |
118 | module_param(autoload, int, 0444); | |
119 | ||
120 | module_param_array(card, int, NULL, 0444); | |
121 | module_param_array(pll, int, NULL, 0444); | |
122 | module_param_array(tuner, int, NULL, 0444); | |
123 | module_param_array(svhs, int, NULL, 0444); | |
124 | module_param_array(remote, int, NULL, 0444); | |
859f0277 | 125 | module_param_array(audiodev, int, NULL, 0444); |
1da177e4 LT |
126 | module_param_array(audiomux, int, NULL, 0444); |
127 | ||
128 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " | |
129 | "[enable bug compatibility for triton1 + others]"); | |
130 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " | |
131 | "[yet another chipset flaw workaround]"); | |
132 | MODULE_PARM_DESC(latency,"pci latency timer"); | |
133 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); | |
134 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); | |
135 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); | |
859f0277 HV |
136 | MODULE_PARM_DESC(autoload, "obsolete option, please do not use anymore"); |
137 | MODULE_PARM_DESC(audiodev, "specify audio device:\n" | |
138 | "\t\t-1 = no audio\n" | |
139 | "\t\t 0 = autodetect (default)\n" | |
140 | "\t\t 1 = msp3400\n" | |
141 | "\t\t 2 = tda7432\n" | |
142 | "\t\t 3 = tvaudio"); | |
143 | MODULE_PARM_DESC(saa6588, "if 1, then load the saa6588 RDS module, default (0) is to use the card definition."); | |
9050d942 MCC |
144 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
145 | " [some VIA/SIS chipsets are known to have problem with overlay]"); | |
1da177e4 LT |
146 | |
147 | /* ----------------------------------------------------------------------- */ | |
148 | /* list of card IDs for bt878+ cards */ | |
149 | ||
150 | static struct CARD { | |
151 | unsigned id; | |
152 | int cardnr; | |
153 | char *name; | |
4c62e976 | 154 | } cards[] = { |
5a25e84b MCC |
155 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
156 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, | |
157 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, | |
158 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, | |
159 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, | |
160 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, | |
161 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, | |
162 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, | |
f718e6e7 | 163 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
5a25e84b MCC |
164 | |
165 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, | |
166 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, | |
167 | ||
168 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, | |
169 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, | |
170 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, | |
171 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, | |
172 | { 0x264510b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, | |
4ac97914 | 173 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
5a25e84b MCC |
174 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
175 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, | |
4ac97914 | 176 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
5a25e84b MCC |
177 | |
178 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, | |
24a70fdc | 179 | /* some cards ship with byteswapped IDs ... */ |
5a25e84b MCC |
180 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
181 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, | |
24a70fdc | 182 | /* this seems to happen as well ... */ |
5a25e84b MCC |
183 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
184 | ||
434b2526 WB |
185 | { 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" }, |
186 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" }, | |
5a25e84b MCC |
187 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
188 | ||
189 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, | |
190 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, | |
191 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, | |
192 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, | |
193 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, | |
194 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, | |
195 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, | |
196 | ||
197 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, | |
198 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, | |
199 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, | |
200 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, | |
201 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, | |
202 | ||
203 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, | |
204 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, | |
205 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, | |
206 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, | |
207 | ||
208 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, | |
209 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, | |
24a70fdc | 210 | /* clashes with FlyVideo |
5a25e84b MCC |
211 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
212 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, | |
213 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ | |
214 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ | |
215 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ | |
216 | ||
217 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, | |
218 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, | |
219 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, | |
220 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, | |
221 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, | |
222 | ||
223 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, | |
224 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, | |
225 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, | |
226 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, | |
227 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, | |
228 | ||
229 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, | |
230 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, | |
231 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, | |
232 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" }, | |
233 | ||
234 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, | |
235 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, | |
236 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, | |
237 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, | |
238 | ||
239 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, | |
240 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, | |
241 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, | |
242 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, | |
243 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, | |
244 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, | |
245 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, | |
246 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, | |
247 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, | |
b7589ac4 KS |
248 | { 0xa1550800, BTTV_BOARD_IVC200, "IVC-200" }, |
249 | { 0xa1550801, BTTV_BOARD_IVC200, "IVC-200" }, | |
250 | { 0xa1550802, BTTV_BOARD_IVC200, "IVC-200" }, | |
251 | { 0xa1550803, BTTV_BOARD_IVC200, "IVC-200" }, | |
5a25e84b MCC |
252 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
253 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, | |
254 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, | |
255 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, | |
256 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, | |
257 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, | |
258 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, | |
259 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, | |
260 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, | |
261 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, | |
262 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, | |
263 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, | |
264 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, | |
265 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, | |
266 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, | |
267 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, | |
ade0815c DK |
268 | { 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
269 | { 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" }, | |
270 | { 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" }, | |
271 | { 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" }, | |
5a25e84b MCC |
272 | |
273 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, | |
274 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, | |
275 | ||
276 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, | |
277 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, | |
278 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, | |
279 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, | |
280 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, | |
281 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, | |
282 | ||
657de3cd | 283 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
5a25e84b MCC |
284 | { 0x010114c7, BTTV_BOARD_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" }, |
285 | ||
286 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, | |
287 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, | |
288 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, | |
57437c1d | 289 | { 0x03116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 311" }, |
290 | { 0x06116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 611" }, | |
5a25e84b MCC |
291 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
292 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, | |
5a25e84b MCC |
293 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
294 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, | |
4ac97914 | 295 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
5a25e84b MCC |
296 | |
297 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, | |
298 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, | |
299 | ||
300 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, | |
301 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, | |
302 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, | |
303 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, | |
304 | ||
305 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, | |
1da177e4 | 306 | |
1ebba670 SA |
307 | { 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" }, |
308 | { 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" }, | |
309 | ||
24a70fdc | 310 | /* likely broken, vendor id doesn't match the other magic views ... |
5a25e84b | 311 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
24a70fdc | 312 | |
cd1257d8 ST |
313 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
314 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ | |
315 | ||
76ecf459 RM |
316 | { 0x109e036e, BTTV_BOARD_CONCEPTRONIC_CTVFMI2, "Conceptronic CTVFMi v2"}, |
317 | ||
24a70fdc | 318 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
5a25e84b | 319 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
2af35577 MK |
320 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
321 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, | |
5a25e84b MCC |
322 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
323 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, | |
324 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, | |
325 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, | |
2af35577 | 326 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
5a25e84b | 327 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
19790db0 | 328 | { 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" }, |
5a25e84b | 329 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
442d15d5 | 330 | { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "}, |
27cb786f | 331 | { 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" }, |
97275ac5 | 332 | { 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" }, |
7d341a6a | 333 | { 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" }, |
0c5db425 BC |
334 | { 0x763d800a, BTTV_BOARD_GEOVISION_GV800S, "GeoVision GV-800(S) (master)" }, |
335 | { 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, | |
336 | { 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, | |
337 | { 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, | |
dceaddb9 AM |
338 | |
339 | { 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" }, | |
340 | { 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" }, | |
341 | { 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" }, | |
342 | { 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" }, | |
343 | { 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" }, | |
344 | { 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" }, | |
345 | { 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" }, | |
346 | { 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" }, | |
de2843b6 | 347 | { 0x3116f200, BTTV_BOARD_TVT_TD3116, "Tongwei Video Technology TD-3116" }, |
9d2952d7 | 348 | { 0x02280279, BTTV_BOARD_APOSONIC_WDVR, "Aposonic W-DVR" }, |
1da177e4 LT |
349 | { 0, -1, NULL } |
350 | }; | |
351 | ||
352 | /* ----------------------------------------------------------------------- */ | |
353 | /* array with description for bt848 / bt878 tv/grabber cards */ | |
354 | ||
355 | struct tvcard bttv_tvcards[] = { | |
2bfa1ac6 | 356 | /* ---- card 0x00 ---------------------------------- */ |
5a25e84b | 357 | [BTTV_BOARD_UNKNOWN] = { |
2bfa1ac6 MCC |
358 | .name = " *** UNKNOWN/GENERIC *** ", |
359 | .video_inputs = 4, | |
2bfa1ac6 | 360 | .svhs = 2, |
6f98700a | 361 | .muxsel = MUXSEL(2, 3, 1, 0), |
8c2c0dfe | 362 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
363 | .tuner_addr = ADDR_UNSET, |
364 | }, | |
5a25e84b | 365 | [BTTV_BOARD_MIRO] = { |
2bfa1ac6 MCC |
366 | .name = "MIRO PCTV", |
367 | .video_inputs = 4, | |
4c548d4b | 368 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
369 | .svhs = 2, |
370 | .gpiomask = 15, | |
6f98700a | 371 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
372 | .gpiomux = { 2, 0, 0, 0 }, |
373 | .gpiomute = 10, | |
8c2c0dfe | 374 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
375 | .tuner_addr = ADDR_UNSET, |
376 | }, | |
5a25e84b | 377 | [BTTV_BOARD_HAUPPAUGE] = { |
2bfa1ac6 MCC |
378 | .name = "Hauppauge (bt848)", |
379 | .video_inputs = 4, | |
4c548d4b | 380 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
381 | .svhs = 2, |
382 | .gpiomask = 7, | |
6f98700a | 383 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
384 | .gpiomux = { 0, 1, 2, 3 }, |
385 | .gpiomute = 4, | |
8c2c0dfe | 386 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
387 | .tuner_addr = ADDR_UNSET, |
388 | }, | |
5a25e84b | 389 | [BTTV_BOARD_STB] = { |
2bfa1ac6 MCC |
390 | .name = "STB, Gateway P/N 6000699 (bt848)", |
391 | .video_inputs = 3, | |
4c548d4b | 392 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
393 | .svhs = 2, |
394 | .gpiomask = 7, | |
6f98700a | 395 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
396 | .gpiomux = { 4, 0, 2, 3 }, |
397 | .gpiomute = 1, | |
2bfa1ac6 | 398 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
399 | .tuner_type = TUNER_PHILIPS_NTSC, |
400 | .tuner_addr = ADDR_UNSET, | |
401 | .pll = PLL_28, | |
402 | .has_radio = 1, | |
403 | }, | |
404 | ||
405 | /* ---- card 0x04 ---------------------------------- */ | |
5a25e84b | 406 | [BTTV_BOARD_INTEL] = { |
2bfa1ac6 MCC |
407 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
408 | .video_inputs = 4, | |
4c548d4b | 409 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
410 | .svhs = 2, |
411 | .gpiomask = 0, | |
6f98700a | 412 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 413 | .gpiomux = { 0 }, |
8c2c0dfe | 414 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
415 | .tuner_addr = ADDR_UNSET, |
416 | }, | |
5a25e84b | 417 | [BTTV_BOARD_DIAMOND] = { |
2bfa1ac6 MCC |
418 | .name = "Diamond DTV2000", |
419 | .video_inputs = 4, | |
4c548d4b | 420 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
421 | .svhs = 2, |
422 | .gpiomask = 3, | |
6f98700a | 423 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
424 | .gpiomux = { 0, 1, 0, 1 }, |
425 | .gpiomute = 3, | |
8c2c0dfe | 426 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
427 | .tuner_addr = ADDR_UNSET, |
428 | }, | |
5a25e84b | 429 | [BTTV_BOARD_AVERMEDIA] = { |
2bfa1ac6 MCC |
430 | .name = "AVerMedia TVPhone", |
431 | .video_inputs = 3, | |
4c548d4b | 432 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 433 | .svhs = 3, |
6f98700a | 434 | .muxsel = MUXSEL(2, 3, 1, 1), |
2bfa1ac6 | 435 | .gpiomask = 0x0f, |
8bf2f8e7 | 436 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
2bfa1ac6 | 437 | /* 0x04 for some cards ?? */ |
8c2c0dfe | 438 | .tuner_type = UNSET, |
2bfa1ac6 | 439 | .tuner_addr = ADDR_UNSET, |
4b9b936f | 440 | .audio_mode_gpio= avermedia_tvphone_audio, |
2bfa1ac6 MCC |
441 | .has_remote = 1, |
442 | }, | |
5a25e84b | 443 | [BTTV_BOARD_MATRIX_VISION] = { |
2bfa1ac6 MCC |
444 | .name = "MATRIX-Vision MV-Delta", |
445 | .video_inputs = 5, | |
4c548d4b | 446 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
447 | .svhs = 3, |
448 | .gpiomask = 0, | |
6f98700a | 449 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
8bf2f8e7 | 450 | .gpiomux = { 0 }, |
abb0362f | 451 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
452 | .tuner_addr = ADDR_UNSET, |
453 | }, | |
454 | ||
455 | /* ---- card 0x08 ---------------------------------- */ | |
5a25e84b | 456 | [BTTV_BOARD_FLYVIDEO] = { |
2bfa1ac6 MCC |
457 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
458 | .video_inputs = 4, | |
4c548d4b | 459 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
460 | .svhs = 2, |
461 | .gpiomask = 0xc00, | |
6f98700a | 462 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
463 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
464 | .gpiomute = 0xc00, | |
2bfa1ac6 | 465 | .pll = PLL_28, |
8c2c0dfe | 466 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
467 | .tuner_addr = ADDR_UNSET, |
468 | }, | |
5a25e84b | 469 | [BTTV_BOARD_TURBOTV] = { |
2bfa1ac6 MCC |
470 | .name = "IMS/IXmicro TurboTV", |
471 | .video_inputs = 3, | |
4c548d4b | 472 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
473 | .svhs = 2, |
474 | .gpiomask = 3, | |
6f98700a | 475 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 476 | .gpiomux = { 1, 1, 2, 3 }, |
2bfa1ac6 MCC |
477 | .pll = PLL_28, |
478 | .tuner_type = TUNER_TEMIC_PAL, | |
479 | .tuner_addr = ADDR_UNSET, | |
480 | }, | |
5a25e84b | 481 | [BTTV_BOARD_HAUPPAUGE878] = { |
2bfa1ac6 MCC |
482 | .name = "Hauppauge (bt878)", |
483 | .video_inputs = 4, | |
4c548d4b | 484 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
485 | .svhs = 2, |
486 | .gpiomask = 0x0f, /* old: 7 */ | |
6f98700a | 487 | .muxsel = MUXSEL(2, 0, 1, 1), |
8bf2f8e7 HV |
488 | .gpiomux = { 0, 1, 2, 3 }, |
489 | .gpiomute = 4, | |
2bfa1ac6 | 490 | .pll = PLL_28, |
8c2c0dfe | 491 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
492 | .tuner_addr = ADDR_UNSET, |
493 | }, | |
5a25e84b | 494 | [BTTV_BOARD_MIROPRO] = { |
2bfa1ac6 MCC |
495 | .name = "MIRO PCTV pro", |
496 | .video_inputs = 3, | |
4c548d4b | 497 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
498 | .svhs = 2, |
499 | .gpiomask = 0x3014f, | |
6f98700a | 500 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
501 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
502 | .gpiomute = 10, | |
8c2c0dfe | 503 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
504 | .tuner_addr = ADDR_UNSET, |
505 | }, | |
506 | ||
507 | /* ---- card 0x0c ---------------------------------- */ | |
5a25e84b | 508 | [BTTV_BOARD_ADSTECH_TV] = { |
2bfa1ac6 MCC |
509 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
510 | .video_inputs = 3, | |
4c548d4b | 511 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
512 | .svhs = 2, |
513 | .gpiomask = 15, | |
6f98700a | 514 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 515 | .gpiomux = { 13, 14, 11, 7 }, |
8c2c0dfe | 516 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
517 | .tuner_addr = ADDR_UNSET, |
518 | }, | |
5a25e84b | 519 | [BTTV_BOARD_AVERMEDIA98] = { |
2bfa1ac6 MCC |
520 | .name = "AVerMedia TVCapture 98", |
521 | .video_inputs = 3, | |
4c548d4b | 522 | /* .audio_inputs= 4, */ |
2bfa1ac6 MCC |
523 | .svhs = 2, |
524 | .gpiomask = 15, | |
6f98700a | 525 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 526 | .gpiomux = { 13, 14, 11, 7 }, |
2bfa1ac6 MCC |
527 | .msp34xx_alt = 1, |
528 | .pll = PLL_28, | |
529 | .tuner_type = TUNER_PHILIPS_PAL, | |
530 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 531 | .audio_mode_gpio= avermedia_tv_stereo_audio, |
a8900fc2 | 532 | .no_gpioirq = 1, |
2bfa1ac6 | 533 | }, |
5a25e84b | 534 | [BTTV_BOARD_VHX] = { |
2bfa1ac6 MCC |
535 | .name = "Aimslab Video Highway Xtreme (VHX)", |
536 | .video_inputs = 3, | |
4c548d4b | 537 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
538 | .svhs = 2, |
539 | .gpiomask = 7, | |
6f98700a | 540 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
541 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
542 | .gpiomute = 4, | |
2bfa1ac6 | 543 | .pll = PLL_28, |
8c2c0dfe | 544 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
545 | .tuner_addr = ADDR_UNSET, |
546 | }, | |
5a25e84b | 547 | [BTTV_BOARD_ZOLTRIX] = { |
2bfa1ac6 MCC |
548 | .name = "Zoltrix TV-Max", |
549 | .video_inputs = 3, | |
4c548d4b | 550 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
551 | .svhs = 2, |
552 | .gpiomask = 15, | |
6f98700a | 553 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
554 | .gpiomux = { 0, 0, 1, 0 }, |
555 | .gpiomute = 10, | |
8c2c0dfe | 556 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
557 | .tuner_addr = ADDR_UNSET, |
558 | }, | |
559 | ||
560 | /* ---- card 0x10 ---------------------------------- */ | |
5a25e84b | 561 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
2bfa1ac6 MCC |
562 | .name = "Prolink Pixelview PlayTV (bt878)", |
563 | .video_inputs = 3, | |
4c548d4b | 564 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
565 | .svhs = 2, |
566 | .gpiomask = 0x01fe00, | |
6f98700a | 567 | .muxsel = MUXSEL(2, 3, 1, 1), |
2bfa1ac6 | 568 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
8bf2f8e7 HV |
569 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
570 | .gpiomute = 0x002000, | |
2bfa1ac6 | 571 | .pll = PLL_28, |
8c2c0dfe | 572 | .tuner_type = UNSET, |
27dea3eb | 573 | .tuner_addr = ADDR_UNSET, |
2bfa1ac6 | 574 | }, |
5a25e84b | 575 | [BTTV_BOARD_WINVIEW_601] = { |
2bfa1ac6 MCC |
576 | .name = "Leadtek WinView 601", |
577 | .video_inputs = 3, | |
4c548d4b | 578 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
579 | .svhs = 2, |
580 | .gpiomask = 0x8300f8, | |
6f98700a | 581 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
8bf2f8e7 HV |
582 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
583 | .gpiomute = 0xcfa007, | |
8c2c0dfe | 584 | .tuner_type = UNSET, |
2bfa1ac6 | 585 | .tuner_addr = ADDR_UNSET, |
4b9b936f | 586 | .volume_gpio = winview_volume, |
2bfa1ac6 MCC |
587 | .has_radio = 1, |
588 | }, | |
5a25e84b | 589 | [BTTV_BOARD_AVEC_INTERCAP] = { |
2bfa1ac6 MCC |
590 | .name = "AVEC Intercapture", |
591 | .video_inputs = 3, | |
4c548d4b | 592 | /* .audio_inputs= 2, */ |
2bfa1ac6 MCC |
593 | .svhs = 2, |
594 | .gpiomask = 0, | |
6f98700a | 595 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 596 | .gpiomux = { 1, 0, 0, 0 }, |
8c2c0dfe | 597 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
598 | .tuner_addr = ADDR_UNSET, |
599 | }, | |
5a25e84b | 600 | [BTTV_BOARD_LIFE_FLYKIT] = { |
2bfa1ac6 MCC |
601 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
602 | .video_inputs = 4, | |
4c548d4b TP |
603 | /* .audio_inputs= 1, */ |
604 | .svhs = NO_SVHS, | |
2bfa1ac6 | 605 | .gpiomask = 0x8dff00, |
6f98700a | 606 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 607 | .gpiomux = { 0 }, |
2bfa1ac6 | 608 | .no_msp34xx = 1, |
abb0362f | 609 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
610 | .tuner_addr = ADDR_UNSET, |
611 | }, | |
612 | ||
613 | /* ---- card 0x14 ---------------------------------- */ | |
5a25e84b | 614 | [BTTV_BOARD_CEI_RAFFLES] = { |
2bfa1ac6 MCC |
615 | .name = "CEI Raffles Card", |
616 | .video_inputs = 3, | |
4c548d4b | 617 | /* .audio_inputs= 3, */ |
2bfa1ac6 | 618 | .svhs = 2, |
6f98700a | 619 | .muxsel = MUXSEL(2, 3, 1, 1), |
8c2c0dfe | 620 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
621 | .tuner_addr = ADDR_UNSET, |
622 | }, | |
5a25e84b | 623 | [BTTV_BOARD_CONFERENCETV] = { |
2bfa1ac6 MCC |
624 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
625 | .video_inputs = 4, | |
4c548d4b | 626 | /* .audio_inputs= 2, tuner, line in */ |
2bfa1ac6 MCC |
627 | .svhs = 2, |
628 | .gpiomask = 0x1800, | |
6f98700a | 629 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
630 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
631 | .gpiomute = 0x1800, | |
2bfa1ac6 MCC |
632 | .pll = PLL_28, |
633 | .tuner_type = TUNER_PHILIPS_PAL_I, | |
634 | .tuner_addr = ADDR_UNSET, | |
635 | }, | |
5a25e84b | 636 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
2bfa1ac6 MCC |
637 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
638 | .video_inputs = 3, | |
4c548d4b | 639 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
640 | .svhs = 2, |
641 | .gpiomask = 0xc00, | |
6f98700a | 642 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
643 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
644 | .gpiomute = 0xc00, | |
2bfa1ac6 | 645 | .pll = PLL_28, |
8c2c0dfe | 646 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
647 | .tuner_addr = ADDR_UNSET, |
648 | }, | |
5a25e84b | 649 | [BTTV_BOARD_MODTEC_205] = { |
2bfa1ac6 MCC |
650 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
651 | .video_inputs = 3, | |
4c548d4b TP |
652 | /* .audio_inputs= 1, */ |
653 | .svhs = NO_SVHS, | |
5221e21e | 654 | .has_dig_in = 1, |
2bfa1ac6 | 655 | .gpiomask = 7, |
6f98700a | 656 | .muxsel = MUXSEL(2, 3, 0), /* input 2 is digital */ |
4c548d4b | 657 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
8bf2f8e7 | 658 | .gpiomux = { 0, 0, 0, 0 }, |
2bfa1ac6 MCC |
659 | .no_msp34xx = 1, |
660 | .pll = PLL_28, | |
661 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, | |
662 | .tuner_addr = ADDR_UNSET, | |
663 | }, | |
664 | ||
665 | /* ---- card 0x18 ---------------------------------- */ | |
5a25e84b | 666 | [BTTV_BOARD_MAGICTVIEW061] = { |
2bfa1ac6 MCC |
667 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
668 | .video_inputs = 3, | |
4c548d4b | 669 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
670 | .svhs = 2, |
671 | .gpiomask = 0xe00, | |
6f98700a | 672 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
673 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
674 | .gpiomute = 0xc00, | |
2bfa1ac6 | 675 | .pll = PLL_28, |
8c2c0dfe | 676 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
677 | .tuner_addr = ADDR_UNSET, |
678 | .has_remote = 1, | |
b61097ee | 679 | .has_radio = 1, /* not every card has radio */ |
2bfa1ac6 | 680 | }, |
5a25e84b | 681 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
2bfa1ac6 MCC |
682 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
683 | .video_inputs = 3, | |
4c548d4b | 684 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
685 | .svhs = 2, |
686 | .gpiomask = 0x1f0fff, | |
6f98700a | 687 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
688 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
689 | .gpiomute = 0x40000, | |
2bfa1ac6 MCC |
690 | .tuner_type = TUNER_PHILIPS_PAL, |
691 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 692 | .audio_mode_gpio= terratv_audio, |
2bfa1ac6 | 693 | }, |
5a25e84b | 694 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
2bfa1ac6 MCC |
695 | .name = "Hauppauge WinCam newer (bt878)", |
696 | .video_inputs = 4, | |
4c548d4b | 697 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
698 | .svhs = 3, |
699 | .gpiomask = 7, | |
6f98700a | 700 | .muxsel = MUXSEL(2, 0, 1, 1), |
8bf2f8e7 HV |
701 | .gpiomux = { 0, 1, 2, 3 }, |
702 | .gpiomute = 4, | |
8c2c0dfe | 703 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
704 | .tuner_addr = ADDR_UNSET, |
705 | }, | |
5a25e84b | 706 | [BTTV_BOARD_MAXI] = { |
2bfa1ac6 MCC |
707 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
708 | .video_inputs = 4, | |
4c548d4b | 709 | /* .audio_inputs= 2, */ |
2bfa1ac6 MCC |
710 | .svhs = 2, |
711 | .gpiomask = 0x1800, | |
6f98700a | 712 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
713 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
714 | .gpiomute = 0x1800, | |
2bfa1ac6 MCC |
715 | .pll = PLL_28, |
716 | .tuner_type = TUNER_PHILIPS_SECAM, | |
717 | .tuner_addr = ADDR_UNSET, | |
718 | }, | |
719 | ||
720 | /* ---- card 0x1c ---------------------------------- */ | |
5a25e84b | 721 | [BTTV_BOARD_TERRATV] = { |
2bfa1ac6 MCC |
722 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
723 | .video_inputs = 3, | |
4c548d4b | 724 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
725 | .svhs = 2, |
726 | .gpiomask = 0x1f0fff, | |
6f98700a | 727 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
728 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
729 | .gpiomute = 0x40000, | |
2bfa1ac6 MCC |
730 | .tuner_type = TUNER_PHILIPS_PAL, |
731 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 732 | .audio_mode_gpio= terratv_audio, |
2bfa1ac6 MCC |
733 | /* GPIO wiring: |
734 | External 20 pin connector (for Active Radio Upgrade board) | |
735 | gpio00: i2c-sda | |
736 | gpio01: i2c-scl | |
737 | gpio02: om5610-data | |
738 | gpio03: om5610-clk | |
739 | gpio04: om5610-wre | |
740 | gpio05: om5610-stereo | |
741 | gpio06: rds6588-davn | |
742 | gpio07: Pin 7 n.c. | |
743 | gpio08: nIOW | |
744 | gpio09+10: nIOR, nSEL ?? (bt878) | |
745 | gpio09: nIOR (bt848) | |
746 | gpio10: nSEL (bt848) | |
747 | Sound Routing: | |
748 | gpio16: u2-A0 (1st 4052bt) | |
749 | gpio17: u2-A1 | |
750 | gpio18: u2-nEN | |
751 | gpio19: u4-A0 (2nd 4052) | |
752 | gpio20: u4-A1 | |
753 | u4-nEN - GND | |
754 | Btspy: | |
755 | 00000 : Cdrom (internal audio input) | |
756 | 10000 : ext. Video audio input | |
757 | 20000 : TV Mono | |
758 | a0000 : TV Mono/2 | |
759 | 1a0000 : TV Stereo | |
760 | 30000 : Radio | |
761 | 40000 : Mute | |
24a70fdc | 762 | */ |
2bfa1ac6 MCC |
763 | |
764 | }, | |
5a25e84b | 765 | [BTTV_BOARD_PXC200] = { |
2bfa1ac6 MCC |
766 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
767 | .name = "Imagenation PXC200", | |
768 | .video_inputs = 5, | |
4c548d4b | 769 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
770 | .svhs = 1, /* was: 4 */ |
771 | .gpiomask = 0, | |
6f98700a | 772 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
8bf2f8e7 | 773 | .gpiomux = { 0 }, |
abb0362f | 774 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
775 | .tuner_addr = ADDR_UNSET, |
776 | .muxsel_hook = PXC200_muxsel, | |
777 | ||
778 | }, | |
5a25e84b | 779 | [BTTV_BOARD_FLYVIDEO_98] = { |
2bfa1ac6 MCC |
780 | .name = "Lifeview FlyVideo 98 LR50", |
781 | .video_inputs = 4, | |
4c548d4b | 782 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
783 | .svhs = 2, |
784 | .gpiomask = 0x1800, /* 0x8dfe00 */ | |
6f98700a | 785 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
786 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
787 | .gpiomute = 0x1800, | |
2bfa1ac6 | 788 | .pll = PLL_28, |
8c2c0dfe | 789 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
790 | .tuner_addr = ADDR_UNSET, |
791 | }, | |
5a25e84b | 792 | [BTTV_BOARD_IPROTV] = { |
2bfa1ac6 MCC |
793 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
794 | .video_inputs = 4, | |
4c548d4b | 795 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
796 | .svhs = 3, |
797 | .gpiomask = 1, | |
6f98700a | 798 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 799 | .gpiomux = { 1, 0, 0, 0 }, |
2bfa1ac6 MCC |
800 | .pll = PLL_28, |
801 | .tuner_type = TUNER_PHILIPS_PAL, | |
802 | .tuner_addr = ADDR_UNSET, | |
803 | }, | |
804 | ||
805 | /* ---- card 0x20 ---------------------------------- */ | |
5a25e84b | 806 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
2bfa1ac6 MCC |
807 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
808 | .video_inputs = 4, | |
4c548d4b | 809 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
810 | .svhs = 2, |
811 | .gpiomask = 0, | |
6f98700a | 812 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 813 | .gpiomux = { 0 }, |
8c2c0dfe | 814 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
815 | .tuner_addr = ADDR_UNSET, |
816 | }, | |
5a25e84b | 817 | [BTTV_BOARD_TERRATVALUE] = { |
2bfa1ac6 MCC |
818 | .name = "Terratec TerraTValue Version Bt878", |
819 | .video_inputs = 3, | |
4c548d4b | 820 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
821 | .svhs = 2, |
822 | .gpiomask = 0xffff00, | |
6f98700a | 823 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
824 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
825 | .gpiomute = 0x900, | |
2bfa1ac6 MCC |
826 | .pll = PLL_28, |
827 | .tuner_type = TUNER_PHILIPS_PAL, | |
828 | .tuner_addr = ADDR_UNSET, | |
829 | }, | |
5a25e84b | 830 | [BTTV_BOARD_WINFAST2000] = { |
2bfa1ac6 MCC |
831 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
832 | .video_inputs = 4, | |
4c548d4b | 833 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 834 | .svhs = 2, |
6f98700a TP |
835 | /* TV, CVid, SVid, CVid over SVid connector */ |
836 | .muxsel = MUXSEL(2, 3, 1, 1, 0), | |
2bfa1ac6 MCC |
837 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
838 | .gpiomask = 0xb33000, | |
8bf2f8e7 HV |
839 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
840 | .gpiomute = 0x800000, | |
2bfa1ac6 MCC |
841 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
842 | gpio23 -- hef4052:nEnable (0x800000) | |
843 | gpio12 -- hef4052:A1 | |
844 | gpio13 -- hef4052:A0 | |
845 | 0x0000: external audio | |
846 | 0x1000: FM | |
847 | 0x2000: TV | |
848 | 0x3000: n.c. | |
849 | Note: There exists another variant "Winfast 2000" with tv stereo !? | |
850 | Note: eeprom only contains FF and pci subsystem id 107d:6606 | |
851 | */ | |
2bfa1ac6 MCC |
852 | .pll = PLL_28, |
853 | .has_radio = 1, | |
8c2c0dfe | 854 | .tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */ |
2bfa1ac6 | 855 | .tuner_addr = ADDR_UNSET, |
4b9b936f | 856 | .audio_mode_gpio= winfast2000_audio, |
2bfa1ac6 MCC |
857 | .has_remote = 1, |
858 | }, | |
5a25e84b | 859 | [BTTV_BOARD_CHRONOS_VS2] = { |
2bfa1ac6 MCC |
860 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
861 | .video_inputs = 4, | |
4c548d4b | 862 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
863 | .svhs = 2, |
864 | .gpiomask = 0x1800, | |
6f98700a | 865 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
866 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
867 | .gpiomute = 0x1800, | |
2bfa1ac6 | 868 | .pll = PLL_28, |
8c2c0dfe | 869 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
870 | .tuner_addr = ADDR_UNSET, |
871 | }, | |
872 | ||
873 | /* ---- card 0x24 ---------------------------------- */ | |
5a25e84b | 874 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
2bfa1ac6 MCC |
875 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
876 | .video_inputs = 4, | |
4c548d4b | 877 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
878 | .svhs = 2, |
879 | .gpiomask = 0x1800, | |
6f98700a | 880 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
881 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
882 | .gpiomute = 0x1800, | |
2bfa1ac6 | 883 | .pll = PLL_28, |
8c2c0dfe | 884 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
885 | .tuner_addr = ADDR_UNSET, |
886 | .has_radio = 1, | |
887 | }, | |
5a25e84b | 888 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
2bfa1ac6 MCC |
889 | .name = "Prolink PixelView PlayTV pro", |
890 | .video_inputs = 3, | |
4c548d4b | 891 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
892 | .svhs = 2, |
893 | .gpiomask = 0xff, | |
6f98700a | 894 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
895 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
896 | .gpiomute = 0x29, | |
2bfa1ac6 MCC |
897 | .no_msp34xx = 1, |
898 | .pll = PLL_28, | |
8c2c0dfe | 899 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
900 | .tuner_addr = ADDR_UNSET, |
901 | }, | |
5a25e84b | 902 | [BTTV_BOARD_MAGICTVIEW063] = { |
2bfa1ac6 MCC |
903 | .name = "Askey CPH06X TView99", |
904 | .video_inputs = 4, | |
4c548d4b | 905 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
906 | .svhs = 2, |
907 | .gpiomask = 0x551e00, | |
6f98700a | 908 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
909 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
910 | .gpiomute = 0x551c00, | |
2bfa1ac6 | 911 | .pll = PLL_28, |
8c2c0dfe | 912 | .tuner_type = TUNER_PHILIPS_PAL_I, |
2bfa1ac6 MCC |
913 | .tuner_addr = ADDR_UNSET, |
914 | .has_remote = 1, | |
915 | }, | |
5a25e84b | 916 | [BTTV_BOARD_PINNACLE] = { |
2bfa1ac6 MCC |
917 | .name = "Pinnacle PCTV Studio/Rave", |
918 | .video_inputs = 3, | |
4c548d4b | 919 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
920 | .svhs = 2, |
921 | .gpiomask = 0x03000F, | |
6f98700a | 922 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
923 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
924 | .gpiomute = 1, | |
2bfa1ac6 | 925 | .pll = PLL_28, |
8c2c0dfe | 926 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
927 | .tuner_addr = ADDR_UNSET, |
928 | }, | |
929 | ||
930 | /* ---- card 0x28 ---------------------------------- */ | |
5a25e84b | 931 | [BTTV_BOARD_STB2] = { |
2bfa1ac6 MCC |
932 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
933 | .video_inputs = 3, | |
4c548d4b | 934 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
935 | .svhs = 2, |
936 | .gpiomask = 7, | |
6f98700a | 937 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
938 | .gpiomux = { 4, 0, 2, 3 }, |
939 | .gpiomute = 1, | |
2bfa1ac6 | 940 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
941 | .tuner_type = TUNER_PHILIPS_NTSC, |
942 | .tuner_addr = ADDR_UNSET, | |
943 | .pll = PLL_28, | |
944 | .has_radio = 1, | |
945 | }, | |
5a25e84b | 946 | [BTTV_BOARD_AVPHONE98] = { |
2bfa1ac6 MCC |
947 | .name = "AVerMedia TVPhone 98", |
948 | .video_inputs = 3, | |
4c548d4b | 949 | /* .audio_inputs= 4, */ |
2bfa1ac6 MCC |
950 | .svhs = 2, |
951 | .gpiomask = 15, | |
6f98700a | 952 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 953 | .gpiomux = { 13, 4, 11, 7 }, |
2bfa1ac6 | 954 | .pll = PLL_28, |
8c2c0dfe | 955 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
956 | .tuner_addr = ADDR_UNSET, |
957 | .has_radio = 1, | |
4b9b936f | 958 | .audio_mode_gpio= avermedia_tvphone_audio, |
2bfa1ac6 | 959 | }, |
5a25e84b | 960 | [BTTV_BOARD_PV951] = { |
2bfa1ac6 MCC |
961 | .name = "ProVideo PV951", /* pic16c54 */ |
962 | .video_inputs = 3, | |
4c548d4b | 963 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
964 | .svhs = 2, |
965 | .gpiomask = 0, | |
6f98700a | 966 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 967 | .gpiomux = { 0, 0, 0, 0}, |
2bfa1ac6 MCC |
968 | .no_msp34xx = 1, |
969 | .pll = PLL_28, | |
8c2c0dfe | 970 | .tuner_type = TUNER_PHILIPS_PAL_I, |
2bfa1ac6 MCC |
971 | .tuner_addr = ADDR_UNSET, |
972 | }, | |
5a25e84b | 973 | [BTTV_BOARD_ONAIR_TV] = { |
2bfa1ac6 MCC |
974 | .name = "Little OnAir TV", |
975 | .video_inputs = 3, | |
4c548d4b | 976 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
977 | .svhs = 2, |
978 | .gpiomask = 0xe00b, | |
6f98700a | 979 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
980 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
981 | .gpiomute = 0xff3ffc, | |
2bfa1ac6 | 982 | .no_msp34xx = 1, |
8c2c0dfe | 983 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
984 | .tuner_addr = ADDR_UNSET, |
985 | }, | |
986 | ||
987 | /* ---- card 0x2c ---------------------------------- */ | |
5a25e84b | 988 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
2bfa1ac6 MCC |
989 | .name = "Sigma TVII-FM", |
990 | .video_inputs = 2, | |
4c548d4b TP |
991 | /* .audio_inputs= 1, */ |
992 | .svhs = NO_SVHS, | |
2bfa1ac6 | 993 | .gpiomask = 3, |
6f98700a | 994 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
995 | .gpiomux = { 1, 1, 0, 2 }, |
996 | .gpiomute = 3, | |
2bfa1ac6 MCC |
997 | .no_msp34xx = 1, |
998 | .pll = PLL_NONE, | |
8c2c0dfe | 999 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1000 | .tuner_addr = ADDR_UNSET, |
1001 | }, | |
5a25e84b | 1002 | [BTTV_BOARD_MATRIX_VISION2] = { |
2bfa1ac6 MCC |
1003 | .name = "MATRIX-Vision MV-Delta 2", |
1004 | .video_inputs = 5, | |
4c548d4b | 1005 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1006 | .svhs = 3, |
1007 | .gpiomask = 0, | |
6f98700a | 1008 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
8bf2f8e7 | 1009 | .gpiomux = { 0 }, |
2bfa1ac6 MCC |
1010 | .no_msp34xx = 1, |
1011 | .pll = PLL_28, | |
abb0362f | 1012 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1013 | .tuner_addr = ADDR_UNSET, |
1014 | }, | |
5a25e84b | 1015 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
2bfa1ac6 MCC |
1016 | .name = "Zoltrix Genie TV/FM", |
1017 | .video_inputs = 3, | |
4c548d4b | 1018 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1019 | .svhs = 2, |
1020 | .gpiomask = 0xbcf03f, | |
6f98700a | 1021 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1022 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
1023 | .gpiomute = 0xbcb03f, | |
2bfa1ac6 MCC |
1024 | .no_msp34xx = 1, |
1025 | .pll = PLL_28, | |
8c2c0dfe | 1026 | .tuner_type = TUNER_TEMIC_4039FR5_NTSC, |
2bfa1ac6 MCC |
1027 | .tuner_addr = ADDR_UNSET, |
1028 | }, | |
5a25e84b | 1029 | [BTTV_BOARD_TERRATVRADIO] = { |
2bfa1ac6 MCC |
1030 | .name = "Terratec TV/Radio+", |
1031 | .video_inputs = 3, | |
4c548d4b | 1032 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1033 | .svhs = 2, |
1034 | .gpiomask = 0x70000, | |
6f98700a | 1035 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1036 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
1037 | .gpiomute = 0x40000, | |
2bfa1ac6 MCC |
1038 | .no_msp34xx = 1, |
1039 | .pll = PLL_35, | |
8c2c0dfe | 1040 | .tuner_type = TUNER_PHILIPS_PAL_I, |
2bfa1ac6 MCC |
1041 | .tuner_addr = ADDR_UNSET, |
1042 | .has_radio = 1, | |
1043 | }, | |
1044 | ||
1045 | /* ---- card 0x30 ---------------------------------- */ | |
5a25e84b | 1046 | [BTTV_BOARD_DYNALINK] = { |
2bfa1ac6 MCC |
1047 | .name = "Askey CPH03x/ Dynalink Magic TView", |
1048 | .video_inputs = 3, | |
4c548d4b | 1049 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1050 | .svhs = 2, |
1051 | .gpiomask = 15, | |
6f98700a | 1052 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1053 | .gpiomux = {2,0,0,0 }, |
1054 | .gpiomute = 1, | |
2bfa1ac6 | 1055 | .pll = PLL_28, |
8c2c0dfe | 1056 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1057 | .tuner_addr = ADDR_UNSET, |
1058 | }, | |
5a25e84b | 1059 | [BTTV_BOARD_GVBCTV3PCI] = { |
2bfa1ac6 MCC |
1060 | .name = "IODATA GV-BCTV3/PCI", |
1061 | .video_inputs = 3, | |
4c548d4b | 1062 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1063 | .svhs = 2, |
1064 | .gpiomask = 0x010f00, | |
6f98700a | 1065 | .muxsel = MUXSEL(2, 3, 0, 0), |
8bf2f8e7 | 1066 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
2bfa1ac6 MCC |
1067 | .no_msp34xx = 1, |
1068 | .pll = PLL_28, | |
1069 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, | |
1070 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 1071 | .audio_mode_gpio= gvbctv3pci_audio, |
2bfa1ac6 | 1072 | }, |
5a25e84b | 1073 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
2bfa1ac6 MCC |
1074 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
1075 | .video_inputs = 5, | |
4c548d4b | 1076 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1077 | .svhs = 3, |
5221e21e | 1078 | .has_dig_in = 1, |
2bfa1ac6 | 1079 | .gpiomask = 0xAA0000, |
6f98700a | 1080 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
4c548d4b | 1081 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
8bf2f8e7 HV |
1082 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
1083 | .gpiomute = 0xa8000, | |
2bfa1ac6 MCC |
1084 | .no_msp34xx = 1, |
1085 | .pll = PLL_28, | |
1086 | .tuner_type = TUNER_PHILIPS_PAL_I, | |
1087 | .tuner_addr = ADDR_UNSET, | |
1088 | .has_remote = 1, | |
1089 | /* GPIO wiring: (different from Rev.4C !) | |
1090 | GPIO17: U4.A0 (first hef4052bt) | |
1091 | GPIO19: U4.A1 | |
1092 | GPIO20: U5.A1 (second hef4052bt) | |
1093 | GPIO21: U4.nEN | |
1094 | GPIO22: BT832 Reset Line | |
1095 | GPIO23: A5,A0, U5,nEN | |
1096 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 | |
1097 | */ | |
1098 | }, | |
5a25e84b | 1099 | [BTTV_BOARD_EAGLE] = { |
2bfa1ac6 MCC |
1100 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
1101 | .video_inputs = 4, | |
4c548d4b | 1102 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1103 | .svhs = 2, |
1104 | .gpiomask = 7, | |
6f98700a | 1105 | .muxsel = MUXSEL(2, 0, 1, 1), |
8bf2f8e7 HV |
1106 | .gpiomux = { 0, 1, 2, 3 }, |
1107 | .gpiomute = 4, | |
2bfa1ac6 | 1108 | .pll = PLL_28, |
8c2c0dfe | 1109 | .tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */, |
2bfa1ac6 MCC |
1110 | .tuner_addr = ADDR_UNSET, |
1111 | }, | |
1112 | ||
1113 | /* ---- card 0x34 ---------------------------------- */ | |
5a25e84b | 1114 | [BTTV_BOARD_PINNACLEPRO] = { |
2bfa1ac6 MCC |
1115 | /* David Härdeman <david@2gen.com> */ |
1116 | .name = "Pinnacle PCTV Studio Pro", | |
1117 | .video_inputs = 4, | |
4c548d4b | 1118 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1119 | .svhs = 3, |
1120 | .gpiomask = 0x03000F, | |
6f98700a | 1121 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1122 | .gpiomux = { 1, 0xd0001, 0, 0 }, |
1123 | .gpiomute = 10, | |
2bfa1ac6 MCC |
1124 | /* sound path (5 sources): |
1125 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) | |
1126 | 0= ext. Audio IN | |
1127 | 1= from MUX2 | |
1128 | 2= Mono TV sound from Tuner | |
1129 | 3= not connected | |
1130 | MUX2 (mask 0x30000): | |
1131 | 0,2,3= from MSP34xx | |
1132 | 1= FM stereo Radio from Tuner */ | |
2bfa1ac6 | 1133 | .pll = PLL_28, |
8c2c0dfe | 1134 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1135 | .tuner_addr = ADDR_UNSET, |
1136 | }, | |
5a25e84b | 1137 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
2bfa1ac6 MCC |
1138 | /* Claas Langbehn <claas@bigfoot.com>, |
1139 | Sven Grothklags <sven@upb.de> */ | |
1140 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", | |
1141 | .video_inputs = 4, | |
4c548d4b | 1142 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
1143 | .svhs = 2, |
1144 | .gpiomask = 0x1c, | |
6f98700a | 1145 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1146 | .gpiomux = { 0, 0, 0x10, 8 }, |
1147 | .gpiomute = 4, | |
2bfa1ac6 MCC |
1148 | .pll = PLL_28, |
1149 | .tuner_type = TUNER_PHILIPS_PAL, | |
1150 | .tuner_addr = ADDR_UNSET, | |
1151 | .has_radio = 1, | |
1152 | }, | |
5a25e84b | 1153 | [BTTV_BOARD_LIFETEC_9415] = { |
96de0e25 | 1154 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
2bfa1ac6 MCC |
1155 | in de.comp.os.unix.linux.hardware: |
1156 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 | |
8bf2f8e7 | 1157 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
2bfa1ac6 MCC |
1158 | options tuner type=5 */ |
1159 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", | |
1160 | .video_inputs = 4, | |
4c548d4b | 1161 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1162 | .svhs = 2, |
1163 | .gpiomask = 0x18e0, | |
6f98700a | 1164 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1165 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
1166 | .gpiomute = 0x18e0, | |
2bfa1ac6 MCC |
1167 | /* For cards with tda9820/tda9821: |
1168 | 0x0000: Tuner normal stereo | |
1169 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) | |
1170 | 0x0880: Tuner A2 stereo */ | |
1171 | .pll = PLL_28, | |
8c2c0dfe | 1172 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1173 | .tuner_addr = ADDR_UNSET, |
1174 | }, | |
5a25e84b | 1175 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
2bfa1ac6 MCC |
1176 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
1177 | old Easy TV BT848 version (model CPH031) */ | |
1178 | .name = "Askey CPH031/ BESTBUY Easy TV", | |
1179 | .video_inputs = 4, | |
4c548d4b | 1180 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1181 | .svhs = 2, |
1182 | .gpiomask = 0xF, | |
6f98700a | 1183 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
1184 | .gpiomux = { 2, 0, 0, 0 }, |
1185 | .gpiomute = 10, | |
2bfa1ac6 MCC |
1186 | .pll = PLL_28, |
1187 | .tuner_type = TUNER_TEMIC_PAL, | |
1188 | .tuner_addr = ADDR_UNSET, | |
1189 | }, | |
1190 | ||
1191 | /* ---- card 0x38 ---------------------------------- */ | |
5a25e84b | 1192 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
2bfa1ac6 MCC |
1193 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
1194 | .name = "Lifeview FlyVideo 98FM LR50", | |
1195 | .video_inputs = 4, | |
4c548d4b | 1196 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
1197 | .svhs = 2, |
1198 | .gpiomask = 0x1800, | |
6f98700a | 1199 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1200 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
1201 | .gpiomute = 0x1800, | |
2bfa1ac6 | 1202 | .pll = PLL_28, |
8c2c0dfe | 1203 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 MCC |
1204 | .tuner_addr = ADDR_UNSET, |
1205 | }, | |
1206 | /* This is the ultimate cheapo capture card | |
1207 | * just a BT848A on a small PCB! | |
1208 | * Steve Hosgood <steve@equiinet.com> */ | |
5a25e84b | 1209 | [BTTV_BOARD_GRANDTEC] = { |
2bfa1ac6 MCC |
1210 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
1211 | .video_inputs = 2, | |
4c548d4b | 1212 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
1213 | .svhs = 1, |
1214 | .gpiomask = 0, | |
6f98700a | 1215 | .muxsel = MUXSEL(3, 1), |
8bf2f8e7 | 1216 | .gpiomux = { 0 }, |
2bfa1ac6 MCC |
1217 | .no_msp34xx = 1, |
1218 | .pll = PLL_35, | |
abb0362f | 1219 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1220 | .tuner_addr = ADDR_UNSET, |
1221 | }, | |
5a25e84b | 1222 | [BTTV_BOARD_ASKEY_CPH060] = { |
2bfa1ac6 MCC |
1223 | /* Daniel Herrington <daniel.herrington@home.com> */ |
1224 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", | |
1225 | .video_inputs = 3, | |
4c548d4b | 1226 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1227 | .svhs = 2, |
1228 | .gpiomask = 0xe00, | |
6f98700a | 1229 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1230 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
1231 | .gpiomute = 0x800, | |
2bfa1ac6 MCC |
1232 | .pll = PLL_28, |
1233 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, | |
1234 | .tuner_addr = ADDR_UNSET, | |
1235 | }, | |
5a25e84b | 1236 | [BTTV_BOARD_ASKEY_CPH03X] = { |
2bfa1ac6 MCC |
1237 | /* Matti Mottus <mottus@physic.ut.ee> */ |
1238 | .name = "Askey CPH03x TV Capturer", | |
1239 | .video_inputs = 4, | |
4c548d4b | 1240 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1241 | .svhs = 2, |
1242 | .gpiomask = 0x03000F, | |
6f98700a | 1243 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
1244 | .gpiomux = { 2, 0, 0, 0 }, |
1245 | .gpiomute = 1, | |
2bfa1ac6 | 1246 | .pll = PLL_28, |
8c2c0dfe | 1247 | .tuner_type = TUNER_TEMIC_PAL, |
2bfa1ac6 | 1248 | .tuner_addr = ADDR_UNSET, |
ed44f66e | 1249 | .has_remote = 1, |
2bfa1ac6 MCC |
1250 | }, |
1251 | ||
1252 | /* ---- card 0x3c ---------------------------------- */ | |
5a25e84b | 1253 | [BTTV_BOARD_MM100PCTV] = { |
2bfa1ac6 MCC |
1254 | /* Philip Blundell <philb@gnu.org> */ |
1255 | .name = "Modular Technology MM100PCTV", | |
1256 | .video_inputs = 2, | |
4c548d4b TP |
1257 | /* .audio_inputs= 2, */ |
1258 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1259 | .gpiomask = 11, |
6f98700a | 1260 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1261 | .gpiomux = { 2, 0, 0, 1 }, |
1262 | .gpiomute = 8, | |
2bfa1ac6 MCC |
1263 | .pll = PLL_35, |
1264 | .tuner_type = TUNER_TEMIC_PAL, | |
1265 | .tuner_addr = ADDR_UNSET, | |
1266 | }, | |
5a25e84b | 1267 | [BTTV_BOARD_GMV1] = { |
2bfa1ac6 | 1268 | /* Adrian Cox <adrian@humboldt.co.uk */ |
4ac97914 | 1269 | .name = "AG Electronics GMV1", |
2bfa1ac6 | 1270 | .video_inputs = 2, |
4c548d4b | 1271 | /* .audio_inputs= 0, */ |
4ac97914 | 1272 | .svhs = 1, |
2bfa1ac6 | 1273 | .gpiomask = 0xF, |
6f98700a | 1274 | .muxsel = MUXSEL(2, 2), |
8bf2f8e7 | 1275 | .gpiomux = { }, |
2bfa1ac6 | 1276 | .no_msp34xx = 1, |
4ac97914 | 1277 | .pll = PLL_28, |
abb0362f | 1278 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1279 | .tuner_addr = ADDR_UNSET, |
1280 | }, | |
5a25e84b | 1281 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
2bfa1ac6 MCC |
1282 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
1283 | new Easy TV BT878 version (model CPH061) | |
1284 | special thanks to Informatica Mieres for providing the card */ | |
1285 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", | |
1286 | .video_inputs = 3, | |
4c548d4b | 1287 | /* .audio_inputs= 2, */ |
2bfa1ac6 MCC |
1288 | .svhs = 2, |
1289 | .gpiomask = 0xFF, | |
6f98700a | 1290 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
1291 | .gpiomux = { 1, 0, 4, 4 }, |
1292 | .gpiomute = 9, | |
2bfa1ac6 MCC |
1293 | .pll = PLL_28, |
1294 | .tuner_type = TUNER_PHILIPS_PAL, | |
1295 | .tuner_addr = ADDR_UNSET, | |
1296 | }, | |
5a25e84b | 1297 | [BTTV_BOARD_ATI_TVWONDER] = { |
2bfa1ac6 MCC |
1298 | /* Lukas Gebauer <geby@volny.cz> */ |
1299 | .name = "ATI TV-Wonder", | |
1300 | .video_inputs = 3, | |
4c548d4b | 1301 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1302 | .svhs = 2, |
1303 | .gpiomask = 0xf03f, | |
6f98700a | 1304 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
1305 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
1306 | .gpiomute = 0xbffe, | |
2bfa1ac6 MCC |
1307 | .pll = PLL_28, |
1308 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, | |
1309 | .tuner_addr = ADDR_UNSET, | |
1310 | }, | |
1311 | ||
1312 | /* ---- card 0x40 ---------------------------------- */ | |
5a25e84b | 1313 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
2bfa1ac6 MCC |
1314 | /* Lukas Gebauer <geby@volny.cz> */ |
1315 | .name = "ATI TV-Wonder VE", | |
1316 | .video_inputs = 2, | |
4c548d4b TP |
1317 | /* .audio_inputs= 1, */ |
1318 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1319 | .gpiomask = 1, |
6f98700a | 1320 | .muxsel = MUXSEL(2, 3, 0, 1), |
8bf2f8e7 | 1321 | .gpiomux = { 0, 0, 1, 0 }, |
2bfa1ac6 MCC |
1322 | .no_msp34xx = 1, |
1323 | .pll = PLL_28, | |
1324 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, | |
1325 | .tuner_addr = ADDR_UNSET, | |
1326 | }, | |
5a25e84b | 1327 | [BTTV_BOARD_FLYVIDEO2000] = { |
2bfa1ac6 MCC |
1328 | /* DeeJay <deejay@westel900.net (2000S) */ |
1329 | .name = "Lifeview FlyVideo 2000S LR90", | |
1330 | .video_inputs = 3, | |
4c548d4b | 1331 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
1332 | .svhs = 2, |
1333 | .gpiomask = 0x18e0, | |
6f98700a | 1334 | .muxsel = MUXSEL(2, 3, 0, 1), |
2bfa1ac6 MCC |
1335 | /* Radio changed from 1e80 to 0x800 to make |
1336 | FlyVideo2000S in .hu happy (gm)*/ | |
1337 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ | |
8bf2f8e7 HV |
1338 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
1339 | .gpiomute = 0x1800, | |
4b9b936f | 1340 | .audio_mode_gpio= fv2000s_audio, |
2bfa1ac6 | 1341 | .no_msp34xx = 1, |
2bfa1ac6 | 1342 | .pll = PLL_28, |
8c2c0dfe | 1343 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 MCC |
1344 | .tuner_addr = ADDR_UNSET, |
1345 | }, | |
5a25e84b | 1346 | [BTTV_BOARD_TERRATVALUER] = { |
2bfa1ac6 MCC |
1347 | .name = "Terratec TValueRadio", |
1348 | .video_inputs = 3, | |
4c548d4b | 1349 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1350 | .svhs = 2, |
1351 | .gpiomask = 0xffff00, | |
6f98700a | 1352 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1353 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
1354 | .gpiomute = 0x900, | |
2bfa1ac6 MCC |
1355 | .pll = PLL_28, |
1356 | .tuner_type = TUNER_PHILIPS_PAL, | |
1357 | .tuner_addr = ADDR_UNSET, | |
1358 | .has_radio = 1, | |
1359 | }, | |
5a25e84b | 1360 | [BTTV_BOARD_GVBCTV4PCI] = { |
2bfa1ac6 MCC |
1361 | /* TANAKA Kei <peg00625@nifty.com> */ |
1362 | .name = "IODATA GV-BCTV4/PCI", | |
1363 | .video_inputs = 3, | |
4c548d4b | 1364 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1365 | .svhs = 2, |
1366 | .gpiomask = 0x010f00, | |
6f98700a | 1367 | .muxsel = MUXSEL(2, 3, 0, 0), |
8bf2f8e7 | 1368 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
2bfa1ac6 MCC |
1369 | .no_msp34xx = 1, |
1370 | .pll = PLL_28, | |
1371 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, | |
1372 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 1373 | .audio_mode_gpio= gvbctv3pci_audio, |
2bfa1ac6 MCC |
1374 | }, |
1375 | ||
1376 | /* ---- card 0x44 ---------------------------------- */ | |
5a25e84b | 1377 | [BTTV_BOARD_VOODOOTV_FM] = { |
434b2526 WB |
1378 | .name = "3Dfx VoodooTV FM (Euro)", |
1379 | /* try "insmod msp3400 simple=0" if you have | |
1380 | * sound problems with this card. */ | |
1381 | .video_inputs = 4, | |
4c548d4b TP |
1382 | /* .audio_inputs= 1, */ |
1383 | .svhs = NO_SVHS, | |
434b2526 WB |
1384 | .gpiomask = 0x4f8a00, |
1385 | /* 0x100000: 1=MSP enabled (0=disable again) | |
1386 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ | |
1387 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, | |
1388 | .gpiomute = 0x947fff, | |
1389 | /* tvtuner, radio, external,internal, mute, stereo | |
1390 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ | |
6f98700a | 1391 | .muxsel = MUXSEL(2, 3, 0, 1), |
434b2526 WB |
1392 | .tuner_type = TUNER_MT2032, |
1393 | .tuner_addr = ADDR_UNSET, | |
434b2526 WB |
1394 | .pll = PLL_28, |
1395 | .has_radio = 1, | |
1396 | }, | |
1397 | [BTTV_BOARD_VOODOOTV_200] = { | |
1398 | .name = "VoodooTV 200 (USA)", | |
2bfa1ac6 MCC |
1399 | /* try "insmod msp3400 simple=0" if you have |
1400 | * sound problems with this card. */ | |
1401 | .video_inputs = 4, | |
4c548d4b TP |
1402 | /* .audio_inputs= 1, */ |
1403 | .svhs = NO_SVHS, | |
2bfa1ac6 MCC |
1404 | .gpiomask = 0x4f8a00, |
1405 | /* 0x100000: 1=MSP enabled (0=disable again) | |
1406 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ | |
8bf2f8e7 HV |
1407 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
1408 | .gpiomute = 0x947fff, | |
2bfa1ac6 MCC |
1409 | /* tvtuner, radio, external,internal, mute, stereo |
1410 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ | |
6f98700a | 1411 | .muxsel = MUXSEL(2, 3, 0, 1), |
2bfa1ac6 MCC |
1412 | .tuner_type = TUNER_MT2032, |
1413 | .tuner_addr = ADDR_UNSET, | |
1414 | .pll = PLL_28, | |
1415 | .has_radio = 1, | |
1416 | }, | |
5a25e84b | 1417 | [BTTV_BOARD_AIMMS] = { |
2bfa1ac6 MCC |
1418 | /* Philip Blundell <pb@nexus.co.uk> */ |
1419 | .name = "Active Imaging AIMMS", | |
1420 | .video_inputs = 1, | |
4c548d4b | 1421 | /* .audio_inputs= 0, */ |
abb0362f | 1422 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1423 | .tuner_addr = ADDR_UNSET, |
1424 | .pll = PLL_28, | |
6f98700a | 1425 | .muxsel = MUXSEL(2), |
2bfa1ac6 MCC |
1426 | .gpiomask = 0 |
1427 | }, | |
5a25e84b | 1428 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
2bfa1ac6 MCC |
1429 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
1430 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", | |
1431 | .video_inputs = 3, | |
4c548d4b | 1432 | /* .audio_inputs= 4, */ |
2bfa1ac6 MCC |
1433 | .svhs = 2, |
1434 | .gpiomask = 15, | |
6f98700a | 1435 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1436 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
1437 | .gpiomute = 13, | |
2bfa1ac6 | 1438 | .pll = PLL_28, |
8c2c0dfe | 1439 | .tuner_type = TUNER_LG_PAL_I_FM, |
2bfa1ac6 MCC |
1440 | .tuner_addr = ADDR_UNSET, |
1441 | .has_remote = 1, | |
1442 | /* GPIO wiring: | |
1443 | GPIO0: U4.A0 (hef4052bt) | |
1444 | GPIO1: U4.A1 | |
1445 | GPIO2: U4.A1 (second hef4052bt) | |
1446 | GPIO3: U4.nEN, U5.A0, A5.nEN | |
1447 | GPIO8-15: vrd866b ? | |
1448 | */ | |
1449 | }, | |
5a25e84b | 1450 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
2bfa1ac6 MCC |
1451 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
1452 | .video_inputs = 4, | |
4c548d4b | 1453 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1454 | .svhs = 2, |
6f98700a TP |
1455 | /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
1456 | .muxsel = MUXSEL(2, 3, 1, 1), | |
2bfa1ac6 MCC |
1457 | .pll = PLL_28, |
1458 | .no_msp34xx = 1, | |
abb0362f | 1459 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1460 | .tuner_addr = ADDR_UNSET, |
1461 | }, | |
1462 | ||
1463 | /* ---- card 0x48 ---------------------------------- */ | |
5a25e84b | 1464 | [BTTV_BOARD_PV_BT878P_9B] = { |
2bfa1ac6 MCC |
1465 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
1466 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", | |
1467 | .video_inputs = 4, | |
4c548d4b | 1468 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1469 | .svhs = 2, |
1470 | .gpiomask = 0x3f, | |
6f98700a | 1471 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1472 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
1473 | .gpiomute = 0x09, | |
2bfa1ac6 | 1474 | .no_msp34xx = 1, |
2bfa1ac6 | 1475 | .pll = PLL_28, |
8c2c0dfe | 1476 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 | 1477 | .tuner_addr = ADDR_UNSET, |
4b9b936f | 1478 | .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */ |
2bfa1ac6 MCC |
1479 | .has_radio = 1, /* Note: not all cards have radio */ |
1480 | .has_remote = 1, | |
1481 | /* GPIO wiring: | |
1482 | GPIO0: A0 hef4052 | |
1483 | GPIO1: A1 hef4052 | |
1484 | GPIO3: nEN hef4052 | |
1485 | GPIO8-15: vrd866b | |
1486 | GPIO20,22,23: R30,R29,R28 | |
1487 | */ | |
1488 | }, | |
57437c1d | 1489 | [BTTV_BOARD_SENSORAY311_611] = { |
2bfa1ac6 | 1490 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
57437c1d | 1491 | /* you must jumper JP5 for the 311 card (PC/104+) to work */ |
1492 | .name = "Sensoray 311/611", | |
2bfa1ac6 | 1493 | .video_inputs = 5, |
4c548d4b | 1494 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
1495 | .svhs = 4, |
1496 | .gpiomask = 0, | |
6f98700a | 1497 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
8bf2f8e7 | 1498 | .gpiomux = { 0 }, |
abb0362f | 1499 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1500 | .tuner_addr = ADDR_UNSET, |
1501 | }, | |
5a25e84b | 1502 | [BTTV_BOARD_RV605] = { |
2bfa1ac6 MCC |
1503 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
1504 | .name = "RemoteVision MX (RV605)", | |
1505 | .video_inputs = 16, | |
4c548d4b TP |
1506 | /* .audio_inputs= 0, */ |
1507 | .svhs = NO_SVHS, | |
2bfa1ac6 MCC |
1508 | .gpiomask = 0x00, |
1509 | .gpiomask2 = 0x07ff, | |
6f98700a | 1510 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
2bfa1ac6 | 1511 | .no_msp34xx = 1, |
abb0362f | 1512 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1513 | .tuner_addr = ADDR_UNSET, |
1514 | .muxsel_hook = rv605_muxsel, | |
1515 | }, | |
5a25e84b | 1516 | [BTTV_BOARD_POWERCLR_MTV878] = { |
2bfa1ac6 MCC |
1517 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
1518 | .video_inputs = 3, | |
4c548d4b | 1519 | /* .audio_inputs= 2, */ |
2bfa1ac6 MCC |
1520 | .svhs = 2, |
1521 | .gpiomask = 0x1C800F, /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */ | |
6f98700a | 1522 | .muxsel = MUXSEL(2, 1, 1), |
8bf2f8e7 HV |
1523 | .gpiomux = { 0, 1, 2, 2 }, |
1524 | .gpiomute = 4, | |
2bfa1ac6 MCC |
1525 | .tuner_type = TUNER_PHILIPS_PAL, |
1526 | .tuner_addr = ADDR_UNSET, | |
1527 | .pll = PLL_28, | |
1528 | .has_radio = 1, | |
1529 | }, | |
1530 | ||
1531 | /* ---- card 0x4c ---------------------------------- */ | |
5a25e84b | 1532 | [BTTV_BOARD_WINDVR] = { |
2bfa1ac6 MCC |
1533 | /* Masaki Suzuki <masaki@btree.org> */ |
1534 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", | |
1535 | .video_inputs = 3, | |
4c548d4b | 1536 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1537 | .svhs = 2, |
1538 | .gpiomask = 0x140007, | |
6f98700a | 1539 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1540 | .gpiomux = { 0, 1, 2, 3 }, |
1541 | .gpiomute = 4, | |
2bfa1ac6 MCC |
1542 | .tuner_type = TUNER_PHILIPS_NTSC, |
1543 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 1544 | .audio_mode_gpio= windvr_audio, |
2bfa1ac6 | 1545 | }, |
5a25e84b | 1546 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
2bfa1ac6 MCC |
1547 | .name = "GrandTec Multi Capture Card (Bt878)", |
1548 | .video_inputs = 4, | |
4c548d4b TP |
1549 | /* .audio_inputs= 0, */ |
1550 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1551 | .gpiomask = 0, |
6f98700a | 1552 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 | 1553 | .gpiomux = { 0 }, |
2bfa1ac6 MCC |
1554 | .no_msp34xx = 1, |
1555 | .pll = PLL_28, | |
abb0362f | 1556 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1557 | .tuner_addr = ADDR_UNSET, |
1558 | }, | |
5a25e84b | 1559 | [BTTV_BOARD_KWORLD] = { |
2bfa1ac6 MCC |
1560 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
1561 | .video_inputs = 4, | |
4c548d4b | 1562 | /* .audio_inputs= 3, */ |
2bfa1ac6 MCC |
1563 | .svhs = 2, |
1564 | .gpiomask = 7, | |
6f98700a TP |
1565 | /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
1566 | .muxsel = MUXSEL(2, 3, 1, 1), | |
8bf2f8e7 | 1567 | .gpiomux = { 0, 0, 4, 4 },/* Yes, this tuner uses the same audio output for TV and FM radio! |
2bfa1ac6 MCC |
1568 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
1569 | * The PCB can take a sbx1637/sbx1673, wiring unknown. | |
1570 | * This card lacks PCI subsystem ID, sigh. | |
8bf2f8e7 | 1571 | * gpiomux =1: lower volume, 2+3: mute |
2bfa1ac6 MCC |
1572 | * btwincap uses 0x80000/0x80003 |
1573 | */ | |
8bf2f8e7 | 1574 | .gpiomute = 4, |
2bfa1ac6 MCC |
1575 | .no_msp34xx = 1, |
1576 | .pll = PLL_28, | |
8c2c0dfe | 1577 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 MCC |
1578 | .tuner_addr = ADDR_UNSET, |
1579 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and | |
1580 | radio signal strength indicators work fine. */ | |
1581 | .has_radio = 1, | |
1582 | /* GPIO Info: | |
1583 | GPIO0,1: HEF4052 A0,A1 | |
1584 | GPIO2: HEF4052 nENABLE | |
1585 | GPIO3-7: n.c. | |
1586 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] | |
1587 | GPIO14,15: ?? | |
1588 | GPIO16-21: n.c. | |
1589 | GPIO22,23: ?? | |
1590 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ | |
1591 | }, | |
5a25e84b | 1592 | [BTTV_BOARD_DSP_TCVIDEO] = { |
2bfa1ac6 MCC |
1593 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
1594 | .name = "DSP Design TCVIDEO", | |
1595 | .video_inputs = 4, | |
4c548d4b | 1596 | .svhs = NO_SVHS, |
6f98700a | 1597 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 | 1598 | .pll = PLL_28, |
8c2c0dfe | 1599 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1600 | .tuner_addr = ADDR_UNSET, |
1601 | }, | |
1602 | ||
1603 | /* ---- card 0x50 ---------------------------------- */ | |
5a25e84b | 1604 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
2bfa1ac6 MCC |
1605 | .name = "Hauppauge WinTV PVR", |
1606 | .video_inputs = 4, | |
4c548d4b | 1607 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1608 | .svhs = 2, |
6f98700a | 1609 | .muxsel = MUXSEL(2, 0, 1, 1), |
2bfa1ac6 | 1610 | .pll = PLL_28, |
8c2c0dfe | 1611 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
1612 | .tuner_addr = ADDR_UNSET, |
1613 | ||
1614 | .gpiomask = 7, | |
8bf2f8e7 | 1615 | .gpiomux = {7}, |
2bfa1ac6 | 1616 | }, |
5a25e84b | 1617 | [BTTV_BOARD_GVBCTV5PCI] = { |
2bfa1ac6 MCC |
1618 | .name = "IODATA GV-BCTV5/PCI", |
1619 | .video_inputs = 3, | |
4c548d4b | 1620 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1621 | .svhs = 2, |
1622 | .gpiomask = 0x0f0f80, | |
6f98700a | 1623 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
1624 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
1625 | .gpiomute = 0x020000, | |
2bfa1ac6 MCC |
1626 | .no_msp34xx = 1, |
1627 | .pll = PLL_28, | |
1628 | .tuner_type = TUNER_PHILIPS_NTSC_M, | |
1629 | .tuner_addr = ADDR_UNSET, | |
4b9b936f | 1630 | .audio_mode_gpio= gvbctv5pci_audio, |
2bfa1ac6 MCC |
1631 | .has_radio = 1, |
1632 | }, | |
5a25e84b | 1633 | [BTTV_BOARD_OSPREY1x0] = { |
2bfa1ac6 MCC |
1634 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
1635 | .video_inputs = 4, /* id-inputs-clock */ | |
4c548d4b | 1636 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1637 | .svhs = 3, |
6f98700a | 1638 | .muxsel = MUXSEL(3, 2, 0, 1), |
2bfa1ac6 | 1639 | .pll = PLL_28, |
abb0362f | 1640 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1641 | .tuner_addr = ADDR_UNSET, |
1642 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1643 | .no_tda7432 = 1, |
1644 | }, | |
5a25e84b | 1645 | [BTTV_BOARD_OSPREY1x0_848] = { |
2bfa1ac6 MCC |
1646 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
1647 | .video_inputs = 3, | |
4c548d4b | 1648 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1649 | .svhs = 2, |
6f98700a | 1650 | .muxsel = MUXSEL(2, 3, 1), |
2bfa1ac6 | 1651 | .pll = PLL_28, |
abb0362f | 1652 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1653 | .tuner_addr = ADDR_UNSET, |
1654 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1655 | .no_tda7432 = 1, |
1656 | }, | |
1657 | ||
1658 | /* ---- card 0x54 ---------------------------------- */ | |
5a25e84b | 1659 | [BTTV_BOARD_OSPREY101_848] = { |
2bfa1ac6 MCC |
1660 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
1661 | .video_inputs = 2, | |
4c548d4b | 1662 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1663 | .svhs = 1, |
6f98700a | 1664 | .muxsel = MUXSEL(3, 1), |
2bfa1ac6 | 1665 | .pll = PLL_28, |
abb0362f | 1666 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1667 | .tuner_addr = ADDR_UNSET, |
1668 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1669 | .no_tda7432 = 1, |
1670 | }, | |
5a25e84b | 1671 | [BTTV_BOARD_OSPREY1x1] = { |
2bfa1ac6 MCC |
1672 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
1673 | .video_inputs = 1, | |
4c548d4b TP |
1674 | /* .audio_inputs= 0, */ |
1675 | .svhs = NO_SVHS, | |
6f98700a | 1676 | .muxsel = MUXSEL(0), |
2bfa1ac6 | 1677 | .pll = PLL_28, |
abb0362f | 1678 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1679 | .tuner_addr = ADDR_UNSET, |
1680 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1681 | .no_tda7432 = 1, |
1682 | }, | |
5a25e84b | 1683 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
2bfa1ac6 MCC |
1684 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
1685 | .video_inputs = 2, | |
4c548d4b | 1686 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1687 | .svhs = 1, |
6f98700a | 1688 | .muxsel = MUXSEL(0, 1), |
2bfa1ac6 | 1689 | .pll = PLL_28, |
abb0362f | 1690 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1691 | .tuner_addr = ADDR_UNSET, |
1692 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1693 | .no_tda7432 = 1, |
1694 | }, | |
5a25e84b | 1695 | [BTTV_BOARD_OSPREY2xx] = { |
2bfa1ac6 MCC |
1696 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
1697 | .video_inputs = 1, | |
4c548d4b TP |
1698 | /* .audio_inputs= 1, */ |
1699 | .svhs = NO_SVHS, | |
6f98700a | 1700 | .muxsel = MUXSEL(0), |
2bfa1ac6 | 1701 | .pll = PLL_28, |
abb0362f | 1702 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1703 | .tuner_addr = ADDR_UNSET, |
1704 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1705 | .no_tda7432 = 1, |
1706 | }, | |
1707 | ||
1708 | /* ---- card 0x58 ---------------------------------- */ | |
5a25e84b | 1709 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
2bfa1ac6 MCC |
1710 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
1711 | .video_inputs = 2, | |
4c548d4b | 1712 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1713 | .svhs = 1, |
6f98700a | 1714 | .muxsel = MUXSEL(0, 1), |
2bfa1ac6 | 1715 | .pll = PLL_28, |
abb0362f | 1716 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1717 | .tuner_addr = ADDR_UNSET, |
1718 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1719 | .no_tda7432 = 1, |
1720 | }, | |
5a25e84b | 1721 | [BTTV_BOARD_OSPREY2x0] = { |
52398efc | 1722 | .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */ |
2bfa1ac6 | 1723 | .video_inputs = 2, |
4c548d4b | 1724 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1725 | .svhs = 1, |
6f98700a | 1726 | .muxsel = MUXSEL(2, 3), |
2bfa1ac6 | 1727 | .pll = PLL_28, |
abb0362f | 1728 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1729 | .tuner_addr = ADDR_UNSET, |
1730 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1731 | .no_tda7432 = 1, |
1732 | }, | |
5a25e84b | 1733 | [BTTV_BOARD_OSPREY500] = { |
2bfa1ac6 MCC |
1734 | .name = "Osprey 500", /* 500 */ |
1735 | .video_inputs = 2, | |
4c548d4b | 1736 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1737 | .svhs = 1, |
6f98700a | 1738 | .muxsel = MUXSEL(2, 3), |
2bfa1ac6 | 1739 | .pll = PLL_28, |
abb0362f | 1740 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1741 | .tuner_addr = ADDR_UNSET, |
1742 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1743 | .no_tda7432 = 1, |
1744 | }, | |
5a25e84b | 1745 | [BTTV_BOARD_OSPREY540] = { |
2bfa1ac6 MCC |
1746 | .name = "Osprey 540", /* 540 */ |
1747 | .video_inputs = 4, | |
4c548d4b | 1748 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1749 | .pll = PLL_28, |
abb0362f | 1750 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1751 | .tuner_addr = ADDR_UNSET, |
1752 | .no_msp34xx = 1, | |
2bfa1ac6 | 1753 | .no_tda7432 = 1, |
2bfa1ac6 MCC |
1754 | }, |
1755 | ||
1756 | /* ---- card 0x5C ---------------------------------- */ | |
5a25e84b | 1757 | [BTTV_BOARD_OSPREY2000] = { |
2bfa1ac6 MCC |
1758 | .name = "Osprey 2000", /* 2000 */ |
1759 | .video_inputs = 2, | |
4c548d4b | 1760 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1761 | .svhs = 1, |
6f98700a | 1762 | .muxsel = MUXSEL(2, 3), |
2bfa1ac6 | 1763 | .pll = PLL_28, |
abb0362f | 1764 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1765 | .tuner_addr = ADDR_UNSET, |
1766 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1767 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
1768 | }, | |
5a25e84b | 1769 | [BTTV_BOARD_IDS_EAGLE] = { |
2bfa1ac6 MCC |
1770 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
1771 | .name = "IDS Eagle", | |
1772 | .video_inputs = 4, | |
4c548d4b | 1773 | /* .audio_inputs= 0, */ |
abb0362f | 1774 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 1775 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 1776 | .svhs = NO_SVHS, |
2bfa1ac6 | 1777 | .gpiomask = 0, |
6f98700a | 1778 | .muxsel = MUXSEL(2, 2, 2, 2), |
2bfa1ac6 MCC |
1779 | .muxsel_hook = eagle_muxsel, |
1780 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1781 | .pll = PLL_28, |
1782 | }, | |
5a25e84b | 1783 | [BTTV_BOARD_PINNACLESAT] = { |
2bfa1ac6 MCC |
1784 | .name = "Pinnacle PCTV Sat", |
1785 | .video_inputs = 2, | |
4c548d4b | 1786 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 1787 | .svhs = 1, |
abb0362f | 1788 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1789 | .tuner_addr = ADDR_UNSET, |
1790 | .no_msp34xx = 1, | |
2bfa1ac6 | 1791 | .no_tda7432 = 1, |
6f98700a | 1792 | .muxsel = MUXSEL(3, 1), |
2bfa1ac6 MCC |
1793 | .pll = PLL_28, |
1794 | .no_gpioirq = 1, | |
1795 | .has_dvb = 1, | |
1796 | }, | |
5a25e84b | 1797 | [BTTV_BOARD_FORMAC_PROTV] = { |
2bfa1ac6 MCC |
1798 | .name = "Formac ProTV II (bt878)", |
1799 | .video_inputs = 4, | |
4c548d4b | 1800 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1801 | .svhs = 3, |
1802 | .gpiomask = 2, | |
1803 | /* TV, Comp1, Composite over SVID con, SVID */ | |
6f98700a | 1804 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 1805 | .gpiomux = { 2, 2, 0, 0 }, |
2bfa1ac6 MCC |
1806 | .pll = PLL_28, |
1807 | .has_radio = 1, | |
1808 | .tuner_type = TUNER_PHILIPS_PAL, | |
1809 | .tuner_addr = ADDR_UNSET, | |
1810 | /* sound routing: | |
1811 | GPIO=0x00,0x01,0x03: mute (?) | |
1812 | 0x02: both TV and radio (tuner: FM1216/I) | |
1813 | The card has onboard audio connectors labeled "cdrom" and "board", | |
1814 | not soldered here, though unknown wiring. | |
1815 | Card lacks: external audio in, pci subsystem id. | |
24a70fdc | 1816 | */ |
2bfa1ac6 MCC |
1817 | }, |
1818 | ||
1819 | /* ---- card 0x60 ---------------------------------- */ | |
5a25e84b | 1820 | [BTTV_BOARD_MACHTV] = { |
2bfa1ac6 MCC |
1821 | .name = "MachTV", |
1822 | .video_inputs = 3, | |
4c548d4b TP |
1823 | /* .audio_inputs= 1, */ |
1824 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1825 | .gpiomask = 7, |
6f98700a | 1826 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
1827 | .gpiomux = { 0, 1, 2, 3}, |
1828 | .gpiomute = 4, | |
8c2c0dfe | 1829 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 | 1830 | .tuner_addr = ADDR_UNSET, |
cf583ac4 | 1831 | .pll = PLL_28, |
2bfa1ac6 | 1832 | }, |
5a25e84b | 1833 | [BTTV_BOARD_EURESYS_PICOLO] = { |
2bfa1ac6 MCC |
1834 | .name = "Euresys Picolo", |
1835 | .video_inputs = 3, | |
4c548d4b | 1836 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
1837 | .svhs = 2, |
1838 | .gpiomask = 0, | |
1839 | .no_msp34xx = 1, | |
2bfa1ac6 | 1840 | .no_tda7432 = 1, |
6f98700a | 1841 | .muxsel = MUXSEL(2, 0, 1), |
2bfa1ac6 | 1842 | .pll = PLL_28, |
abb0362f | 1843 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1844 | .tuner_addr = ADDR_UNSET, |
1845 | }, | |
5a25e84b | 1846 | [BTTV_BOARD_PV150] = { |
2bfa1ac6 MCC |
1847 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
1848 | .name = "ProVideo PV150", /* 0x4f */ | |
1849 | .video_inputs = 2, | |
4c548d4b TP |
1850 | /* .audio_inputs= 0, */ |
1851 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1852 | .gpiomask = 0, |
6f98700a | 1853 | .muxsel = MUXSEL(2, 3), |
8bf2f8e7 | 1854 | .gpiomux = { 0 }, |
2bfa1ac6 MCC |
1855 | .no_msp34xx = 1, |
1856 | .pll = PLL_28, | |
abb0362f | 1857 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1858 | .tuner_addr = ADDR_UNSET, |
1859 | }, | |
5a25e84b | 1860 | [BTTV_BOARD_AD_TVK503] = { |
2bfa1ac6 MCC |
1861 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
1862 | /* This card lacks subsystem ID */ | |
1863 | .name = "AD-TVK503", /* 0x63 */ | |
1864 | .video_inputs = 4, | |
4c548d4b | 1865 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1866 | .svhs = 2, |
1867 | .gpiomask = 0x001e8007, | |
6f98700a | 1868 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 | 1869 | /* Tuner, Radio, external, internal, off, on */ |
8bf2f8e7 HV |
1870 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
1871 | .gpiomute = 0x0f, | |
2bfa1ac6 MCC |
1872 | .no_msp34xx = 1, |
1873 | .pll = PLL_28, | |
8c2c0dfe | 1874 | .tuner_type = TUNER_PHILIPS_NTSC, |
2bfa1ac6 | 1875 | .tuner_addr = ADDR_UNSET, |
4b9b936f | 1876 | .audio_mode_gpio= adtvk503_audio, |
2bfa1ac6 MCC |
1877 | }, |
1878 | ||
1879 | /* ---- card 0x64 ---------------------------------- */ | |
5a25e84b | 1880 | [BTTV_BOARD_HERCULES_SM_TV] = { |
2bfa1ac6 MCC |
1881 | .name = "Hercules Smart TV Stereo", |
1882 | .video_inputs = 4, | |
4c548d4b | 1883 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
1884 | .svhs = 2, |
1885 | .gpiomask = 0x00, | |
6f98700a | 1886 | .muxsel = MUXSEL(2, 3, 1, 1), |
2bfa1ac6 MCC |
1887 | .no_msp34xx = 1, |
1888 | .pll = PLL_28, | |
8c2c0dfe | 1889 | .tuner_type = TUNER_PHILIPS_PAL, |
2bfa1ac6 MCC |
1890 | .tuner_addr = ADDR_UNSET, |
1891 | /* Notes: | |
1892 | - card lacks subsystem ID | |
1893 | - stereo variant w/ daughter board with tda9874a @0xb0 | |
1894 | - Audio Routing: | |
1895 | always from tda9874 independent of GPIO (?) | |
1896 | external line in: unknown | |
1897 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) | |
1898 | hef4053 (instead 4052) for unknown function | |
1899 | */ | |
1900 | }, | |
5a25e84b | 1901 | [BTTV_BOARD_PACETV] = { |
2bfa1ac6 MCC |
1902 | .name = "Pace TV & Radio Card", |
1903 | .video_inputs = 4, | |
4c548d4b | 1904 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 1905 | .svhs = 2, |
6f98700a TP |
1906 | /* Tuner, CVid, SVid, CVid over SVid connector */ |
1907 | .muxsel = MUXSEL(2, 3, 1, 1), | |
2bfa1ac6 | 1908 | .gpiomask = 0, |
2bfa1ac6 | 1909 | .no_tda7432 = 1, |
8c2c0dfe | 1910 | .tuner_type = TUNER_PHILIPS_PAL_I, |
2bfa1ac6 MCC |
1911 | .tuner_addr = ADDR_UNSET, |
1912 | .has_radio = 1, | |
1913 | .pll = PLL_28, | |
1914 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id | |
1915 | only internal line out: (4pin header) RGGL | |
1916 | Radio must be decoded by msp3410d (not routed through)*/ | |
1917 | /* | |
1918 | .digital_mode = DIGITAL_MODE_CAMERA, todo! | |
1919 | */ | |
1920 | }, | |
5a25e84b | 1921 | [BTTV_BOARD_IVC200] = { |
2bfa1ac6 MCC |
1922 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
1923 | .name = "IVC-200", | |
1924 | .video_inputs = 1, | |
4c548d4b | 1925 | /* .audio_inputs= 0, */ |
abb0362f | 1926 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 1927 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 1928 | .svhs = NO_SVHS, |
ade0815c | 1929 | .gpiomask = 0xdf, |
6f98700a | 1930 | .muxsel = MUXSEL(2), |
ade0815c DK |
1931 | .pll = PLL_28, |
1932 | }, | |
1933 | [BTTV_BOARD_IVCE8784] = { | |
1934 | .name = "IVCE-8784", | |
1935 | .video_inputs = 1, | |
4c548d4b | 1936 | /* .audio_inputs= 0, */ |
abb0362f | 1937 | .tuner_type = TUNER_ABSENT, |
ade0815c | 1938 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 1939 | .svhs = NO_SVHS, |
2bfa1ac6 | 1940 | .gpiomask = 0xdf, |
6f98700a | 1941 | .muxsel = MUXSEL(2), |
2bfa1ac6 MCC |
1942 | .pll = PLL_28, |
1943 | }, | |
5a25e84b | 1944 | [BTTV_BOARD_XGUARD] = { |
2bfa1ac6 MCC |
1945 | .name = "Grand X-Guard / Trust 814PCI", |
1946 | .video_inputs = 16, | |
4c548d4b TP |
1947 | /* .audio_inputs= 0, */ |
1948 | .svhs = NO_SVHS, | |
8c2c0dfe | 1949 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1950 | .tuner_addr = ADDR_UNSET, |
1951 | .gpiomask2 = 0xff, | |
6f98700a | 1952 | .muxsel = MUXSEL(2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0), |
2bfa1ac6 MCC |
1953 | .muxsel_hook = xguard_muxsel, |
1954 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
1955 | .no_tda7432 = 1, |
1956 | .pll = PLL_28, | |
1957 | }, | |
1958 | ||
1959 | /* ---- card 0x68 ---------------------------------- */ | |
5a25e84b | 1960 | [BTTV_BOARD_NEBULA_DIGITV] = { |
2bfa1ac6 MCC |
1961 | .name = "Nebula Electronics DigiTV", |
1962 | .video_inputs = 1, | |
4c548d4b | 1963 | .svhs = NO_SVHS, |
6f98700a | 1964 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 | 1965 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
1966 | .no_tda7432 = 1, |
1967 | .pll = PLL_28, | |
abb0362f | 1968 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1969 | .tuner_addr = ADDR_UNSET, |
1970 | .has_dvb = 1, | |
6c6c0b2c MW |
1971 | .has_remote = 1, |
1972 | .gpiomask = 0x1b, | |
2bfa1ac6 MCC |
1973 | .no_gpioirq = 1, |
1974 | }, | |
5a25e84b | 1975 | [BTTV_BOARD_PV143] = { |
2bfa1ac6 MCC |
1976 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
1977 | .name = "ProVideo PV143", | |
1978 | .video_inputs = 4, | |
4c548d4b TP |
1979 | /* .audio_inputs= 0, */ |
1980 | .svhs = NO_SVHS, | |
2bfa1ac6 | 1981 | .gpiomask = 0, |
6f98700a | 1982 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 | 1983 | .gpiomux = { 0 }, |
2bfa1ac6 MCC |
1984 | .no_msp34xx = 1, |
1985 | .pll = PLL_28, | |
abb0362f | 1986 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
1987 | .tuner_addr = ADDR_UNSET, |
1988 | }, | |
05583625 | 1989 | [BTTV_BOARD_VD009X1_VD011_MINIDIN] = { |
2bfa1ac6 | 1990 | /* M.Klahr@phytec.de */ |
05583625 | 1991 | .name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)", |
2bfa1ac6 | 1992 | .video_inputs = 4, |
4c548d4b | 1993 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
1994 | .svhs = 3, |
1995 | .gpiomask = 0x00, | |
6f98700a | 1996 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 | 1997 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2bfa1ac6 | 1998 | .pll = PLL_28, |
abb0362f | 1999 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2000 | .tuner_addr = ADDR_UNSET, |
2001 | }, | |
05583625 DH |
2002 | [BTTV_BOARD_VD009X1_VD011_COMBI] = { |
2003 | .name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)", | |
2bfa1ac6 | 2004 | .video_inputs = 4, |
4c548d4b | 2005 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
2006 | .svhs = 3, |
2007 | .gpiomask = 0x00, | |
6f98700a | 2008 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 2009 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2bfa1ac6 | 2010 | .pll = PLL_28, |
abb0362f | 2011 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2012 | .tuner_addr = ADDR_UNSET, |
2013 | }, | |
2014 | ||
2015 | /* ---- card 0x6c ---------------------------------- */ | |
5a25e84b | 2016 | [BTTV_BOARD_VD009_MINIDIN] = { |
2bfa1ac6 MCC |
2017 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
2018 | .video_inputs = 10, | |
4c548d4b | 2019 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
2020 | .svhs = 9, |
2021 | .gpiomask = 0x00, | |
15f8eeb2 | 2022 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
6f98700a | 2023 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), |
15f8eeb2 | 2024 | .muxsel_hook = phytec_muxsel, |
8bf2f8e7 | 2025 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2bfa1ac6 | 2026 | .pll = PLL_28, |
abb0362f | 2027 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2028 | .tuner_addr = ADDR_UNSET, |
2029 | }, | |
5a25e84b | 2030 | [BTTV_BOARD_VD009_COMBI] = { |
2bfa1ac6 MCC |
2031 | .name = "PHYTEC VD-009 Combi (bt878)", |
2032 | .video_inputs = 10, | |
4c548d4b | 2033 | /* .audio_inputs= 0, */ |
2bfa1ac6 MCC |
2034 | .svhs = 9, |
2035 | .gpiomask = 0x00, | |
15f8eeb2 | 2036 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
6f98700a | 2037 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), |
15f8eeb2 | 2038 | .muxsel_hook = phytec_muxsel, |
8bf2f8e7 | 2039 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2bfa1ac6 | 2040 | .pll = PLL_28, |
abb0362f | 2041 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2042 | .tuner_addr = ADDR_UNSET, |
2043 | }, | |
5a25e84b | 2044 | [BTTV_BOARD_IVC100] = { |
2bfa1ac6 MCC |
2045 | .name = "IVC-100", |
2046 | .video_inputs = 4, | |
4c548d4b | 2047 | /* .audio_inputs= 0, */ |
abb0362f | 2048 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 2049 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 2050 | .svhs = NO_SVHS, |
2bfa1ac6 | 2051 | .gpiomask = 0xdf, |
6f98700a | 2052 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 MCC |
2053 | .pll = PLL_28, |
2054 | }, | |
5a25e84b | 2055 | [BTTV_BOARD_IVC120] = { |
2bfa1ac6 MCC |
2056 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
2057 | .name = "IVC-120G", | |
2058 | .video_inputs = 16, | |
4c548d4b | 2059 | /* .audio_inputs= 0, */ |
abb0362f | 2060 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 2061 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 2062 | .svhs = NO_SVHS, /* card has no svhs */ |
2bfa1ac6 | 2063 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2064 | .no_tda7432 = 1, |
2065 | .gpiomask = 0x00, | |
6f98700a | 2066 | .muxsel = MUXSEL(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
2bfa1ac6 MCC |
2067 | .muxsel_hook = ivc120_muxsel, |
2068 | .pll = PLL_28, | |
2069 | }, | |
2070 | ||
2071 | /* ---- card 0x70 ---------------------------------- */ | |
5a25e84b | 2072 | [BTTV_BOARD_PC_HDTV] = { |
2bfa1ac6 MCC |
2073 | .name = "pcHDTV HD-2000 TV", |
2074 | .video_inputs = 4, | |
4c548d4b | 2075 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 2076 | .svhs = 2, |
6f98700a | 2077 | .muxsel = MUXSEL(2, 3, 1, 0), |
ab8b870e | 2078 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
2bfa1ac6 MCC |
2079 | .tuner_addr = ADDR_UNSET, |
2080 | .has_dvb = 1, | |
2081 | }, | |
5a25e84b | 2082 | [BTTV_BOARD_TWINHAN_DST] = { |
2bfa1ac6 MCC |
2083 | .name = "Twinhan DST + clones", |
2084 | .no_msp34xx = 1, | |
2bfa1ac6 MCC |
2085 | .no_tda7432 = 1, |
2086 | .tuner_type = TUNER_ABSENT, | |
2087 | .tuner_addr = ADDR_UNSET, | |
2088 | .no_video = 1, | |
2089 | .has_dvb = 1, | |
2090 | }, | |
5a25e84b | 2091 | [BTTV_BOARD_WINFASTVC100] = { |
2bfa1ac6 MCC |
2092 | .name = "Winfast VC100", |
2093 | .video_inputs = 3, | |
4c548d4b | 2094 | /* .audio_inputs= 0, */ |
2bfa1ac6 | 2095 | .svhs = 1, |
6f98700a TP |
2096 | /* Vid In, SVid In, Vid over SVid in connector */ |
2097 | .muxsel = MUXSEL(3, 1, 1, 3), | |
2bfa1ac6 | 2098 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2099 | .no_tda7432 = 1, |
2100 | .tuner_type = TUNER_ABSENT, | |
2101 | .tuner_addr = ADDR_UNSET, | |
2102 | .pll = PLL_28, | |
2103 | }, | |
5a25e84b | 2104 | [BTTV_BOARD_TEV560] = { |
2bfa1ac6 MCC |
2105 | .name = "Teppro TEV-560/InterVision IV-560", |
2106 | .video_inputs = 3, | |
4c548d4b | 2107 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2108 | .svhs = 2, |
2109 | .gpiomask = 3, | |
6f98700a | 2110 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 2111 | .gpiomux = { 1, 1, 1, 1 }, |
2bfa1ac6 MCC |
2112 | .tuner_type = TUNER_PHILIPS_PAL, |
2113 | .tuner_addr = ADDR_UNSET, | |
2114 | .pll = PLL_35, | |
2115 | }, | |
2116 | ||
2117 | /* ---- card 0x74 ---------------------------------- */ | |
5a25e84b | 2118 | [BTTV_BOARD_SIMUS_GVC1100] = { |
2bfa1ac6 MCC |
2119 | .name = "SIMUS GVC1100", |
2120 | .video_inputs = 4, | |
4c548d4b TP |
2121 | /* .audio_inputs= 0, */ |
2122 | .svhs = NO_SVHS, | |
abb0362f | 2123 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2124 | .tuner_addr = ADDR_UNSET, |
2125 | .pll = PLL_28, | |
6f98700a | 2126 | .muxsel = MUXSEL(2, 2, 2, 2), |
2bfa1ac6 MCC |
2127 | .gpiomask = 0x3F, |
2128 | .muxsel_hook = gvc1100_muxsel, | |
2129 | }, | |
5a25e84b | 2130 | [BTTV_BOARD_NGSTV_PLUS] = { |
2bfa1ac6 MCC |
2131 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
2132 | .name = "NGS NGSTV+", | |
2133 | .video_inputs = 3, | |
2bfa1ac6 MCC |
2134 | .svhs = 2, |
2135 | .gpiomask = 0x008007, | |
6f98700a | 2136 | .muxsel = MUXSEL(2, 3, 0, 0), |
8bf2f8e7 HV |
2137 | .gpiomux = { 0, 0, 0, 0 }, |
2138 | .gpiomute = 0x000003, | |
2bfa1ac6 MCC |
2139 | .pll = PLL_28, |
2140 | .tuner_type = TUNER_PHILIPS_PAL, | |
2141 | .tuner_addr = ADDR_UNSET, | |
2142 | .has_remote = 1, | |
2143 | }, | |
5a25e84b | 2144 | [BTTV_BOARD_LMLBT4] = { |
2bfa1ac6 MCC |
2145 | /* http://linuxmedialabs.com */ |
2146 | .name = "LMLBT4", | |
2147 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ | |
4c548d4b TP |
2148 | /* .audio_inputs= 0, */ |
2149 | .svhs = NO_SVHS, | |
6f98700a | 2150 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 | 2151 | .no_msp34xx = 1, |
2bfa1ac6 | 2152 | .no_tda7432 = 1, |
abb0362f | 2153 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2154 | .tuner_addr = ADDR_UNSET, |
2155 | }, | |
5a25e84b | 2156 | [BTTV_BOARD_TEKRAM_M205] = { |
2bfa1ac6 MCC |
2157 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
2158 | .name = "Tekram M205 PRO", | |
2159 | .video_inputs = 3, | |
4c548d4b | 2160 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2161 | .tuner_type = TUNER_PHILIPS_PAL, |
2162 | .tuner_addr = ADDR_UNSET, | |
2163 | .svhs = 2, | |
2bfa1ac6 | 2164 | .gpiomask = 0x68, |
6f98700a | 2165 | .muxsel = MUXSEL(2, 3, 1), |
8bf2f8e7 | 2166 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
2bfa1ac6 MCC |
2167 | .pll = PLL_28, |
2168 | }, | |
2169 | ||
2170 | /* ---- card 0x78 ---------------------------------- */ | |
5a25e84b | 2171 | [BTTV_BOARD_CONTVFMI] = { |
2bfa1ac6 MCC |
2172 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
2173 | /* bt878 TV + FM without subsystem ID */ | |
2174 | .name = "Conceptronic CONTVFMi", | |
2175 | .video_inputs = 3, | |
4c548d4b | 2176 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2177 | .svhs = 2, |
2178 | .gpiomask = 0x008007, | |
6f98700a | 2179 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2180 | .gpiomux = { 0, 1, 2, 2 }, |
2181 | .gpiomute = 3, | |
2bfa1ac6 MCC |
2182 | .pll = PLL_28, |
2183 | .tuner_type = TUNER_PHILIPS_PAL, | |
2184 | .tuner_addr = ADDR_UNSET, | |
2185 | .has_remote = 1, | |
2186 | .has_radio = 1, | |
2187 | }, | |
5a25e84b | 2188 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
2bfa1ac6 | 2189 | /*Eric DEBIEF <debief@telemsa.com>*/ |
25985edc LDM |
2190 | /*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controlled*/ |
2191 | /* adds picolo_tetra_muxsel(), picolo_tetra_init(), the following declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/ | |
2bfa1ac6 MCC |
2192 | /*0x79 in bttv.h*/ |
2193 | .name = "Euresys Picolo Tetra", | |
2194 | .video_inputs = 4, | |
4c548d4b TP |
2195 | /* .audio_inputs= 0, */ |
2196 | .svhs = NO_SVHS, | |
2bfa1ac6 MCC |
2197 | .gpiomask = 0, |
2198 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ | |
2199 | .no_msp34xx = 1, | |
2bfa1ac6 | 2200 | .no_tda7432 = 1, |
6f98700a TP |
2201 | /*878A input is always MUX0, see above.*/ |
2202 | .muxsel = MUXSEL(2, 2, 2, 2), | |
8bf2f8e7 | 2203 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2bfa1ac6 | 2204 | .pll = PLL_28, |
2bfa1ac6 | 2205 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ |
abb0362f | 2206 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2207 | .tuner_addr = ADDR_UNSET, |
2208 | }, | |
5a25e84b | 2209 | [BTTV_BOARD_SPIRIT_TV] = { |
2bfa1ac6 MCC |
2210 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
2211 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ | |
2212 | .name = "Spirit TV Tuner", | |
2213 | .video_inputs = 3, | |
4c548d4b | 2214 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2215 | .svhs = 2, |
2216 | .gpiomask = 0x0000000f, | |
6f98700a | 2217 | .muxsel = MUXSEL(2, 1, 1), |
8bf2f8e7 | 2218 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
2bfa1ac6 MCC |
2219 | .tuner_type = TUNER_TEMIC_PAL, |
2220 | .tuner_addr = ADDR_UNSET, | |
2221 | .no_msp34xx = 1, | |
2bfa1ac6 | 2222 | }, |
5a25e84b | 2223 | [BTTV_BOARD_AVDVBT_771] = { |
2bfa1ac6 MCC |
2224 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
2225 | .name = "AVerMedia AVerTV DVB-T 771", | |
2226 | .video_inputs = 2, | |
2227 | .svhs = 1, | |
2bfa1ac6 MCC |
2228 | .tuner_type = TUNER_ABSENT, |
2229 | .tuner_addr = ADDR_UNSET, | |
6f98700a | 2230 | .muxsel = MUXSEL(3, 3), |
2bfa1ac6 | 2231 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2232 | .no_tda7432 = 1, |
2233 | .pll = PLL_28, | |
2234 | .has_dvb = 1, | |
2235 | .no_gpioirq = 1, | |
2236 | .has_remote = 1, | |
2237 | }, | |
2238 | /* ---- card 0x7c ---------------------------------- */ | |
5a25e84b | 2239 | [BTTV_BOARD_AVDVBT_761] = { |
2bfa1ac6 | 2240 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
5a25e84b | 2241 | /* Based on the Nebula card data - added remote and new card number - BTTV_BOARD_AVDVBT_761, see also ir-kbd-gpio.c */ |
2bfa1ac6 MCC |
2242 | .name = "AverMedia AverTV DVB-T 761", |
2243 | .video_inputs = 2, | |
2bfa1ac6 | 2244 | .svhs = 1, |
6f98700a | 2245 | .muxsel = MUXSEL(3, 1, 2, 0), /* Comp0, S-Video, ?, ? */ |
2bfa1ac6 | 2246 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2247 | .no_tda7432 = 1, |
2248 | .pll = PLL_28, | |
abb0362f | 2249 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2250 | .tuner_addr = ADDR_UNSET, |
2251 | .has_dvb = 1, | |
2252 | .no_gpioirq = 1, | |
2253 | .has_remote = 1, | |
2254 | }, | |
5a25e84b | 2255 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
2bfa1ac6 | 2256 | /* andre.schwarz@matrix-vision.de */ |
4c548d4b TP |
2257 | .name = "MATRIX Vision Sigma-SQ", |
2258 | .video_inputs = 16, | |
2259 | /* .audio_inputs= 0, */ | |
2260 | .svhs = NO_SVHS, | |
2261 | .gpiomask = 0x0, | |
6f98700a | 2262 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3), |
4c548d4b TP |
2263 | .muxsel_hook = sigmaSQ_muxsel, |
2264 | .gpiomux = { 0 }, | |
2265 | .no_msp34xx = 1, | |
2266 | .pll = PLL_28, | |
2267 | .tuner_type = TUNER_ABSENT, | |
2268 | .tuner_addr = ADDR_UNSET, | |
2bfa1ac6 | 2269 | }, |
5a25e84b | 2270 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
2bfa1ac6 | 2271 | /* andre.schwarz@matrix-vision.de */ |
4c548d4b TP |
2272 | .name = "MATRIX Vision Sigma-SLC", |
2273 | .video_inputs = 4, | |
2274 | /* .audio_inputs= 0, */ | |
2275 | .svhs = NO_SVHS, | |
2276 | .gpiomask = 0x0, | |
6f98700a | 2277 | .muxsel = MUXSEL(2, 2, 2, 2), |
4c548d4b TP |
2278 | .muxsel_hook = sigmaSLC_muxsel, |
2279 | .gpiomux = { 0 }, | |
2280 | .no_msp34xx = 1, | |
2281 | .pll = PLL_28, | |
2282 | .tuner_type = TUNER_ABSENT, | |
2283 | .tuner_addr = ADDR_UNSET, | |
2bfa1ac6 | 2284 | }, |
5a25e84b MCC |
2285 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
2286 | [BTTV_BOARD_APAC_VIEWCOMP] = { | |
2bfa1ac6 MCC |
2287 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
2288 | /* bt878 TV + FM 0x00000000 subsystem ID */ | |
2289 | .name = "APAC Viewcomp 878(AMAX)", | |
2290 | .video_inputs = 2, | |
4c548d4b TP |
2291 | /* .audio_inputs= 1, */ |
2292 | .svhs = NO_SVHS, | |
2bfa1ac6 | 2293 | .gpiomask = 0xFF, |
6f98700a | 2294 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2295 | .gpiomux = { 2, 0, 0, 0 }, |
2296 | .gpiomute = 10, | |
2bfa1ac6 MCC |
2297 | .pll = PLL_28, |
2298 | .tuner_type = TUNER_PHILIPS_PAL, | |
2299 | .tuner_addr = ADDR_UNSET, | |
2300 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ | |
2301 | .has_radio = 1, /* not every card has radio */ | |
2302 | }, | |
2303 | ||
2304 | /* ---- card 0x80 ---------------------------------- */ | |
5a25e84b | 2305 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
2bfa1ac6 MCC |
2306 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
2307 | .name = "DViCO FusionHDTV DVB-T Lite", | |
2bfa1ac6 | 2308 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2309 | .no_tda7432 = 1, |
2310 | .pll = PLL_28, | |
2311 | .no_video = 1, | |
2312 | .has_dvb = 1, | |
abb0362f | 2313 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2314 | .tuner_addr = ADDR_UNSET, |
2315 | }, | |
5a25e84b | 2316 | [BTTV_BOARD_VGEAR_MYVCD] = { |
2bfa1ac6 MCC |
2317 | /* Steven <photon38@pchome.com.tw> */ |
2318 | .name = "V-Gear MyVCD", | |
2319 | .video_inputs = 3, | |
4c548d4b | 2320 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2321 | .svhs = 2, |
2322 | .gpiomask = 0x3f, | |
6f98700a | 2323 | .muxsel = MUXSEL(2, 3, 1, 0), |
8bf2f8e7 HV |
2324 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
2325 | .gpiomute = 0x31, | |
2bfa1ac6 MCC |
2326 | .no_msp34xx = 1, |
2327 | .pll = PLL_28, | |
2328 | .tuner_type = TUNER_PHILIPS_NTSC_M, | |
2329 | .tuner_addr = ADDR_UNSET, | |
2330 | .has_radio = 0, | |
2bfa1ac6 | 2331 | }, |
5a25e84b | 2332 | [BTTV_BOARD_SUPER_TV] = { |
2bfa1ac6 MCC |
2333 | /* Rick C <cryptdragoon@gmail.com> */ |
2334 | .name = "Super TV Tuner", | |
2335 | .video_inputs = 4, | |
4c548d4b | 2336 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 2337 | .svhs = 2, |
6f98700a | 2338 | .muxsel = MUXSEL(2, 3, 1, 0), |
2bfa1ac6 MCC |
2339 | .tuner_type = TUNER_PHILIPS_NTSC, |
2340 | .tuner_addr = ADDR_UNSET, | |
2341 | .gpiomask = 0x008007, | |
8bf2f8e7 | 2342 | .gpiomux = { 0, 0x000001,0,0 }, |
2bfa1ac6 MCC |
2343 | .has_radio = 1, |
2344 | }, | |
5a25e84b | 2345 | [BTTV_BOARD_TIBET_CS16] = { |
2bfa1ac6 MCC |
2346 | /* Chris Fanning <video4linux@haydon.net> */ |
2347 | .name = "Tibet Systems 'Progress DVR' CS16", | |
2348 | .video_inputs = 16, | |
4c548d4b TP |
2349 | /* .audio_inputs= 0, */ |
2350 | .svhs = NO_SVHS, | |
6f98700a | 2351 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), |
2bfa1ac6 MCC |
2352 | .pll = PLL_28, |
2353 | .no_msp34xx = 1, | |
2bfa1ac6 | 2354 | .no_tda7432 = 1, |
abb0362f | 2355 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 MCC |
2356 | .tuner_addr = ADDR_UNSET, |
2357 | .muxsel_hook = tibetCS16_muxsel, | |
2358 | }, | |
5a25e84b | 2359 | [BTTV_BOARD_KODICOM_4400R] = { |
2bfa1ac6 MCC |
2360 | /* Bill Brack <wbrack@mmm.com.hk> */ |
2361 | /* | |
2362 | * Note that, because of the card's wiring, the "master" | |
2363 | * BT878A chip (i.e. the one which controls the analog switch | |
2364 | * and must use this card type) is the 2nd one detected. The | |
2365 | * other 3 chips should use card type 0x85, whose description | |
2366 | * follows this one. There is a EEPROM on the card (which is | |
2367 | * connected to the I2C of one of those other chips), but is | |
2368 | * not currently handled. There is also a facility for a | |
2369 | * "monitor", which is also not currently implemented. | |
2370 | */ | |
2371 | .name = "Kodicom 4400R (master)", | |
2372 | .video_inputs = 16, | |
4c548d4b | 2373 | /* .audio_inputs= 0, */ |
abb0362f | 2374 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 2375 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 2376 | .svhs = NO_SVHS, |
2bfa1ac6 MCC |
2377 | /* GPIO bits 0-9 used for analog switch: |
2378 | * 00 - 03: camera selector | |
2379 | * 04 - 06: channel (controller) selector | |
2380 | * 07: data (1->on, 0->off) | |
2381 | * 08: strobe | |
2382 | * 09: reset | |
2383 | * bit 16 is input from sync separator for the channel | |
2384 | */ | |
2385 | .gpiomask = 0x0003ff, | |
2386 | .no_gpioirq = 1, | |
6f98700a | 2387 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
2bfa1ac6 MCC |
2388 | .pll = PLL_28, |
2389 | .no_msp34xx = 1, | |
2390 | .no_tda7432 = 1, | |
2bfa1ac6 MCC |
2391 | .muxsel_hook = kodicom4400r_muxsel, |
2392 | }, | |
5a25e84b | 2393 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
2bfa1ac6 MCC |
2394 | /* Bill Brack <wbrack@mmm.com.hk> */ |
2395 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the | |
2396 | * one which controls the analog switch, and must use the card type) | |
2397 | * is the 2nd one detected. The other 3 chips should use this card | |
2398 | * type | |
2399 | */ | |
2400 | .name = "Kodicom 4400R (slave)", | |
2401 | .video_inputs = 16, | |
4c548d4b | 2402 | /* .audio_inputs= 0, */ |
abb0362f | 2403 | .tuner_type = TUNER_ABSENT, |
2bfa1ac6 | 2404 | .tuner_addr = ADDR_UNSET, |
4c548d4b | 2405 | .svhs = NO_SVHS, |
2bfa1ac6 MCC |
2406 | .gpiomask = 0x010000, |
2407 | .no_gpioirq = 1, | |
6f98700a | 2408 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
2bfa1ac6 MCC |
2409 | .pll = PLL_28, |
2410 | .no_msp34xx = 1, | |
2411 | .no_tda7432 = 1, | |
2bfa1ac6 MCC |
2412 | .muxsel_hook = kodicom4400r_muxsel, |
2413 | }, | |
2bfa1ac6 | 2414 | /* ---- card 0x86---------------------------------- */ |
5a25e84b | 2415 | [BTTV_BOARD_ADLINK_RTV24] = { |
2bfa1ac6 MCC |
2416 | /* Michael Henson <mhenson@clarityvi.com> */ |
2417 | /* Adlink RTV24 with special unlock codes */ | |
2418 | .name = "Adlink RTV24", | |
2419 | .video_inputs = 4, | |
4c548d4b | 2420 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 2421 | .svhs = 2, |
6f98700a | 2422 | .muxsel = MUXSEL(2, 3, 1, 0), |
8c2c0dfe | 2423 | .tuner_type = UNSET, |
2bfa1ac6 MCC |
2424 | .tuner_addr = ADDR_UNSET, |
2425 | .pll = PLL_28, | |
2426 | }, | |
2bfa1ac6 | 2427 | /* ---- card 0x87---------------------------------- */ |
5a25e84b | 2428 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
2bfa1ac6 MCC |
2429 | /* Michael Krufky <mkrufky@m1k.net> */ |
2430 | .name = "DViCO FusionHDTV 5 Lite", | |
9c26c8b1 | 2431 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
2bfa1ac6 | 2432 | .tuner_addr = ADDR_UNSET, |
4b017415 | 2433 | .video_inputs = 3, |
4c548d4b | 2434 | /* .audio_inputs= 1, */ |
2bfa1ac6 | 2435 | .svhs = 2, |
6f98700a | 2436 | .muxsel = MUXSEL(2, 3, 1), |
2bfa1ac6 | 2437 | .gpiomask = 0x00e00007, |
8bf2f8e7 HV |
2438 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
2439 | .gpiomute = 0x00c00007, | |
2bfa1ac6 | 2440 | .no_msp34xx = 1, |
2bfa1ac6 MCC |
2441 | .no_tda7432 = 1, |
2442 | .has_dvb = 1, | |
2443 | }, | |
2444 | /* ---- card 0x88---------------------------------- */ | |
5a25e84b | 2445 | [BTTV_BOARD_ACORP_Y878F] = { |
2e7c6dc3 | 2446 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
2bfa1ac6 MCC |
2447 | .name = "Acorp Y878F", |
2448 | .video_inputs = 3, | |
4c548d4b | 2449 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2450 | .svhs = 2, |
2451 | .gpiomask = 0x01fe00, | |
6f98700a | 2452 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2453 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
2454 | .gpiomute = 0x002000, | |
2bfa1ac6 MCC |
2455 | .pll = PLL_28, |
2456 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, | |
2457 | .tuner_addr = 0xc1 >>1, | |
2458 | .has_radio = 1, | |
2459 | }, | |
2460 | /* ---- card 0x89 ---------------------------------- */ | |
5a25e84b | 2461 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
2bfa1ac6 MCC |
2462 | .name = "Conceptronic CTVFMi v2", |
2463 | .video_inputs = 3, | |
4c548d4b | 2464 | /* .audio_inputs= 1, */ |
2bfa1ac6 MCC |
2465 | .svhs = 2, |
2466 | .gpiomask = 0x001c0007, | |
6f98700a | 2467 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2468 | .gpiomux = { 0, 1, 2, 2 }, |
2469 | .gpiomute = 3, | |
2bfa1ac6 | 2470 | .pll = PLL_28, |
24d41228 | 2471 | .tuner_type = TUNER_TENA_9533_DI, |
2bfa1ac6 MCC |
2472 | .tuner_addr = ADDR_UNSET, |
2473 | .has_remote = 1, | |
2bfa1ac6 | 2474 | .has_radio = 1, |
2bfa1ac6 | 2475 | }, |
10c2c8b1 | 2476 | /* ---- card 0x8a ---------------------------------- */ |
5a25e84b | 2477 | [BTTV_BOARD_PV_BT878P_2E] = { |
4c548d4b TP |
2478 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
2479 | .video_inputs = 5, | |
2480 | /* .audio_inputs= 1, */ | |
2481 | .svhs = 3, | |
5221e21e | 2482 | .has_dig_in = 1, |
4c548d4b | 2483 | .gpiomask = 0x01fe00, |
6f98700a | 2484 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
4c548d4b TP |
2485 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
2486 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, | |
2487 | .gpiomute = 0x12400, | |
2488 | .no_msp34xx = 1, | |
2489 | .pll = PLL_28, | |
2490 | .tuner_type = TUNER_LG_PAL_FM, | |
2491 | .tuner_addr = ADDR_UNSET, | |
2492 | .has_remote = 1, | |
10c2c8b1 MCC |
2493 | }, |
2494 | /* ---- card 0x8b ---------------------------------- */ | |
2495 | [BTTV_BOARD_PV_M4900] = { | |
96de0e25 | 2496 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
10c2c8b1 MCC |
2497 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
2498 | .video_inputs = 3, | |
4c548d4b | 2499 | /* .audio_inputs= 1, */ |
10c2c8b1 MCC |
2500 | .svhs = 2, |
2501 | .gpiomask = 0x3f, | |
6f98700a | 2502 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2503 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
2504 | .gpiomute = 0x29, | |
10c2c8b1 MCC |
2505 | .no_msp34xx = 1, |
2506 | .pll = PLL_28, | |
2507 | .tuner_type = TUNER_YMEC_TVF_5533MF, | |
2508 | .tuner_addr = ADDR_UNSET, | |
10c2c8b1 MCC |
2509 | .has_radio = 1, |
2510 | .has_remote = 1, | |
f718e6e7 | 2511 | }, |
cf583ac4 | 2512 | /* ---- card 0x8c ---------------------------------- */ |
cf784d55 TP |
2513 | /* Has four Bt878 chips behind a PCI bridge, each chip has: |
2514 | one external BNC composite input (mux 2) | |
2515 | three internal composite inputs (unknown muxes) | |
2516 | an 18-bit stereo A/D (CS5331A), which has: | |
2517 | one external stereo unblanced (RCA) audio connection | |
2518 | one (or 3?) internal stereo balanced (XLR) audio connection | |
2519 | input is selected via gpio to a 14052B mux | |
2520 | (mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300) | |
2521 | gain is controlled via an X9221A chip on the I2C bus @0x28 | |
2522 | sample rate is controlled via gpio to an MK1413S | |
2523 | (mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3) | |
2524 | There is neither a tuner nor an svideo input. */ | |
f718e6e7 KA |
2525 | [BTTV_BOARD_OSPREY440] = { |
2526 | .name = "Osprey 440", | |
cf784d55 | 2527 | .video_inputs = 4, |
4c548d4b TP |
2528 | /* .audio_inputs= 2, */ |
2529 | .svhs = NO_SVHS, | |
6f98700a | 2530 | .muxsel = MUXSEL(2, 3, 0, 1), /* 3,0,1 are guesses */ |
cf784d55 TP |
2531 | .gpiomask = 0x303, |
2532 | .gpiomute = 0x000, /* int + 32kHz */ | |
2533 | .gpiomux = { 0, 0, 0x000, 0x100}, | |
f718e6e7 | 2534 | .pll = PLL_28, |
abb0362f | 2535 | .tuner_type = TUNER_ABSENT, |
f718e6e7 | 2536 | .tuner_addr = ADDR_UNSET, |
f718e6e7 | 2537 | .no_msp34xx = 1, |
f718e6e7 KA |
2538 | .no_tda7432 = 1, |
2539 | }, | |
71633c05 | 2540 | /* ---- card 0x8d ---------------------------------- */ |
2541 | [BTTV_BOARD_ASOUND_SKYEYE] = { | |
2542 | .name = "Asound Skyeye PCTV", | |
2543 | .video_inputs = 3, | |
4c548d4b | 2544 | /* .audio_inputs= 1, */ |
71633c05 | 2545 | .svhs = 2, |
2546 | .gpiomask = 15, | |
6f98700a | 2547 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2548 | .gpiomux = { 2, 0, 0, 0 }, |
2549 | .gpiomute = 1, | |
71633c05 | 2550 | .pll = PLL_28, |
8c2c0dfe | 2551 | .tuner_type = TUNER_PHILIPS_NTSC, |
71633c05 | 2552 | .tuner_addr = ADDR_UNSET, |
71633c05 | 2553 | }, |
633323ff BP |
2554 | /* ---- card 0x8e ---------------------------------- */ |
2555 | [BTTV_BOARD_SABRENT_TVFM] = { | |
2556 | .name = "Sabrent TV-FM (bttv version)", | |
2557 | .video_inputs = 3, | |
4c548d4b | 2558 | /* .audio_inputs= 1, */ |
633323ff BP |
2559 | .svhs = 2, |
2560 | .gpiomask = 0x108007, | |
6f98700a | 2561 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 | 2562 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
633323ff | 2563 | .no_msp34xx = 1, |
633323ff BP |
2564 | .no_tda7432 = 1, |
2565 | .pll = PLL_28, | |
2566 | .tuner_type = TUNER_TNF_5335MF, | |
2567 | .tuner_addr = ADDR_UNSET, | |
2568 | .has_radio = 1, | |
2569 | }, | |
cd1257d8 ST |
2570 | /* ---- card 0x8f ---------------------------------- */ |
2571 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { | |
2572 | .name = "Hauppauge ImpactVCB (bt878)", | |
2573 | .video_inputs = 4, | |
4c548d4b TP |
2574 | /* .audio_inputs= 0, */ |
2575 | .svhs = NO_SVHS, | |
cd1257d8 | 2576 | .gpiomask = 0x0f, /* old: 7 */ |
6f98700a | 2577 | .muxsel = MUXSEL(0, 1, 3, 2), /* Composite 0-3 */ |
cd1257d8 | 2578 | .no_msp34xx = 1, |
cd1257d8 | 2579 | .no_tda7432 = 1, |
abb0362f | 2580 | .tuner_type = TUNER_ABSENT, |
cd1257d8 | 2581 | .tuner_addr = ADDR_UNSET, |
cd1257d8 | 2582 | }, |
2d05ae6b JC |
2583 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
2584 | /* Julian Calaby <julian.calaby@gmail.com> | |
2585 | * Slightly different from original MachTV definition (0x60) | |
2586 | ||
2587 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it | |
2588 | * stuffs up remote chip. Bug is a pin on the jaecs is not set | |
2589 | * properly (methinks) causing no keyup bits being set */ | |
2590 | ||
2591 | .name = "MagicTV", /* rebranded MachTV */ | |
2592 | .video_inputs = 3, | |
4c548d4b | 2593 | /* .audio_inputs= 1, */ |
2d05ae6b JC |
2594 | .svhs = 2, |
2595 | .gpiomask = 7, | |
6f98700a | 2596 | .muxsel = MUXSEL(2, 3, 1, 1), |
8bf2f8e7 HV |
2597 | .gpiomux = { 0, 1, 2, 3 }, |
2598 | .gpiomute = 4, | |
2d05ae6b JC |
2599 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
2600 | .tuner_addr = ADDR_UNSET, | |
2d05ae6b JC |
2601 | .pll = PLL_28, |
2602 | .has_radio = 1, | |
2603 | .has_remote = 1, | |
2604 | }, | |
1ebba670 SA |
2605 | [BTTV_BOARD_SSAI_SECURITY] = { |
2606 | .name = "SSAI Security Video Interface", | |
2607 | .video_inputs = 4, | |
4c548d4b TP |
2608 | /* .audio_inputs= 0, */ |
2609 | .svhs = NO_SVHS, | |
6f98700a | 2610 | .muxsel = MUXSEL(0, 1, 2, 3), |
abb0362f | 2611 | .tuner_type = TUNER_ABSENT, |
1ebba670 | 2612 | .tuner_addr = ADDR_UNSET, |
1ebba670 SA |
2613 | }, |
2614 | [BTTV_BOARD_SSAI_ULTRASOUND] = { | |
2615 | .name = "SSAI Ultrasound Video Interface", | |
2616 | .video_inputs = 2, | |
4c548d4b | 2617 | /* .audio_inputs= 0, */ |
1ebba670 | 2618 | .svhs = 1, |
6f98700a | 2619 | .muxsel = MUXSEL(2, 0, 1, 3), |
abb0362f | 2620 | .tuner_type = TUNER_ABSENT, |
1ebba670 | 2621 | .tuner_addr = ADDR_UNSET, |
1ebba670 | 2622 | }, |
27cb786f MK |
2623 | /* ---- card 0x94---------------------------------- */ |
2624 | [BTTV_BOARD_DVICO_FUSIONHDTV_2] = { | |
2625 | .name = "DViCO FusionHDTV 2", | |
ab8b870e | 2626 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
27cb786f | 2627 | .tuner_addr = ADDR_UNSET, |
27cb786f | 2628 | .video_inputs = 3, |
4c548d4b | 2629 | /* .audio_inputs= 1, */ |
27cb786f | 2630 | .svhs = 2, |
6f98700a | 2631 | .muxsel = MUXSEL(2, 3, 1), |
27cb786f MK |
2632 | .gpiomask = 0x00e00007, |
2633 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, | |
2634 | .gpiomute = 0x00c00007, | |
2635 | .no_msp34xx = 1, | |
27cb786f MK |
2636 | .no_tda7432 = 1, |
2637 | }, | |
b5457b7b SS |
2638 | /* ---- card 0x95---------------------------------- */ |
2639 | [BTTV_BOARD_TYPHOON_TVTUNERPCI] = { | |
2640 | .name = "Typhoon TV-Tuner PCI (50684)", | |
2641 | .video_inputs = 3, | |
4c548d4b | 2642 | /* .audio_inputs= 1, */ |
b5457b7b SS |
2643 | .svhs = 2, |
2644 | .gpiomask = 0x3014f, | |
6f98700a | 2645 | .muxsel = MUXSEL(2, 3, 1, 1), |
b5457b7b SS |
2646 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
2647 | .gpiomute = 10, | |
b5457b7b SS |
2648 | .pll = PLL_28, |
2649 | .tuner_type = TUNER_PHILIPS_PAL_I, | |
2650 | .tuner_addr = ADDR_UNSET, | |
b5457b7b | 2651 | }, |
97275ac5 EHN |
2652 | [BTTV_BOARD_GEOVISION_GV600] = { |
2653 | /* emhn@usb.ve */ | |
4c548d4b TP |
2654 | .name = "Geovision GV-600", |
2655 | .video_inputs = 16, | |
2656 | /* .audio_inputs= 0, */ | |
2657 | .svhs = NO_SVHS, | |
2658 | .gpiomask = 0x0, | |
6f98700a | 2659 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), |
4c548d4b TP |
2660 | .muxsel_hook = geovision_muxsel, |
2661 | .gpiomux = { 0 }, | |
2662 | .no_msp34xx = 1, | |
2663 | .pll = PLL_28, | |
2664 | .tuner_type = TUNER_ABSENT, | |
2665 | .tuner_addr = ADDR_UNSET, | |
97275ac5 | 2666 | }, |
e80faad3 ML |
2667 | [BTTV_BOARD_KOZUMI_KTV_01C] = { |
2668 | /* Mauro Lacy <mauro@lacy.com.ar> | |
2669 | * Based on MagicTV and Conceptronic CONTVFMi */ | |
2670 | ||
2671 | .name = "Kozumi KTV-01C", | |
2672 | .video_inputs = 3, | |
4c548d4b | 2673 | /* .audio_inputs= 1, */ |
e80faad3 ML |
2674 | .svhs = 2, |
2675 | .gpiomask = 0x008007, | |
6f98700a | 2676 | .muxsel = MUXSEL(2, 3, 1, 1), |
e80faad3 | 2677 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
e80faad3 | 2678 | .gpiomute = 3, /* CONTVFMi */ |
e80faad3 ML |
2679 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
2680 | .tuner_addr = ADDR_UNSET, | |
e80faad3 ML |
2681 | .pll = PLL_28, |
2682 | .has_radio = 1, | |
2683 | .has_remote = 1, | |
2684 | }, | |
7d341a6a MCC |
2685 | [BTTV_BOARD_ENLTV_FM_2] = { |
2686 | /* Encore TV Tuner Pro ENL TV-FM-2 | |
2687 | Mauro Carvalho Chehab <mchehab@infradead.org */ | |
2688 | .name = "Encore ENL TV-FM-2", | |
2689 | .video_inputs = 3, | |
4c548d4b | 2690 | /* .audio_inputs= 1, */ |
7d341a6a MCC |
2691 | .svhs = 2, |
2692 | /* bit 6 -> IR disabled | |
2693 | bit 18/17 = 00 -> mute | |
2694 | 01 -> enable external audio input | |
2695 | 10 -> internal audio input (mono?) | |
2696 | 11 -> internal audio input | |
2697 | */ | |
2698 | .gpiomask = 0x060040, | |
6f98700a | 2699 | .muxsel = MUXSEL(2, 3, 3), |
7d341a6a MCC |
2700 | .gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 }, |
2701 | .gpiomute = 0, | |
2702 | .tuner_type = TUNER_TCL_MF02GIP_5N, | |
2703 | .tuner_addr = ADDR_UNSET, | |
7d341a6a MCC |
2704 | .pll = PLL_28, |
2705 | .has_radio = 1, | |
2706 | .has_remote = 1, | |
05583625 DH |
2707 | }, |
2708 | [BTTV_BOARD_VD012] = { | |
2709 | /* D.Heer@Phytec.de */ | |
2710 | .name = "PHYTEC VD-012 (bt878)", | |
2711 | .video_inputs = 4, | |
4c548d4b TP |
2712 | /* .audio_inputs= 0, */ |
2713 | .svhs = NO_SVHS, | |
05583625 | 2714 | .gpiomask = 0x00, |
6f98700a | 2715 | .muxsel = MUXSEL(0, 2, 3, 1), |
05583625 | 2716 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
05583625 | 2717 | .pll = PLL_28, |
abb0362f | 2718 | .tuner_type = TUNER_ABSENT, |
05583625 | 2719 | .tuner_addr = ADDR_UNSET, |
05583625 DH |
2720 | }, |
2721 | [BTTV_BOARD_VD012_X1] = { | |
2722 | /* D.Heer@Phytec.de */ | |
2723 | .name = "PHYTEC VD-012-X1 (bt878)", | |
2724 | .video_inputs = 4, | |
4c548d4b | 2725 | /* .audio_inputs= 0, */ |
05583625 DH |
2726 | .svhs = 3, |
2727 | .gpiomask = 0x00, | |
6f98700a | 2728 | .muxsel = MUXSEL(2, 3, 1), |
05583625 | 2729 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
05583625 | 2730 | .pll = PLL_28, |
abb0362f | 2731 | .tuner_type = TUNER_ABSENT, |
05583625 | 2732 | .tuner_addr = ADDR_UNSET, |
05583625 DH |
2733 | }, |
2734 | [BTTV_BOARD_VD012_X2] = { | |
2735 | /* D.Heer@Phytec.de */ | |
2736 | .name = "PHYTEC VD-012-X2 (bt878)", | |
2737 | .video_inputs = 4, | |
4c548d4b | 2738 | /* .audio_inputs= 0, */ |
05583625 DH |
2739 | .svhs = 3, |
2740 | .gpiomask = 0x00, | |
6f98700a | 2741 | .muxsel = MUXSEL(3, 2, 1), |
05583625 | 2742 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
05583625 | 2743 | .pll = PLL_28, |
abb0362f | 2744 | .tuner_type = TUNER_ABSENT, |
05583625 | 2745 | .tuner_addr = ADDR_UNSET, |
0c5db425 BC |
2746 | }, |
2747 | [BTTV_BOARD_GEOVISION_GV800S] = { | |
2748 | /* Bruno Christo <bchristo@inf.ufsm.br> | |
2749 | * | |
2750 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: | |
2751 | * 1 audio input per BT878A = 4 audio inputs | |
2752 | * 4 video inputs per BT878A = 16 video inputs | |
2753 | * This is the first BT878A chip of the GV-800(S). It's the | |
2754 | * "master" chip and it controls the video inputs through an | |
2755 | * analog multiplexer (a CD22M3494) via some GPIO pins. The | |
2756 | * slaves should use card type 0x9e (following this one). | |
2757 | * There is a EEPROM on the card which is currently not handled. | |
2758 | * The audio input is not working yet. | |
2759 | */ | |
2760 | .name = "Geovision GV-800(S) (master)", | |
2761 | .video_inputs = 4, | |
2762 | /* .audio_inputs= 1, */ | |
2763 | .tuner_type = TUNER_ABSENT, | |
2764 | .tuner_addr = ADDR_UNSET, | |
2765 | .svhs = NO_SVHS, | |
2766 | .gpiomask = 0xf107f, | |
2767 | .no_gpioirq = 1, | |
2768 | .muxsel = MUXSEL(2, 2, 2, 2), | |
2769 | .pll = PLL_28, | |
2770 | .no_msp34xx = 1, | |
2771 | .no_tda7432 = 1, | |
0c5db425 BC |
2772 | .muxsel_hook = gv800s_muxsel, |
2773 | }, | |
2774 | [BTTV_BOARD_GEOVISION_GV800S_SL] = { | |
2775 | /* Bruno Christo <bchristo@inf.ufsm.br> | |
2776 | * | |
2777 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: | |
2778 | * 1 audio input per BT878A = 4 audio inputs | |
2779 | * 4 video inputs per BT878A = 16 video inputs | |
2780 | * The 3 other BT878A chips are "slave" chips of the GV-800(S) | |
2781 | * and should use this card type. | |
2782 | * The audio input is not working yet. | |
2783 | */ | |
2784 | .name = "Geovision GV-800(S) (slave)", | |
2785 | .video_inputs = 4, | |
2786 | /* .audio_inputs= 1, */ | |
2787 | .tuner_type = TUNER_ABSENT, | |
2788 | .tuner_addr = ADDR_UNSET, | |
2789 | .svhs = NO_SVHS, | |
2790 | .gpiomask = 0x00, | |
2791 | .no_gpioirq = 1, | |
2792 | .muxsel = MUXSEL(2, 2, 2, 2), | |
2793 | .pll = PLL_28, | |
2794 | .no_msp34xx = 1, | |
2795 | .no_tda7432 = 1, | |
0c5db425 BC |
2796 | .muxsel_hook = gv800s_muxsel, |
2797 | }, | |
dceaddb9 AM |
2798 | [BTTV_BOARD_PV183] = { |
2799 | .name = "ProVideo PV183", /* 0x9f */ | |
2800 | .video_inputs = 2, | |
2801 | /* .audio_inputs= 0, */ | |
2802 | .svhs = NO_SVHS, | |
2803 | .gpiomask = 0, | |
2804 | .muxsel = MUXSEL(2, 3), | |
2805 | .gpiomux = { 0 }, | |
dceaddb9 AM |
2806 | .no_msp34xx = 1, |
2807 | .pll = PLL_28, | |
2808 | .tuner_type = TUNER_ABSENT, | |
2809 | .tuner_addr = ADDR_UNSET, | |
2810 | }, | |
de2843b6 PDS |
2811 | [BTTV_BOARD_TVT_TD3116] = { |
2812 | .name = "Tongwei Video Technology TD-3116", | |
2813 | .video_inputs = 16, | |
2814 | .gpiomask = 0xc00ff, | |
2815 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), | |
2816 | .muxsel_hook = td3116_muxsel, | |
2817 | .svhs = NO_SVHS, | |
2818 | .pll = PLL_28, | |
2819 | .tuner_type = TUNER_ABSENT, | |
2820 | }, | |
9d2952d7 TG |
2821 | [BTTV_BOARD_APOSONIC_WDVR] = { |
2822 | .name = "Aposonic W-DVR", | |
2823 | .video_inputs = 4, | |
2824 | .svhs = NO_SVHS, | |
2825 | .muxsel = MUXSEL(2, 3, 1, 0), | |
2826 | .tuner_type = TUNER_ABSENT, | |
2827 | }, | |
2828 | ||
10c2c8b1 | 2829 | }; |
1da177e4 LT |
2830 | |
2831 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); | |
2832 | ||
2833 | /* ----------------------------------------------------------------------- */ | |
2834 | ||
2835 | static unsigned char eeprom_data[256]; | |
2836 | ||
2837 | /* | |
2838 | * identify card | |
2839 | */ | |
4c62e976 | 2840 | void bttv_idcard(struct bttv *btv) |
1da177e4 LT |
2841 | { |
2842 | unsigned int gpiobits; | |
2843 | int i,type; | |
1da177e4 LT |
2844 | |
2845 | /* read PCI subsystem ID */ | |
fa140014 SS |
2846 | btv->cardid = btv->c.pci->subsystem_device << 16; |
2847 | btv->cardid |= btv->c.pci->subsystem_vendor; | |
1da177e4 LT |
2848 | |
2849 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { | |
2850 | /* look for the card */ | |
2851 | for (type = -1, i = 0; cards[i].id != 0; i++) | |
2852 | if (cards[i].id == btv->cardid) | |
2853 | type = i; | |
2854 | ||
2855 | if (type != -1) { | |
2856 | /* found it */ | |
8af443e5 JP |
2857 | pr_info("%d: detected: %s [card=%d], PCI subsystem ID is %04x:%04x\n", |
2858 | btv->c.nr, cards[type].name, cards[type].cardnr, | |
2859 | btv->cardid & 0xffff, | |
2860 | (btv->cardid >> 16) & 0xffff); | |
1da177e4 LT |
2861 | btv->c.type = cards[type].cardnr; |
2862 | } else { | |
2863 | /* 404 */ | |
8af443e5 JP |
2864 | pr_info("%d: subsystem: %04x:%04x (UNKNOWN)\n", |
2865 | btv->c.nr, btv->cardid & 0xffff, | |
2866 | (btv->cardid >> 16) & 0xffff); | |
2867 | pr_debug("please mail id, board name and the correct card= insmod option to linux-media@vger.kernel.org\n"); | |
1da177e4 LT |
2868 | } |
2869 | } | |
2870 | ||
2871 | /* let the user override the autodetected type */ | |
2872 | if (card[btv->c.nr] < bttv_num_tvcards) | |
2873 | btv->c.type=card[btv->c.nr]; | |
2874 | ||
2875 | /* print which card config we are using */ | |
8af443e5 JP |
2876 | pr_info("%d: using: %s [card=%d,%s]\n", |
2877 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type, | |
2878 | card[btv->c.nr] < bttv_num_tvcards | |
2879 | ? "insmod option" : "autodetected"); | |
1da177e4 LT |
2880 | |
2881 | /* overwrite gpio stuff ?? */ | |
2882 | if (UNSET == audioall && UNSET == audiomux[0]) | |
2883 | return; | |
2884 | ||
2885 | if (UNSET != audiomux[0]) { | |
2886 | gpiobits = 0; | |
57747b7f | 2887 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
8bf2f8e7 | 2888 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
1da177e4 LT |
2889 | gpiobits |= audiomux[i]; |
2890 | } | |
2891 | } else { | |
2892 | gpiobits = audioall; | |
57747b7f | 2893 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
8bf2f8e7 | 2894 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
1da177e4 LT |
2895 | } |
2896 | } | |
2897 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; | |
8af443e5 JP |
2898 | pr_info("%d: gpio config override: mask=0x%x, mux=", |
2899 | btv->c.nr, bttv_tvcards[btv->c.type].gpiomask); | |
57747b7f | 2900 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
8af443e5 JP |
2901 | pr_cont("%s0x%x", |
2902 | i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); | |
1da177e4 | 2903 | } |
8af443e5 | 2904 | pr_cont("\n"); |
1da177e4 LT |
2905 | } |
2906 | ||
2907 | /* | |
2908 | * (most) board specific initialisations goes here | |
2909 | */ | |
2910 | ||
2911 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ | |
943a4902 | 2912 | static void identify_by_eeprom(struct bttv *btv, unsigned char eeprom_data[256]) |
1da177e4 LT |
2913 | { |
2914 | int type = -1; | |
2915 | ||
2916 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) | |
5a25e84b | 2917 | type = BTTV_BOARD_MODTEC_205; |
1da177e4 | 2918 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
5a25e84b | 2919 | type = BTTV_BOARD_EURESYS_PICOLO; |
1da177e4 | 2920 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
4ac97914 | 2921 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
1da177e4 LT |
2922 | |
2923 | if (-1 != type) { | |
2924 | btv->c.type = type; | |
8af443e5 JP |
2925 | pr_info("%d: detected by eeprom: %s [card=%d]\n", |
2926 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); | |
1da177e4 LT |
2927 | } |
2928 | } | |
2929 | ||
2930 | static void flyvideo_gpio(struct bttv *btv) | |
2931 | { | |
c6eb8eaf HV |
2932 | int gpio, has_remote, has_radio, is_capture_only; |
2933 | int is_lr90, has_tda9820_tda9821; | |
2934 | int tuner_type = UNSET, ttype; | |
1da177e4 LT |
2935 | |
2936 | gpio_inout(0xffffff, 0); | |
24a70fdc | 2937 | udelay(8); /* without this we would see the 0x1800 mask */ |
1da177e4 LT |
2938 | gpio = gpio_read(); |
2939 | /* FIXME: must restore OUR_EN ??? */ | |
2940 | ||
24a70fdc MCC |
2941 | /* all cards provide GPIO info, some have an additional eeprom |
2942 | * LR50: GPIO coding can be found lower right CP1 .. CP9 | |
2943 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. | |
2944 | * GPIO14-12: n.c. | |
2945 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) | |
1da177e4 | 2946 | |
24a70fdc MCC |
2947 | * lowest 3 bytes are remote control codes (no handshake needed) |
2948 | * xxxFFF: No remote control chip soldered | |
2949 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered | |
2950 | * Note: Some bits are Audio_Mask ! | |
2951 | */ | |
c6eb8eaf HV |
2952 | ttype = (gpio & 0x0f0000) >> 16; |
2953 | switch (ttype) { | |
2954 | case 0x0: | |
2955 | tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */ | |
1da177e4 | 2956 | break; |
c6eb8eaf HV |
2957 | case 0x2: |
2958 | tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */ | |
1da177e4 | 2959 | break; |
c6eb8eaf HV |
2960 | case 0x4: |
2961 | tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ | |
1da177e4 | 2962 | break; |
c6eb8eaf HV |
2963 | case 0x6: |
2964 | tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */ | |
1da177e4 | 2965 | break; |
c6eb8eaf HV |
2966 | case 0xC: |
2967 | tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ | |
1da177e4 LT |
2968 | break; |
2969 | default: | |
8af443e5 | 2970 | pr_info("%d: FlyVideo_gpio: unknown tuner type\n", btv->c.nr); |
c6eb8eaf | 2971 | break; |
1da177e4 LT |
2972 | } |
2973 | ||
2974 | has_remote = gpio & 0x800000; | |
2975 | has_radio = gpio & 0x400000; | |
24a70fdc MCC |
2976 | /* unknown 0x200000; |
2977 | * unknown2 0x100000; */ | |
4ac97914 | 2978 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
1da177e4 | 2979 | has_tda9820_tda9821 = !(gpio & 0x004000); |
24a70fdc MCC |
2980 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
2981 | /* | |
2982 | * gpio & 0x001000 output bit for audio routing */ | |
1da177e4 | 2983 | |
c6eb8eaf HV |
2984 | if (is_capture_only) |
2985 | tuner_type = TUNER_ABSENT; /* No tuner present */ | |
1da177e4 | 2986 | |
8af443e5 JP |
2987 | pr_info("%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n", |
2988 | btv->c.nr, has_radio ? "yes" : "no", | |
2989 | has_remote ? "yes" : "no", tuner_type, gpio); | |
2990 | pr_info("%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n", | |
2991 | btv->c.nr, is_lr90 ? "yes" : "no", | |
2992 | has_tda9820_tda9821 ? "yes" : "no", | |
2993 | is_capture_only ? "yes" : "no"); | |
1da177e4 | 2994 | |
c6eb8eaf HV |
2995 | if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */ |
2996 | btv->tuner_type = tuner_type; | |
1da177e4 LT |
2997 | btv->has_radio = has_radio; |
2998 | ||
24a70fdc MCC |
2999 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
3000 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 | |
3001 | * Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */ | |
c6eb8eaf HV |
3002 | if (has_tda9820_tda9821) |
3003 | btv->audio_mode_gpio = lt9415_audio; | |
4b9b936f | 3004 | /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */ |
1da177e4 LT |
3005 | } |
3006 | ||
3007 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, | |
3008 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; | |
3009 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, | |
3010 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; | |
3011 | ||
3012 | static void miro_pinnacle_gpio(struct bttv *btv) | |
3013 | { | |
3014 | int id,msp,gpio; | |
3015 | char *info; | |
3016 | ||
3017 | gpio_inout(0xffffff, 0); | |
4ac97914 | 3018 | gpio = gpio_read(); |
1da177e4 | 3019 | id = ((gpio>>10) & 63) -1; |
09df1c16 | 3020 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
1da177e4 LT |
3021 | if (id < 32) { |
3022 | btv->tuner_type = miro_tunermap[id]; | |
3023 | if (0 == (gpio & 0x20)) { | |
3024 | btv->has_radio = 1; | |
3025 | if (!miro_fmtuner[id]) { | |
3026 | btv->has_matchbox = 1; | |
3027 | btv->mbox_we = (1<<6); | |
3028 | btv->mbox_most = (1<<7); | |
3029 | btv->mbox_clk = (1<<8); | |
3030 | btv->mbox_data = (1<<9); | |
3031 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); | |
3032 | } | |
3033 | } else { | |
3034 | btv->has_radio = 0; | |
3035 | } | |
3036 | if (-1 != msp) { | |
5a25e84b MCC |
3037 | if (btv->c.type == BTTV_BOARD_MIRO) |
3038 | btv->c.type = BTTV_BOARD_MIROPRO; | |
3039 | if (btv->c.type == BTTV_BOARD_PINNACLE) | |
3040 | btv->c.type = BTTV_BOARD_PINNACLEPRO; | |
1da177e4 | 3041 | } |
8af443e5 JP |
3042 | pr_info("%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
3043 | btv->c.nr, id+1, btv->tuner_type, | |
3044 | !btv->has_radio ? "no" : | |
3045 | (btv->has_matchbox ? "matchbox" : "fmtuner"), | |
3046 | (-1 == msp) ? "no" : "yes"); | |
1da177e4 LT |
3047 | } else { |
3048 | /* new cards with microtune tuner */ | |
3049 | id = 63 - id; | |
3050 | btv->has_radio = 0; | |
3051 | switch (id) { | |
3052 | case 1: | |
3053 | info = "PAL / mono"; | |
39e8f40d | 3054 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
1da177e4 LT |
3055 | break; |
3056 | case 2: | |
3057 | info = "PAL+SECAM / stereo"; | |
3058 | btv->has_radio = 1; | |
39e8f40d | 3059 | btv->tda9887_conf = TDA9887_QSS; |
1da177e4 LT |
3060 | break; |
3061 | case 3: | |
3062 | info = "NTSC / stereo"; | |
3063 | btv->has_radio = 1; | |
39e8f40d | 3064 | btv->tda9887_conf = TDA9887_QSS; |
1da177e4 LT |
3065 | break; |
3066 | case 4: | |
3067 | info = "PAL+SECAM / mono"; | |
39e8f40d | 3068 | btv->tda9887_conf = TDA9887_QSS; |
1da177e4 LT |
3069 | break; |
3070 | case 5: | |
3071 | info = "NTSC / mono"; | |
39e8f40d | 3072 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
1da177e4 LT |
3073 | break; |
3074 | case 6: | |
3075 | info = "NTSC / stereo"; | |
39e8f40d | 3076 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
1da177e4 LT |
3077 | break; |
3078 | case 7: | |
3079 | info = "PAL / stereo"; | |
39e8f40d | 3080 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
1da177e4 LT |
3081 | break; |
3082 | default: | |
3083 | info = "oops: unknown card"; | |
3084 | break; | |
3085 | } | |
3086 | if (-1 != msp) | |
5a25e84b | 3087 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
8af443e5 JP |
3088 | pr_info("%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
3089 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); | |
39e8f40d | 3090 | btv->tuner_type = TUNER_MT2032; |
1da177e4 LT |
3091 | } |
3092 | } | |
3093 | ||
3094 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ | |
3095 | #define LM1882_SYNC_DRIVE 0x200000L | |
3096 | ||
3097 | static void init_ids_eagle(struct bttv *btv) | |
3098 | { | |
3099 | gpio_inout(0xffffff,0xFFFF37); | |
3100 | gpio_write(0x200020); | |
3101 | ||
3102 | /* flash strobe inverter ?! */ | |
3103 | gpio_write(0x200024); | |
3104 | ||
3105 | /* switch sync drive off */ | |
3106 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); | |
3107 | ||
3108 | /* set BT848 muxel to 2 */ | |
3109 | btaor((2)<<5, ~(2<<5), BT848_IFORM); | |
3110 | } | |
3111 | ||
3112 | /* Muxsel helper for the IDS Eagle. | |
3113 | * the eagles does not use the standard muxsel-bits but | |
3114 | * has its own multiplexer */ | |
3115 | static void eagle_muxsel(struct bttv *btv, unsigned int input) | |
3116 | { | |
430390e6 | 3117 | gpio_bits(3, input & 3); |
1da177e4 | 3118 | |
b930e1d8 MK |
3119 | /* composite */ |
3120 | /* set chroma ADC to sleep */ | |
3121 | btor(BT848_ADC_C_SLEEP, BT848_ADC); | |
3122 | /* set to composite video */ | |
3123 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); | |
3124 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); | |
3125 | ||
3126 | /* switch sync drive off */ | |
3127 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); | |
1da177e4 LT |
3128 | } |
3129 | ||
3130 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) | |
3131 | { | |
4ac97914 | 3132 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
1da177e4 LT |
3133 | gpio_write(masks[input%4]); |
3134 | } | |
3135 | ||
3136 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and | |
3137 | alarms output | |
3138 | ||
3139 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | |
3140 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | | |
3141 | ||
3142 | IN - sensor inputs, INx - sensor inputs and TI XORed together | |
3143 | O1,O2,O3 - alarm outputs (relays) | |
3144 | ||
3145 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 | |
3146 | ||
3147 | */ | |
3148 | ||
3149 | static void init_lmlbt4x(struct bttv *btv) | |
3150 | { | |
8af443e5 | 3151 | pr_debug("LMLBT4x init\n"); |
1da177e4 LT |
3152 | btwrite(0x000000, BT848_GPIO_REG_INP); |
3153 | gpio_inout(0xffffff, 0x0006C0); | |
3154 | gpio_write(0x000000); | |
3155 | } | |
3156 | ||
3157 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) | |
3158 | { | |
3159 | unsigned int inmux = input % 8; | |
3160 | gpio_inout( 0xf, 0xf ); | |
3161 | gpio_bits( 0xf, inmux ); | |
3162 | } | |
3163 | ||
3164 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) | |
3165 | { | |
3166 | unsigned int inmux = input % 4; | |
3167 | gpio_inout( 3<<9, 3<<9 ); | |
3168 | gpio_bits( 3<<9, inmux<<9 ); | |
3169 | } | |
3170 | ||
97275ac5 EHN |
3171 | static void geovision_muxsel(struct bttv *btv, unsigned int input) |
3172 | { | |
3173 | unsigned int inmux = input % 16; | |
3174 | gpio_inout(0xf, 0xf); | |
3175 | gpio_bits(0xf, inmux); | |
3176 | } | |
3177 | ||
de2843b6 PDS |
3178 | /* |
3179 | * The TD3116 has 2 74HC4051 muxes wired to the MUX0 input of a bt878. | |
3180 | * The first 74HC4051 has the lower 8 inputs, the second one the higher 8. | |
3181 | * The muxes are controlled via a 74HC373 latch which is connected to | |
3182 | * GPIOs 0-7. GPIO 18 is connected to the LE signal of the latch. | |
3183 | * Q0 of the latch is connected to the Enable (~E) input of the first | |
3184 | * 74HC4051. Q1 - Q3 are connected to S0 - S2 of the same 74HC4051. | |
3185 | * Q4 - Q7 are connected to the second 74HC4051 in the same way. | |
3186 | */ | |
3187 | ||
3188 | static void td3116_latch_value(struct bttv *btv, u32 value) | |
3189 | { | |
3190 | gpio_bits((1<<18) | 0xff, value); | |
3191 | gpio_bits((1<<18) | 0xff, (1<<18) | value); | |
3192 | udelay(1); | |
3193 | gpio_bits((1<<18) | 0xff, value); | |
3194 | } | |
3195 | ||
3196 | static void td3116_muxsel(struct bttv *btv, unsigned int input) | |
3197 | { | |
3198 | u32 value; | |
3199 | u32 highbit; | |
3200 | ||
3201 | highbit = (input & 0x8) >> 3 ; | |
3202 | ||
3203 | /* Disable outputs and set value in the mux */ | |
3204 | value = 0x11; /* Disable outputs */ | |
3205 | value |= ((input & 0x7) << 1) << (4 * highbit); | |
3206 | td3116_latch_value(btv, value); | |
3207 | ||
3208 | /* Enable the correct output */ | |
3209 | value &= ~0x11; | |
3210 | value |= ((highbit ^ 0x1) << 4) | highbit; | |
3211 | td3116_latch_value(btv, value); | |
3212 | } | |
3213 | ||
1da177e4 LT |
3214 | /* ----------------------------------------------------------------------- */ |
3215 | ||
3216 | static void bttv_reset_audio(struct bttv *btv) | |
3217 | { | |
3218 | /* | |
3219 | * BT878A has a audio-reset register. | |
3220 | * 1. This register is an audio reset function but it is in | |
3221 | * function-0 (video capture) address space. | |
3222 | * 2. It is enough to do this once per power-up of the card. | |
3223 | * 3. There is a typo in the Conexant doc -- it is not at | |
3224 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). | |
3225 | * --//Shrikumar 030609 | |
3226 | */ | |
3227 | if (btv->id != 878) | |
3228 | return; | |
3229 | ||
3230 | if (bttv_debug) | |
8af443e5 | 3231 | pr_debug("%d: BT878A ARESET\n", btv->c.nr); |
1da177e4 LT |
3232 | btwrite((1<<7), 0x058); |
3233 | udelay(10); | |
3234 | btwrite( 0, 0x058); | |
3235 | } | |
3236 | ||
3237 | /* initialization part one -- before registering i2c bus */ | |
4c62e976 | 3238 | void bttv_init_card1(struct bttv *btv) |
1da177e4 LT |
3239 | { |
3240 | switch (btv->c.type) { | |
5a25e84b MCC |
3241 | case BTTV_BOARD_HAUPPAUGE: |
3242 | case BTTV_BOARD_HAUPPAUGE878: | |
4ac97914 | 3243 | boot_msp34xx(btv,5); |
1da177e4 | 3244 | break; |
434b2526 | 3245 | case BTTV_BOARD_VOODOOTV_200: |
5a25e84b | 3246 | case BTTV_BOARD_VOODOOTV_FM: |
4ac97914 | 3247 | boot_msp34xx(btv,20); |
1da177e4 | 3248 | break; |
5a25e84b | 3249 | case BTTV_BOARD_AVERMEDIA98: |
1da177e4 LT |
3250 | boot_msp34xx(btv,11); |
3251 | break; | |
5a25e84b | 3252 | case BTTV_BOARD_HAUPPAUGEPVR: |
1da177e4 LT |
3253 | pvr_boot(btv); |
3254 | break; | |
5a25e84b MCC |
3255 | case BTTV_BOARD_TWINHAN_DST: |
3256 | case BTTV_BOARD_AVDVBT_771: | |
3257 | case BTTV_BOARD_PINNACLESAT: | |
1da177e4 LT |
3258 | btv->use_i2c_hw = 1; |
3259 | break; | |
5a25e84b | 3260 | case BTTV_BOARD_ADLINK_RTV24: |
7c08fb02 MK |
3261 | init_RTV24( btv ); |
3262 | break; | |
2d03e289 | 3263 | |
1da177e4 LT |
3264 | } |
3265 | if (!bttv_tvcards[btv->c.type].has_dvb) | |
3266 | bttv_reset_audio(btv); | |
3267 | } | |
3268 | ||
3269 | /* initialization part two -- after registering i2c bus */ | |
4c62e976 | 3270 | void bttv_init_card2(struct bttv *btv) |
1da177e4 | 3271 | { |
ac7dc845 | 3272 | btv->tuner_type = UNSET; |
1da177e4 | 3273 | |
5a25e84b | 3274 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
1da177e4 LT |
3275 | bttv_readee(btv,eeprom_data,0xa0); |
3276 | identify_by_eeprom(btv,eeprom_data); | |
3277 | } | |
3278 | ||
3279 | switch (btv->c.type) { | |
5a25e84b MCC |
3280 | case BTTV_BOARD_MIRO: |
3281 | case BTTV_BOARD_MIROPRO: | |
3282 | case BTTV_BOARD_PINNACLE: | |
3283 | case BTTV_BOARD_PINNACLEPRO: | |
1da177e4 LT |
3284 | /* miro/pinnacle */ |
3285 | miro_pinnacle_gpio(btv); | |
3286 | break; | |
5a25e84b MCC |
3287 | case BTTV_BOARD_FLYVIDEO_98: |
3288 | case BTTV_BOARD_MAXI: | |
3289 | case BTTV_BOARD_LIFE_FLYKIT: | |
3290 | case BTTV_BOARD_FLYVIDEO: | |
3291 | case BTTV_BOARD_TYPHOON_TVIEW: | |
3292 | case BTTV_BOARD_CHRONOS_VS2: | |
3293 | case BTTV_BOARD_FLYVIDEO_98FM: | |
3294 | case BTTV_BOARD_FLYVIDEO2000: | |
3295 | case BTTV_BOARD_FLYVIDEO98EZ: | |
3296 | case BTTV_BOARD_CONFERENCETV: | |
3297 | case BTTV_BOARD_LIFETEC_9415: | |
1da177e4 LT |
3298 | flyvideo_gpio(btv); |
3299 | break; | |
5a25e84b MCC |
3300 | case BTTV_BOARD_HAUPPAUGE: |
3301 | case BTTV_BOARD_HAUPPAUGE878: | |
3302 | case BTTV_BOARD_HAUPPAUGEPVR: | |
1da177e4 LT |
3303 | /* pick up some config infos from the eeprom */ |
3304 | bttv_readee(btv,eeprom_data,0xa0); | |
4ac97914 | 3305 | hauppauge_eeprom(btv); |
1da177e4 | 3306 | break; |
5a25e84b MCC |
3307 | case BTTV_BOARD_AVERMEDIA98: |
3308 | case BTTV_BOARD_AVPHONE98: | |
1da177e4 LT |
3309 | bttv_readee(btv,eeprom_data,0xa0); |
3310 | avermedia_eeprom(btv); | |
3311 | break; | |
5a25e84b | 3312 | case BTTV_BOARD_PXC200: |
1da177e4 LT |
3313 | init_PXC200(btv); |
3314 | break; | |
5a25e84b | 3315 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
1da177e4 LT |
3316 | picolo_tetra_init(btv); |
3317 | break; | |
5a25e84b | 3318 | case BTTV_BOARD_VHX: |
1da177e4 LT |
3319 | btv->has_radio = 1; |
3320 | btv->has_matchbox = 1; | |
3321 | btv->mbox_we = 0x20; | |
3322 | btv->mbox_most = 0; | |
3323 | btv->mbox_clk = 0x08; | |
3324 | btv->mbox_data = 0x10; | |
3325 | btv->mbox_mask = 0x38; | |
3326 | break; | |
5a25e84b MCC |
3327 | case BTTV_BOARD_VOBIS_BOOSTAR: |
3328 | case BTTV_BOARD_TERRATV: | |
1da177e4 LT |
3329 | terratec_active_radio_upgrade(btv); |
3330 | break; | |
5a25e84b | 3331 | case BTTV_BOARD_MAGICTVIEW061: |
1da177e4 LT |
3332 | if (btv->cardid == 0x3002144f) { |
3333 | btv->has_radio=1; | |
8af443e5 JP |
3334 | pr_info("%d: radio detected by subsystem id (CPH05x)\n", |
3335 | btv->c.nr); | |
1da177e4 LT |
3336 | } |
3337 | break; | |
b930e1d8 | 3338 | case BTTV_BOARD_STB2: |
4ac97914 | 3339 | if (btv->cardid == 0x3060121a) { |
1da177e4 LT |
3340 | /* Fix up entry for 3DFX VoodooTV 100, |
3341 | which is an OEM STB card variant. */ | |
3342 | btv->has_radio=0; | |
3343 | btv->tuner_type=TUNER_TEMIC_NTSC; | |
3344 | } | |
3345 | break; | |
5a25e84b MCC |
3346 | case BTTV_BOARD_OSPREY1x0: |
3347 | case BTTV_BOARD_OSPREY1x0_848: | |
3348 | case BTTV_BOARD_OSPREY101_848: | |
3349 | case BTTV_BOARD_OSPREY1x1: | |
3350 | case BTTV_BOARD_OSPREY1x1_SVID: | |
3351 | case BTTV_BOARD_OSPREY2xx: | |
3352 | case BTTV_BOARD_OSPREY2x0_SVID: | |
3353 | case BTTV_BOARD_OSPREY2x0: | |
cf784d55 | 3354 | case BTTV_BOARD_OSPREY440: |
5a25e84b MCC |
3355 | case BTTV_BOARD_OSPREY500: |
3356 | case BTTV_BOARD_OSPREY540: | |
3357 | case BTTV_BOARD_OSPREY2000: | |
1da177e4 | 3358 | bttv_readee(btv,eeprom_data,0xa0); |
cf784d55 | 3359 | osprey_eeprom(btv, eeprom_data); |
1da177e4 | 3360 | break; |
5a25e84b | 3361 | case BTTV_BOARD_IDS_EAGLE: |
1da177e4 LT |
3362 | init_ids_eagle(btv); |
3363 | break; | |
5a25e84b | 3364 | case BTTV_BOARD_MODTEC_205: |
1da177e4 LT |
3365 | bttv_readee(btv,eeprom_data,0xa0); |
3366 | modtec_eeprom(btv); | |
3367 | break; | |
5a25e84b | 3368 | case BTTV_BOARD_LMLBT4: |
1da177e4 LT |
3369 | init_lmlbt4x(btv); |
3370 | break; | |
5a25e84b | 3371 | case BTTV_BOARD_TIBET_CS16: |
1da177e4 LT |
3372 | tibetCS16_init(btv); |
3373 | break; | |
5a25e84b | 3374 | case BTTV_BOARD_KODICOM_4400R: |
1da177e4 LT |
3375 | kodicom4400r_init(btv); |
3376 | break; | |
0c5db425 BC |
3377 | case BTTV_BOARD_GEOVISION_GV800S: |
3378 | gv800s_init(btv); | |
3379 | break; | |
1da177e4 LT |
3380 | } |
3381 | ||
3382 | /* pll configuration */ | |
4ac97914 | 3383 | if (!(btv->id==848 && btv->revision==0x11)) { |
1da177e4 LT |
3384 | /* defaults from card list */ |
3385 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { | |
3386 | btv->pll.pll_ifreq=28636363; | |
3387 | btv->pll.pll_crystal=BT848_IFORM_XT0; | |
3388 | } | |
3389 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { | |
3390 | btv->pll.pll_ifreq=35468950; | |
3391 | btv->pll.pll_crystal=BT848_IFORM_XT1; | |
3392 | } | |
3393 | /* insmod options can override */ | |
4ac97914 MCC |
3394 | switch (pll[btv->c.nr]) { |
3395 | case 0: /* none */ | |
1da177e4 LT |
3396 | btv->pll.pll_crystal = 0; |
3397 | btv->pll.pll_ifreq = 0; | |
3398 | btv->pll.pll_ofreq = 0; | |
4ac97914 MCC |
3399 | break; |
3400 | case 1: /* 28 MHz */ | |
1da177e4 | 3401 | case 28: |
4ac97914 | 3402 | btv->pll.pll_ifreq = 28636363; |
1da177e4 | 3403 | btv->pll.pll_ofreq = 0; |
4ac97914 MCC |
3404 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
3405 | break; | |
3406 | case 2: /* 35 MHz */ | |
1da177e4 | 3407 | case 35: |
4ac97914 | 3408 | btv->pll.pll_ifreq = 35468950; |
1da177e4 | 3409 | btv->pll.pll_ofreq = 0; |
4ac97914 MCC |
3410 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
3411 | break; | |
3412 | } | |
3413 | } | |
1da177e4 LT |
3414 | btv->pll.pll_current = -1; |
3415 | ||
1da177e4 | 3416 | /* tuner configuration (from card list / autodetect / insmod option) */ |
24a70fdc | 3417 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
abb0362f | 3418 | if (UNSET == btv->tuner_type) |
4ac97914 | 3419 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
1da177e4 LT |
3420 | if (UNSET != tuner[btv->c.nr]) |
3421 | btv->tuner_type = tuner[btv->c.nr]; | |
ac7dc845 | 3422 | |
abb0362f | 3423 | if (btv->tuner_type == TUNER_ABSENT) |
8af443e5 JP |
3424 | pr_info("%d: tuner absent\n", btv->c.nr); |
3425 | else if (btv->tuner_type == UNSET) | |
3426 | pr_warn("%d: tuner type unset\n", btv->c.nr); | |
ac7dc845 | 3427 | else |
8af443e5 | 3428 | pr_info("%d: tuner type=%d\n", btv->c.nr, btv->tuner_type); |
f3b512fd | 3429 | |
859f0277 | 3430 | if (autoload != UNSET) { |
8af443e5 JP |
3431 | pr_warn("%d: the autoload option is obsolete\n", btv->c.nr); |
3432 | pr_warn("%d: use option msp3400, tda7432 or tvaudio to override which audio module should be used\n", | |
3433 | btv->c.nr); | |
859f0277 HV |
3434 | } |
3435 | ||
abb0362f TP |
3436 | if (UNSET == btv->tuner_type) |
3437 | btv->tuner_type = TUNER_ABSENT; | |
3438 | ||
5221e21e TP |
3439 | btv->dig = bttv_tvcards[btv->c.type].has_dig_in ? |
3440 | bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET; | |
4c548d4b TP |
3441 | btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ? |
3442 | UNSET : bttv_tvcards[btv->c.type].svhs; | |
1da177e4 LT |
3443 | if (svhs[btv->c.nr] != UNSET) |
3444 | btv->svhs = svhs[btv->c.nr]; | |
3445 | if (remote[btv->c.nr] != UNSET) | |
3446 | btv->has_remote = remote[btv->c.nr]; | |
3447 | ||
3448 | if (bttv_tvcards[btv->c.type].has_radio) | |
2c905778 | 3449 | btv->has_radio = 1; |
1da177e4 | 3450 | if (bttv_tvcards[btv->c.type].has_remote) |
2c905778 | 3451 | btv->has_remote = 1; |
7c08fb02 | 3452 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
2c905778 | 3453 | btv->gpioirq = 1; |
4b9b936f | 3454 | if (bttv_tvcards[btv->c.type].volume_gpio) |
2c905778 | 3455 | btv->volume_gpio = bttv_tvcards[btv->c.type].volume_gpio; |
4b9b936f | 3456 | if (bttv_tvcards[btv->c.type].audio_mode_gpio) |
2c905778 | 3457 | btv->audio_mode_gpio = bttv_tvcards[btv->c.type].audio_mode_gpio; |
1da177e4 | 3458 | |
abb0362f | 3459 | if (btv->tuner_type == TUNER_ABSENT) |
ac7dc845 TP |
3460 | return; /* no tuner or related drivers to load */ |
3461 | ||
859f0277 HV |
3462 | if (btv->has_saa6588 || saa6588[btv->c.nr]) { |
3463 | /* Probe for RDS receiver chip */ | |
3464 | static const unsigned short addrs[] = { | |
3465 | 0x20 >> 1, | |
3466 | 0x22 >> 1, | |
3467 | I2C_CLIENT_END | |
3468 | }; | |
3469 | struct v4l2_subdev *sd; | |
3470 | ||
53dacb15 | 3471 | sd = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3472 | &btv->c.i2c_adap, "saa6588", 0, addrs); |
859f0277 HV |
3473 | btv->has_saa6588 = (sd != NULL); |
3474 | } | |
3475 | ||
1da177e4 | 3476 | /* try to detect audio/fader chips */ |
1da177e4 | 3477 | |
859f0277 HV |
3478 | /* First check if the user specified the audio chip via a module |
3479 | option. */ | |
1da177e4 | 3480 | |
859f0277 HV |
3481 | switch (audiodev[btv->c.nr]) { |
3482 | case -1: | |
3483 | return; /* do not load any audio module */ | |
1da177e4 | 3484 | |
859f0277 HV |
3485 | case 0: /* autodetect */ |
3486 | break; | |
3487 | ||
3488 | case 1: { | |
3489 | /* The user specified that we should probe for msp3400 */ | |
3490 | static const unsigned short addrs[] = { | |
3491 | I2C_ADDR_MSP3400 >> 1, | |
3492 | I2C_ADDR_MSP3400_ALT >> 1, | |
3493 | I2C_CLIENT_END | |
3494 | }; | |
3495 | ||
53dacb15 | 3496 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3497 | &btv->c.i2c_adap, "msp3400", 0, addrs); |
859f0277 HV |
3498 | if (btv->sd_msp34xx) |
3499 | return; | |
3500 | goto no_audio; | |
3501 | } | |
3502 | ||
3503 | case 2: { | |
3504 | /* The user specified that we should probe for tda7432 */ | |
3505 | static const unsigned short addrs[] = { | |
3506 | I2C_ADDR_TDA7432 >> 1, | |
3507 | I2C_CLIENT_END | |
3508 | }; | |
3509 | ||
53dacb15 | 3510 | if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3511 | &btv->c.i2c_adap, "tda7432", 0, addrs)) |
859f0277 HV |
3512 | return; |
3513 | goto no_audio; | |
3514 | } | |
3515 | ||
3516 | case 3: { | |
3517 | /* The user specified that we should probe for tvaudio */ | |
53dacb15 | 3518 | btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3519 | &btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs()); |
859f0277 HV |
3520 | if (btv->sd_tvaudio) |
3521 | return; | |
3522 | goto no_audio; | |
3523 | } | |
3524 | ||
3525 | default: | |
8af443e5 | 3526 | pr_warn("%d: unknown audiodev value!\n", btv->c.nr); |
859f0277 HV |
3527 | return; |
3528 | } | |
3529 | ||
3530 | /* There were no overrides, so now we try to discover this through the | |
3531 | card definition */ | |
3532 | ||
3533 | /* probe for msp3400 first: this driver can detect whether or not | |
3534 | it really is a msp3400, so it will return NULL when the device | |
3535 | found is really something else (e.g. a tea6300). */ | |
3536 | if (!bttv_tvcards[btv->c.type].no_msp34xx) { | |
53dacb15 | 3537 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3538 | &btv->c.i2c_adap, "msp3400", |
53dacb15 | 3539 | 0, I2C_ADDRS(I2C_ADDR_MSP3400 >> 1)); |
859f0277 | 3540 | } else if (bttv_tvcards[btv->c.type].msp34xx_alt) { |
53dacb15 | 3541 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3542 | &btv->c.i2c_adap, "msp3400", |
53dacb15 | 3543 | 0, I2C_ADDRS(I2C_ADDR_MSP3400_ALT >> 1)); |
859f0277 HV |
3544 | } |
3545 | ||
3546 | /* If we found a msp34xx, then we're done. */ | |
3547 | if (btv->sd_msp34xx) | |
3548 | return; | |
3549 | ||
3550 | /* it might also be a tda7432. */ | |
3551 | if (!bttv_tvcards[btv->c.type].no_tda7432) { | |
3552 | static const unsigned short addrs[] = { | |
3553 | I2C_ADDR_TDA7432 >> 1, | |
3554 | I2C_CLIENT_END | |
3555 | }; | |
3556 | ||
53dacb15 | 3557 | if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3558 | &btv->c.i2c_adap, "tda7432", 0, addrs)) |
859f0277 HV |
3559 | return; |
3560 | } | |
3561 | ||
3562 | /* Now see if we can find one of the tvaudio devices. */ | |
53dacb15 | 3563 | btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3564 | &btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs()); |
859f0277 HV |
3565 | if (btv->sd_tvaudio) |
3566 | return; | |
1da177e4 | 3567 | |
859f0277 | 3568 | no_audio: |
8af443e5 | 3569 | pr_warn("%d: audio absent, no audio device found!\n", btv->c.nr); |
1da177e4 LT |
3570 | } |
3571 | ||
3572 | ||
2c905778 | 3573 | /* initialize the tuner */ |
4c62e976 | 3574 | void bttv_init_tuner(struct bttv *btv) |
2c905778 HV |
3575 | { |
3576 | int addr = ADDR_UNSET; | |
3577 | ||
3578 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) | |
3579 | addr = bttv_tvcards[btv->c.type].tuner_addr; | |
3580 | ||
3581 | if (btv->tuner_type != TUNER_ABSENT) { | |
3582 | struct tuner_setup tun_setup; | |
3583 | ||
3584 | /* Load tuner module before issuing tuner config call! */ | |
5c164646 | 3585 | if (btv->has_radio) |
53dacb15 | 3586 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
9a1f8b34 | 3587 | &btv->c.i2c_adap, "tuner", |
53dacb15 HV |
3588 | 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO)); |
3589 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, | |
9a1f8b34 | 3590 | &btv->c.i2c_adap, "tuner", |
53dacb15 HV |
3591 | 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD)); |
3592 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, | |
9a1f8b34 | 3593 | &btv->c.i2c_adap, "tuner", |
53dacb15 | 3594 | 0, v4l2_i2c_tuner_addrs(ADDRS_TV_WITH_DEMOD)); |
2c905778 | 3595 | |
ad020dc2 | 3596 | tun_setup.mode_mask = T_ANALOG_TV; |
2c905778 HV |
3597 | tun_setup.type = btv->tuner_type; |
3598 | tun_setup.addr = addr; | |
3599 | ||
5c164646 | 3600 | if (btv->has_radio) |
2c905778 HV |
3601 | tun_setup.mode_mask |= T_RADIO; |
3602 | ||
3603 | bttv_call_all(btv, tuner, s_type_addr, &tun_setup); | |
3604 | } | |
3605 | ||
3606 | if (btv->tda9887_conf) { | |
3607 | struct v4l2_priv_tun_config tda9887_cfg; | |
3608 | ||
3609 | tda9887_cfg.tuner = TUNER_TDA9887; | |
3610 | tda9887_cfg.priv = &btv->tda9887_conf; | |
3611 | ||
3612 | bttv_call_all(btv, tuner, s_config, &tda9887_cfg); | |
3613 | } | |
3614 | } | |
3615 | ||
1da177e4 LT |
3616 | /* ----------------------------------------------------------------------- */ |
3617 | ||
3618 | static void modtec_eeprom(struct bttv *btv) | |
3619 | { | |
3620 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { | |
3621 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; | |
8af443e5 JP |
3622 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
3623 | btv->c.nr, &eeprom_data[0x1e]); | |
1da177e4 LT |
3624 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
3625 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; | |
8af443e5 JP |
3626 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
3627 | btv->c.nr, &eeprom_data[0x1e]); | |
4ac97914 MCC |
3628 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
3629 | btv->tuner_type=TUNER_PHILIPS_NTSC; | |
8af443e5 JP |
3630 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
3631 | btv->c.nr, &eeprom_data[0x1e]); | |
1da177e4 | 3632 | } else { |
8af443e5 JP |
3633 | pr_info("%d: Modtec: Unknown TunerString: %s\n", |
3634 | btv->c.nr, &eeprom_data[0x1e]); | |
1da177e4 LT |
3635 | } |
3636 | } | |
3637 | ||
4c62e976 | 3638 | static void hauppauge_eeprom(struct bttv *btv) |
1da177e4 LT |
3639 | { |
3640 | struct tveeprom tv; | |
3641 | ||
0f97a931 | 3642 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
1da177e4 LT |
3643 | btv->tuner_type = tv.tuner_type; |
3644 | btv->has_radio = tv.has_radio; | |
cd1257d8 | 3645 | |
8af443e5 | 3646 | pr_info("%d: Hauppauge eeprom indicates model#%d\n", |
cd1257d8 ST |
3647 | btv->c.nr, tv.model); |
3648 | ||
3649 | /* | |
3650 | * Some of the 878 boards have duplicate PCI IDs. Switch the board | |
3651 | * type based on model #. | |
3652 | */ | |
3653 | if(tv.model == 64900) { | |
8af443e5 | 3654 | pr_info("%d: Switching board type from %s to %s\n", |
cd1257d8 ST |
3655 | btv->c.nr, |
3656 | bttv_tvcards[btv->c.type].name, | |
3657 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); | |
3658 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; | |
3659 | } | |
7025e521 HG |
3660 | |
3661 | /* The 61334 needs the msp3410 to do the radio demod to get sound */ | |
3662 | if (tv.model == 61334) | |
3663 | btv->radio_uses_msp_demodulator = 1; | |
1da177e4 LT |
3664 | } |
3665 | ||
3666 | static int terratec_active_radio_upgrade(struct bttv *btv) | |
3667 | { | |
3668 | int freq; | |
3669 | ||
3670 | btv->has_radio = 1; | |
3671 | btv->has_matchbox = 1; | |
3672 | btv->mbox_we = 0x10; | |
3673 | btv->mbox_most = 0x20; | |
3674 | btv->mbox_clk = 0x08; | |
3675 | btv->mbox_data = 0x04; | |
3676 | btv->mbox_mask = 0x3c; | |
3677 | ||
3678 | btv->mbox_iow = 1 << 8; | |
3679 | btv->mbox_ior = 1 << 9; | |
3680 | btv->mbox_csel = 1 << 10; | |
3681 | ||
3682 | freq=88000/62.5; | |
24a70fdc | 3683 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
1da177e4 | 3684 | if (0x1ed8 == tea5757_read(btv)) { |
8af443e5 | 3685 | pr_info("%d: Terratec Active Radio Upgrade found\n", btv->c.nr); |
1da177e4 | 3686 | btv->has_radio = 1; |
859f0277 | 3687 | btv->has_saa6588 = 1; |
1da177e4 LT |
3688 | btv->has_matchbox = 1; |
3689 | } else { | |
3690 | btv->has_radio = 0; | |
3691 | btv->has_matchbox = 0; | |
3692 | } | |
3693 | return 0; | |
3694 | } | |
3695 | ||
3696 | ||
3697 | /* ----------------------------------------------------------------------- */ | |
3698 | ||
3699 | /* | |
3700 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. | |
3701 | * | |
3702 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have | |
3703 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be | |
3704 | * unpacked with unzip). | |
3705 | */ | |
3706 | #define PVR_GPIO_DELAY 10 | |
3707 | ||
3708 | #define BTTV_ALT_DATA 0x000001 | |
3709 | #define BTTV_ALT_DCLK 0x100000 | |
3710 | #define BTTV_ALT_NCONFIG 0x800000 | |
3711 | ||
4c62e976 | 3712 | static int pvr_altera_load(struct bttv *btv, const u8 *micro, u32 microlen) |
1da177e4 LT |
3713 | { |
3714 | u32 n; | |
4ac97914 | 3715 | u8 bits; |
1da177e4 LT |
3716 | int i; |
3717 | ||
3718 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); | |
3719 | gpio_write(0); | |
3720 | udelay(PVR_GPIO_DELAY); | |
3721 | ||
3722 | gpio_write(BTTV_ALT_NCONFIG); | |
3723 | udelay(PVR_GPIO_DELAY); | |
3724 | ||
3725 | for (n = 0; n < microlen; n++) { | |
3726 | bits = micro[n]; | |
c1d57038 | 3727 | for (i = 0 ; i < 8 ; i++) { |
1da177e4 LT |
3728 | gpio_bits(BTTV_ALT_DCLK,0); |
3729 | if (bits & 0x01) | |
3730 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); | |
3731 | else | |
3732 | gpio_bits(BTTV_ALT_DATA,0); | |
3733 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); | |
3734 | bits >>= 1; | |
3735 | } | |
3736 | } | |
3737 | gpio_bits(BTTV_ALT_DCLK,0); | |
3738 | udelay(PVR_GPIO_DELAY); | |
3739 | ||
3740 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ | |
3741 | for (i = 0 ; i < 30 ; i++) { | |
3742 | gpio_bits(BTTV_ALT_DCLK,0); | |
3743 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); | |
3744 | } | |
3745 | gpio_bits(BTTV_ALT_DCLK,0); | |
3746 | return 0; | |
3747 | } | |
3748 | ||
4c62e976 | 3749 | static int pvr_boot(struct bttv *btv) |
1da177e4 | 3750 | { |
4ac97914 | 3751 | const struct firmware *fw_entry; |
1da177e4 LT |
3752 | int rc; |
3753 | ||
3754 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); | |
3755 | if (rc != 0) { | |
8af443e5 | 3756 | pr_warn("%d: no altera firmware [via hotplug]\n", btv->c.nr); |
4ac97914 MCC |
3757 | return rc; |
3758 | } | |
1da177e4 | 3759 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
8af443e5 JP |
3760 | pr_info("%d: altera firmware upload %s\n", |
3761 | btv->c.nr, (rc < 0) ? "failed" : "ok"); | |
4ac97914 | 3762 | release_firmware(fw_entry); |
1da177e4 LT |
3763 | return rc; |
3764 | } | |
3765 | ||
3766 | /* ----------------------------------------------------------------------- */ | |
3767 | /* some osprey specific stuff */ | |
3768 | ||
4c62e976 | 3769 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
1da177e4 | 3770 | { |
cf784d55 TP |
3771 | int i; |
3772 | u32 serial = 0; | |
3773 | int cardid = -1; | |
3774 | ||
3775 | /* This code will nevery actually get called in this case.... */ | |
3776 | if (btv->c.type == BTTV_BOARD_UNKNOWN) { | |
3777 | /* this might be an antique... check for MMAC label in eeprom */ | |
3778 | if (!strncmp(ee, "MMAC", 4)) { | |
3779 | u8 checksum = 0; | |
3780 | for (i = 0; i < 21; i++) | |
3781 | checksum += ee[i]; | |
3782 | if (checksum != ee[21]) | |
3783 | return; | |
3784 | cardid = BTTV_BOARD_OSPREY1x0_848; | |
3785 | for (i = 12; i < 21; i++) | |
3786 | serial *= 10, serial += ee[i] - '0'; | |
3787 | } | |
b930e1d8 | 3788 | } else { |
cf784d55 TP |
3789 | unsigned short type; |
3790 | ||
3791 | for (i = 4*16; i < 8*16; i += 16) { | |
3792 | u16 checksum = ip_compute_csum(ee + i, 16); | |
3793 | ||
3794 | if ((checksum&0xff) + (checksum>>8) == 0xff) | |
3795 | break; | |
3796 | } | |
3797 | if (i >= 8*16) | |
3798 | return; | |
3799 | ee += i; | |
3800 | ||
3801 | /* found a valid descriptor */ | |
c1c36f31 | 3802 | type = get_unaligned_be16((__be16 *)(ee+4)); |
cf784d55 TP |
3803 | |
3804 | switch(type) { | |
3805 | /* 848 based */ | |
3806 | case 0x0004: | |
3807 | cardid = BTTV_BOARD_OSPREY1x0_848; | |
3808 | break; | |
3809 | case 0x0005: | |
3810 | cardid = BTTV_BOARD_OSPREY101_848; | |
3811 | break; | |
3812 | ||
3813 | /* 878 based */ | |
3814 | case 0x0012: | |
3815 | case 0x0013: | |
3816 | cardid = BTTV_BOARD_OSPREY1x0; | |
3817 | break; | |
3818 | case 0x0014: | |
3819 | case 0x0015: | |
3820 | cardid = BTTV_BOARD_OSPREY1x1; | |
3821 | break; | |
3822 | case 0x0016: | |
3823 | case 0x0017: | |
3824 | case 0x0020: | |
3825 | cardid = BTTV_BOARD_OSPREY1x1_SVID; | |
3826 | break; | |
3827 | case 0x0018: | |
3828 | case 0x0019: | |
3829 | case 0x001E: | |
3830 | case 0x001F: | |
3831 | cardid = BTTV_BOARD_OSPREY2xx; | |
3832 | break; | |
3833 | case 0x001A: | |
3834 | case 0x001B: | |
3835 | cardid = BTTV_BOARD_OSPREY2x0_SVID; | |
3836 | break; | |
3837 | case 0x0040: | |
3838 | cardid = BTTV_BOARD_OSPREY500; | |
3839 | break; | |
3840 | case 0x0050: | |
3841 | case 0x0056: | |
3842 | cardid = BTTV_BOARD_OSPREY540; | |
3843 | /* bttv_osprey_540_init(btv); */ | |
3844 | break; | |
3845 | case 0x0060: | |
3846 | case 0x0070: | |
3847 | case 0x00A0: | |
3848 | cardid = BTTV_BOARD_OSPREY2x0; | |
3849 | /* enable output on select control lines */ | |
3850 | gpio_inout(0xffffff,0x000303); | |
3851 | break; | |
3852 | case 0x00D8: | |
3853 | cardid = BTTV_BOARD_OSPREY440; | |
3854 | break; | |
3855 | default: | |
3856 | /* unknown...leave generic, but get serial # */ | |
8af443e5 JP |
3857 | pr_info("%d: osprey eeprom: unknown card type 0x%04x\n", |
3858 | btv->c.nr, type); | |
cf784d55 TP |
3859 | break; |
3860 | } | |
c1c36f31 | 3861 | serial = get_unaligned_be32((__be32 *)(ee+6)); |
cf784d55 TP |
3862 | } |
3863 | ||
8af443e5 JP |
3864 | pr_info("%d: osprey eeprom: card=%d '%s' serial=%u\n", |
3865 | btv->c.nr, cardid, | |
3866 | cardid > 0 ? bttv_tvcards[cardid].name : "Unknown", serial); | |
cf784d55 TP |
3867 | |
3868 | if (cardid<0 || btv->c.type == cardid) | |
3869 | return; | |
3870 | ||
3871 | /* card type isn't set correctly */ | |
3872 | if (card[btv->c.nr] < bttv_num_tvcards) { | |
8af443e5 JP |
3873 | pr_warn("%d: osprey eeprom: Not overriding user specified card type\n", |
3874 | btv->c.nr); | |
cf784d55 | 3875 | } else { |
8af443e5 JP |
3876 | pr_info("%d: osprey eeprom: Changing card type from %d to %d\n", |
3877 | btv->c.nr, btv->c.type, cardid); | |
cf784d55 TP |
3878 | btv->c.type = cardid; |
3879 | } | |
1da177e4 LT |
3880 | } |
3881 | ||
3882 | /* ----------------------------------------------------------------------- */ | |
3883 | /* AVermedia specific stuff, from bktr_card.c */ | |
3884 | ||
3885 | static int tuner_0_table[] = { | |
4ac97914 MCC |
3886 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
3887 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, | |
3888 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, | |
3889 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, | |
3890 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, | |
1da177e4 | 3891 | TUNER_PHILIPS_FM1216ME_MK3 }; |
1da177e4 LT |
3892 | |
3893 | static int tuner_1_table[] = { | |
4ac97914 | 3894 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
1da177e4 LT |
3895 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
3896 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, | |
4ac97914 MCC |
3897 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
3898 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; | |
1da177e4 | 3899 | |
4c62e976 | 3900 | static void avermedia_eeprom(struct bttv *btv) |
1da177e4 | 3901 | { |
c6eb8eaf | 3902 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
1da177e4 LT |
3903 | |
3904 | tuner_make = (eeprom_data[0x41] & 0x7); | |
4ac97914 MCC |
3905 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
3906 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; | |
1da177e4 LT |
3907 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
3908 | ||
3909 | if (tuner_make == 0 || tuner_make == 2) | |
c6eb8eaf HV |
3910 | if (tuner_format <= 0x0a) |
3911 | tuner_type = tuner_0_table[tuner_format]; | |
1da177e4 | 3912 | if (tuner_make == 1) |
c6eb8eaf HV |
3913 | if (tuner_format <= 9) |
3914 | tuner_type = tuner_1_table[tuner_format]; | |
1da177e4 LT |
3915 | |
3916 | if (tuner_make == 4) | |
c6eb8eaf HV |
3917 | if (tuner_format == 0x09) |
3918 | tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ | |
1da177e4 | 3919 | |
8af443e5 | 3920 | pr_info("%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
c6eb8eaf HV |
3921 | btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]); |
3922 | if (tuner_type) { | |
3923 | btv->tuner_type = tuner_type; | |
8af443e5 | 3924 | pr_cont("%d", tuner_type); |
1da177e4 | 3925 | } else |
8af443e5 JP |
3926 | pr_cont("Unknown type"); |
3927 | pr_cont(" radio:%s remote control:%s\n", | |
1da177e4 LT |
3928 | tuner_tv_fm ? "yes" : "no", |
3929 | btv->has_remote ? "yes" : "no"); | |
3930 | } | |
3931 | ||
72134a6d TP |
3932 | /* |
3933 | * For Voodoo TV/FM and Voodoo 200. These cards' tuners use a TDA9880 | |
3934 | * analog demod, which is not I2C controlled like the newer and more common | |
3935 | * TDA9887 series. Instead is has two tri-state input pins, S0 and S1, | |
3936 | * that control the IF for the video and audio. Apparently, bttv GPIO | |
3937 | * 0x10000 is connected to S0. S0 low selects a 38.9 MHz VIF for B/G/D/K/I | |
3938 | * (i.e., PAL) while high selects 45.75 MHz for M/N (i.e., NTSC). | |
3939 | */ | |
3940 | u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits) | |
1da177e4 | 3941 | { |
72134a6d TP |
3942 | |
3943 | if (btv->audio == TVAUDIO_INPUT_TUNER) { | |
3944 | if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN) | |
3945 | gpiobits |= 0x10000; | |
3946 | else | |
3947 | gpiobits &= ~0x10000; | |
1da177e4 | 3948 | } |
72134a6d TP |
3949 | |
3950 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpiobits); | |
3951 | return gpiobits; | |
1da177e4 LT |
3952 | } |
3953 | ||
3954 | ||
3955 | /* | |
3956 | * reset/enable the MSP on some Hauppauge cards | |
93e960ff | 3957 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
1da177e4 LT |
3958 | * |
3959 | * Hauppauge: pin 5 | |
3960 | * Voodoo: pin 20 | |
3961 | */ | |
4c62e976 | 3962 | static void boot_msp34xx(struct bttv *btv, int pin) |
1da177e4 LT |
3963 | { |
3964 | int mask = (1 << pin); | |
3965 | ||
3966 | gpio_inout(mask,mask); | |
3967 | gpio_bits(mask,0); | |
c4e3fd94 TM |
3968 | mdelay(2); |
3969 | udelay(500); | |
1da177e4 LT |
3970 | gpio_bits(mask,mask); |
3971 | ||
3972 | if (bttv_gpio) | |
3973 | bttv_gpio_tracking(btv,"msp34xx"); | |
3974 | if (bttv_verbose) | |
8af443e5 JP |
3975 | pr_info("%d: Hauppauge/Voodoo msp34xx: reset line init [%d]\n", |
3976 | btv->c.nr, pin); | |
1da177e4 LT |
3977 | } |
3978 | ||
1da177e4 LT |
3979 | /* ----------------------------------------------------------------------- */ |
3980 | /* Imagenation L-Model PXC200 Framegrabber */ | |
3981 | /* This is basically the same procedure as | |
3982 | * used by Alessandro Rubini in his pxc200 | |
3983 | * driver, but using BTTV functions */ | |
3984 | ||
4c62e976 | 3985 | static void init_PXC200(struct bttv *btv) |
1da177e4 | 3986 | { |
4c62e976 GKH |
3987 | static int vals[] = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, 0x01, 0x02, |
3988 | 0x03, 0x04, 0x05, 0x06, 0x00 }; | |
1da177e4 LT |
3989 | unsigned int i; |
3990 | int tmp; | |
3991 | u32 val; | |
3992 | ||
3993 | /* Initialise GPIO-connevted stuff */ | |
3994 | gpio_inout(0xffffff, (1<<13)); | |
3995 | gpio_write(0); | |
3996 | udelay(3); | |
3997 | gpio_write(1<<13); | |
3998 | /* GPIO inputs are pulled up, so no need to drive | |
3999 | * reset pin any longer */ | |
4000 | gpio_bits(0xffffff, 0); | |
4001 | if (bttv_gpio) | |
4002 | bttv_gpio_tracking(btv,"pxc200"); | |
4003 | ||
4004 | /* we could/should try and reset/control the AD pots? but | |
4005 | right now we simply turned off the crushing. Without | |
4006 | this the AGC drifts drifts | |
4007 | remember the EN is reverse logic --> | |
4008 | setting BT848_ADC_AGC_EN disable the AGC | |
4009 | tboult@eecs.lehigh.edu | |
4010 | */ | |
4011 | ||
4012 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); | |
4013 | ||
4014 | /* Initialise MAX517 DAC */ | |
8af443e5 | 4015 | pr_info("Setting DAC reference voltage level ...\n"); |
1da177e4 LT |
4016 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
4017 | ||
4018 | /* Initialise 12C508 PIC */ | |
4019 | /* The I2CWrite and I2CRead commmands are actually to the | |
4020 | * same chips - but the R/W bit is included in the address | |
4021 | * argument so the numbers are different */ | |
4022 | ||
4023 | ||
8af443e5 | 4024 | pr_info("Initialising 12C508 PIC chip ...\n"); |
1da177e4 LT |
4025 | |
4026 | /* First of all, enable the clock line. This is used in the PXC200-F */ | |
4027 | val = btread(BT848_GPIO_DMA_CTL); | |
4028 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; | |
4029 | btwrite(val, BT848_GPIO_DMA_CTL); | |
4030 | ||
4031 | /* Then, push to 0 the reset pin long enough to reset the * | |
4032 | * device same as above for the reset line, but not the same | |
4033 | * value sent to the GPIO-connected stuff | |
4034 | * which one is the good one? */ | |
4035 | gpio_inout(0xffffff,(1<<2)); | |
4036 | gpio_write(0); | |
4037 | udelay(10); | |
4038 | gpio_write(1<<2); | |
4039 | ||
4ac97914 | 4040 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
1da177e4 LT |
4041 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
4042 | if (tmp != -1) { | |
8af443e5 | 4043 | pr_info("I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
1da177e4 LT |
4044 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
4045 | } | |
4046 | } | |
4047 | ||
8af443e5 | 4048 | pr_info("PXC200 Initialised\n"); |
1da177e4 LT |
4049 | } |
4050 | ||
2d03e289 MCC |
4051 | |
4052 | ||
93b43f13 PS |
4053 | /* ----------------------------------------------------------------------- */ |
4054 | /* | |
4055 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock | |
4056 | * it. This apparently involves the following procedure for each 878 chip: | |
4057 | * | |
4058 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register | |
4059 | * | |
4060 | * 2) write to GPIO_DATA | |
4061 | * - 0x0E | |
4062 | * - sleep 1ms | |
4063 | * - 0x10 + 0x0E | |
4064 | * - sleep 10ms | |
4065 | * - 0x0E | |
4066 | * read from GPIO_DATA into buf (uint_32) | |
4067 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) | |
4068 | * error. ERROR_CPLD_Check_Failed stop. | |
4069 | * | |
4070 | * 3) write to GPIO_DATA | |
4071 | * - write 0x4400 + 0x0E | |
4072 | * - sleep 10ms | |
4073 | * - write 0x4410 + 0x0E | |
4074 | * - sleep 1ms | |
4075 | * - write 0x0E | |
4076 | * read from GPIO_DATA into buf (uint_32) | |
fef4fa14 | 4077 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 ) |
93b43f13 PS |
4078 | * error. ERROR_CPLD_Check_Failed. |
4079 | */ | |
4080 | /* ----------------------------------------------------------------------- */ | |
943a4902 | 4081 | static void |
2d03e289 | 4082 | init_RTV24 (struct bttv *btv) |
93b43f13 | 4083 | { |
2d03e289 MCC |
4084 | uint32_t dataRead = 0; |
4085 | long watchdog_value = 0x0E; | |
93b43f13 | 4086 | |
8af443e5 | 4087 | pr_info("%d: Adlink RTV-24 initialisation in progress ...\n", |
93b43f13 PS |
4088 | btv->c.nr); |
4089 | ||
2d03e289 | 4090 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
93b43f13 | 4091 | |
2d03e289 MCC |
4092 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
4093 | msleep (1); | |
4094 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); | |
4095 | msleep (10); | |
4096 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); | |
93b43f13 | 4097 | |
2d03e289 | 4098 | dataRead = btread (BT848_GPIO_DATA); |
93b43f13 | 4099 | |
2d03e289 | 4100 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
8af443e5 | 4101 | pr_info("%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
2d03e289 | 4102 | btv->c.nr, dataRead); |
93b43f13 PS |
4103 | } |
4104 | ||
2d03e289 MCC |
4105 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
4106 | msleep (10); | |
4107 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); | |
4108 | msleep (1); | |
4109 | btwrite (watchdog_value, BT848_GPIO_DATA); | |
4110 | msleep (1); | |
4111 | dataRead = btread (BT848_GPIO_DATA); | |
4112 | ||
4113 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { | |
8af443e5 | 4114 | pr_info("%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
2d03e289 MCC |
4115 | btv->c.nr, dataRead); |
4116 | ||
93b43f13 PS |
4117 | return; |
4118 | } | |
4119 | ||
8af443e5 | 4120 | pr_info("%d: Adlink RTV-24 initialisation complete\n", btv->c.nr); |
93b43f13 | 4121 | } |
1da177e4 | 4122 | |
2d03e289 MCC |
4123 | |
4124 | ||
1da177e4 LT |
4125 | /* ----------------------------------------------------------------------- */ |
4126 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ | |
4127 | /* | |
4128 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> | |
4129 | * This code is placed under the terms of the GNU General Public License | |
4130 | * | |
4131 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 | |
4132 | */ | |
4133 | ||
4134 | static void bus_low(struct bttv *btv, int bit) | |
4135 | { | |
4136 | if (btv->mbox_ior) { | |
4137 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, | |
4138 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); | |
4139 | udelay(5); | |
4140 | } | |
4141 | ||
4142 | gpio_bits(bit,0); | |
4143 | udelay(5); | |
4144 | ||
4145 | if (btv->mbox_ior) { | |
4146 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); | |
4147 | udelay(5); | |
4148 | } | |
4149 | } | |
4150 | ||
4151 | static void bus_high(struct bttv *btv, int bit) | |
4152 | { | |
4153 | if (btv->mbox_ior) { | |
4154 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, | |
4155 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); | |
4156 | udelay(5); | |
4157 | } | |
4158 | ||
4159 | gpio_bits(bit,bit); | |
4160 | udelay(5); | |
4161 | ||
4162 | if (btv->mbox_ior) { | |
4163 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); | |
4164 | udelay(5); | |
4165 | } | |
4166 | } | |
4167 | ||
4168 | static int bus_in(struct bttv *btv, int bit) | |
4169 | { | |
4170 | if (btv->mbox_ior) { | |
4171 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, | |
4172 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); | |
4173 | udelay(5); | |
4174 | ||
4175 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); | |
4176 | udelay(5); | |
4177 | } | |
4178 | return gpio_read() & (bit); | |
4179 | } | |
4180 | ||
4181 | /* TEA5757 register bits */ | |
4182 | #define TEA_FREQ 0:14 | |
4183 | #define TEA_BUFFER 15:15 | |
4184 | ||
4185 | #define TEA_SIGNAL_STRENGTH 16:17 | |
4186 | ||
4187 | #define TEA_PORT1 18:18 | |
4188 | #define TEA_PORT0 19:19 | |
4189 | ||
4190 | #define TEA_BAND 20:21 | |
4191 | #define TEA_BAND_FM 0 | |
4192 | #define TEA_BAND_MW 1 | |
4193 | #define TEA_BAND_LW 2 | |
4194 | #define TEA_BAND_SW 3 | |
4195 | ||
4196 | #define TEA_MONO 22:22 | |
4197 | #define TEA_ALLOW_STEREO 0 | |
4198 | #define TEA_FORCE_MONO 1 | |
4199 | ||
4200 | #define TEA_SEARCH_DIRECTION 23:23 | |
4201 | #define TEA_SEARCH_DOWN 0 | |
4202 | #define TEA_SEARCH_UP 1 | |
4203 | ||
4204 | #define TEA_STATUS 24:24 | |
4205 | #define TEA_STATUS_TUNED 0 | |
4206 | #define TEA_STATUS_SEARCHING 1 | |
4207 | ||
4208 | /* Low-level stuff */ | |
4209 | static int tea5757_read(struct bttv *btv) | |
4210 | { | |
4211 | unsigned long timeout; | |
4212 | int value = 0; | |
4213 | int i; | |
4214 | ||
4215 | /* better safe than sorry */ | |
4216 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); | |
4217 | ||
4218 | if (btv->mbox_ior) { | |
4219 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, | |
4220 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); | |
4221 | udelay(5); | |
4222 | } | |
4223 | ||
4224 | if (bttv_gpio) | |
4225 | bttv_gpio_tracking(btv,"tea5757 read"); | |
4226 | ||
4227 | bus_low(btv,btv->mbox_we); | |
4228 | bus_low(btv,btv->mbox_clk); | |
4229 | ||
4230 | udelay(10); | |
fe06fe0a | 4231 | timeout= jiffies + msecs_to_jiffies(1000); |
1da177e4 | 4232 | |
24a70fdc | 4233 | /* wait for DATA line to go low; error if it doesn't */ |
1da177e4 LT |
4234 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
4235 | schedule(); | |
4236 | if (bus_in(btv,btv->mbox_data)) { | |
8af443e5 | 4237 | pr_warn("%d: tea5757: read timeout\n", btv->c.nr); |
1da177e4 LT |
4238 | return -1; |
4239 | } | |
4240 | ||
8af443e5 | 4241 | dprintk("%d: tea5757:", btv->c.nr); |
c1d57038 | 4242 | for (i = 0; i < 24; i++) { |
1da177e4 LT |
4243 | udelay(5); |
4244 | bus_high(btv,btv->mbox_clk); | |
4245 | udelay(5); | |
8af443e5 JP |
4246 | dprintk_cont("%c", |
4247 | bus_in(btv, btv->mbox_most) == 0 ? 'T' : '-'); | |
1da177e4 LT |
4248 | bus_low(btv,btv->mbox_clk); |
4249 | value <<= 1; | |
4250 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ | |
8af443e5 JP |
4251 | dprintk_cont("%c", |
4252 | bus_in(btv, btv->mbox_most) == 0 ? 'S' : 'M'); | |
1da177e4 | 4253 | } |
8af443e5 JP |
4254 | dprintk_cont("\n"); |
4255 | dprintk("%d: tea5757: read 0x%X\n", btv->c.nr, value); | |
1da177e4 LT |
4256 | return value; |
4257 | } | |
4258 | ||
4259 | static int tea5757_write(struct bttv *btv, int value) | |
4260 | { | |
4261 | int i; | |
4262 | int reg = value; | |
4263 | ||
4264 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); | |
4265 | ||
4266 | if (btv->mbox_ior) { | |
4267 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, | |
4268 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); | |
4269 | udelay(5); | |
4270 | } | |
4271 | if (bttv_gpio) | |
4272 | bttv_gpio_tracking(btv,"tea5757 write"); | |
4273 | ||
8af443e5 | 4274 | dprintk("%d: tea5757: write 0x%X\n", btv->c.nr, value); |
1da177e4 LT |
4275 | bus_low(btv,btv->mbox_clk); |
4276 | bus_high(btv,btv->mbox_we); | |
c1d57038 | 4277 | for (i = 0; i < 25; i++) { |
1da177e4 LT |
4278 | if (reg & 0x1000000) |
4279 | bus_high(btv,btv->mbox_data); | |
4280 | else | |
4281 | bus_low(btv,btv->mbox_data); | |
4282 | reg <<= 1; | |
4283 | bus_high(btv,btv->mbox_clk); | |
4284 | udelay(10); | |
4285 | bus_low(btv,btv->mbox_clk); | |
4286 | udelay(10); | |
4287 | } | |
4288 | bus_low(btv,btv->mbox_we); /* unmute !!! */ | |
4289 | return 0; | |
4290 | } | |
4291 | ||
4292 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) | |
4293 | { | |
4294 | dprintk("tea5757_set_freq %d\n",freq); | |
4295 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ | |
1da177e4 LT |
4296 | } |
4297 | ||
1da177e4 LT |
4298 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
4299 | * | |
4300 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint | |
4301 | * switch instead (CD22M3494E). This IC can have multiple active connections | |
4302 | * between Xn (input) and Yn (output) pins. We need to clear any existing | |
4303 | * connection prior to establish a new one, pulsing the STROBE pin. | |
4304 | * | |
4305 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. | |
4306 | * GPIO pins are wired as: | |
3a4fa0a2 RD |
4307 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller) |
4308 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller) | |
4309 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroller) | |
4310 | * GPIO[8] - - P3[5] (microcontroller) | |
4311 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroller) | |
4312 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller) | |
4313 | * GPINTR - - P3[4] (microcontroller) | |
1da177e4 | 4314 | * |
3a4fa0a2 RD |
4315 | * The microcontroller is a 80C32 like. It should be possible to change xpoint |
4316 | * configuration either directly (as we are doing) or using the microcontroller | |
1da177e4 | 4317 | * which is also wired to I2C interface. I have no further info on the |
3a4fa0a2 | 4318 | * microcontroller features, one would need to disassembly the firmware. |
1da177e4 LT |
4319 | * note: the vendor refused to give any information on this product, all |
4320 | * that stuff was found using a multimeter! :) | |
4321 | */ | |
4322 | static void rv605_muxsel(struct bttv *btv, unsigned int input) | |
4323 | { | |
13afaefc TP |
4324 | static const u8 muxgpio[] = { 0x3, 0x1, 0x2, 0x4, 0xf, 0x7, 0xe, 0x0, |
4325 | 0xd, 0xb, 0xc, 0x6, 0x9, 0x5, 0x8, 0xa }; | |
4326 | ||
4327 | gpio_bits(0x07f, muxgpio[input]); | |
4328 | ||
1da177e4 LT |
4329 | /* reset all conections */ |
4330 | gpio_bits(0x200,0x200); | |
4331 | mdelay(1); | |
4332 | gpio_bits(0x200,0x000); | |
4333 | mdelay(1); | |
4334 | ||
c84e6036 | 4335 | /* create a new connection */ |
1da177e4 LT |
4336 | gpio_bits(0x480,0x480); |
4337 | mdelay(1); | |
4338 | gpio_bits(0x480,0x080); | |
4339 | mdelay(1); | |
4340 | } | |
4341 | ||
4342 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] | |
4343 | * | |
4344 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion | |
3ad2f3fb | 4345 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync separator |
1da177e4 LT |
4346 | * chips, ten eight input analog multiplexors, a not chip and a few |
4347 | * other components. | |
4348 | * | |
4349 | * 16 inputs on a secondary bracket are provided and can be selected | |
4350 | * from each of the four capture chips. Two of the eight input | |
4351 | * multiplexors are used to select from any of the 16 input signals. | |
4352 | * | |
4353 | * Unsupported hardware capabilities: | |
4354 | * . A video output monitor on the secondary bracket can be selected from | |
4355 | * one of the 878A chips. | |
4356 | * . Another passthrough but I haven't spent any time investigating it. | |
4357 | * . Digital I/O (logic level connected to GPIO) is available from an | |
4358 | * onboard header. | |
4359 | * | |
4360 | * The on chip input mux should always be set to 2. | |
4361 | * GPIO[16:19] - Video input selection | |
4362 | * GPIO[0:3] - Video output monitor select (only available from one 878A) | |
4363 | * GPIO[?:?] - Digital I/O. | |
4364 | * | |
4365 | * There is an ATMEL microcontroller with an 8031 core on board. I have not | |
4366 | * determined what function (if any) it provides. With the microcontroller | |
3ad2f3fb | 4367 | * and sync separator chips a guess is that it might have to do with video |
1da177e4 LT |
4368 | * switching and maybe some digital I/O. |
4369 | */ | |
4370 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) | |
4371 | { | |
4372 | /* video mux */ | |
4373 | gpio_bits(0x0f0000, input << 16); | |
4374 | } | |
4375 | ||
4376 | static void tibetCS16_init(struct bttv *btv) | |
4377 | { | |
4378 | /* enable gpio bits, mask obtained via btSpy */ | |
4379 | gpio_inout(0xffffff, 0x0f7fff); | |
4380 | gpio_write(0x0f7fff); | |
4381 | } | |
4382 | ||
4383 | /* | |
4384 | * The following routines for the Kodicom-4400r get a little mind-twisting. | |
4385 | * There is a "master" controller and three "slave" controllers, together | |
4386 | * an analog switch which connects any of 16 cameras to any of the BT87A's. | |
4387 | * The analog switch is controlled by the "master", but the detection order | |
4388 | * of the four BT878A chips is in an order which I just don't understand. | |
4389 | * The "master" is actually the second controller to be detected. The | |
3a4fa0a2 | 4390 | * logic on the board uses logical numbers for the 4 controllers, but |
1da177e4 LT |
4391 | * those numbers are different from the detection sequence. When working |
4392 | * with the analog switch, we need to "map" from the detection sequence | |
4393 | * over to the board's logical controller number. This mapping sequence | |
4394 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical | |
4395 | * unit 3, the second (which is the master) is logical unit 0, etc. | |
4396 | * We need to maintain the status of the analog switch (which of the 16 | |
4397 | * cameras is connected to which of the 4 controllers). Rather than | |
4398 | * add to the bttv structure for this, we use the data reserved for | |
4399 | * the mbox (unused for this card type). | |
4400 | */ | |
4401 | ||
4402 | /* | |
4403 | * First a routine to set the analog switch, which controls which camera | |
4404 | * is routed to which controller. The switch comprises an X-address | |
4405 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a | |
4406 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). | |
4407 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables | |
4408 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the | |
4409 | * specified address. The idea is to set the address and data, then bring | |
4410 | * STROBE high, and finally bring STROBE back to low. | |
4411 | */ | |
4412 | static void kodicom4400r_write(struct bttv *btv, | |
4413 | unsigned char xaddr, | |
4414 | unsigned char yaddr, | |
4415 | unsigned char data) { | |
4416 | unsigned int udata; | |
4417 | ||
4418 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); | |
4419 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ | |
4420 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ | |
4421 | gpio_bits(0x1ff, udata); /* strobe low */ | |
4422 | } | |
4423 | ||
4424 | /* | |
4425 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) | |
4426 | * use this routine. The routine finds the "master" for the card, maps | |
4427 | * the controller number from the detected position over to the logical | |
4428 | * number, writes the appropriate data to the analog switch, and housekeeps | |
4429 | * the local copy of the switch information. The parameter 'input' is the | |
4430 | * requested camera number (0 - 15). | |
4431 | */ | |
4432 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) | |
4433 | { | |
4434 | char *sw_status; | |
4435 | int xaddr, yaddr; | |
4436 | struct bttv *mctlr; | |
4437 | static unsigned char map[4] = {3, 0, 2, 1}; | |
4438 | ||
4439 | mctlr = master[btv->c.nr]; | |
4440 | if (mctlr == NULL) { /* ignore if master not yet detected */ | |
4441 | return; | |
4442 | } | |
4443 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ | |
4444 | yaddr = map[yaddr]; | |
4445 | sw_status = (char *)(&mctlr->mbox_we); | |
4446 | xaddr = input & 0xf; | |
4447 | /* Check if the controller/camera pair has changed, else ignore */ | |
4448 | if (sw_status[yaddr] != xaddr) | |
4449 | { | |
4450 | /* "open" the old switch, "close" the new one, save the new */ | |
4451 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); | |
4452 | sw_status[yaddr] = xaddr; | |
4453 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); | |
4454 | } | |
4455 | } | |
4456 | ||
4457 | /* | |
4458 | * During initialisation, we need to reset the analog switch. We | |
4459 | * also preset the switch to map the 4 connectors on the card to the | |
4460 | * *user's* (see above description of kodicom4400r_muxsel) channels | |
4461 | * 0 through 3 | |
4462 | */ | |
4463 | static void kodicom4400r_init(struct bttv *btv) | |
4464 | { | |
4465 | char *sw_status = (char *)(&btv->mbox_we); | |
4466 | int ix; | |
4467 | ||
4468 | gpio_inout(0x0003ff, 0x0003ff); | |
4469 | gpio_write(1 << 9); /* reset MUX */ | |
4470 | gpio_write(0); | |
4471 | /* Preset camera 0 to the 4 controllers */ | |
c1d57038 | 4472 | for (ix = 0; ix < 4; ix++) { |
1da177e4 LT |
4473 | sw_status[ix] = ix; |
4474 | kodicom4400r_write(btv, ix, ix, 1); | |
4475 | } | |
4476 | /* | |
4477 | * Since this is the "master", we need to set up the | |
4478 | * other three controller chips' pointers to this structure | |
4479 | * for later use in the muxsel routine. | |
4480 | */ | |
4481 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) | |
4482 | return; | |
4483 | master[btv->c.nr-1] = btv; | |
4484 | master[btv->c.nr] = btv; | |
4485 | master[btv->c.nr+1] = btv; | |
4486 | master[btv->c.nr+2] = btv; | |
4487 | } | |
4488 | ||
24a70fdc MCC |
4489 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
4490 | * video multiplexers to provide up to 16 video inputs. These | |
4491 | * multiplexers are controlled by the lower 8 GPIO pins of the | |
4492 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. | |
1da177e4 | 4493 | |
24a70fdc MCC |
4494 | * xxx0 is pin xxx of multiplexer U5, |
4495 | * yyy1 is pin yyy of multiplexer U2 | |
4496 | */ | |
1da177e4 LT |
4497 | #define ENA0 0x01 |
4498 | #define ENB0 0x02 | |
4499 | #define ENA1 0x04 | |
4500 | #define ENB1 0x08 | |
4501 | ||
4502 | #define IN10 0x10 | |
4503 | #define IN00 0x20 | |
4504 | #define IN11 0x40 | |
4505 | #define IN01 0x80 | |
4506 | ||
4507 | static void xguard_muxsel(struct bttv *btv, unsigned int input) | |
4508 | { | |
4509 | static const int masks[] = { | |
4ac97914 MCC |
4510 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
4511 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, | |
4512 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, | |
4513 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, | |
1da177e4 LT |
4514 | }; |
4515 | gpio_write(masks[input%16]); | |
4516 | } | |
4517 | static void picolo_tetra_init(struct bttv *btv) | |
4518 | { | |
4519 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ | |
4520 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ | |
4521 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ | |
4522 | } | |
4523 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) | |
4524 | { | |
4525 | ||
8af443e5 | 4526 | dprintk("%d : picolo_tetra_muxsel => input = %d\n", btv->c.nr, input); |
1da177e4 LT |
4527 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
4528 | /*GPIO[20]&GPIO[21] used to choose the right input*/ | |
4529 | btwrite (input<<20,BT848_GPIO_DATA); | |
4530 | ||
4531 | } | |
4532 | ||
4533 | /* | |
4534 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] | |
4535 | * | |
4536 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix | |
4537 | * swichers to provide 16 channels to MUX0. The TDA8540's have | |
d6e05edc | 4538 | * 4 independent outputs and as such the IVC120G also has the |
1da177e4 LT |
4539 | * optional "Monitor Out" bus. This allows the card to be looking |
4540 | * at one input while the monitor is looking at another. | |
4541 | * | |
4542 | * Since I've couldn't be bothered figuring out how to add an | |
25985edc | 4543 | * independent muxsel for the monitor bus, I've just set it to |
1da177e4 LT |
4544 | * whatever the card is looking at. |
4545 | * | |
4546 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) | |
4547 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) | |
4548 | * | |
4549 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) | |
4550 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) | |
4551 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) | |
4552 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) | |
4553 | * | |
4554 | */ | |
4555 | ||
4556 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ | |
4557 | #define I2C_TDA8540 0x90 | |
4558 | #define I2C_TDA8540_ALT1 0x92 | |
4559 | #define I2C_TDA8540_ALT2 0x94 | |
4560 | #define I2C_TDA8540_ALT3 0x96 | |
4561 | #define I2C_TDA8540_ALT4 0x98 | |
4562 | #define I2C_TDA8540_ALT5 0x9a | |
4563 | #define I2C_TDA8540_ALT6 0x9c | |
4564 | ||
4565 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) | |
4566 | { | |
24a70fdc | 4567 | /* Simple maths */ |
1da177e4 LT |
4568 | int key = input % 4; |
4569 | int matrix = input / 4; | |
4570 | ||
8af443e5 | 4571 | dprintk("%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
1da177e4 LT |
4572 | btv->c.nr, input, matrix, key); |
4573 | ||
24a70fdc | 4574 | /* Handles the input selection on the TDA8540's */ |
1da177e4 LT |
4575 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
4576 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); | |
4577 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, | |
4578 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); | |
4579 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, | |
4580 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); | |
4581 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, | |
4582 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); | |
4583 | ||
24a70fdc | 4584 | /* Handles the output enables on the TDA8540's */ |
1da177e4 | 4585 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
24a70fdc | 4586 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
1da177e4 | 4587 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
24a70fdc | 4588 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
1da177e4 | 4589 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
24a70fdc | 4590 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
1da177e4 | 4591 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
24a70fdc | 4592 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
1da177e4 | 4593 | |
fb5deb1b | 4594 | /* 878's MUX0 is already selected for input via muxsel values */ |
1da177e4 LT |
4595 | } |
4596 | ||
4597 | ||
4598 | /* PXC200 muxsel helper | |
4599 | * luke@syseng.anu.edu.au | |
4600 | * another transplant | |
4601 | * from Alessandro Rubini (rubini@linux.it) | |
4602 | * | |
4603 | * There are 4 kinds of cards: | |
4604 | * PXC200L which is bt848 | |
4605 | * PXC200F which is bt848 with PIC controlling mux | |
4606 | * PXC200AL which is bt878 | |
4607 | * PXC200AF which is bt878 with PIC controlling mux | |
4608 | */ | |
4609 | #define PX_CFG_PXC200F 0x01 | |
4610 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ | |
4611 | #define PX_I2C_PIC 0x0f | |
4612 | #define PX_PXC200A_CARDID 0x200a1295 | |
4613 | #define PX_I2C_CMD_CFG 0x00 | |
4614 | ||
4615 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) | |
4616 | { | |
4ac97914 | 4617 | int rc; |
1da177e4 LT |
4618 | long mux; |
4619 | int bitmask; | |
4ac97914 | 4620 | unsigned char buf[2]; |
1da177e4 LT |
4621 | |
4622 | /* Read PIC config to determine if this is a PXC200F */ | |
4623 | /* PX_I2C_CMD_CFG*/ | |
4624 | buf[0]=0; | |
4625 | buf[1]=0; | |
4626 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); | |
4627 | if (rc) { | |
8af443e5 JP |
4628 | pr_debug("%d: PXC200_muxsel: pic cfg write failed:%d\n", |
4629 | btv->c.nr, rc); | |
1da177e4 | 4630 | /* not PXC ? do nothing */ |
8af443e5 | 4631 | return; |
1da177e4 LT |
4632 | } |
4633 | ||
4634 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); | |
4635 | if (!(rc & PX_CFG_PXC200F)) { | |
8af443e5 JP |
4636 | pr_debug("%d: PXC200_muxsel: not PXC200F rc:%d\n", |
4637 | btv->c.nr, rc); | |
4638 | return; | |
1da177e4 LT |
4639 | } |
4640 | ||
4641 | ||
4642 | /* The multiplexer in the 200F is handled by the GPIO port */ | |
4643 | /* get correct mapping between inputs */ | |
4644 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ | |
4645 | /* ** not needed!? */ | |
4646 | mux = input; | |
4647 | ||
4648 | /* make sure output pins are enabled */ | |
4649 | /* bitmask=0x30f; */ | |
4650 | bitmask=0x302; | |
4651 | /* check whether we have a PXC200A */ | |
4ac97914 | 4652 | if (btv->cardid == PX_PXC200A_CARDID) { |
1da177e4 LT |
4653 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
4654 | bitmask |= 7<<4; /* the DAC */ | |
4655 | } | |
4656 | btwrite(bitmask, BT848_GPIO_OUT_EN); | |
4657 | ||
4658 | bitmask = btread(BT848_GPIO_DATA); | |
4ac97914 | 4659 | if (btv->cardid == PX_PXC200A_CARDID) |
1da177e4 LT |
4660 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
4661 | else /* older device */ | |
4662 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); | |
4663 | btwrite(bitmask,BT848_GPIO_DATA); | |
4664 | ||
4665 | /* | |
4666 | * Was "to be safe, set the bt848 to input 0" | |
4667 | * Actually, since it's ok at load time, better not messing | |
4668 | * with these bits (on PXC200AF you need to set mux 2 here) | |
4669 | * | |
4670 | * needed because bttv-driver sets mux before calling this function | |
4671 | */ | |
4ac97914 | 4672 | if (btv->cardid == PX_PXC200A_CARDID) |
1da177e4 LT |
4673 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
4674 | else /* older device */ | |
4675 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); | |
4676 | ||
8af443e5 | 4677 | pr_debug("%d: setting input channel to:%d\n", btv->c.nr, (int)mux); |
1da177e4 LT |
4678 | } |
4679 | ||
15f8eeb2 TP |
4680 | static void phytec_muxsel(struct bttv *btv, unsigned int input) |
4681 | { | |
4682 | unsigned int mux = input % 4; | |
4683 | ||
4684 | if (input == btv->svhs) | |
4685 | mux = 0; | |
4686 | ||
4687 | gpio_bits(0x3, mux); | |
4688 | } | |
4689 | ||
0c5db425 BC |
4690 | /* |
4691 | * GeoVision GV-800(S) functions | |
4692 | * Bruno Christo <bchristo@inf.ufsm.br> | |
4693 | */ | |
4694 | ||
4695 | /* This is a function to control the analog switch, which determines which | |
4696 | * camera is routed to which controller. The switch comprises an X-address | |
4697 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a | |
4698 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). | |
4699 | * A data value (gpio bit 18) of '1' enables the switch, and '0' disables | |
4700 | * the switch. A STROBE bit (gpio bit 17) latches the data value into the | |
4701 | * specified address. There is also a chip select (gpio bit 16). | |
4702 | * The idea is to set the address and chip select together, bring | |
4703 | * STROBE high, write the data, and finally bring STROBE back to low. | |
4704 | */ | |
4705 | static void gv800s_write(struct bttv *btv, | |
4706 | unsigned char xaddr, | |
4707 | unsigned char yaddr, | |
4708 | unsigned char data) { | |
4709 | /* On the "master" 878A: | |
4710 | * GPIO bits 0-9 are used for the analog switch: | |
4711 | * 00 - 03: camera selector | |
4712 | * 04 - 06: 878A (controller) selector | |
4713 | * 16: cselect | |
4714 | * 17: strobe | |
4715 | * 18: data (1->on, 0->off) | |
4716 | * 19: reset | |
4717 | */ | |
4718 | const u32 ADDRESS = ((xaddr&0xf) | (yaddr&3)<<4); | |
4719 | const u32 CSELECT = 1<<16; | |
4720 | const u32 STROBE = 1<<17; | |
4721 | const u32 DATA = data<<18; | |
4722 | ||
4723 | gpio_bits(0x1007f, ADDRESS | CSELECT); /* write ADDRESS and CSELECT */ | |
4724 | gpio_bits(0x20000, STROBE); /* STROBE high */ | |
4725 | gpio_bits(0x40000, DATA); /* write DATA */ | |
4726 | gpio_bits(0x20000, ~STROBE); /* STROBE low */ | |
4727 | } | |
4728 | ||
4729 | /* | |
4730 | * GeoVision GV-800(S) muxsel | |
4731 | * | |
4732 | * Each of the 4 cards (controllers) use this function. | |
4733 | * The controller using this function selects the input through the GPIO pins | |
4734 | * of the "master" card. A pointer to this card is stored in master[btv->c.nr]. | |
4735 | * | |
4736 | * The parameter 'input' is the requested camera number (0-4) on the controller. | |
4737 | * The map array has the address of each input. Note that the addresses in the | |
4738 | * array are in the sequence the original GeoVision driver uses, that is, set | |
4739 | * every controller to input 0, then to input 1, 2, 3, repeat. This means that | |
4740 | * the physical "camera 1" connector corresponds to controller 0 input 0, | |
4741 | * "camera 2" corresponds to controller 1 input 0, and so on. | |
4742 | * | |
4743 | * After getting the input address, the function then writes the appropriate | |
4744 | * data to the analog switch, and housekeeps the local copy of the switch | |
4745 | * information. | |
4746 | */ | |
4747 | static void gv800s_muxsel(struct bttv *btv, unsigned int input) | |
4748 | { | |
4749 | struct bttv *mctlr; | |
4750 | char *sw_status; | |
4751 | int xaddr, yaddr; | |
4752 | static unsigned int map[4][4] = { { 0x0, 0x4, 0xa, 0x6 }, | |
4753 | { 0x1, 0x5, 0xb, 0x7 }, | |
4754 | { 0x2, 0x8, 0xc, 0xe }, | |
4755 | { 0x3, 0x9, 0xd, 0xf } }; | |
4756 | input = input%4; | |
4757 | mctlr = master[btv->c.nr]; | |
4758 | if (mctlr == NULL) { | |
4759 | /* do nothing until the "master" is detected */ | |
4760 | return; | |
4761 | } | |
4762 | yaddr = (btv->c.nr - mctlr->c.nr) & 3; | |
4763 | sw_status = (char *)(&mctlr->mbox_we); | |
4764 | xaddr = map[yaddr][input] & 0xf; | |
4765 | ||
4766 | /* Check if the controller/camera pair has changed, ignore otherwise */ | |
4767 | if (sw_status[yaddr] != xaddr) { | |
4768 | /* disable the old switch, enable the new one and save status */ | |
4769 | gv800s_write(mctlr, sw_status[yaddr], yaddr, 0); | |
4770 | sw_status[yaddr] = xaddr; | |
4771 | gv800s_write(mctlr, xaddr, yaddr, 1); | |
4772 | } | |
4773 | } | |
4774 | ||
4775 | /* GeoVision GV-800(S) "master" chip init */ | |
4776 | static void gv800s_init(struct bttv *btv) | |
4777 | { | |
4778 | char *sw_status = (char *)(&btv->mbox_we); | |
4779 | int ix; | |
4780 | ||
4781 | gpio_inout(0xf107f, 0xf107f); | |
4782 | gpio_write(1<<19); /* reset the analog MUX */ | |
4783 | gpio_write(0); | |
4784 | ||
4785 | /* Preset camera 0 to the 4 controllers */ | |
4786 | for (ix = 0; ix < 4; ix++) { | |
4787 | sw_status[ix] = ix; | |
4788 | gv800s_write(btv, ix, ix, 1); | |
4789 | } | |
4790 | ||
4791 | /* Inputs on the "master" controller need this brightness fix */ | |
4792 | bttv_I2CWrite(btv, 0x18, 0x5, 0x90, 1); | |
4793 | ||
4794 | if (btv->c.nr > BTTV_MAX-4) | |
4795 | return; | |
4796 | /* | |
4797 | * Store the "master" controller pointer in the master | |
4798 | * array for later use in the muxsel function. | |
4799 | */ | |
4800 | master[btv->c.nr] = btv; | |
4801 | master[btv->c.nr+1] = btv; | |
4802 | master[btv->c.nr+2] = btv; | |
4803 | master[btv->c.nr+3] = btv; | |
4804 | } | |
4805 | ||
1da177e4 LT |
4806 | /* ----------------------------------------------------------------------- */ |
4807 | /* motherboard chipset specific stuff */ | |
4808 | ||
7d44e892 | 4809 | void __init bttv_check_chipset(void) |
1da177e4 LT |
4810 | { |
4811 | int pcipci_fail = 0; | |
4812 | struct pci_dev *dev = NULL; | |
4813 | ||
3d265c96 | 4814 | if (pci_pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL)) /* should check if target is AGP */ |
1da177e4 LT |
4815 | pcipci_fail = 1; |
4816 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) | |
4817 | triton1 = 1; | |
4818 | if (pci_pci_problems & PCIPCI_VSFX) | |
4819 | vsfx = 1; | |
4820 | #ifdef PCIPCI_ALIMAGIK | |
4821 | if (pci_pci_problems & PCIPCI_ALIMAGIK) | |
4822 | latency = 0x0A; | |
4823 | #endif | |
4824 | ||
1da177e4 LT |
4825 | |
4826 | /* print warnings about any quirks found */ | |
4827 | if (triton1) | |
8af443e5 | 4828 | pr_info("Host bridge needs ETBF enabled\n"); |
1da177e4 | 4829 | if (vsfx) |
8af443e5 | 4830 | pr_info("Host bridge needs VSFX enabled\n"); |
1da177e4 | 4831 | if (pcipci_fail) { |
8af443e5 | 4832 | pr_info("bttv and your chipset may not work together\n"); |
4dcef524 | 4833 | if (!no_overlay) { |
8af443e5 | 4834 | pr_info("overlay will be disabled\n"); |
1da177e4 | 4835 | no_overlay = 1; |
4dcef524 | 4836 | } else { |
8af443e5 | 4837 | pr_info("overlay forced. Use this option at your own risk.\n"); |
1da177e4 LT |
4838 | } |
4839 | } | |
4840 | if (UNSET != latency) | |
8af443e5 | 4841 | pr_info("pci latency fixup [%d]\n", latency); |
2bfa1ac6 | 4842 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
1da177e4 | 4843 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
4ac97914 | 4844 | unsigned char b; |
1da177e4 LT |
4845 | pci_read_config_byte(dev, 0x53, &b); |
4846 | if (bttv_debug) | |
8af443e5 JP |
4847 | pr_info("Host bridge: 82441FX Natoma, bufcon=0x%02x\n", |
4848 | b); | |
1da177e4 LT |
4849 | } |
4850 | } | |
4851 | ||
4c62e976 | 4852 | int bttv_handle_chipset(struct bttv *btv) |
1da177e4 | 4853 | { |
4ac97914 | 4854 | unsigned char command; |
1da177e4 LT |
4855 | |
4856 | if (!triton1 && !vsfx && UNSET == latency) | |
4857 | return 0; | |
4858 | ||
4859 | if (bttv_verbose) { | |
4860 | if (triton1) | |
8af443e5 JP |
4861 | pr_info("%d: enabling ETBF (430FX/VP3 compatibility)\n", |
4862 | btv->c.nr); | |
1da177e4 | 4863 | if (vsfx && btv->id >= 878) |
8af443e5 | 4864 | pr_info("%d: enabling VSFX\n", btv->c.nr); |
1da177e4 | 4865 | if (UNSET != latency) |
8af443e5 JP |
4866 | pr_info("%d: setting pci timer to %d\n", |
4867 | btv->c.nr, latency); | |
1da177e4 LT |
4868 | } |
4869 | ||
4870 | if (btv->id < 878) { | |
4871 | /* bt848 (mis)uses a bit in the irq mask for etbf */ | |
4872 | if (triton1) | |
4873 | btv->triton1 = BT848_INT_ETBF; | |
4874 | } else { | |
4875 | /* bt878 has a bit in the pci config space for it */ | |
4ac97914 | 4876 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
1da177e4 LT |
4877 | if (triton1) |
4878 | command |= BT878_EN_TBFX; | |
4879 | if (vsfx) | |
4880 | command |= BT878_EN_VSFX; | |
4ac97914 MCC |
4881 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
4882 | } | |
1da177e4 LT |
4883 | if (UNSET != latency) |
4884 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); | |
4885 | return 0; | |
4886 | } | |
4887 | ||
4888 | ||
4889 | /* | |
4890 | * Local variables: | |
4891 | * c-basic-offset: 8 | |
4892 | * End: | |
4893 | */ |