Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | * |
3 | * device driver for Conexant 2388x based TV cards | |
4 | * card-specific stuff. | |
5 | * | |
6 | * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] | |
7 | * | |
8 | * This program is free software; you can redistribute it and/or modify | |
9 | * it under the terms of the GNU General Public License as published by | |
10 | * the Free Software Foundation; either version 2 of the License, or | |
11 | * (at your option) any later version. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program; if not, write to the Free Software | |
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | */ | |
22 | ||
23 | #include <linux/init.h> | |
24 | #include <linux/module.h> | |
25 | #include <linux/pci.h> | |
26 | #include <linux/delay.h> | |
27 | ||
28 | #include "cx88.h" | |
29 | ||
30 | /* ------------------------------------------------------------------ */ | |
31 | /* board config info */ | |
32 | ||
33 | struct cx88_board cx88_boards[] = { | |
34 | [CX88_BOARD_UNKNOWN] = { | |
35 | .name = "UNKNOWN/GENERIC", | |
36 | .tuner_type = UNSET, | |
b45009b0 MCC |
37 | .radio_type = UNSET, |
38 | .tuner_addr = ADDR_UNSET, | |
39 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
40 | .input = {{ |
41 | .type = CX88_VMUX_COMPOSITE1, | |
42 | .vmux = 0, | |
43 | },{ | |
44 | .type = CX88_VMUX_COMPOSITE2, | |
45 | .vmux = 1, | |
46 | },{ | |
47 | .type = CX88_VMUX_COMPOSITE3, | |
48 | .vmux = 2, | |
49 | },{ | |
50 | .type = CX88_VMUX_COMPOSITE4, | |
51 | .vmux = 3, | |
52 | }}, | |
53 | }, | |
54 | [CX88_BOARD_HAUPPAUGE] = { | |
55 | .name = "Hauppauge WinTV 34xxx models", | |
56 | .tuner_type = UNSET, | |
b45009b0 MCC |
57 | .radio_type = UNSET, |
58 | .tuner_addr = ADDR_UNSET, | |
59 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
60 | .tda9887_conf = TDA9887_PRESENT, |
61 | .input = {{ | |
62 | .type = CX88_VMUX_TELEVISION, | |
63 | .vmux = 0, | |
64 | .gpio0 = 0xff00, // internal decoder | |
65 | },{ | |
66 | .type = CX88_VMUX_DEBUG, | |
67 | .vmux = 0, | |
68 | .gpio0 = 0xff01, // mono from tuner chip | |
69 | },{ | |
70 | .type = CX88_VMUX_COMPOSITE1, | |
71 | .vmux = 1, | |
72 | .gpio0 = 0xff02, | |
73 | },{ | |
74 | .type = CX88_VMUX_SVIDEO, | |
75 | .vmux = 2, | |
76 | .gpio0 = 0xff02, | |
77 | }}, | |
78 | .radio = { | |
79 | .type = CX88_RADIO, | |
80 | .gpio0 = 0xff01, | |
81 | }, | |
82 | }, | |
83 | [CX88_BOARD_GDI] = { | |
84 | .name = "GDI Black Gold", | |
85 | .tuner_type = UNSET, | |
b45009b0 MCC |
86 | .radio_type = UNSET, |
87 | .tuner_addr = ADDR_UNSET, | |
88 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
89 | .input = {{ |
90 | .type = CX88_VMUX_TELEVISION, | |
91 | .vmux = 0, | |
fd3113e8 MCC |
92 | },{ |
93 | .type = CX88_VMUX_SVIDEO, | |
94 | .vmux = 2, | |
1da177e4 LT |
95 | }}, |
96 | }, | |
97 | [CX88_BOARD_PIXELVIEW] = { | |
98 | .name = "PixelView", | |
b45009b0 MCC |
99 | .tuner_type = TUNER_PHILIPS_PAL, |
100 | .radio_type = UNSET, | |
101 | .tuner_addr = ADDR_UNSET, | |
102 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
103 | .input = {{ |
104 | .type = CX88_VMUX_TELEVISION, | |
105 | .vmux = 0, | |
106 | .gpio0 = 0xff00, // internal decoder | |
107 | },{ | |
108 | .type = CX88_VMUX_COMPOSITE1, | |
109 | .vmux = 1, | |
110 | },{ | |
111 | .type = CX88_VMUX_SVIDEO, | |
112 | .vmux = 2, | |
113 | }}, | |
114 | .radio = { | |
115 | .type = CX88_RADIO, | |
116 | .gpio0 = 0xff10, | |
47ee2f38 | 117 | }, |
1da177e4 LT |
118 | }, |
119 | [CX88_BOARD_ATI_WONDER_PRO] = { | |
120 | .name = "ATI TV Wonder Pro", | |
b45009b0 MCC |
121 | .tuner_type = TUNER_PHILIPS_4IN1, |
122 | .radio_type = UNSET, | |
123 | .tuner_addr = ADDR_UNSET, | |
124 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
125 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER, |
126 | .input = {{ | |
127 | .type = CX88_VMUX_TELEVISION, | |
128 | .vmux = 0, | |
4ac97914 | 129 | .gpio0 = 0x03ff, |
1da177e4 LT |
130 | },{ |
131 | .type = CX88_VMUX_COMPOSITE1, | |
132 | .vmux = 1, | |
4ac97914 | 133 | .gpio0 = 0x03fe, |
1da177e4 LT |
134 | },{ |
135 | .type = CX88_VMUX_SVIDEO, | |
136 | .vmux = 2, | |
4ac97914 | 137 | .gpio0 = 0x03fe, |
1da177e4 LT |
138 | }}, |
139 | }, | |
4ac97914 MCC |
140 | [CX88_BOARD_WINFAST2000XP_EXPERT] = { |
141 | .name = "Leadtek Winfast 2000XP Expert", | |
142 | .tuner_type = TUNER_PHILIPS_4IN1, | |
b45009b0 MCC |
143 | .radio_type = UNSET, |
144 | .tuner_addr = ADDR_UNSET, | |
145 | .radio_addr = ADDR_UNSET, | |
1da177e4 | 146 | .tda9887_conf = TDA9887_PRESENT, |
4ac97914 MCC |
147 | .input = {{ |
148 | .type = CX88_VMUX_TELEVISION, | |
149 | .vmux = 0, | |
1da177e4 LT |
150 | .gpio0 = 0x00F5e700, |
151 | .gpio1 = 0x00003004, | |
152 | .gpio2 = 0x00F5e700, | |
153 | .gpio3 = 0x02000000, | |
154 | },{ | |
155 | .type = CX88_VMUX_COMPOSITE1, | |
156 | .vmux = 1, | |
157 | .gpio0 = 0x00F5c700, | |
158 | .gpio1 = 0x00003004, | |
159 | .gpio2 = 0x00F5c700, | |
160 | .gpio3 = 0x02000000, | |
161 | },{ | |
162 | .type = CX88_VMUX_SVIDEO, | |
163 | .vmux = 2, | |
164 | .gpio0 = 0x00F5c700, | |
165 | .gpio1 = 0x00003004, | |
166 | .gpio2 = 0x00F5c700, | |
167 | .gpio3 = 0x02000000, | |
4ac97914 MCC |
168 | }}, |
169 | .radio = { | |
170 | .type = CX88_RADIO, | |
1da177e4 LT |
171 | .gpio0 = 0x00F5d700, |
172 | .gpio1 = 0x00003004, | |
173 | .gpio2 = 0x00F5d700, | |
174 | .gpio3 = 0x02000000, | |
4ac97914 MCC |
175 | }, |
176 | }, | |
7418f346 | 177 | [CX88_BOARD_AVERTV_STUDIO_303] = { |
1da177e4 | 178 | .name = "AverTV Studio 303 (M126)", |
b45009b0 MCC |
179 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
180 | .radio_type = UNSET, | |
181 | .tuner_addr = ADDR_UNSET, | |
182 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
183 | .tda9887_conf = TDA9887_PRESENT, |
184 | .input = {{ | |
185 | .type = CX88_VMUX_TELEVISION, | |
186 | .vmux = 0, | |
4aca4831 | 187 | .gpio1 = 0xe09f, |
1da177e4 LT |
188 | },{ |
189 | .type = CX88_VMUX_COMPOSITE1, | |
190 | .vmux = 1, | |
4aca4831 | 191 | .gpio1 = 0xe05f, |
1da177e4 LT |
192 | },{ |
193 | .type = CX88_VMUX_SVIDEO, | |
194 | .vmux = 2, | |
4aca4831 | 195 | .gpio1 = 0xe05f, |
1da177e4 LT |
196 | }}, |
197 | .radio = { | |
4aca4831 | 198 | .gpio1 = 0xe0df, |
1da177e4 LT |
199 | .type = CX88_RADIO, |
200 | }, | |
201 | }, | |
202 | [CX88_BOARD_MSI_TVANYWHERE_MASTER] = { | |
203 | // added gpio values thanks to Michal | |
204 | // values for PAL from DScaler | |
205 | .name = "MSI TV-@nywhere Master", | |
b45009b0 MCC |
206 | .tuner_type = TUNER_MT2032, |
207 | .radio_type = UNSET, | |
208 | .tuner_addr = ADDR_UNSET, | |
209 | .radio_addr = ADDR_UNSET, | |
3ae1adc6 | 210 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC, |
1da177e4 LT |
211 | .input = {{ |
212 | .type = CX88_VMUX_TELEVISION, | |
213 | .vmux = 0, | |
214 | .gpio0 = 0x000040bf, | |
215 | .gpio1 = 0x000080c0, | |
216 | .gpio2 = 0x0000ff40, | |
217 | },{ | |
4ac97914 MCC |
218 | .type = CX88_VMUX_COMPOSITE1, |
219 | .vmux = 1, | |
1da177e4 LT |
220 | .gpio0 = 0x000040bf, |
221 | .gpio1 = 0x000080c0, | |
222 | .gpio2 = 0x0000ff40, | |
223 | },{ | |
4ac97914 MCC |
224 | .type = CX88_VMUX_SVIDEO, |
225 | .vmux = 2, | |
1da177e4 LT |
226 | .gpio0 = 0x000040bf, |
227 | .gpio1 = 0x000080c0, | |
228 | .gpio2 = 0x0000ff40, | |
4ac97914 MCC |
229 | }}, |
230 | .radio = { | |
1da177e4 | 231 | .type = CX88_RADIO, |
4ac97914 | 232 | }, |
1da177e4 LT |
233 | }, |
234 | [CX88_BOARD_WINFAST_DV2000] = { | |
4ac97914 MCC |
235 | .name = "Leadtek Winfast DV2000", |
236 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
b45009b0 MCC |
237 | .radio_type = UNSET, |
238 | .tuner_addr = ADDR_UNSET, | |
239 | .radio_addr = ADDR_UNSET, | |
1da177e4 | 240 | .tda9887_conf = TDA9887_PRESENT, |
4ac97914 MCC |
241 | .input = {{ |
242 | .type = CX88_VMUX_TELEVISION, | |
243 | .vmux = 0, | |
1da177e4 LT |
244 | .gpio0 = 0x0035e700, |
245 | .gpio1 = 0x00003004, | |
246 | .gpio2 = 0x0035e700, | |
247 | .gpio3 = 0x02000000, | |
248 | },{ | |
249 | ||
250 | .type = CX88_VMUX_COMPOSITE1, | |
251 | .vmux = 1, | |
252 | .gpio0 = 0x0035c700, | |
253 | .gpio1 = 0x00003004, | |
254 | .gpio2 = 0x0035c700, | |
255 | .gpio3 = 0x02000000, | |
256 | },{ | |
257 | .type = CX88_VMUX_SVIDEO, | |
258 | .vmux = 2, | |
259 | .gpio0 = 0x0035c700, | |
260 | .gpio1 = 0x0035c700, | |
261 | .gpio2 = 0x02000000, | |
262 | .gpio3 = 0x02000000, | |
263 | }}, | |
4ac97914 | 264 | .radio = { |
1da177e4 LT |
265 | .type = CX88_RADIO, |
266 | .gpio0 = 0x0035d700, | |
267 | .gpio1 = 0x00007004, | |
268 | .gpio2 = 0x0035d700, | |
269 | .gpio3 = 0x02000000, | |
47ee2f38 | 270 | }, |
4ac97914 | 271 | }, |
b45009b0 | 272 | [CX88_BOARD_LEADTEK_PVR2000] = { |
1da177e4 | 273 | // gpio values for PAL version from regspy by DScaler |
b45009b0 MCC |
274 | .name = "Leadtek PVR 2000", |
275 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
276 | .radio_type = UNSET, | |
277 | .tuner_addr = ADDR_UNSET, | |
278 | .radio_addr = ADDR_UNSET, | |
1da177e4 | 279 | .tda9887_conf = TDA9887_PRESENT, |
b45009b0 MCC |
280 | .input = {{ |
281 | .type = CX88_VMUX_TELEVISION, | |
282 | .vmux = 0, | |
283 | .gpio0 = 0x0000bde2, | |
f24546a9 | 284 | .extadc = 1, |
b45009b0 MCC |
285 | },{ |
286 | .type = CX88_VMUX_COMPOSITE1, | |
287 | .vmux = 1, | |
288 | .gpio0 = 0x0000bde6, | |
f24546a9 | 289 | .extadc = 1, |
b45009b0 MCC |
290 | },{ |
291 | .type = CX88_VMUX_SVIDEO, | |
292 | .vmux = 2, | |
293 | .gpio0 = 0x0000bde6, | |
f24546a9 | 294 | .extadc = 1, |
b45009b0 MCC |
295 | }}, |
296 | .radio = { | |
297 | .type = CX88_RADIO, | |
298 | .gpio0 = 0x0000bd62, | |
f24546a9 | 299 | .extadc = 1, |
b45009b0 | 300 | }, |
48d5e803 | 301 | .mpeg = CX88_MPEG_BLACKBIRD, |
b45009b0 | 302 | }, |
1da177e4 | 303 | [CX88_BOARD_IODATA_GVVCP3PCI] = { |
4ac97914 | 304 | .name = "IODATA GV-VCP3/PCI", |
1da177e4 | 305 | .tuner_type = TUNER_ABSENT, |
4ac97914 | 306 | .radio_type = UNSET, |
b45009b0 MCC |
307 | .tuner_addr = ADDR_UNSET, |
308 | .radio_addr = ADDR_UNSET, | |
309 | .input = {{ | |
4ac97914 MCC |
310 | .type = CX88_VMUX_COMPOSITE1, |
311 | .vmux = 0, | |
312 | },{ | |
313 | .type = CX88_VMUX_COMPOSITE2, | |
314 | .vmux = 1, | |
315 | },{ | |
316 | .type = CX88_VMUX_SVIDEO, | |
317 | .vmux = 2, | |
318 | }}, | |
319 | }, | |
1da177e4 | 320 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { |
4ac97914 MCC |
321 | .name = "Prolink PlayTV PVR", |
322 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, | |
b45009b0 MCC |
323 | .radio_type = UNSET, |
324 | .tuner_addr = ADDR_UNSET, | |
325 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
326 | .tda9887_conf = TDA9887_PRESENT, |
327 | .input = {{ | |
328 | .type = CX88_VMUX_TELEVISION, | |
329 | .vmux = 0, | |
fc34f165 | 330 | .gpio0 = 0xbff0, |
1da177e4 LT |
331 | },{ |
332 | .type = CX88_VMUX_COMPOSITE1, | |
333 | .vmux = 1, | |
fc34f165 | 334 | .gpio0 = 0xbff3, |
1da177e4 LT |
335 | },{ |
336 | .type = CX88_VMUX_SVIDEO, | |
337 | .vmux = 2, | |
fc34f165 | 338 | .gpio0 = 0xbff3, |
1da177e4 LT |
339 | }}, |
340 | .radio = { | |
341 | .type = CX88_RADIO, | |
fc34f165 | 342 | .gpio0 = 0xbff0, |
1da177e4 LT |
343 | }, |
344 | }, | |
345 | [CX88_BOARD_ASUS_PVR_416] = { | |
346 | .name = "ASUS PVR-416", | |
b45009b0 MCC |
347 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
348 | .radio_type = UNSET, | |
349 | .tuner_addr = ADDR_UNSET, | |
350 | .radio_addr = ADDR_UNSET, | |
351 | .tda9887_conf = TDA9887_PRESENT, | |
1da177e4 LT |
352 | .input = {{ |
353 | .type = CX88_VMUX_TELEVISION, | |
354 | .vmux = 0, | |
355 | .gpio0 = 0x0000fde6, | |
4ac97914 | 356 | },{ |
1da177e4 LT |
357 | .type = CX88_VMUX_SVIDEO, |
358 | .vmux = 2, | |
359 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? | |
fe16af26 | 360 | .extadc = 1, |
1da177e4 | 361 | }}, |
4ac97914 MCC |
362 | .radio = { |
363 | .type = CX88_RADIO, | |
1da177e4 | 364 | .gpio0 = 0x0000fde2, |
4ac97914 | 365 | }, |
48d5e803 | 366 | .mpeg = CX88_MPEG_BLACKBIRD, |
1da177e4 LT |
367 | }, |
368 | [CX88_BOARD_MSI_TVANYWHERE] = { | |
369 | .name = "MSI TV-@nywhere", | |
b45009b0 MCC |
370 | .tuner_type = TUNER_MT2032, |
371 | .radio_type = UNSET, | |
372 | .tuner_addr = ADDR_UNSET, | |
373 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
374 | .tda9887_conf = TDA9887_PRESENT, |
375 | .input = {{ | |
376 | .type = CX88_VMUX_TELEVISION, | |
377 | .vmux = 0, | |
378 | .gpio0 = 0x00000fbf, | |
379 | .gpio2 = 0x0000fc08, | |
380 | },{ | |
4ac97914 MCC |
381 | .type = CX88_VMUX_COMPOSITE1, |
382 | .vmux = 1, | |
1da177e4 LT |
383 | .gpio0 = 0x00000fbf, |
384 | .gpio2 = 0x0000fc68, | |
385 | },{ | |
4ac97914 MCC |
386 | .type = CX88_VMUX_SVIDEO, |
387 | .vmux = 2, | |
1da177e4 LT |
388 | .gpio0 = 0x00000fbf, |
389 | .gpio2 = 0x0000fc68, | |
4ac97914 | 390 | }}, |
1da177e4 | 391 | }, |
4ac97914 MCC |
392 | [CX88_BOARD_KWORLD_DVB_T] = { |
393 | .name = "KWorld/VStream XPert DVB-T", | |
1da177e4 | 394 | .tuner_type = TUNER_ABSENT, |
b45009b0 MCC |
395 | .radio_type = UNSET, |
396 | .tuner_addr = ADDR_UNSET, | |
397 | .radio_addr = ADDR_UNSET, | |
4ac97914 MCC |
398 | .input = {{ |
399 | .type = CX88_VMUX_COMPOSITE1, | |
400 | .vmux = 1, | |
1da177e4 LT |
401 | .gpio0 = 0x0700, |
402 | .gpio2 = 0x0101, | |
4ac97914 MCC |
403 | },{ |
404 | .type = CX88_VMUX_SVIDEO, | |
405 | .vmux = 2, | |
1da177e4 LT |
406 | .gpio0 = 0x0700, |
407 | .gpio2 = 0x0101, | |
4ac97914 | 408 | }}, |
48d5e803 | 409 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
410 | }, |
411 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { | |
a82decf6 | 412 | .name = "DViCO FusionHDTV DVB-T1", |
1da177e4 | 413 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
b45009b0 MCC |
414 | .radio_type = UNSET, |
415 | .tuner_addr = ADDR_UNSET, | |
416 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
417 | .input = {{ |
418 | .type = CX88_VMUX_COMPOSITE1, | |
419 | .vmux = 1, | |
420 | .gpio0 = 0x000027df, | |
47ee2f38 | 421 | },{ |
1da177e4 LT |
422 | .type = CX88_VMUX_SVIDEO, |
423 | .vmux = 2, | |
424 | .gpio0 = 0x000027df, | |
425 | }}, | |
48d5e803 | 426 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
427 | }, |
428 | [CX88_BOARD_KWORLD_LTV883] = { | |
429 | .name = "KWorld LTV883RF", | |
b45009b0 MCC |
430 | .tuner_type = TUNER_TNF_8831BGFF, |
431 | .radio_type = UNSET, | |
432 | .tuner_addr = ADDR_UNSET, | |
433 | .radio_addr = ADDR_UNSET, | |
4ac97914 MCC |
434 | .input = {{ |
435 | .type = CX88_VMUX_TELEVISION, | |
436 | .vmux = 0, | |
437 | .gpio0 = 0x07f8, | |
1da177e4 LT |
438 | },{ |
439 | .type = CX88_VMUX_DEBUG, | |
440 | .vmux = 0, | |
441 | .gpio0 = 0x07f9, // mono from tuner chip | |
4ac97914 MCC |
442 | },{ |
443 | .type = CX88_VMUX_COMPOSITE1, | |
444 | .vmux = 1, | |
445 | .gpio0 = 0x000007fa, | |
446 | },{ | |
447 | .type = CX88_VMUX_SVIDEO, | |
448 | .vmux = 2, | |
449 | .gpio0 = 0x000007fa, | |
450 | }}, | |
451 | .radio = { | |
452 | .type = CX88_RADIO, | |
453 | .gpio0 = 0x000007f8, | |
454 | }, | |
1da177e4 | 455 | }, |
a82decf6 MCC |
456 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { |
457 | .name = "DViCO FusionHDTV 3 Gold-Q", | |
1da177e4 | 458 | .tuner_type = TUNER_MICROTUNE_4042FI5, |
b45009b0 MCC |
459 | .radio_type = UNSET, |
460 | .tuner_addr = ADDR_UNSET, | |
461 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
462 | /* |
463 | GPIO[0] resets DT3302 DTV receiver | |
464 | 0 - reset asserted | |
465 | 1 - normal operation | |
466 | GPIO[1] mutes analog audio output connector | |
467 | 0 - enable selected source | |
468 | 1 - mute | |
469 | GPIO[2] selects source for analog audio output connector | |
470 | 0 - analog audio input connector on tab | |
471 | 1 - analog DAC output from CX23881 chip | |
472 | GPIO[3] selects RF input connector on tuner module | |
473 | 0 - RF connector labeled CABLE | |
474 | 1 - RF connector labeled ANT | |
a82decf6 MCC |
475 | GPIO[4] selects high RF for QAM256 mode |
476 | 0 - normal RF | |
477 | 1 - high RF | |
1da177e4 LT |
478 | */ |
479 | .input = {{ | |
480 | .type = CX88_VMUX_TELEVISION, | |
481 | .vmux = 0, | |
482 | .gpio0 = 0x0f0d, | |
483 | },{ | |
484 | .type = CX88_VMUX_CABLE, | |
485 | .vmux = 0, | |
486 | .gpio0 = 0x0f05, | |
487 | },{ | |
488 | .type = CX88_VMUX_COMPOSITE1, | |
489 | .vmux = 1, | |
490 | .gpio0 = 0x0f00, | |
491 | },{ | |
492 | .type = CX88_VMUX_SVIDEO, | |
493 | .vmux = 2, | |
494 | .gpio0 = 0x0f00, | |
495 | }}, | |
48d5e803 | 496 | .mpeg = CX88_MPEG_DVB, |
1da177e4 | 497 | }, |
4ac97914 | 498 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { |
b45009b0 | 499 | .name = "Hauppauge Nova-T DVB-T", |
1da177e4 | 500 | .tuner_type = TUNER_ABSENT, |
b45009b0 MCC |
501 | .radio_type = UNSET, |
502 | .tuner_addr = ADDR_UNSET, | |
503 | .radio_addr = ADDR_UNSET, | |
504 | .input = {{ | |
4ac97914 MCC |
505 | .type = CX88_VMUX_DVB, |
506 | .vmux = 0, | |
507 | }}, | |
48d5e803 | 508 | .mpeg = CX88_MPEG_DVB, |
1da177e4 | 509 | }, |
4ac97914 | 510 | [CX88_BOARD_CONEXANT_DVB_T1] = { |
1da177e4 LT |
511 | .name = "Conexant DVB-T reference design", |
512 | .tuner_type = TUNER_ABSENT, | |
b45009b0 MCC |
513 | .radio_type = UNSET, |
514 | .tuner_addr = ADDR_UNSET, | |
515 | .radio_addr = ADDR_UNSET, | |
4ac97914 MCC |
516 | .input = {{ |
517 | .type = CX88_VMUX_DVB, | |
518 | .vmux = 0, | |
519 | }}, | |
48d5e803 | 520 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
521 | }, |
522 | [CX88_BOARD_PROVIDEO_PV259] = { | |
523 | .name = "Provideo PV259", | |
524 | .tuner_type = TUNER_PHILIPS_FQ1216ME, | |
b45009b0 MCC |
525 | .radio_type = UNSET, |
526 | .tuner_addr = ADDR_UNSET, | |
527 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
528 | .input = {{ |
529 | .type = CX88_VMUX_TELEVISION, | |
530 | .vmux = 0, | |
f24546a9 | 531 | .extadc = 1, |
1da177e4 | 532 | }}, |
48d5e803 | 533 | .mpeg = CX88_MPEG_BLACKBIRD, |
1da177e4 LT |
534 | }, |
535 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = { | |
a82decf6 | 536 | .name = "DViCO FusionHDTV DVB-T Plus", |
1da177e4 | 537 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
b45009b0 MCC |
538 | .radio_type = UNSET, |
539 | .tuner_addr = ADDR_UNSET, | |
540 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
541 | .input = {{ |
542 | .type = CX88_VMUX_COMPOSITE1, | |
543 | .vmux = 1, | |
544 | .gpio0 = 0x000027df, | |
47ee2f38 | 545 | },{ |
1da177e4 LT |
546 | .type = CX88_VMUX_SVIDEO, |
547 | .vmux = 2, | |
548 | .gpio0 = 0x000027df, | |
549 | }}, | |
48d5e803 | 550 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
551 | }, |
552 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { | |
4ac97914 | 553 | .name = "digitalnow DNTV Live! DVB-T", |
1da177e4 | 554 | .tuner_type = TUNER_ABSENT, |
b45009b0 MCC |
555 | .radio_type = UNSET, |
556 | .tuner_addr = ADDR_UNSET, | |
557 | .radio_addr = ADDR_UNSET, | |
4ac97914 | 558 | .input = {{ |
1da177e4 LT |
559 | .type = CX88_VMUX_COMPOSITE1, |
560 | .vmux = 1, | |
561 | .gpio0 = 0x00000700, | |
562 | .gpio2 = 0x00000101, | |
563 | },{ | |
564 | .type = CX88_VMUX_SVIDEO, | |
565 | .vmux = 2, | |
566 | .gpio0 = 0x00000700, | |
567 | .gpio2 = 0x00000101, | |
568 | }}, | |
48d5e803 | 569 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
570 | }, |
571 | [CX88_BOARD_PCHDTV_HD3000] = { | |
572 | .name = "pcHDTV HD3000 HDTV", | |
9175b854 | 573 | .tuner_type = TUNER_THOMSON_DTT761X, |
b45009b0 MCC |
574 | .radio_type = UNSET, |
575 | .tuner_addr = ADDR_UNSET, | |
576 | .radio_addr = ADDR_UNSET, | |
e4f5c82a | 577 | .tda9887_conf = TDA9887_PRESENT, |
1da177e4 LT |
578 | .input = {{ |
579 | .type = CX88_VMUX_TELEVISION, | |
580 | .vmux = 0, | |
581 | .gpio0 = 0x00008484, | |
582 | .gpio1 = 0x00000000, | |
583 | .gpio2 = 0x00000000, | |
584 | .gpio3 = 0x00000000, | |
585 | },{ | |
586 | .type = CX88_VMUX_COMPOSITE1, | |
587 | .vmux = 1, | |
588 | .gpio0 = 0x00008400, | |
589 | .gpio1 = 0x00000000, | |
590 | .gpio2 = 0x00000000, | |
591 | .gpio3 = 0x00000000, | |
592 | },{ | |
593 | .type = CX88_VMUX_SVIDEO, | |
594 | .vmux = 2, | |
595 | .gpio0 = 0x00008400, | |
596 | .gpio1 = 0x00000000, | |
597 | .gpio2 = 0x00000000, | |
598 | .gpio3 = 0x00000000, | |
599 | }}, | |
600 | .radio = { | |
601 | .type = CX88_RADIO, | |
602 | .vmux = 2, | |
603 | .gpio0 = 0x00008400, | |
604 | .gpio1 = 0x00000000, | |
605 | .gpio2 = 0x00000000, | |
606 | .gpio3 = 0x00000000, | |
607 | }, | |
48d5e803 | 608 | .mpeg = CX88_MPEG_DVB, |
1da177e4 LT |
609 | }, |
610 | [CX88_BOARD_HAUPPAUGE_ROSLYN] = { | |
611 | // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu> | |
612 | // GPIO values obtained from regspy, courtesy Sean Covel | |
b45009b0 MCC |
613 | .name = "Hauppauge WinTV 28xxx (Roslyn) models", |
614 | .tuner_type = UNSET, | |
615 | .radio_type = UNSET, | |
616 | .tuner_addr = ADDR_UNSET, | |
617 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
618 | .input = {{ |
619 | .type = CX88_VMUX_TELEVISION, | |
620 | .vmux = 0, | |
0345c387 | 621 | .gpio0 = 0xed1a, |
1da177e4 LT |
622 | .gpio2 = 0x00ff, |
623 | },{ | |
624 | .type = CX88_VMUX_DEBUG, | |
625 | .vmux = 0, | |
0345c387 | 626 | .gpio0 = 0xff01, |
1da177e4 LT |
627 | },{ |
628 | .type = CX88_VMUX_COMPOSITE1, | |
629 | .vmux = 1, | |
630 | .gpio0 = 0xff02, | |
631 | },{ | |
632 | .type = CX88_VMUX_SVIDEO, | |
633 | .vmux = 2, | |
634 | .gpio0 = 0xed92, | |
635 | .gpio2 = 0x00ff, | |
636 | }}, | |
637 | .radio = { | |
638 | .type = CX88_RADIO, | |
639 | .gpio0 = 0xed96, | |
640 | .gpio2 = 0x00ff, | |
641 | }, | |
48d5e803 | 642 | .mpeg = CX88_MPEG_BLACKBIRD, |
1da177e4 LT |
643 | }, |
644 | [CX88_BOARD_DIGITALLOGIC_MEC] = { | |
1da177e4 | 645 | .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)", |
b45009b0 MCC |
646 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
647 | .radio_type = UNSET, | |
648 | .tuner_addr = ADDR_UNSET, | |
649 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
650 | .tda9887_conf = TDA9887_PRESENT, |
651 | .input = {{ | |
652 | .type = CX88_VMUX_TELEVISION, | |
653 | .vmux = 0, | |
b45009b0 | 654 | .gpio0 = 0x00009d80, |
f24546a9 | 655 | .extadc = 1, |
1da177e4 LT |
656 | },{ |
657 | .type = CX88_VMUX_COMPOSITE1, | |
658 | .vmux = 1, | |
b45009b0 | 659 | .gpio0 = 0x00009d76, |
f24546a9 | 660 | .extadc = 1, |
1da177e4 LT |
661 | },{ |
662 | .type = CX88_VMUX_SVIDEO, | |
663 | .vmux = 2, | |
b45009b0 | 664 | .gpio0 = 0x00009d76, |
f24546a9 | 665 | .extadc = 1, |
1da177e4 LT |
666 | }}, |
667 | .radio = { | |
668 | .type = CX88_RADIO, | |
b45009b0 | 669 | .gpio0 = 0x00009d00, |
f24546a9 | 670 | .extadc = 1, |
1da177e4 | 671 | }, |
48d5e803 | 672 | .mpeg = CX88_MPEG_BLACKBIRD, |
1da177e4 LT |
673 | }, |
674 | [CX88_BOARD_IODATA_GVBCTV7E] = { | |
675 | .name = "IODATA GV/BCTV7E", | |
676 | .tuner_type = TUNER_PHILIPS_FQ1286, | |
b45009b0 MCC |
677 | .radio_type = UNSET, |
678 | .tuner_addr = ADDR_UNSET, | |
679 | .radio_addr = ADDR_UNSET, | |
1da177e4 LT |
680 | .tda9887_conf = TDA9887_PRESENT, |
681 | .input = {{ | |
682 | .type = CX88_VMUX_TELEVISION, | |
683 | .vmux = 1, | |
684 | .gpio1 = 0x0000e03f, | |
685 | },{ | |
686 | .type = CX88_VMUX_COMPOSITE1, | |
687 | .vmux = 2, | |
688 | .gpio1 = 0x0000e07f, | |
689 | },{ | |
690 | .type = CX88_VMUX_SVIDEO, | |
691 | .vmux = 3, | |
692 | .gpio1 = 0x0000e07f, | |
693 | }} | |
694 | }, | |
239df2e2 MC |
695 | [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = { |
696 | .name = "PixelView PlayTV Ultra Pro (Stereo)", | |
b45009b0 MCC |
697 | /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */ |
698 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
c5287ba1 MCC |
699 | .radio_type = UNSET, |
700 | .tuner_addr = ADDR_UNSET, | |
701 | .radio_addr = ADDR_UNSET, | |
239df2e2 MC |
702 | .input = {{ |
703 | .type = CX88_VMUX_TELEVISION, | |
704 | .vmux = 0, | |
b45009b0 | 705 | .gpio0 = 0xbf61, /* internal decoder */ |
239df2e2 MC |
706 | },{ |
707 | .type = CX88_VMUX_COMPOSITE1, | |
708 | .vmux = 1, | |
b45009b0 | 709 | .gpio0 = 0xbf63, |
239df2e2 MC |
710 | },{ |
711 | .type = CX88_VMUX_SVIDEO, | |
712 | .vmux = 2, | |
b45009b0 | 713 | .gpio0 = 0xbf63, |
239df2e2 MC |
714 | }}, |
715 | .radio = { | |
b45009b0 MCC |
716 | .type = CX88_RADIO, |
717 | .gpio0 = 0xbf60, | |
718 | }, | |
239df2e2 | 719 | }, |
4ac97914 | 720 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
a82decf6 | 721 | .name = "DViCO FusionHDTV 3 Gold-T", |
83ac8722 | 722 | .tuner_type = TUNER_THOMSON_DTT761X, |
b45009b0 MCC |
723 | .radio_type = UNSET, |
724 | .tuner_addr = ADDR_UNSET, | |
725 | .radio_addr = ADDR_UNSET, | |
e4f5c82a | 726 | .tda9887_conf = TDA9887_PRESENT, |
a82decf6 | 727 | .input = {{ |
4ac97914 MCC |
728 | .type = CX88_VMUX_TELEVISION, |
729 | .vmux = 0, | |
730 | .gpio0 = 0x97ed, | |
731 | },{ | |
732 | .type = CX88_VMUX_COMPOSITE1, | |
733 | .vmux = 1, | |
734 | .gpio0 = 0x97e9, | |
735 | },{ | |
736 | .type = CX88_VMUX_SVIDEO, | |
737 | .vmux = 2, | |
738 | .gpio0 = 0x97e9, | |
739 | }}, | |
48d5e803 | 740 | .mpeg = CX88_MPEG_DVB, |
4ac97914 MCC |
741 | }, |
742 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { | |
743 | .name = "ADS Tech Instant TV DVB-T PCI", | |
a82decf6 MCC |
744 | .tuner_type = TUNER_ABSENT, |
745 | .radio_type = UNSET, | |
746 | .tuner_addr = ADDR_UNSET, | |
747 | .radio_addr = ADDR_UNSET, | |
748 | .input = {{ | |
4ac97914 MCC |
749 | .type = CX88_VMUX_COMPOSITE1, |
750 | .vmux = 1, | |
a82decf6 MCC |
751 | .gpio0 = 0x0700, |
752 | .gpio2 = 0x0101, | |
4ac97914 MCC |
753 | },{ |
754 | .type = CX88_VMUX_SVIDEO, | |
755 | .vmux = 2, | |
a82decf6 MCC |
756 | .gpio0 = 0x0700, |
757 | .gpio2 = 0x0101, | |
4ac97914 | 758 | }}, |
48d5e803 | 759 | .mpeg = CX88_MPEG_DVB, |
a82decf6 | 760 | }, |
e057ee11 MK |
761 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
762 | .name = "TerraTec Cinergy 1400 DVB-T", | |
763 | .tuner_type = TUNER_ABSENT, | |
764 | .input = {{ | |
765 | .type = CX88_VMUX_DVB, | |
766 | .vmux = 0, | |
767 | }}, | |
48d5e803 | 768 | .mpeg = CX88_MPEG_DVB, |
e057ee11 | 769 | }, |
9fef07ca MK |
770 | [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = { |
771 | .name = "DViCO FusionHDTV 5 Gold", | |
9c26c8b1 | 772 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */ |
9fef07ca MK |
773 | .radio_type = UNSET, |
774 | .tuner_addr = ADDR_UNSET, | |
775 | .radio_addr = ADDR_UNSET, | |
e52e98a7 | 776 | .tda9887_conf = TDA9887_PRESENT, |
9fef07ca | 777 | .input = {{ |
4ac97914 MCC |
778 | .type = CX88_VMUX_TELEVISION, |
779 | .vmux = 0, | |
780 | .gpio0 = 0x87fd, | |
781 | },{ | |
782 | .type = CX88_VMUX_COMPOSITE1, | |
783 | .vmux = 1, | |
784 | .gpio0 = 0x87f9, | |
785 | },{ | |
786 | .type = CX88_VMUX_SVIDEO, | |
787 | .vmux = 2, | |
788 | .gpio0 = 0x87f9, | |
789 | }}, | |
48d5e803 | 790 | .mpeg = CX88_MPEG_DVB, |
9fef07ca | 791 | }, |
d45170ed NS |
792 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
793 | .name = "AverMedia UltraTV Media Center PCI 550", | |
794 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, | |
795 | .radio_type = UNSET, | |
796 | .tuner_addr = ADDR_UNSET, | |
797 | .radio_addr = ADDR_UNSET, | |
798 | .tda9887_conf = TDA9887_PRESENT, | |
d45170ed NS |
799 | .input = {{ |
800 | .type = CX88_VMUX_COMPOSITE1, | |
801 | .vmux = 0, | |
802 | .gpio0 = 0x0000cd73, | |
f24546a9 | 803 | .extadc = 1, |
d45170ed NS |
804 | },{ |
805 | .type = CX88_VMUX_SVIDEO, | |
806 | .vmux = 1, | |
807 | .gpio0 = 0x0000cd73, | |
f24546a9 | 808 | .extadc = 1, |
d45170ed NS |
809 | },{ |
810 | .type = CX88_VMUX_TELEVISION, | |
811 | .vmux = 3, | |
812 | .gpio0 = 0x0000cdb3, | |
f24546a9 | 813 | .extadc = 1, |
d45170ed NS |
814 | }}, |
815 | .radio = { | |
816 | .type = CX88_RADIO, | |
817 | .vmux = 2, | |
818 | .gpio0 = 0x0000cdf3, | |
f24546a9 | 819 | .extadc = 1, |
d45170ed | 820 | }, |
5b26c82f | 821 | .mpeg = CX88_MPEG_BLACKBIRD, |
d45170ed | 822 | }, |
0bcc37c3 AW |
823 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
824 | /* Alexander Wold <awold@bigfoot.com> */ | |
4ac97914 MCC |
825 | .name = "Kworld V-Stream Xpert DVD", |
826 | .tuner_type = UNSET, | |
827 | .input = {{ | |
828 | .type = CX88_VMUX_COMPOSITE1, | |
829 | .vmux = 1, | |
830 | .gpio0 = 0x03000000, | |
0bcc37c3 AW |
831 | .gpio1 = 0x01000000, |
832 | .gpio2 = 0x02000000, | |
833 | .gpio3 = 0x00100000, | |
4ac97914 MCC |
834 | },{ |
835 | .type = CX88_VMUX_SVIDEO, | |
836 | .vmux = 2, | |
837 | .gpio0 = 0x03000000, | |
838 | .gpio1 = 0x01000000, | |
839 | .gpio2 = 0x02000000, | |
840 | .gpio3 = 0x00100000, | |
841 | }}, | |
0bcc37c3 | 842 | }, |
e976f937 KL |
843 | [CX88_BOARD_ATI_HDTVWONDER] = { |
844 | .name = "ATI HDTV Wonder", | |
845 | .tuner_type = TUNER_PHILIPS_TUV1236D, | |
846 | .radio_type = UNSET, | |
847 | .tuner_addr = ADDR_UNSET, | |
848 | .radio_addr = ADDR_UNSET, | |
849 | .input = {{ | |
850 | .type = CX88_VMUX_TELEVISION, | |
851 | .vmux = 0, | |
852 | .gpio0 = 0x00000ff7, | |
853 | .gpio1 = 0x000000ff, | |
854 | .gpio2 = 0x00000001, | |
855 | .gpio3 = 0x00000000, | |
856 | },{ | |
857 | .type = CX88_VMUX_COMPOSITE1, | |
858 | .vmux = 1, | |
859 | .gpio0 = 0x00000ffe, | |
860 | .gpio1 = 0x000000ff, | |
861 | .gpio2 = 0x00000001, | |
862 | .gpio3 = 0x00000000, | |
863 | },{ | |
864 | .type = CX88_VMUX_SVIDEO, | |
865 | .vmux = 2, | |
866 | .gpio0 = 0x00000ffe, | |
867 | .gpio1 = 0x000000ff, | |
868 | .gpio2 = 0x00000001, | |
869 | .gpio3 = 0x00000000, | |
870 | }}, | |
48d5e803 | 871 | .mpeg = CX88_MPEG_DVB, |
e976f937 | 872 | }, |
2b5200a7 DS |
873 | [CX88_BOARD_WINFAST_DTV1000] = { |
874 | .name = "WinFast DTV1000-T", | |
875 | .tuner_type = TUNER_ABSENT, | |
876 | .radio_type = UNSET, | |
877 | .tuner_addr = ADDR_UNSET, | |
878 | .radio_addr = ADDR_UNSET, | |
879 | .input = {{ | |
880 | .type = CX88_VMUX_DVB, | |
881 | .vmux = 0, | |
882 | }}, | |
48d5e803 | 883 | .mpeg = CX88_MPEG_DVB, |
2b5200a7 | 884 | }, |
7418f346 LB |
885 | [CX88_BOARD_AVERTV_303] = { |
886 | .name = "AVerTV 303 (M126)", | |
887 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
888 | .radio_type = UNSET, | |
889 | .tuner_addr = ADDR_UNSET, | |
890 | .radio_addr = ADDR_UNSET, | |
891 | .tda9887_conf = TDA9887_PRESENT, | |
892 | .input = {{ | |
893 | .type = CX88_VMUX_TELEVISION, | |
894 | .vmux = 0, | |
895 | .gpio0 = 0x00ff, | |
896 | .gpio1 = 0xe09f, | |
897 | .gpio2 = 0x0010, | |
898 | .gpio3 = 0x0000, | |
899 | },{ | |
900 | .type = CX88_VMUX_COMPOSITE1, | |
901 | .vmux = 1, | |
902 | .gpio0 = 0x00ff, | |
903 | .gpio1 = 0xe05f, | |
904 | .gpio2 = 0x0010, | |
905 | .gpio3 = 0x0000, | |
906 | },{ | |
907 | .type = CX88_VMUX_SVIDEO, | |
908 | .vmux = 2, | |
909 | .gpio0 = 0x00ff, | |
910 | .gpio1 = 0xe05f, | |
911 | .gpio2 = 0x0010, | |
912 | .gpio3 = 0x0000, | |
913 | }}, | |
914 | }, | |
0fa14aa6 ST |
915 | [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = { |
916 | .name = "Hauppauge Nova-S-Plus DVB-S", | |
917 | .tuner_type = TUNER_ABSENT, | |
918 | .radio_type = UNSET, | |
919 | .tuner_addr = ADDR_UNSET, | |
920 | .radio_addr = ADDR_UNSET, | |
0fa14aa6 ST |
921 | .input = {{ |
922 | .type = CX88_VMUX_DVB, | |
923 | .vmux = 0, | |
924 | },{ | |
925 | .type = CX88_VMUX_COMPOSITE1, | |
926 | .vmux = 1, | |
927 | },{ | |
928 | .type = CX88_VMUX_SVIDEO, | |
929 | .vmux = 2, | |
930 | }}, | |
48d5e803 | 931 | .mpeg = CX88_MPEG_DVB, |
0fa14aa6 ST |
932 | }, |
933 | [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = { | |
934 | .name = "Hauppauge Nova-SE2 DVB-S", | |
935 | .tuner_type = TUNER_ABSENT, | |
936 | .radio_type = UNSET, | |
937 | .tuner_addr = ADDR_UNSET, | |
938 | .radio_addr = ADDR_UNSET, | |
939 | .input = {{ | |
940 | .type = CX88_VMUX_DVB, | |
941 | .vmux = 0, | |
942 | }}, | |
48d5e803 | 943 | .mpeg = CX88_MPEG_DVB, |
0fa14aa6 | 944 | }, |
0e0351e3 VC |
945 | [CX88_BOARD_KWORLD_DVBS_100] = { |
946 | .name = "KWorld DVB-S 100", | |
947 | .tuner_type = TUNER_ABSENT, | |
948 | .radio_type = UNSET, | |
949 | .tuner_addr = ADDR_UNSET, | |
950 | .radio_addr = ADDR_UNSET, | |
951 | .input = {{ | |
952 | .type = CX88_VMUX_DVB, | |
953 | .vmux = 0, | |
954 | },{ | |
955 | .type = CX88_VMUX_COMPOSITE1, | |
956 | .vmux = 1, | |
957 | },{ | |
958 | .type = CX88_VMUX_SVIDEO, | |
959 | .vmux = 2, | |
960 | }}, | |
48d5e803 | 961 | .mpeg = CX88_MPEG_DVB, |
0e0351e3 | 962 | }, |
611900c1 ST |
963 | [CX88_BOARD_HAUPPAUGE_HVR1100] = { |
964 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid", | |
965 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
966 | .radio_type = UNSET, | |
967 | .tuner_addr = ADDR_UNSET, | |
968 | .radio_addr = ADDR_UNSET, | |
969 | .tda9887_conf = TDA9887_PRESENT, | |
970 | .input = {{ | |
971 | .type = CX88_VMUX_TELEVISION, | |
972 | .vmux = 0, | |
973 | },{ | |
974 | .type = CX88_VMUX_COMPOSITE1, | |
975 | .vmux = 1, | |
976 | },{ | |
977 | .type = CX88_VMUX_SVIDEO, | |
978 | .vmux = 2, | |
979 | }}, | |
980 | /* fixme: Add radio support */ | |
48d5e803 | 981 | .mpeg = CX88_MPEG_DVB, |
611900c1 ST |
982 | }, |
983 | [CX88_BOARD_HAUPPAUGE_HVR1100LP] = { | |
984 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)", | |
985 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
986 | .radio_type = UNSET, | |
987 | .tuner_addr = ADDR_UNSET, | |
988 | .radio_addr = ADDR_UNSET, | |
989 | .tda9887_conf = TDA9887_PRESENT, | |
990 | .input = {{ | |
991 | .type = CX88_VMUX_TELEVISION, | |
992 | .vmux = 0, | |
993 | },{ | |
994 | .type = CX88_VMUX_COMPOSITE1, | |
995 | .vmux = 1, | |
996 | }}, | |
997 | /* fixme: Add radio support */ | |
48d5e803 | 998 | .mpeg = CX88_MPEG_DVB, |
611900c1 | 999 | }, |
fc40b261 CP |
1000 | [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = { |
1001 | .name = "digitalnow DNTV Live! DVB-T Pro", | |
1002 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
1003 | .radio_type = UNSET, | |
1004 | .tuner_addr = ADDR_UNSET, | |
1005 | .radio_addr = ADDR_UNSET, | |
1006 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | | |
1007 | TDA9887_PORT2_ACTIVE, | |
1008 | .input = {{ | |
1009 | .type = CX88_VMUX_TELEVISION, | |
1010 | .vmux = 0, | |
1011 | .gpio0 = 0xf80808, | |
1012 | },{ | |
1013 | .type = CX88_VMUX_COMPOSITE1, | |
1014 | .vmux = 1, | |
1015 | .gpio0 = 0xf80808, | |
1016 | },{ | |
1017 | .type = CX88_VMUX_SVIDEO, | |
1018 | .vmux = 2, | |
1019 | .gpio0 = 0xf80808, | |
1020 | }}, | |
1021 | .radio = { | |
1022 | .type = CX88_RADIO, | |
1023 | .gpio0 = 0xf80808, | |
1024 | }, | |
48d5e803 | 1025 | .mpeg = CX88_MPEG_DVB, |
fc40b261 | 1026 | }, |
f39624fd MM |
1027 | [CX88_BOARD_KWORLD_DVB_T_CX22702] = { |
1028 | /* Kworld V-stream Xpert DVB-T with Thomson tuner */ | |
1029 | /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */ | |
1030 | /* Manenti Marco <marco_manenti@colman.it> */ | |
1031 | .name = "KWorld/VStream XPert DVB-T with cx22702", | |
1032 | .tuner_type = TUNER_ABSENT, | |
1033 | .radio_type = UNSET, | |
1034 | .tuner_addr = ADDR_UNSET, | |
1035 | .radio_addr = ADDR_UNSET, | |
1036 | .input = {{ | |
1037 | .type = CX88_VMUX_COMPOSITE1, | |
1038 | .vmux = 1, | |
1039 | .gpio0 = 0x0700, | |
1040 | .gpio2 = 0x0101, | |
1041 | },{ | |
1042 | .type = CX88_VMUX_SVIDEO, | |
1043 | .vmux = 2, | |
1044 | .gpio0 = 0x0700, | |
1045 | .gpio2 = 0x0101, | |
1046 | }}, | |
48d5e803 | 1047 | .mpeg = CX88_MPEG_DVB, |
f39624fd | 1048 | }, |
43eabb4e CP |
1049 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = { |
1050 | .name = "DViCO FusionHDTV DVB-T Dual Digital", | |
1051 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ | |
1052 | .radio_type = UNSET, | |
1053 | .tuner_addr = ADDR_UNSET, | |
1054 | .radio_addr = ADDR_UNSET, | |
1055 | .input = {{ | |
1056 | .type = CX88_VMUX_COMPOSITE1, | |
1057 | .vmux = 1, | |
d536e9c4 | 1058 | .gpio0 = 0x000067df, |
43eabb4e CP |
1059 | },{ |
1060 | .type = CX88_VMUX_SVIDEO, | |
1061 | .vmux = 2, | |
d536e9c4 | 1062 | .gpio0 = 0x000067df, |
43eabb4e | 1063 | }}, |
48d5e803 | 1064 | .mpeg = CX88_MPEG_DVB, |
43eabb4e | 1065 | }, |
44256de1 | 1066 | [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = { |
44256de1 MK |
1067 | .name = "KWorld HardwareMpegTV XPert", |
1068 | .tuner_type = TUNER_PHILIPS_TDA8290, | |
1069 | .radio_type = UNSET, | |
1070 | .tuner_addr = ADDR_UNSET, | |
1071 | .radio_addr = ADDR_UNSET, | |
1072 | .input = {{ | |
1073 | .type = CX88_VMUX_TELEVISION, | |
1074 | .vmux = 0, | |
e2798212 | 1075 | .gpio0 = 0x3de2, |
24da4e4b | 1076 | .gpio2 = 0x00ff, |
bc53f783 MK |
1077 | },{ |
1078 | .type = CX88_VMUX_COMPOSITE1, | |
1079 | .vmux = 1, | |
1080 | .gpio0 = 0x3de6, | |
cc0f3f51 | 1081 | .extadc = 1, |
bc53f783 MK |
1082 | },{ |
1083 | .type = CX88_VMUX_SVIDEO, | |
1084 | .vmux = 2, | |
1085 | .gpio0 = 0x3de6, | |
cc0f3f51 | 1086 | .extadc = 1, |
44256de1 | 1087 | }}, |
e2798212 MK |
1088 | .radio = { |
1089 | .type = CX88_RADIO, | |
1090 | .gpio0 = 0x3de6, | |
24da4e4b | 1091 | .gpio2 = 0x00ff, |
e2798212 | 1092 | }, |
48d5e803 | 1093 | .mpeg = CX88_MPEG_BLACKBIRD, |
44256de1 | 1094 | }, |
780dfef3 CP |
1095 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = { |
1096 | .name = "DViCO FusionHDTV DVB-T Hybrid", | |
91ae3299 | 1097 | .tuner_type = TUNER_THOMSON_FE6600, |
780dfef3 CP |
1098 | .radio_type = UNSET, |
1099 | .tuner_addr = ADDR_UNSET, | |
1100 | .radio_addr = ADDR_UNSET, | |
1101 | .input = {{ | |
1102 | .type = CX88_VMUX_TELEVISION, | |
1103 | .vmux = 0, | |
1104 | .gpio0 = 0x0000a75f, | |
1105 | },{ | |
1106 | .type = CX88_VMUX_COMPOSITE1, | |
1107 | .vmux = 1, | |
1108 | .gpio0 = 0x0000a75b, | |
1109 | },{ | |
1110 | .type = CX88_VMUX_SVIDEO, | |
1111 | .vmux = 2, | |
1112 | .gpio0 = 0x0000a75b, | |
1113 | }}, | |
48d5e803 | 1114 | .mpeg = CX88_MPEG_DVB, |
780dfef3 | 1115 | }, |
e142e7c4 MK |
1116 | [CX88_BOARD_PCHDTV_HD5500] = { |
1117 | .name = "pcHDTV HD5500 HDTV", | |
9c26c8b1 | 1118 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
e142e7c4 MK |
1119 | .radio_type = UNSET, |
1120 | .tuner_addr = ADDR_UNSET, | |
1121 | .radio_addr = ADDR_UNSET, | |
1122 | .tda9887_conf = TDA9887_PRESENT, | |
1123 | .input = {{ | |
1124 | .type = CX88_VMUX_TELEVISION, | |
1125 | .vmux = 0, | |
1126 | .gpio0 = 0x87fd, | |
1127 | },{ | |
1128 | .type = CX88_VMUX_COMPOSITE1, | |
1129 | .vmux = 1, | |
1130 | .gpio0 = 0x87f9, | |
1131 | },{ | |
1132 | .type = CX88_VMUX_SVIDEO, | |
1133 | .vmux = 2, | |
1134 | .gpio0 = 0x87f9, | |
1135 | }}, | |
48d5e803 | 1136 | .mpeg = CX88_MPEG_DVB, |
e142e7c4 | 1137 | }, |
b3038304 VZ |
1138 | [CX88_BOARD_KWORLD_MCE200_DELUXE] = { |
1139 | /* FIXME: tested TV input only, disabled composite, | |
1140 | svideo and radio until they can be tested also. */ | |
1141 | .name = "Kworld MCE 200 Deluxe", | |
1142 | .tuner_type = TUNER_TENA_9533_DI, | |
1143 | .radio_type = UNSET, | |
1144 | .tda9887_conf = TDA9887_PRESENT, | |
1145 | .tuner_addr = ADDR_UNSET, | |
1146 | .radio_addr = ADDR_UNSET, | |
1147 | .input = {{ | |
1148 | .type = CX88_VMUX_TELEVISION, | |
1149 | .vmux = 0, | |
1150 | .gpio0 = 0x0000BDE6 | |
1151 | }}, | |
48d5e803 | 1152 | .mpeg = CX88_MPEG_BLACKBIRD, |
b3038304 | 1153 | }, |
a3124622 AM |
1154 | [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = { |
1155 | /* FIXME: SVideo, Composite and FM inputs are untested */ | |
1156 | .name = "PixelView PlayTV P7000", | |
1157 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
1158 | .radio_type = UNSET, | |
1159 | .tuner_addr = ADDR_UNSET, | |
1160 | .radio_addr = ADDR_UNSET, | |
1161 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | | |
1162 | TDA9887_PORT2_ACTIVE, | |
1163 | .input = {{ | |
1164 | .type = CX88_VMUX_TELEVISION, | |
1165 | .vmux = 0, | |
1166 | .gpio0 = 0x5da6, | |
1167 | }}, | |
48d5e803 | 1168 | .mpeg = CX88_MPEG_BLACKBIRD, |
a3124622 | 1169 | }, |
be4f4519 RC |
1170 | [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = { |
1171 | .name = "NPG Tech Real TV FM Top 10", | |
1172 | .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */ | |
680543c5 RC |
1173 | .radio_type = UNSET, |
1174 | .tuner_addr = ADDR_UNSET, | |
1175 | .radio_addr = ADDR_UNSET, | |
1176 | .input = {{ | |
1177 | .type = CX88_VMUX_TELEVISION, | |
1178 | .vmux = 0, | |
1179 | .gpio0 = 0x0788, | |
1180 | },{ | |
1181 | .type = CX88_VMUX_COMPOSITE1, | |
1182 | .vmux = 1, | |
1183 | .gpio0 = 0x078b, | |
1184 | },{ | |
1185 | .type = CX88_VMUX_SVIDEO, | |
1186 | .vmux = 2, | |
be4f4519 | 1187 | .gpio0 = 0x078b, |
680543c5 RC |
1188 | }}, |
1189 | .radio = { | |
1190 | .type = CX88_RADIO, | |
1191 | .gpio0 = 0x074a, | |
1192 | }, | |
1193 | }, | |
4bd6e9d9 MV |
1194 | [CX88_BOARD_WINFAST_DTV2000H] = { |
1195 | /* video inputs and radio still in testing */ | |
1196 | .name = "WinFast DTV2000 H", | |
1197 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
1198 | .radio_type = UNSET, | |
1199 | .tuner_addr = ADDR_UNSET, | |
1200 | .radio_addr = ADDR_UNSET, | |
1201 | .tda9887_conf = TDA9887_PRESENT, | |
1202 | .input = {{ | |
1203 | .type = CX88_VMUX_TELEVISION, | |
1204 | .vmux = 0, | |
1205 | .gpio0 = 0x00017304, | |
1206 | .gpio1 = 0x00008203, | |
1207 | .gpio2 = 0x00017304, | |
1208 | .gpio3 = 0x02000000, | |
1209 | }}, | |
48d5e803 | 1210 | .mpeg = CX88_MPEG_DVB, |
4bd6e9d9 | 1211 | }, |
c02a34f4 SA |
1212 | [CX88_BOARD_GENIATECH_DVBS] = { |
1213 | .name = "Geniatech DVB-S", | |
1214 | .tuner_type = TUNER_ABSENT, | |
1215 | .radio_type = UNSET, | |
1216 | .tuner_addr = ADDR_UNSET, | |
1217 | .radio_addr = ADDR_UNSET, | |
1218 | .input = {{ | |
1219 | .type = CX88_VMUX_DVB, | |
1220 | .vmux = 0, | |
1221 | },{ | |
1222 | .type = CX88_VMUX_COMPOSITE1, | |
1223 | .vmux = 1, | |
1224 | }}, | |
48d5e803 | 1225 | .mpeg = CX88_MPEG_DVB, |
c02a34f4 | 1226 | }, |
ad10c930 ET |
1227 | [CX88_BOARD_HAUPPAUGE_HVR3000] = { |
1228 | /* FIXME: Add dvb & radio support */ | |
1229 | .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T", | |
1230 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
1231 | .radio_type = UNSET, | |
1232 | .tuner_addr = ADDR_UNSET, | |
1233 | .radio_addr = ADDR_UNSET, | |
1234 | .tda9887_conf = TDA9887_PRESENT, | |
1235 | .input = {{ | |
1236 | .type = CX88_VMUX_TELEVISION, | |
1237 | .vmux = 0, | |
1238 | .gpio0 = 0x84bf, | |
1239 | },{ | |
1240 | .type = CX88_VMUX_COMPOSITE1, | |
1241 | .vmux = 1, | |
1242 | .gpio0 = 0x84bf, | |
1243 | },{ | |
1244 | .type = CX88_VMUX_SVIDEO, | |
1245 | .vmux = 2, | |
1246 | .gpio0 = 0x84bf, | |
1247 | }}, | |
76dc82ab | 1248 | .mpeg = CX88_MPEG_DVB, |
ad10c930 | 1249 | }, |
d1009bd7 PN |
1250 | [CX88_BOARD_NORWOOD_MICRO] = { |
1251 | .name = "Norwood Micro TV Tuner", | |
1252 | .tuner_type = TUNER_TNF_5335MF, | |
1253 | .radio_type = UNSET, | |
1254 | .tuner_addr = ADDR_UNSET, | |
1255 | .radio_addr = ADDR_UNSET, | |
1256 | .input = {{ | |
1257 | .type = CX88_VMUX_TELEVISION, | |
1258 | .vmux = 0, | |
1259 | .gpio0 = 0x0709, | |
1260 | },{ | |
1261 | .type = CX88_VMUX_COMPOSITE1, | |
1262 | .vmux = 1, | |
1263 | .gpio0 = 0x070b, | |
1264 | },{ | |
1265 | .type = CX88_VMUX_SVIDEO, | |
1266 | .vmux = 2, | |
1267 | .gpio0 = 0x070b, | |
1268 | }}, | |
1269 | }, | |
5b26c82f MK |
1270 | [CX88_BOARD_TE_DTV_250_OEM_SWANN] = { |
1271 | .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM", | |
1272 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, | |
1273 | .radio_type = UNSET, | |
1274 | .tuner_addr = ADDR_UNSET, | |
1275 | .radio_addr = ADDR_UNSET, | |
1276 | .input = {{ | |
1277 | .type = CX88_VMUX_TELEVISION, | |
1278 | .vmux = 0, | |
1279 | .gpio0 = 0x003fffff, | |
1280 | .gpio1 = 0x00e00000, | |
1281 | .gpio2 = 0x003fffff, | |
1282 | .gpio3 = 0x02000000, | |
1283 | },{ | |
1284 | .type = CX88_VMUX_COMPOSITE1, | |
1285 | .vmux = 1, | |
1286 | .gpio0 = 0x003fffff, | |
1287 | .gpio1 = 0x00e00000, | |
1288 | .gpio2 = 0x003fffff, | |
1289 | .gpio3 = 0x02000000, | |
1290 | },{ | |
1291 | .type = CX88_VMUX_SVIDEO, | |
1292 | .vmux = 2, | |
1293 | .gpio0 = 0x003fffff, | |
1294 | .gpio1 = 0x00e00000, | |
1295 | .gpio2 = 0x003fffff, | |
1296 | .gpio3 = 0x02000000, | |
1297 | }}, | |
1298 | }, | |
aa481a65 ST |
1299 | [CX88_BOARD_HAUPPAUGE_HVR1300] = { |
1300 | .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder", | |
1301 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, | |
1302 | .radio_type = UNSET, | |
1303 | .tuner_addr = ADDR_UNSET, | |
1304 | .radio_addr = ADDR_UNSET, | |
1305 | .tda9887_conf = TDA9887_PRESENT, | |
3057906d | 1306 | .audio_chip = AUDIO_CHIP_WM8775, |
aa481a65 ST |
1307 | .input = {{ |
1308 | .type = CX88_VMUX_TELEVISION, | |
1309 | .vmux = 0, | |
1310 | .gpio0 = 0xe780, | |
f24546a9 | 1311 | .extadc = 1, |
aa481a65 ST |
1312 | },{ |
1313 | .type = CX88_VMUX_COMPOSITE1, | |
1314 | .vmux = 1, | |
1315 | .gpio0 = 0xe780, | |
f24546a9 | 1316 | .extadc = 1, |
aa481a65 ST |
1317 | },{ |
1318 | .type = CX88_VMUX_SVIDEO, | |
1319 | .vmux = 2, | |
1320 | .gpio0 = 0xe780, | |
f24546a9 | 1321 | .extadc = 1, |
aa481a65 ST |
1322 | }}, |
1323 | /* fixme: Add radio support */ | |
6c5be74c | 1324 | .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD, |
aa481a65 | 1325 | }, |
1da177e4 LT |
1326 | }; |
1327 | const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards); | |
1328 | ||
1329 | /* ------------------------------------------------------------------ */ | |
1330 | /* PCI subsystem IDs */ | |
1331 | ||
1332 | struct cx88_subid cx88_subids[] = { | |
1333 | { | |
1334 | .subvendor = 0x0070, | |
1335 | .subdevice = 0x3400, | |
1336 | .card = CX88_BOARD_HAUPPAUGE, | |
1337 | },{ | |
1338 | .subvendor = 0x0070, | |
1339 | .subdevice = 0x3401, | |
1340 | .card = CX88_BOARD_HAUPPAUGE, | |
1341 | },{ | |
1342 | .subvendor = 0x14c7, | |
1343 | .subdevice = 0x0106, | |
1344 | .card = CX88_BOARD_GDI, | |
1345 | },{ | |
1346 | .subvendor = 0x14c7, | |
1347 | .subdevice = 0x0107, /* with mpeg encoder */ | |
1348 | .card = CX88_BOARD_GDI, | |
1349 | },{ | |
1350 | .subvendor = PCI_VENDOR_ID_ATI, | |
1351 | .subdevice = 0x00f8, | |
1352 | .card = CX88_BOARD_ATI_WONDER_PRO, | |
1353 | },{ | |
4ac97914 MCC |
1354 | .subvendor = 0x107d, |
1355 | .subdevice = 0x6611, | |
1356 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, | |
1357 | },{ | |
1358 | .subvendor = 0x107d, | |
1359 | .subdevice = 0x6613, /* NTSC */ | |
1360 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, | |
1361 | },{ | |
1362 | .subvendor = 0x107d, | |
1363 | .subdevice = 0x6620, | |
1364 | .card = CX88_BOARD_WINFAST_DV2000, | |
1da177e4 | 1365 | },{ |
4ac97914 MCC |
1366 | .subvendor = 0x107d, |
1367 | .subdevice = 0x663b, | |
1368 | .card = CX88_BOARD_LEADTEK_PVR2000, | |
1da177e4 LT |
1369 | },{ |
1370 | .subvendor = 0x107d, | |
8dd86eeb | 1371 | .subdevice = 0x663c, |
4ac97914 MCC |
1372 | .card = CX88_BOARD_LEADTEK_PVR2000, |
1373 | },{ | |
1da177e4 LT |
1374 | .subvendor = 0x1461, |
1375 | .subdevice = 0x000b, | |
7418f346 | 1376 | .card = CX88_BOARD_AVERTV_STUDIO_303, |
1da177e4 LT |
1377 | },{ |
1378 | .subvendor = 0x1462, | |
1379 | .subdevice = 0x8606, | |
1380 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, | |
1381 | },{ | |
4ac97914 MCC |
1382 | .subvendor = 0x10fc, |
1383 | .subdevice = 0xd003, | |
1384 | .card = CX88_BOARD_IODATA_GVVCP3PCI, | |
1da177e4 | 1385 | },{ |
4ac97914 MCC |
1386 | .subvendor = 0x1043, |
1387 | .subdevice = 0x4823, /* with mpeg encoder */ | |
1388 | .card = CX88_BOARD_ASUS_PVR_416, | |
1da177e4 LT |
1389 | },{ |
1390 | .subvendor = 0x17de, | |
1391 | .subdevice = 0x08a6, | |
1392 | .card = CX88_BOARD_KWORLD_DVB_T, | |
1393 | },{ | |
1394 | .subvendor = 0x18ac, | |
1395 | .subdevice = 0xd810, | |
a82decf6 | 1396 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
097b750e MK |
1397 | },{ |
1398 | .subvendor = 0x18ac, | |
1399 | .subdevice = 0xd820, | |
80d34362 | 1400 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, |
1da177e4 | 1401 | },{ |
7df64e8c MK |
1402 | .subvendor = 0x18ac, |
1403 | .subdevice = 0xdb00, | |
1da177e4 | 1404 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
4ac97914 | 1405 | },{ |
1da177e4 LT |
1406 | .subvendor = 0x0070, |
1407 | .subdevice = 0x9002, | |
1408 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, | |
4ac97914 | 1409 | },{ |
1da177e4 LT |
1410 | .subvendor = 0x14f1, |
1411 | .subdevice = 0x0187, | |
1412 | .card = CX88_BOARD_CONEXANT_DVB_T1, | |
4ac97914 | 1413 | },{ |
1da177e4 LT |
1414 | .subvendor = 0x1540, |
1415 | .subdevice = 0x2580, | |
1416 | .card = CX88_BOARD_PROVIDEO_PV259, | |
1417 | },{ | |
7df64e8c MK |
1418 | .subvendor = 0x18ac, |
1419 | .subdevice = 0xdb10, | |
1da177e4 LT |
1420 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
1421 | },{ | |
4ac97914 MCC |
1422 | .subvendor = 0x1554, |
1423 | .subdevice = 0x4811, | |
1424 | .card = CX88_BOARD_PIXELVIEW, | |
1da177e4 LT |
1425 | },{ |
1426 | .subvendor = 0x7063, | |
1427 | .subdevice = 0x3000, /* HD-3000 card */ | |
1428 | .card = CX88_BOARD_PCHDTV_HD3000, | |
1429 | },{ | |
7df64e8c MK |
1430 | .subvendor = 0x17de, |
1431 | .subdevice = 0xa8a6, | |
1da177e4 LT |
1432 | .card = CX88_BOARD_DNTV_LIVE_DVB_T, |
1433 | },{ | |
1434 | .subvendor = 0x0070, | |
1435 | .subdevice = 0x2801, | |
1436 | .card = CX88_BOARD_HAUPPAUGE_ROSLYN, | |
1437 | },{ | |
7df64e8c | 1438 | .subvendor = 0x14f1, |
1da177e4 LT |
1439 | .subdevice = 0x0342, |
1440 | .card = CX88_BOARD_DIGITALLOGIC_MEC, | |
1441 | },{ | |
1442 | .subvendor = 0x10fc, | |
1443 | .subdevice = 0xd035, | |
1444 | .card = CX88_BOARD_IODATA_GVBCTV7E, | |
a82decf6 MCC |
1445 | },{ |
1446 | .subvendor = 0x1421, | |
1447 | .subdevice = 0x0334, | |
1448 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, | |
4ac97914 | 1449 | },{ |
e057ee11 MK |
1450 | .subvendor = 0x153b, |
1451 | .subdevice = 0x1166, | |
1452 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, | |
4ac97914 | 1453 | },{ |
9fef07ca MK |
1454 | .subvendor = 0x18ac, |
1455 | .subdevice = 0xd500, | |
1456 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, | |
4ac97914 | 1457 | },{ |
d45170ed NS |
1458 | .subvendor = 0x1461, |
1459 | .subdevice = 0x8011, | |
1460 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, | |
4ac97914 | 1461 | },{ |
e976f937 KL |
1462 | .subvendor = PCI_VENDOR_ID_ATI, |
1463 | .subdevice = 0xa101, | |
1464 | .card = CX88_BOARD_ATI_HDTVWONDER, | |
4ac97914 | 1465 | },{ |
2b5200a7 DS |
1466 | .subvendor = 0x107d, |
1467 | .subdevice = 0x665f, | |
1468 | .card = CX88_BOARD_WINFAST_DTV1000, | |
7418f346 LB |
1469 | },{ |
1470 | .subvendor = 0x1461, | |
1471 | .subdevice = 0x000a, | |
1472 | .card = CX88_BOARD_AVERTV_303, | |
0fa14aa6 ST |
1473 | },{ |
1474 | .subvendor = 0x0070, | |
1475 | .subdevice = 0x9200, | |
fb56cb65 ST |
1476 | .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1, |
1477 | },{ | |
1478 | .subvendor = 0x0070, | |
1479 | .subdevice = 0x9201, | |
0fa14aa6 ST |
1480 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
1481 | },{ | |
1482 | .subvendor = 0x0070, | |
1483 | .subdevice = 0x9202, | |
fb56cb65 | 1484 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
0e0351e3 VC |
1485 | },{ |
1486 | .subvendor = 0x17de, | |
1487 | .subdevice = 0x08b2, | |
1488 | .card = CX88_BOARD_KWORLD_DVBS_100, | |
611900c1 ST |
1489 | },{ |
1490 | .subvendor = 0x0070, | |
1491 | .subdevice = 0x9400, | |
1492 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, | |
1493 | },{ | |
1494 | .subvendor = 0x0070, | |
1495 | .subdevice = 0x9402, | |
1496 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, | |
1497 | },{ | |
1498 | .subvendor = 0x0070, | |
1499 | .subdevice = 0x9800, | |
1500 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, | |
1501 | },{ | |
1502 | .subvendor = 0x0070, | |
1503 | .subdevice = 0x9802, | |
1504 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, | |
c432a072 ST |
1505 | },{ |
1506 | .subvendor = 0x0070, | |
1507 | .subdevice = 0x9001, | |
1508 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, | |
fc40b261 CP |
1509 | },{ |
1510 | .subvendor = 0x1822, | |
1511 | .subdevice = 0x0025, | |
1512 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, | |
f39624fd | 1513 | },{ |
b9f4ad57 CP |
1514 | .subvendor = 0x17de, |
1515 | .subdevice = 0x08a1, | |
1516 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, | |
43eabb4e CP |
1517 | },{ |
1518 | .subvendor = 0x18ac, | |
1519 | .subdevice = 0xdb50, | |
1520 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, | |
f74a6b39 MK |
1521 | },{ |
1522 | .subvendor = 0x18ac, | |
1523 | .subdevice = 0xdb54, | |
1524 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, | |
1525 | /* Re-branded DViCO: DigitalNow DVB-T Dual */ | |
6bfb2e1f MK |
1526 | },{ |
1527 | .subvendor = 0x18ac, | |
1528 | .subdevice = 0xdb11, | |
1529 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, | |
1530 | /* Re-branded DViCO: UltraView DVB-T Plus */ | |
44256de1 MK |
1531 | },{ |
1532 | .subvendor = 0x17de, | |
1533 | .subdevice = 0x0840, | |
2d90fa44 JF |
1534 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
1535 | },{ | |
1536 | .subvendor = 0x1421, | |
1537 | .subdevice = 0x0305, | |
44256de1 | 1538 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
780dfef3 CP |
1539 | },{ |
1540 | .subvendor = 0x18ac, | |
1541 | .subdevice = 0xdb40, | |
1542 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, | |
1543 | },{ | |
1544 | .subvendor = 0x18ac, | |
1545 | .subdevice = 0xdb44, | |
1546 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, | |
da215d22 RS |
1547 | },{ |
1548 | .subvendor = 0x7063, | |
1549 | .subdevice = 0x5500, | |
1550 | .card = CX88_BOARD_PCHDTV_HD5500, | |
b3038304 VZ |
1551 | },{ |
1552 | .subvendor = 0x17de, | |
1553 | .subdevice = 0x0841, | |
1554 | .card = CX88_BOARD_KWORLD_MCE200_DELUXE, | |
fc066478 MK |
1555 | },{ |
1556 | .subvendor = 0x1822, | |
1557 | .subdevice = 0x0019, | |
1558 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, | |
a3124622 AM |
1559 | },{ |
1560 | .subvendor = 0x1554, | |
1561 | .subdevice = 0x4813, | |
1562 | .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000, | |
680543c5 RC |
1563 | },{ |
1564 | .subvendor = 0x14f1, | |
1565 | .subdevice = 0x0842, | |
be4f4519 | 1566 | .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM, |
4bd6e9d9 MV |
1567 | },{ |
1568 | .subvendor = 0x107d, | |
1569 | .subdevice = 0x665e, | |
1570 | .card = CX88_BOARD_WINFAST_DTV2000H, | |
65271bff MK |
1571 | },{ |
1572 | .subvendor = 0x18ac, | |
1573 | .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */ | |
1574 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, | |
c02a34f4 SA |
1575 | },{ |
1576 | .subvendor = 0x14f1, | |
1577 | .subdevice = 0x0084, | |
1578 | .card = CX88_BOARD_GENIATECH_DVBS, | |
ad10c930 ET |
1579 | },{ |
1580 | .subvendor = 0x0070, | |
1581 | .subdevice = 0x1404, | |
1582 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, | |
5dbaa2cb MK |
1583 | },{ |
1584 | .subvendor = 0x1461, | |
1585 | .subdevice = 0xc111, /* AverMedia M150-D */ | |
1586 | /* This board is known to work with the ASUS PVR416 config */ | |
1587 | .card = CX88_BOARD_ASUS_PVR_416, | |
2acadefa DB |
1588 | },{ |
1589 | .subvendor = 0xc180, | |
1590 | .subdevice = 0xc980, | |
1591 | .card = CX88_BOARD_TE_DTV_250_OEM_SWANN, | |
aa481a65 ST |
1592 | },{ |
1593 | .subvendor = 0x0070, | |
1594 | .subdevice = 0x9600, | |
1595 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, | |
1596 | },{ | |
1597 | .subvendor = 0x0070, | |
1598 | .subdevice = 0x9601, | |
1599 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, | |
1600 | },{ | |
1601 | .subvendor = 0x0070, | |
1602 | .subdevice = 0x9602, | |
1603 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, | |
dab489df MK |
1604 | },{ |
1605 | .subvendor = 0x107d, | |
1606 | .subdevice = 0x6632, | |
1607 | .card = CX88_BOARD_LEADTEK_PVR2000, | |
4508f598 MK |
1608 | },{ |
1609 | .subvendor = 0x12ab, | |
1610 | .subdevice = 0x2300, /* Club3D Zap TV2100 */ | |
1611 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, | |
3979ecc7 ST |
1612 | },{ |
1613 | .subvendor = 0x0070, | |
1614 | .subdevice = 0x9000, | |
1615 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, | |
76dc82ab ST |
1616 | },{ |
1617 | .subvendor = 0x0070, | |
1618 | .subdevice = 0x1400, | |
1619 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, | |
1620 | },{ | |
1621 | .subvendor = 0x0070, | |
1622 | .subdevice = 0x1401, | |
1623 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, | |
1624 | },{ | |
1625 | .subvendor = 0x0070, | |
1626 | .subdevice = 0x1402, | |
1627 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, | |
b9f4ad57 | 1628 | }, |
1da177e4 LT |
1629 | }; |
1630 | const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids); | |
1631 | ||
1632 | /* ----------------------------------------------------------------------- */ | |
1633 | /* some leadtek specific stuff */ | |
1634 | ||
1635 | static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) | |
1636 | { | |
1637 | /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on | |
1638 | * any others. | |
1639 | * | |
1640 | * Byte 0 is 1 on the NTSC board. | |
1641 | */ | |
1642 | ||
1643 | if (eeprom_data[4] != 0x7d || | |
1644 | eeprom_data[5] != 0x10 || | |
1645 | eeprom_data[7] != 0x66) { | |
1646 | printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n", | |
1647 | core->name); | |
1648 | return; | |
1649 | } | |
1650 | ||
1651 | core->has_radio = 1; | |
1652 | core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38; | |
1653 | ||
1654 | printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: " | |
1655 | "tuner=%d, eeprom[0]=0x%02x\n", | |
1656 | core->name, core->tuner_type, eeprom_data[0]); | |
1657 | } | |
1658 | ||
1da177e4 LT |
1659 | static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) |
1660 | { | |
1661 | struct tveeprom tv; | |
1662 | ||
0f97a931 | 1663 | tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); |
1da177e4 | 1664 | core->tuner_type = tv.tuner_type; |
0345c387 | 1665 | core->tuner_formats = tv.tuner_formats; |
1da177e4 | 1666 | core->has_radio = tv.has_radio; |
1da177e4 LT |
1667 | |
1668 | /* Make sure we support the board model */ | |
3ca0ea98 ST |
1669 | switch (tv.model) |
1670 | { | |
76dc82ab ST |
1671 | case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */ |
1672 | case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */ | |
1673 | case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */ | |
1674 | case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */ | |
1675 | case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */ | |
1676 | case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */ | |
ad10c930 | 1677 | case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */ |
76dc82ab ST |
1678 | case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */ |
1679 | case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */ | |
0345c387 | 1680 | case 28552: /* WinTV-PVR 'Roslyn' (No IR) */ |
42d2b6ef | 1681 | case 34519: /* WinTV-PCI-FM */ |
759324c3 | 1682 | case 90002: /* Nova-T-PCI (9002) */ |
0fe22865 ST |
1683 | case 92001: /* Nova-S-Plus (Video and IR) */ |
1684 | case 92002: /* Nova-S-Plus (Video and IR) */ | |
1685 | case 90003: /* Nova-T-PCI (9002 No RF out) */ | |
759324c3 ST |
1686 | case 90500: /* Nova-T-PCI (oem) */ |
1687 | case 90501: /* Nova-T-PCI (oem/IR) */ | |
3ca0ea98 | 1688 | case 92000: /* Nova-SE2 (OEM, No Video or IR) */ |
611900c1 ST |
1689 | case 94009: /* WinTV-HVR1100 (Video and IR Retail) */ |
1690 | case 94501: /* WinTV-HVR1100 (Video and IR OEM) */ | |
aa481a65 ST |
1691 | case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */ |
1692 | case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */ | |
1693 | case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */ | |
1694 | case 96569: /* WinTV-HVR1300 () */ | |
1695 | case 96659: /* WinTV-HVR1300 () */ | |
611900c1 | 1696 | case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */ |
1da177e4 LT |
1697 | /* known */ |
1698 | break; | |
1699 | default: | |
1700 | printk("%s: warning: unknown hauppauge model #%d\n", | |
3ca0ea98 | 1701 | core->name, tv.model); |
1da177e4 LT |
1702 | break; |
1703 | } | |
1704 | ||
3ca0ea98 ST |
1705 | printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", |
1706 | core->name, tv.model); | |
1da177e4 LT |
1707 | } |
1708 | ||
1709 | /* ----------------------------------------------------------------------- */ | |
1710 | /* some GDI (was: Modular Technology) specific stuff */ | |
1711 | ||
1712 | static struct { | |
1713 | int id; | |
1714 | int fm; | |
1715 | char *name; | |
1716 | } gdi_tuner[] = { | |
1717 | [ 0x01 ] = { .id = TUNER_ABSENT, | |
1718 | .name = "NTSC_M" }, | |
1719 | [ 0x02 ] = { .id = TUNER_ABSENT, | |
1720 | .name = "PAL_B" }, | |
1721 | [ 0x03 ] = { .id = TUNER_ABSENT, | |
1722 | .name = "PAL_I" }, | |
1723 | [ 0x04 ] = { .id = TUNER_ABSENT, | |
1724 | .name = "PAL_D" }, | |
1725 | [ 0x05 ] = { .id = TUNER_ABSENT, | |
1726 | .name = "SECAM" }, | |
1727 | ||
1728 | [ 0x10 ] = { .id = TUNER_ABSENT, | |
1729 | .fm = 1, | |
1730 | .name = "TEMIC_4049" }, | |
1731 | [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5, | |
1732 | .name = "TEMIC_4136" }, | |
1733 | [ 0x12 ] = { .id = TUNER_ABSENT, | |
1734 | .name = "TEMIC_4146" }, | |
1735 | ||
1736 | [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME, | |
1737 | .fm = 1, | |
1738 | .name = "PHILIPS_FQ1216_MK3" }, | |
1739 | [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1, | |
1740 | .name = "PHILIPS_FQ1236_MK3" }, | |
1741 | [ 0x22 ] = { .id = TUNER_ABSENT, | |
1742 | .name = "PHILIPS_FI1236_MK3" }, | |
1743 | [ 0x23 ] = { .id = TUNER_ABSENT, | |
1744 | .name = "PHILIPS_FI1216_MK3" }, | |
1745 | }; | |
1746 | ||
1747 | static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) | |
1748 | { | |
1749 | char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) | |
1750 | ? gdi_tuner[eeprom_data[0x0d]].name : NULL; | |
1751 | ||
1752 | printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name, | |
1753 | name ? name : "unknown"); | |
1754 | if (NULL == name) | |
1755 | return; | |
1756 | core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id; | |
1757 | core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm; | |
1758 | } | |
1759 | ||
780dfef3 CP |
1760 | /* ----------------------------------------------------------------------- */ |
1761 | /* some DViCO specific stuff */ | |
1762 | ||
1763 | static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core) | |
1764 | { | |
1765 | struct i2c_msg msg = { .addr = 0x45, .flags = 0 }; | |
1766 | int i, err; | |
69b27e3d | 1767 | static u8 init_bufs[13][5] = { |
780dfef3 CP |
1768 | { 0x10, 0x00, 0x20, 0x01, 0x03 }, |
1769 | { 0x10, 0x10, 0x01, 0x00, 0x21 }, | |
1770 | { 0x10, 0x10, 0x10, 0x00, 0xCA }, | |
1771 | { 0x10, 0x10, 0x12, 0x00, 0x08 }, | |
1772 | { 0x10, 0x10, 0x13, 0x00, 0x0A }, | |
1773 | { 0x10, 0x10, 0x16, 0x01, 0xC0 }, | |
1774 | { 0x10, 0x10, 0x22, 0x01, 0x3D }, | |
1775 | { 0x10, 0x10, 0x73, 0x01, 0x2E }, | |
1776 | { 0x10, 0x10, 0x72, 0x00, 0xC5 }, | |
1777 | { 0x10, 0x10, 0x71, 0x01, 0x97 }, | |
1778 | { 0x10, 0x10, 0x70, 0x00, 0x0F }, | |
1779 | { 0x10, 0x10, 0xB0, 0x00, 0x01 }, | |
1780 | { 0x03, 0x0C }, | |
1781 | }; | |
1782 | ||
1783 | for (i = 0; i < 13; i++) { | |
1784 | msg.buf = init_bufs[i]; | |
1785 | msg.len = (i != 12 ? 5 : 2); | |
1786 | err = i2c_transfer(&core->i2c_adap, &msg, 1); | |
1787 | if (err != 1) { | |
1788 | printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err); | |
1789 | return; | |
1790 | } | |
1791 | } | |
1792 | } | |
1793 | ||
1da177e4 LT |
1794 | /* ----------------------------------------------------------------------- */ |
1795 | ||
1796 | void cx88_card_list(struct cx88_core *core, struct pci_dev *pci) | |
1797 | { | |
1798 | int i; | |
1799 | ||
1800 | if (0 == pci->subsystem_vendor && | |
1801 | 0 == pci->subsystem_device) { | |
1802 | printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n" | |
1803 | "%s: be autodetected. Please pass card=<n> insmod option to\n" | |
1804 | "%s: workaround that. Redirect complaints to the vendor of\n" | |
1805 | "%s: the TV card. Best regards,\n" | |
1806 | "%s: -- tux\n", | |
1807 | core->name,core->name,core->name,core->name,core->name); | |
1808 | } else { | |
1809 | printk("%s: Your board isn't known (yet) to the driver. You can\n" | |
1810 | "%s: try to pick one of the existing card configs via\n" | |
1811 | "%s: card=<n> insmod option. Updating to the latest\n" | |
1812 | "%s: version might help as well.\n", | |
1813 | core->name,core->name,core->name,core->name); | |
1814 | } | |
1815 | printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n", | |
1816 | core->name); | |
1817 | for (i = 0; i < cx88_bcount; i++) | |
1818 | printk("%s: card=%d -> %s\n", | |
1819 | core->name, i, cx88_boards[i].name); | |
1820 | } | |
1821 | ||
aa481a65 ST |
1822 | void cx88_card_setup_pre_i2c(struct cx88_core *core) |
1823 | { | |
1824 | switch (core->board) { | |
1825 | case CX88_BOARD_HAUPPAUGE_HVR1300: | |
1826 | /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */ | |
1827 | /* We leave here with the 702 on the bus */ | |
1828 | cx_write(MO_GP0_IO, 0x0000e780); | |
1829 | udelay(1000); | |
1830 | cx_clear(MO_GP0_IO, 0x00000080); | |
1831 | udelay(50); | |
1832 | cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */ | |
1833 | udelay(1000); | |
1834 | break; | |
1835 | } | |
1836 | } | |
1837 | ||
1da177e4 LT |
1838 | void cx88_card_setup(struct cx88_core *core) |
1839 | { | |
3ca0ea98 | 1840 | static u8 eeprom[256]; |
1da177e4 LT |
1841 | |
1842 | if (0 == core->i2c_rc) { | |
1843 | core->i2c_client.addr = 0xa0 >> 1; | |
1844 | tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom)); | |
1845 | } | |
1846 | ||
1847 | switch (core->board) { | |
1848 | case CX88_BOARD_HAUPPAUGE: | |
1849 | case CX88_BOARD_HAUPPAUGE_ROSLYN: | |
1850 | if (0 == core->i2c_rc) | |
1851 | hauppauge_eeprom(core,eeprom+8); | |
1852 | break; | |
1853 | case CX88_BOARD_GDI: | |
1854 | if (0 == core->i2c_rc) | |
1855 | gdi_eeprom(core,eeprom); | |
1856 | break; | |
1857 | case CX88_BOARD_WINFAST2000XP_EXPERT: | |
1858 | if (0 == core->i2c_rc) | |
1859 | leadtek_eeprom(core,eeprom); | |
1860 | break; | |
0fa14aa6 ST |
1861 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: |
1862 | case CX88_BOARD_HAUPPAUGE_NOVASE2_S1: | |
1da177e4 | 1863 | case CX88_BOARD_HAUPPAUGE_DVB_T1: |
611900c1 ST |
1864 | case CX88_BOARD_HAUPPAUGE_HVR1100: |
1865 | case CX88_BOARD_HAUPPAUGE_HVR1100LP: | |
ad10c930 | 1866 | case CX88_BOARD_HAUPPAUGE_HVR3000: |
aa481a65 | 1867 | case CX88_BOARD_HAUPPAUGE_HVR1300: |
1da177e4 | 1868 | if (0 == core->i2c_rc) |
3ca0ea98 | 1869 | hauppauge_eeprom(core,eeprom); |
1da177e4 | 1870 | break; |
0e0351e3 VC |
1871 | case CX88_BOARD_KWORLD_DVBS_100: |
1872 | cx_write(MO_GP0_IO, 0x000007f8); | |
1873 | cx_write(MO_GP1_IO, 0x00000001); | |
1874 | break; | |
d536e9c4 CP |
1875 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL: |
1876 | /* GPIO0:6 is hooked to FX2 reset pin */ | |
1877 | cx_set(MO_GP0_IO, 0x00004040); | |
1878 | cx_clear(MO_GP0_IO, 0x00000040); | |
1879 | msleep(1000); | |
1880 | cx_set(MO_GP0_IO, 0x00004040); | |
1881 | /* FALLTHROUGH */ | |
1da177e4 LT |
1882 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: |
1883 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: | |
780dfef3 | 1884 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID: |
1da177e4 LT |
1885 | /* GPIO0:0 is hooked to mt352 reset pin */ |
1886 | cx_set(MO_GP0_IO, 0x00000101); | |
1887 | cx_clear(MO_GP0_IO, 0x00000001); | |
1888 | msleep(1); | |
1889 | cx_set(MO_GP0_IO, 0x00000101); | |
780dfef3 CP |
1890 | if (0 == core->i2c_rc && |
1891 | core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID) | |
1892 | dvico_fusionhdtv_hybrid_init(core); | |
1da177e4 LT |
1893 | break; |
1894 | case CX88_BOARD_KWORLD_DVB_T: | |
1895 | case CX88_BOARD_DNTV_LIVE_DVB_T: | |
1896 | cx_set(MO_GP0_IO, 0x00000707); | |
1897 | cx_set(MO_GP2_IO, 0x00000101); | |
1898 | cx_clear(MO_GP2_IO, 0x00000001); | |
1899 | msleep(1); | |
1900 | cx_clear(MO_GP0_IO, 0x00000007); | |
1901 | cx_set(MO_GP2_IO, 0x00000101); | |
1902 | break; | |
fc40b261 CP |
1903 | case CX88_BOARD_DNTV_LIVE_DVB_T_PRO: |
1904 | cx_write(MO_GP0_IO, 0x00080808); | |
1905 | break; | |
e976f937 KL |
1906 | case CX88_BOARD_ATI_HDTVWONDER: |
1907 | if (0 == core->i2c_rc) { | |
1908 | /* enable tuner */ | |
1909 | int i; | |
b9ee9ad7 | 1910 | static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; |
e976f937 | 1911 | core->i2c_client.addr = 0x0a; |
e976f937 | 1912 | |
fde6d31e | 1913 | for (i = 0; i < 5; i++) |
e976f937 KL |
1914 | if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2)) |
1915 | printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n", | |
1916 | core->name, i); | |
1917 | } | |
1918 | break; | |
1da177e4 LT |
1919 | } |
1920 | if (cx88_boards[core->board].radio.type == CX88_RADIO) | |
1921 | core->has_radio = 1; | |
1922 | } | |
1923 | ||
1924 | /* ------------------------------------------------------------------ */ | |
1925 | ||
1926 | EXPORT_SYMBOL(cx88_boards); | |
1da177e4 LT |
1927 | |
1928 | /* | |
1929 | * Local variables: | |
1930 | * c-basic-offset: 8 | |
1931 | * End: | |
b45009b0 | 1932 | * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off |
1da177e4 | 1933 | */ |