V4L/DVB (5975): cx88: Wrong values used for HD-3000 radio mode
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / media / video / cx88 / cx88-cards.c
blob1fc71a78b9260fa17ad9dc039e05d2747cc43924
1 /*
3 * device driver for Conexant 2388x based TV cards
4 * card-specific stuff.
6 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <linux/init.h>
24 #include <linux/module.h>
25 #include <linux/pci.h>
26 #include <linux/delay.h>
28 #include "cx88.h"
30 /* ------------------------------------------------------------------ */
31 /* board config info */
33 struct cx88_board cx88_boards[] = {
34 [CX88_BOARD_UNKNOWN] = {
35 .name = "UNKNOWN/GENERIC",
36 .tuner_type = UNSET,
37 .radio_type = UNSET,
38 .tuner_addr = ADDR_UNSET,
39 .radio_addr = ADDR_UNSET,
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 }},
54 [CX88_BOARD_HAUPPAUGE] = {
55 .name = "Hauppauge WinTV 34xxx models",
56 .tuner_type = UNSET,
57 .radio_type = UNSET,
58 .tuner_addr = ADDR_UNSET,
59 .radio_addr = ADDR_UNSET,
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,
83 [CX88_BOARD_GDI] = {
84 .name = "GDI Black Gold",
85 .tuner_type = UNSET,
86 .radio_type = UNSET,
87 .tuner_addr = ADDR_UNSET,
88 .radio_addr = ADDR_UNSET,
89 .input = {{
90 .type = CX88_VMUX_TELEVISION,
91 .vmux = 0,
92 },{
93 .type = CX88_VMUX_SVIDEO,
94 .vmux = 2,
95 }},
97 [CX88_BOARD_PIXELVIEW] = {
98 .name = "PixelView",
99 .tuner_type = TUNER_PHILIPS_PAL,
100 .radio_type = UNSET,
101 .tuner_addr = ADDR_UNSET,
102 .radio_addr = ADDR_UNSET,
103 .input = {{
104 .type = CX88_VMUX_TELEVISION,
105 .vmux = 0,
106 .gpio0 = 0xff00, // internal decoder
108 .type = CX88_VMUX_COMPOSITE1,
109 .vmux = 1,
111 .type = CX88_VMUX_SVIDEO,
112 .vmux = 2,
114 .radio = {
115 .type = CX88_RADIO,
116 .gpio0 = 0xff10,
119 [CX88_BOARD_ATI_WONDER_PRO] = {
120 .name = "ATI TV Wonder Pro",
121 .tuner_type = TUNER_PHILIPS_4IN1,
122 .radio_type = UNSET,
123 .tuner_addr = ADDR_UNSET,
124 .radio_addr = ADDR_UNSET,
125 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
126 .input = {{
127 .type = CX88_VMUX_TELEVISION,
128 .vmux = 0,
129 .gpio0 = 0x03ff,
131 .type = CX88_VMUX_COMPOSITE1,
132 .vmux = 1,
133 .gpio0 = 0x03fe,
135 .type = CX88_VMUX_SVIDEO,
136 .vmux = 2,
137 .gpio0 = 0x03fe,
140 [CX88_BOARD_WINFAST2000XP_EXPERT] = {
141 .name = "Leadtek Winfast 2000XP Expert",
142 .tuner_type = TUNER_PHILIPS_4IN1,
143 .radio_type = UNSET,
144 .tuner_addr = ADDR_UNSET,
145 .radio_addr = ADDR_UNSET,
146 .tda9887_conf = TDA9887_PRESENT,
147 .input = {{
148 .type = CX88_VMUX_TELEVISION,
149 .vmux = 0,
150 .gpio0 = 0x00F5e700,
151 .gpio1 = 0x00003004,
152 .gpio2 = 0x00F5e700,
153 .gpio3 = 0x02000000,
155 .type = CX88_VMUX_COMPOSITE1,
156 .vmux = 1,
157 .gpio0 = 0x00F5c700,
158 .gpio1 = 0x00003004,
159 .gpio2 = 0x00F5c700,
160 .gpio3 = 0x02000000,
162 .type = CX88_VMUX_SVIDEO,
163 .vmux = 2,
164 .gpio0 = 0x00F5c700,
165 .gpio1 = 0x00003004,
166 .gpio2 = 0x00F5c700,
167 .gpio3 = 0x02000000,
169 .radio = {
170 .type = CX88_RADIO,
171 .gpio0 = 0x00F5d700,
172 .gpio1 = 0x00003004,
173 .gpio2 = 0x00F5d700,
174 .gpio3 = 0x02000000,
177 [CX88_BOARD_AVERTV_STUDIO_303] = {
178 .name = "AverTV Studio 303 (M126)",
179 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
180 .radio_type = UNSET,
181 .tuner_addr = ADDR_UNSET,
182 .radio_addr = ADDR_UNSET,
183 .tda9887_conf = TDA9887_PRESENT,
184 .input = {{
185 .type = CX88_VMUX_TELEVISION,
186 .vmux = 0,
187 .gpio1 = 0xe09f,
189 .type = CX88_VMUX_COMPOSITE1,
190 .vmux = 1,
191 .gpio1 = 0xe05f,
193 .type = CX88_VMUX_SVIDEO,
194 .vmux = 2,
195 .gpio1 = 0xe05f,
197 .radio = {
198 .gpio1 = 0xe0df,
199 .type = CX88_RADIO,
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",
206 .tuner_type = TUNER_MT2032,
207 .radio_type = UNSET,
208 .tuner_addr = ADDR_UNSET,
209 .radio_addr = ADDR_UNSET,
210 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC,
211 .input = {{
212 .type = CX88_VMUX_TELEVISION,
213 .vmux = 0,
214 .gpio0 = 0x000040bf,
215 .gpio1 = 0x000080c0,
216 .gpio2 = 0x0000ff40,
218 .type = CX88_VMUX_COMPOSITE1,
219 .vmux = 1,
220 .gpio0 = 0x000040bf,
221 .gpio1 = 0x000080c0,
222 .gpio2 = 0x0000ff40,
224 .type = CX88_VMUX_SVIDEO,
225 .vmux = 2,
226 .gpio0 = 0x000040bf,
227 .gpio1 = 0x000080c0,
228 .gpio2 = 0x0000ff40,
230 .radio = {
231 .type = CX88_RADIO,
234 [CX88_BOARD_WINFAST_DV2000] = {
235 .name = "Leadtek Winfast DV2000",
236 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
237 .radio_type = UNSET,
238 .tuner_addr = ADDR_UNSET,
239 .radio_addr = ADDR_UNSET,
240 .tda9887_conf = TDA9887_PRESENT,
241 .input = {{
242 .type = CX88_VMUX_TELEVISION,
243 .vmux = 0,
244 .gpio0 = 0x0035e700,
245 .gpio1 = 0x00003004,
246 .gpio2 = 0x0035e700,
247 .gpio3 = 0x02000000,
250 .type = CX88_VMUX_COMPOSITE1,
251 .vmux = 1,
252 .gpio0 = 0x0035c700,
253 .gpio1 = 0x00003004,
254 .gpio2 = 0x0035c700,
255 .gpio3 = 0x02000000,
257 .type = CX88_VMUX_SVIDEO,
258 .vmux = 2,
259 .gpio0 = 0x0035c700,
260 .gpio1 = 0x0035c700,
261 .gpio2 = 0x02000000,
262 .gpio3 = 0x02000000,
264 .radio = {
265 .type = CX88_RADIO,
266 .gpio0 = 0x0035d700,
267 .gpio1 = 0x00007004,
268 .gpio2 = 0x0035d700,
269 .gpio3 = 0x02000000,
272 [CX88_BOARD_LEADTEK_PVR2000] = {
273 // gpio values for PAL version from regspy by DScaler
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,
279 .tda9887_conf = TDA9887_PRESENT,
280 .input = {{
281 .type = CX88_VMUX_TELEVISION,
282 .vmux = 0,
283 .gpio0 = 0x0000bde2,
284 .extadc = 1,
286 .type = CX88_VMUX_COMPOSITE1,
287 .vmux = 1,
288 .gpio0 = 0x0000bde6,
289 .extadc = 1,
291 .type = CX88_VMUX_SVIDEO,
292 .vmux = 2,
293 .gpio0 = 0x0000bde6,
294 .extadc = 1,
296 .radio = {
297 .type = CX88_RADIO,
298 .gpio0 = 0x0000bd62,
299 .extadc = 1,
301 .mpeg = CX88_MPEG_BLACKBIRD,
303 [CX88_BOARD_IODATA_GVVCP3PCI] = {
304 .name = "IODATA GV-VCP3/PCI",
305 .tuner_type = TUNER_ABSENT,
306 .radio_type = UNSET,
307 .tuner_addr = ADDR_UNSET,
308 .radio_addr = ADDR_UNSET,
309 .input = {{
310 .type = CX88_VMUX_COMPOSITE1,
311 .vmux = 0,
313 .type = CX88_VMUX_COMPOSITE2,
314 .vmux = 1,
316 .type = CX88_VMUX_SVIDEO,
317 .vmux = 2,
320 [CX88_BOARD_PROLINK_PLAYTVPVR] = {
321 .name = "Prolink PlayTV PVR",
322 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
323 .radio_type = UNSET,
324 .tuner_addr = ADDR_UNSET,
325 .radio_addr = ADDR_UNSET,
326 .tda9887_conf = TDA9887_PRESENT,
327 .input = {{
328 .type = CX88_VMUX_TELEVISION,
329 .vmux = 0,
330 .gpio0 = 0xbff0,
332 .type = CX88_VMUX_COMPOSITE1,
333 .vmux = 1,
334 .gpio0 = 0xbff3,
336 .type = CX88_VMUX_SVIDEO,
337 .vmux = 2,
338 .gpio0 = 0xbff3,
340 .radio = {
341 .type = CX88_RADIO,
342 .gpio0 = 0xbff0,
345 [CX88_BOARD_ASUS_PVR_416] = {
346 .name = "ASUS PVR-416",
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,
352 .input = {{
353 .type = CX88_VMUX_TELEVISION,
354 .vmux = 0,
355 .gpio0 = 0x0000fde6,
357 .type = CX88_VMUX_SVIDEO,
358 .vmux = 2,
359 .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
360 .extadc = 1,
362 .radio = {
363 .type = CX88_RADIO,
364 .gpio0 = 0x0000fde2,
366 .mpeg = CX88_MPEG_BLACKBIRD,
368 [CX88_BOARD_MSI_TVANYWHERE] = {
369 .name = "MSI TV-@nywhere",
370 .tuner_type = TUNER_MT2032,
371 .radio_type = UNSET,
372 .tuner_addr = ADDR_UNSET,
373 .radio_addr = ADDR_UNSET,
374 .tda9887_conf = TDA9887_PRESENT,
375 .input = {{
376 .type = CX88_VMUX_TELEVISION,
377 .vmux = 0,
378 .gpio0 = 0x00000fbf,
379 .gpio2 = 0x0000fc08,
381 .type = CX88_VMUX_COMPOSITE1,
382 .vmux = 1,
383 .gpio0 = 0x00000fbf,
384 .gpio2 = 0x0000fc68,
386 .type = CX88_VMUX_SVIDEO,
387 .vmux = 2,
388 .gpio0 = 0x00000fbf,
389 .gpio2 = 0x0000fc68,
392 [CX88_BOARD_KWORLD_DVB_T] = {
393 .name = "KWorld/VStream XPert DVB-T",
394 .tuner_type = TUNER_ABSENT,
395 .radio_type = UNSET,
396 .tuner_addr = ADDR_UNSET,
397 .radio_addr = ADDR_UNSET,
398 .input = {{
399 .type = CX88_VMUX_COMPOSITE1,
400 .vmux = 1,
401 .gpio0 = 0x0700,
402 .gpio2 = 0x0101,
404 .type = CX88_VMUX_SVIDEO,
405 .vmux = 2,
406 .gpio0 = 0x0700,
407 .gpio2 = 0x0101,
409 .mpeg = CX88_MPEG_DVB,
411 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
412 .name = "DViCO FusionHDTV DVB-T1",
413 .tuner_type = TUNER_ABSENT, /* No analog tuner */
414 .radio_type = UNSET,
415 .tuner_addr = ADDR_UNSET,
416 .radio_addr = ADDR_UNSET,
417 .input = {{
418 .type = CX88_VMUX_COMPOSITE1,
419 .vmux = 1,
420 .gpio0 = 0x000027df,
422 .type = CX88_VMUX_SVIDEO,
423 .vmux = 2,
424 .gpio0 = 0x000027df,
426 .mpeg = CX88_MPEG_DVB,
428 [CX88_BOARD_KWORLD_LTV883] = {
429 .name = "KWorld LTV883RF",
430 .tuner_type = TUNER_TNF_8831BGFF,
431 .radio_type = UNSET,
432 .tuner_addr = ADDR_UNSET,
433 .radio_addr = ADDR_UNSET,
434 .input = {{
435 .type = CX88_VMUX_TELEVISION,
436 .vmux = 0,
437 .gpio0 = 0x07f8,
439 .type = CX88_VMUX_DEBUG,
440 .vmux = 0,
441 .gpio0 = 0x07f9, // mono from tuner chip
443 .type = CX88_VMUX_COMPOSITE1,
444 .vmux = 1,
445 .gpio0 = 0x000007fa,
447 .type = CX88_VMUX_SVIDEO,
448 .vmux = 2,
449 .gpio0 = 0x000007fa,
451 .radio = {
452 .type = CX88_RADIO,
453 .gpio0 = 0x000007f8,
456 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
457 .name = "DViCO FusionHDTV 3 Gold-Q",
458 .tuner_type = TUNER_MICROTUNE_4042FI5,
459 .radio_type = UNSET,
460 .tuner_addr = ADDR_UNSET,
461 .radio_addr = ADDR_UNSET,
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
475 GPIO[4] selects high RF for QAM256 mode
476 0 - normal RF
477 1 - high RF
479 .input = {{
480 .type = CX88_VMUX_TELEVISION,
481 .vmux = 0,
482 .gpio0 = 0x0f0d,
484 .type = CX88_VMUX_CABLE,
485 .vmux = 0,
486 .gpio0 = 0x0f05,
488 .type = CX88_VMUX_COMPOSITE1,
489 .vmux = 1,
490 .gpio0 = 0x0f00,
492 .type = CX88_VMUX_SVIDEO,
493 .vmux = 2,
494 .gpio0 = 0x0f00,
496 .mpeg = CX88_MPEG_DVB,
498 [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
499 .name = "Hauppauge Nova-T DVB-T",
500 .tuner_type = TUNER_ABSENT,
501 .radio_type = UNSET,
502 .tuner_addr = ADDR_UNSET,
503 .radio_addr = ADDR_UNSET,
504 .input = {{
505 .type = CX88_VMUX_DVB,
506 .vmux = 0,
508 .mpeg = CX88_MPEG_DVB,
510 [CX88_BOARD_CONEXANT_DVB_T1] = {
511 .name = "Conexant DVB-T reference design",
512 .tuner_type = TUNER_ABSENT,
513 .radio_type = UNSET,
514 .tuner_addr = ADDR_UNSET,
515 .radio_addr = ADDR_UNSET,
516 .input = {{
517 .type = CX88_VMUX_DVB,
518 .vmux = 0,
520 .mpeg = CX88_MPEG_DVB,
522 [CX88_BOARD_PROVIDEO_PV259] = {
523 .name = "Provideo PV259",
524 .tuner_type = TUNER_PHILIPS_FQ1216ME,
525 .radio_type = UNSET,
526 .tuner_addr = ADDR_UNSET,
527 .radio_addr = ADDR_UNSET,
528 .input = {{
529 .type = CX88_VMUX_TELEVISION,
530 .vmux = 0,
531 .extadc = 1,
533 .mpeg = CX88_MPEG_BLACKBIRD,
535 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
536 .name = "DViCO FusionHDTV DVB-T Plus",
537 .tuner_type = TUNER_ABSENT, /* No analog tuner */
538 .radio_type = UNSET,
539 .tuner_addr = ADDR_UNSET,
540 .radio_addr = ADDR_UNSET,
541 .input = {{
542 .type = CX88_VMUX_COMPOSITE1,
543 .vmux = 1,
544 .gpio0 = 0x000027df,
546 .type = CX88_VMUX_SVIDEO,
547 .vmux = 2,
548 .gpio0 = 0x000027df,
550 .mpeg = CX88_MPEG_DVB,
552 [CX88_BOARD_DNTV_LIVE_DVB_T] = {
553 .name = "digitalnow DNTV Live! DVB-T",
554 .tuner_type = TUNER_ABSENT,
555 .radio_type = UNSET,
556 .tuner_addr = ADDR_UNSET,
557 .radio_addr = ADDR_UNSET,
558 .input = {{
559 .type = CX88_VMUX_COMPOSITE1,
560 .vmux = 1,
561 .gpio0 = 0x00000700,
562 .gpio2 = 0x00000101,
564 .type = CX88_VMUX_SVIDEO,
565 .vmux = 2,
566 .gpio0 = 0x00000700,
567 .gpio2 = 0x00000101,
569 .mpeg = CX88_MPEG_DVB,
571 [CX88_BOARD_PCHDTV_HD3000] = {
572 .name = "pcHDTV HD3000 HDTV",
573 .tuner_type = TUNER_THOMSON_DTT761X,
574 .radio_type = UNSET,
575 .tuner_addr = ADDR_UNSET,
576 .radio_addr = ADDR_UNSET,
577 .tda9887_conf = TDA9887_PRESENT,
578 /* GPIO[2] = audio source for analog audio out connector
579 * 0 = analog audio input connector
580 * 1 = CX88 audio DACs
582 * GPIO[7] = input to CX88's audio/chroma ADC
583 * 0 = FM 10.7 MHz IF
584 * 1 = Sound 4.5 MHz IF
586 * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
588 * GPIO[16] = Remote control input
590 .input = {{
591 .type = CX88_VMUX_TELEVISION,
592 .vmux = 0,
593 .gpio0 = 0x00008484,
595 .type = CX88_VMUX_COMPOSITE1,
596 .vmux = 1,
597 .gpio0 = 0x00008400,
599 .type = CX88_VMUX_SVIDEO,
600 .vmux = 2,
601 .gpio0 = 0x00008400,
603 .radio = {
604 .type = CX88_RADIO,
605 .gpio0 = 0x00008404,
607 .mpeg = CX88_MPEG_DVB,
609 [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
610 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
611 // GPIO values obtained from regspy, courtesy Sean Covel
612 .name = "Hauppauge WinTV 28xxx (Roslyn) models",
613 .tuner_type = UNSET,
614 .radio_type = UNSET,
615 .tuner_addr = ADDR_UNSET,
616 .radio_addr = ADDR_UNSET,
617 .input = {{
618 .type = CX88_VMUX_TELEVISION,
619 .vmux = 0,
620 .gpio0 = 0xed1a,
621 .gpio2 = 0x00ff,
623 .type = CX88_VMUX_DEBUG,
624 .vmux = 0,
625 .gpio0 = 0xff01,
627 .type = CX88_VMUX_COMPOSITE1,
628 .vmux = 1,
629 .gpio0 = 0xff02,
631 .type = CX88_VMUX_SVIDEO,
632 .vmux = 2,
633 .gpio0 = 0xed92,
634 .gpio2 = 0x00ff,
636 .radio = {
637 .type = CX88_RADIO,
638 .gpio0 = 0xed96,
639 .gpio2 = 0x00ff,
641 .mpeg = CX88_MPEG_BLACKBIRD,
643 [CX88_BOARD_DIGITALLOGIC_MEC] = {
644 .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
645 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
646 .radio_type = UNSET,
647 .tuner_addr = ADDR_UNSET,
648 .radio_addr = ADDR_UNSET,
649 .tda9887_conf = TDA9887_PRESENT,
650 .input = {{
651 .type = CX88_VMUX_TELEVISION,
652 .vmux = 0,
653 .gpio0 = 0x00009d80,
654 .extadc = 1,
656 .type = CX88_VMUX_COMPOSITE1,
657 .vmux = 1,
658 .gpio0 = 0x00009d76,
659 .extadc = 1,
661 .type = CX88_VMUX_SVIDEO,
662 .vmux = 2,
663 .gpio0 = 0x00009d76,
664 .extadc = 1,
666 .radio = {
667 .type = CX88_RADIO,
668 .gpio0 = 0x00009d00,
669 .extadc = 1,
671 .mpeg = CX88_MPEG_BLACKBIRD,
673 [CX88_BOARD_IODATA_GVBCTV7E] = {
674 .name = "IODATA GV/BCTV7E",
675 .tuner_type = TUNER_PHILIPS_FQ1286,
676 .radio_type = UNSET,
677 .tuner_addr = ADDR_UNSET,
678 .radio_addr = ADDR_UNSET,
679 .tda9887_conf = TDA9887_PRESENT,
680 .input = {{
681 .type = CX88_VMUX_TELEVISION,
682 .vmux = 1,
683 .gpio1 = 0x0000e03f,
685 .type = CX88_VMUX_COMPOSITE1,
686 .vmux = 2,
687 .gpio1 = 0x0000e07f,
689 .type = CX88_VMUX_SVIDEO,
690 .vmux = 3,
691 .gpio1 = 0x0000e07f,
694 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
695 .name = "PixelView PlayTV Ultra Pro (Stereo)",
696 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
697 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
698 .radio_type = UNSET,
699 .tuner_addr = ADDR_UNSET,
700 .radio_addr = ADDR_UNSET,
701 .input = {{
702 .type = CX88_VMUX_TELEVISION,
703 .vmux = 0,
704 .gpio0 = 0xbf61, /* internal decoder */
706 .type = CX88_VMUX_COMPOSITE1,
707 .vmux = 1,
708 .gpio0 = 0xbf63,
710 .type = CX88_VMUX_SVIDEO,
711 .vmux = 2,
712 .gpio0 = 0xbf63,
714 .radio = {
715 .type = CX88_RADIO,
716 .gpio0 = 0xbf60,
719 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
720 .name = "DViCO FusionHDTV 3 Gold-T",
721 .tuner_type = TUNER_THOMSON_DTT761X,
722 .radio_type = UNSET,
723 .tuner_addr = ADDR_UNSET,
724 .radio_addr = ADDR_UNSET,
725 .tda9887_conf = TDA9887_PRESENT,
726 .input = {{
727 .type = CX88_VMUX_TELEVISION,
728 .vmux = 0,
729 .gpio0 = 0x97ed,
731 .type = CX88_VMUX_COMPOSITE1,
732 .vmux = 1,
733 .gpio0 = 0x97e9,
735 .type = CX88_VMUX_SVIDEO,
736 .vmux = 2,
737 .gpio0 = 0x97e9,
739 .mpeg = CX88_MPEG_DVB,
741 [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
742 .name = "ADS Tech Instant TV DVB-T PCI",
743 .tuner_type = TUNER_ABSENT,
744 .radio_type = UNSET,
745 .tuner_addr = ADDR_UNSET,
746 .radio_addr = ADDR_UNSET,
747 .input = {{
748 .type = CX88_VMUX_COMPOSITE1,
749 .vmux = 1,
750 .gpio0 = 0x0700,
751 .gpio2 = 0x0101,
753 .type = CX88_VMUX_SVIDEO,
754 .vmux = 2,
755 .gpio0 = 0x0700,
756 .gpio2 = 0x0101,
758 .mpeg = CX88_MPEG_DVB,
760 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
761 .name = "TerraTec Cinergy 1400 DVB-T",
762 .tuner_type = TUNER_ABSENT,
763 .input = {{
764 .type = CX88_VMUX_DVB,
765 .vmux = 0,
767 .type = CX88_VMUX_COMPOSITE1,
768 .vmux = 2,
770 .type = CX88_VMUX_SVIDEO,
771 .vmux = 2,
773 .mpeg = CX88_MPEG_DVB,
775 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
776 .name = "DViCO FusionHDTV 5 Gold",
777 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
778 .radio_type = UNSET,
779 .tuner_addr = ADDR_UNSET,
780 .radio_addr = ADDR_UNSET,
781 .tda9887_conf = TDA9887_PRESENT,
782 .input = {{
783 .type = CX88_VMUX_TELEVISION,
784 .vmux = 0,
785 .gpio0 = 0x87fd,
787 .type = CX88_VMUX_COMPOSITE1,
788 .vmux = 1,
789 .gpio0 = 0x87f9,
791 .type = CX88_VMUX_SVIDEO,
792 .vmux = 2,
793 .gpio0 = 0x87f9,
795 .mpeg = CX88_MPEG_DVB,
797 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
798 .name = "AverMedia UltraTV Media Center PCI 550",
799 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
800 .radio_type = UNSET,
801 .tuner_addr = ADDR_UNSET,
802 .radio_addr = ADDR_UNSET,
803 .tda9887_conf = TDA9887_PRESENT,
804 .input = {{
805 .type = CX88_VMUX_COMPOSITE1,
806 .vmux = 0,
807 .gpio0 = 0x0000cd73,
808 .extadc = 1,
810 .type = CX88_VMUX_SVIDEO,
811 .vmux = 1,
812 .gpio0 = 0x0000cd73,
813 .extadc = 1,
815 .type = CX88_VMUX_TELEVISION,
816 .vmux = 3,
817 .gpio0 = 0x0000cdb3,
818 .extadc = 1,
820 .radio = {
821 .type = CX88_RADIO,
822 .vmux = 2,
823 .gpio0 = 0x0000cdf3,
824 .extadc = 1,
826 .mpeg = CX88_MPEG_BLACKBIRD,
828 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
829 /* Alexander Wold <awold@bigfoot.com> */
830 .name = "Kworld V-Stream Xpert DVD",
831 .tuner_type = UNSET,
832 .input = {{
833 .type = CX88_VMUX_COMPOSITE1,
834 .vmux = 1,
835 .gpio0 = 0x03000000,
836 .gpio1 = 0x01000000,
837 .gpio2 = 0x02000000,
838 .gpio3 = 0x00100000,
840 .type = CX88_VMUX_SVIDEO,
841 .vmux = 2,
842 .gpio0 = 0x03000000,
843 .gpio1 = 0x01000000,
844 .gpio2 = 0x02000000,
845 .gpio3 = 0x00100000,
848 [CX88_BOARD_ATI_HDTVWONDER] = {
849 .name = "ATI HDTV Wonder",
850 .tuner_type = TUNER_PHILIPS_TUV1236D,
851 .radio_type = UNSET,
852 .tuner_addr = ADDR_UNSET,
853 .radio_addr = ADDR_UNSET,
854 .input = {{
855 .type = CX88_VMUX_TELEVISION,
856 .vmux = 0,
857 .gpio0 = 0x00000ff7,
858 .gpio1 = 0x000000ff,
859 .gpio2 = 0x00000001,
860 .gpio3 = 0x00000000,
862 .type = CX88_VMUX_COMPOSITE1,
863 .vmux = 1,
864 .gpio0 = 0x00000ffe,
865 .gpio1 = 0x000000ff,
866 .gpio2 = 0x00000001,
867 .gpio3 = 0x00000000,
869 .type = CX88_VMUX_SVIDEO,
870 .vmux = 2,
871 .gpio0 = 0x00000ffe,
872 .gpio1 = 0x000000ff,
873 .gpio2 = 0x00000001,
874 .gpio3 = 0x00000000,
876 .mpeg = CX88_MPEG_DVB,
878 [CX88_BOARD_WINFAST_DTV1000] = {
879 .name = "WinFast DTV1000-T",
880 .tuner_type = TUNER_ABSENT,
881 .radio_type = UNSET,
882 .tuner_addr = ADDR_UNSET,
883 .radio_addr = ADDR_UNSET,
884 .input = {{
885 .type = CX88_VMUX_DVB,
886 .vmux = 0,
888 .type = CX88_VMUX_COMPOSITE1,
889 .vmux = 1,
891 .type = CX88_VMUX_SVIDEO,
892 .vmux = 2,
894 .mpeg = CX88_MPEG_DVB,
896 [CX88_BOARD_AVERTV_303] = {
897 .name = "AVerTV 303 (M126)",
898 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
899 .radio_type = UNSET,
900 .tuner_addr = ADDR_UNSET,
901 .radio_addr = ADDR_UNSET,
902 .tda9887_conf = TDA9887_PRESENT,
903 .input = {{
904 .type = CX88_VMUX_TELEVISION,
905 .vmux = 0,
906 .gpio0 = 0x00ff,
907 .gpio1 = 0xe09f,
908 .gpio2 = 0x0010,
909 .gpio3 = 0x0000,
911 .type = CX88_VMUX_COMPOSITE1,
912 .vmux = 1,
913 .gpio0 = 0x00ff,
914 .gpio1 = 0xe05f,
915 .gpio2 = 0x0010,
916 .gpio3 = 0x0000,
918 .type = CX88_VMUX_SVIDEO,
919 .vmux = 2,
920 .gpio0 = 0x00ff,
921 .gpio1 = 0xe05f,
922 .gpio2 = 0x0010,
923 .gpio3 = 0x0000,
926 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
927 .name = "Hauppauge Nova-S-Plus DVB-S",
928 .tuner_type = TUNER_ABSENT,
929 .radio_type = UNSET,
930 .tuner_addr = ADDR_UNSET,
931 .radio_addr = ADDR_UNSET,
932 .input = {{
933 .type = CX88_VMUX_DVB,
934 .vmux = 0,
936 .type = CX88_VMUX_COMPOSITE1,
937 .vmux = 1,
939 .type = CX88_VMUX_SVIDEO,
940 .vmux = 2,
942 .mpeg = CX88_MPEG_DVB,
944 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
945 .name = "Hauppauge Nova-SE2 DVB-S",
946 .tuner_type = TUNER_ABSENT,
947 .radio_type = UNSET,
948 .tuner_addr = ADDR_UNSET,
949 .radio_addr = ADDR_UNSET,
950 .input = {{
951 .type = CX88_VMUX_DVB,
952 .vmux = 0,
954 .mpeg = CX88_MPEG_DVB,
956 [CX88_BOARD_KWORLD_DVBS_100] = {
957 .name = "KWorld DVB-S 100",
958 .tuner_type = TUNER_ABSENT,
959 .radio_type = UNSET,
960 .tuner_addr = ADDR_UNSET,
961 .radio_addr = ADDR_UNSET,
962 .input = {{
963 .type = CX88_VMUX_DVB,
964 .vmux = 0,
966 .type = CX88_VMUX_COMPOSITE1,
967 .vmux = 1,
969 .type = CX88_VMUX_SVIDEO,
970 .vmux = 2,
972 .mpeg = CX88_MPEG_DVB,
974 [CX88_BOARD_HAUPPAUGE_HVR1100] = {
975 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
976 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
977 .radio_type = UNSET,
978 .tuner_addr = ADDR_UNSET,
979 .radio_addr = ADDR_UNSET,
980 .tda9887_conf = TDA9887_PRESENT,
981 .input = {{
982 .type = CX88_VMUX_TELEVISION,
983 .vmux = 0,
985 .type = CX88_VMUX_COMPOSITE1,
986 .vmux = 1,
988 .type = CX88_VMUX_SVIDEO,
989 .vmux = 2,
991 /* fixme: Add radio support */
992 .mpeg = CX88_MPEG_DVB,
994 [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
995 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
996 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
997 .radio_type = UNSET,
998 .tuner_addr = ADDR_UNSET,
999 .radio_addr = ADDR_UNSET,
1000 .tda9887_conf = TDA9887_PRESENT,
1001 .input = {{
1002 .type = CX88_VMUX_TELEVISION,
1003 .vmux = 0,
1005 .type = CX88_VMUX_COMPOSITE1,
1006 .vmux = 1,
1008 /* fixme: Add radio support */
1009 .mpeg = CX88_MPEG_DVB,
1011 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
1012 .name = "digitalnow DNTV Live! DVB-T Pro",
1013 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1014 .radio_type = UNSET,
1015 .tuner_addr = ADDR_UNSET,
1016 .radio_addr = ADDR_UNSET,
1017 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1018 TDA9887_PORT2_ACTIVE,
1019 .input = {{
1020 .type = CX88_VMUX_TELEVISION,
1021 .vmux = 0,
1022 .gpio0 = 0xf80808,
1024 .type = CX88_VMUX_COMPOSITE1,
1025 .vmux = 1,
1026 .gpio0 = 0xf80808,
1028 .type = CX88_VMUX_SVIDEO,
1029 .vmux = 2,
1030 .gpio0 = 0xf80808,
1032 .radio = {
1033 .type = CX88_RADIO,
1034 .gpio0 = 0xf80808,
1036 .mpeg = CX88_MPEG_DVB,
1038 [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
1039 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1040 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1041 /* Manenti Marco <marco_manenti@colman.it> */
1042 .name = "KWorld/VStream XPert DVB-T with cx22702",
1043 .tuner_type = TUNER_ABSENT,
1044 .radio_type = UNSET,
1045 .tuner_addr = ADDR_UNSET,
1046 .radio_addr = ADDR_UNSET,
1047 .input = {{
1048 .type = CX88_VMUX_COMPOSITE1,
1049 .vmux = 1,
1050 .gpio0 = 0x0700,
1051 .gpio2 = 0x0101,
1053 .type = CX88_VMUX_SVIDEO,
1054 .vmux = 2,
1055 .gpio0 = 0x0700,
1056 .gpio2 = 0x0101,
1058 .mpeg = CX88_MPEG_DVB,
1060 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
1061 .name = "DViCO FusionHDTV DVB-T Dual Digital",
1062 .tuner_type = TUNER_ABSENT, /* No analog tuner */
1063 .radio_type = UNSET,
1064 .tuner_addr = ADDR_UNSET,
1065 .radio_addr = ADDR_UNSET,
1066 .input = {{
1067 .type = CX88_VMUX_COMPOSITE1,
1068 .vmux = 1,
1069 .gpio0 = 0x000067df,
1071 .type = CX88_VMUX_SVIDEO,
1072 .vmux = 2,
1073 .gpio0 = 0x000067df,
1075 .mpeg = CX88_MPEG_DVB,
1077 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
1078 .name = "KWorld HardwareMpegTV XPert",
1079 .tuner_type = TUNER_PHILIPS_TDA8290,
1080 .radio_type = UNSET,
1081 .tuner_addr = ADDR_UNSET,
1082 .radio_addr = ADDR_UNSET,
1083 .input = {{
1084 .type = CX88_VMUX_TELEVISION,
1085 .vmux = 0,
1086 .gpio0 = 0x3de2,
1087 .gpio2 = 0x00ff,
1089 .type = CX88_VMUX_COMPOSITE1,
1090 .vmux = 1,
1091 .gpio0 = 0x3de6,
1092 .extadc = 1,
1094 .type = CX88_VMUX_SVIDEO,
1095 .vmux = 2,
1096 .gpio0 = 0x3de6,
1097 .extadc = 1,
1099 .radio = {
1100 .type = CX88_RADIO,
1101 .gpio0 = 0x3de6,
1102 .gpio2 = 0x00ff,
1104 .mpeg = CX88_MPEG_BLACKBIRD,
1106 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
1107 .name = "DViCO FusionHDTV DVB-T Hybrid",
1108 .tuner_type = TUNER_THOMSON_FE6600,
1109 .radio_type = UNSET,
1110 .tuner_addr = ADDR_UNSET,
1111 .radio_addr = ADDR_UNSET,
1112 .input = {{
1113 .type = CX88_VMUX_TELEVISION,
1114 .vmux = 0,
1115 .gpio0 = 0x0000a75f,
1117 .type = CX88_VMUX_COMPOSITE1,
1118 .vmux = 1,
1119 .gpio0 = 0x0000a75b,
1121 .type = CX88_VMUX_SVIDEO,
1122 .vmux = 2,
1123 .gpio0 = 0x0000a75b,
1125 .mpeg = CX88_MPEG_DVB,
1127 [CX88_BOARD_PCHDTV_HD5500] = {
1128 .name = "pcHDTV HD5500 HDTV",
1129 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
1130 .radio_type = UNSET,
1131 .tuner_addr = ADDR_UNSET,
1132 .radio_addr = ADDR_UNSET,
1133 .tda9887_conf = TDA9887_PRESENT,
1134 .input = {{
1135 .type = CX88_VMUX_TELEVISION,
1136 .vmux = 0,
1137 .gpio0 = 0x87fd,
1139 .type = CX88_VMUX_COMPOSITE1,
1140 .vmux = 1,
1141 .gpio0 = 0x87f9,
1143 .type = CX88_VMUX_SVIDEO,
1144 .vmux = 2,
1145 .gpio0 = 0x87f9,
1147 .mpeg = CX88_MPEG_DVB,
1149 [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
1150 /* FIXME: tested TV input only, disabled composite,
1151 svideo and radio until they can be tested also. */
1152 .name = "Kworld MCE 200 Deluxe",
1153 .tuner_type = TUNER_TENA_9533_DI,
1154 .radio_type = UNSET,
1155 .tda9887_conf = TDA9887_PRESENT,
1156 .tuner_addr = ADDR_UNSET,
1157 .radio_addr = ADDR_UNSET,
1158 .input = {{
1159 .type = CX88_VMUX_TELEVISION,
1160 .vmux = 0,
1161 .gpio0 = 0x0000BDE6
1163 .mpeg = CX88_MPEG_BLACKBIRD,
1165 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
1166 /* FIXME: SVideo, Composite and FM inputs are untested */
1167 .name = "PixelView PlayTV P7000",
1168 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1169 .radio_type = UNSET,
1170 .tuner_addr = ADDR_UNSET,
1171 .radio_addr = ADDR_UNSET,
1172 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1173 TDA9887_PORT2_ACTIVE,
1174 .input = {{
1175 .type = CX88_VMUX_TELEVISION,
1176 .vmux = 0,
1177 .gpio0 = 0x5da6,
1179 .mpeg = CX88_MPEG_BLACKBIRD,
1181 [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
1182 .name = "NPG Tech Real TV FM Top 10",
1183 .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
1184 .radio_type = UNSET,
1185 .tuner_addr = ADDR_UNSET,
1186 .radio_addr = ADDR_UNSET,
1187 .input = {{
1188 .type = CX88_VMUX_TELEVISION,
1189 .vmux = 0,
1190 .gpio0 = 0x0788,
1192 .type = CX88_VMUX_COMPOSITE1,
1193 .vmux = 1,
1194 .gpio0 = 0x078b,
1196 .type = CX88_VMUX_SVIDEO,
1197 .vmux = 2,
1198 .gpio0 = 0x078b,
1200 .radio = {
1201 .type = CX88_RADIO,
1202 .gpio0 = 0x074a,
1205 [CX88_BOARD_WINFAST_DTV2000H] = {
1206 /* video inputs and radio still in testing */
1207 .name = "WinFast DTV2000 H",
1208 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1209 .radio_type = UNSET,
1210 .tuner_addr = ADDR_UNSET,
1211 .radio_addr = ADDR_UNSET,
1212 .tda9887_conf = TDA9887_PRESENT,
1213 .input = {{
1214 .type = CX88_VMUX_TELEVISION,
1215 .vmux = 0,
1216 .gpio0 = 0x00017304,
1217 .gpio1 = 0x00008203,
1218 .gpio2 = 0x00017304,
1219 .gpio3 = 0x02000000,
1221 .mpeg = CX88_MPEG_DVB,
1223 [CX88_BOARD_GENIATECH_DVBS] = {
1224 .name = "Geniatech DVB-S",
1225 .tuner_type = TUNER_ABSENT,
1226 .radio_type = UNSET,
1227 .tuner_addr = ADDR_UNSET,
1228 .radio_addr = ADDR_UNSET,
1229 .input = {{
1230 .type = CX88_VMUX_DVB,
1231 .vmux = 0,
1233 .type = CX88_VMUX_COMPOSITE1,
1234 .vmux = 1,
1236 .mpeg = CX88_MPEG_DVB,
1238 [CX88_BOARD_HAUPPAUGE_HVR3000] = {
1239 /* FIXME: Add dvb & radio support */
1240 .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1241 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1242 .radio_type = UNSET,
1243 .tuner_addr = ADDR_UNSET,
1244 .radio_addr = ADDR_UNSET,
1245 .tda9887_conf = TDA9887_PRESENT,
1246 .input = {{
1247 .type = CX88_VMUX_TELEVISION,
1248 .vmux = 0,
1249 .gpio0 = 0x84bf,
1251 .type = CX88_VMUX_COMPOSITE1,
1252 .vmux = 1,
1253 .gpio0 = 0x84bf,
1255 .type = CX88_VMUX_SVIDEO,
1256 .vmux = 2,
1257 .gpio0 = 0x84bf,
1259 .mpeg = CX88_MPEG_DVB,
1261 [CX88_BOARD_NORWOOD_MICRO] = {
1262 .name = "Norwood Micro TV Tuner",
1263 .tuner_type = TUNER_TNF_5335MF,
1264 .radio_type = UNSET,
1265 .tuner_addr = ADDR_UNSET,
1266 .radio_addr = ADDR_UNSET,
1267 .input = {{
1268 .type = CX88_VMUX_TELEVISION,
1269 .vmux = 0,
1270 .gpio0 = 0x0709,
1272 .type = CX88_VMUX_COMPOSITE1,
1273 .vmux = 1,
1274 .gpio0 = 0x070b,
1276 .type = CX88_VMUX_SVIDEO,
1277 .vmux = 2,
1278 .gpio0 = 0x070b,
1281 [CX88_BOARD_TE_DTV_250_OEM_SWANN] = {
1282 .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1283 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1284 .radio_type = UNSET,
1285 .tuner_addr = ADDR_UNSET,
1286 .radio_addr = ADDR_UNSET,
1287 .input = {{
1288 .type = CX88_VMUX_TELEVISION,
1289 .vmux = 0,
1290 .gpio0 = 0x003fffff,
1291 .gpio1 = 0x00e00000,
1292 .gpio2 = 0x003fffff,
1293 .gpio3 = 0x02000000,
1295 .type = CX88_VMUX_COMPOSITE1,
1296 .vmux = 1,
1297 .gpio0 = 0x003fffff,
1298 .gpio1 = 0x00e00000,
1299 .gpio2 = 0x003fffff,
1300 .gpio3 = 0x02000000,
1302 .type = CX88_VMUX_SVIDEO,
1303 .vmux = 2,
1304 .gpio0 = 0x003fffff,
1305 .gpio1 = 0x00e00000,
1306 .gpio2 = 0x003fffff,
1307 .gpio3 = 0x02000000,
1310 [CX88_BOARD_HAUPPAUGE_HVR1300] = {
1311 .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1312 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1313 .radio_type = UNSET,
1314 .tuner_addr = ADDR_UNSET,
1315 .radio_addr = ADDR_UNSET,
1316 .tda9887_conf = TDA9887_PRESENT,
1317 .audio_chip = AUDIO_CHIP_WM8775,
1318 .input = {{
1319 .type = CX88_VMUX_TELEVISION,
1320 .vmux = 0,
1321 .gpio0 = 0xe780,
1322 .extadc = 1,
1324 .type = CX88_VMUX_COMPOSITE1,
1325 .vmux = 1,
1326 .gpio0 = 0xe780,
1327 .extadc = 1,
1329 .type = CX88_VMUX_SVIDEO,
1330 .vmux = 2,
1331 .gpio0 = 0xe780,
1332 .extadc = 1,
1334 /* fixme: Add radio support */
1335 .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
1337 [CX88_BOARD_ADSTECH_PTV_390] = {
1338 .name = "ADS Tech Instant Video PCI",
1339 .tuner_type = TUNER_ABSENT,
1340 .radio_type = UNSET,
1341 .tuner_addr = ADDR_UNSET,
1342 .radio_addr = ADDR_UNSET,
1343 .input = {{
1344 .type = CX88_VMUX_DEBUG,
1345 .vmux = 3,
1346 .gpio0 = 0x04ff,
1348 .type = CX88_VMUX_COMPOSITE1,
1349 .vmux = 1,
1350 .gpio0 = 0x07fa,
1352 .type = CX88_VMUX_SVIDEO,
1353 .vmux = 2,
1354 .gpio0 = 0x07fa,
1358 const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
1360 /* ------------------------------------------------------------------ */
1361 /* PCI subsystem IDs */
1363 struct cx88_subid cx88_subids[] = {
1365 .subvendor = 0x0070,
1366 .subdevice = 0x3400,
1367 .card = CX88_BOARD_HAUPPAUGE,
1369 .subvendor = 0x0070,
1370 .subdevice = 0x3401,
1371 .card = CX88_BOARD_HAUPPAUGE,
1373 .subvendor = 0x14c7,
1374 .subdevice = 0x0106,
1375 .card = CX88_BOARD_GDI,
1377 .subvendor = 0x14c7,
1378 .subdevice = 0x0107, /* with mpeg encoder */
1379 .card = CX88_BOARD_GDI,
1381 .subvendor = PCI_VENDOR_ID_ATI,
1382 .subdevice = 0x00f8,
1383 .card = CX88_BOARD_ATI_WONDER_PRO,
1385 .subvendor = 0x107d,
1386 .subdevice = 0x6611,
1387 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
1389 .subvendor = 0x107d,
1390 .subdevice = 0x6613, /* NTSC */
1391 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
1393 .subvendor = 0x107d,
1394 .subdevice = 0x6620,
1395 .card = CX88_BOARD_WINFAST_DV2000,
1397 .subvendor = 0x107d,
1398 .subdevice = 0x663b,
1399 .card = CX88_BOARD_LEADTEK_PVR2000,
1401 .subvendor = 0x107d,
1402 .subdevice = 0x663c,
1403 .card = CX88_BOARD_LEADTEK_PVR2000,
1405 .subvendor = 0x1461,
1406 .subdevice = 0x000b,
1407 .card = CX88_BOARD_AVERTV_STUDIO_303,
1409 .subvendor = 0x1462,
1410 .subdevice = 0x8606,
1411 .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
1413 .subvendor = 0x10fc,
1414 .subdevice = 0xd003,
1415 .card = CX88_BOARD_IODATA_GVVCP3PCI,
1417 .subvendor = 0x1043,
1418 .subdevice = 0x4823, /* with mpeg encoder */
1419 .card = CX88_BOARD_ASUS_PVR_416,
1421 .subvendor = 0x17de,
1422 .subdevice = 0x08a6,
1423 .card = CX88_BOARD_KWORLD_DVB_T,
1425 .subvendor = 0x18ac,
1426 .subdevice = 0xd810,
1427 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
1429 .subvendor = 0x18ac,
1430 .subdevice = 0xd820,
1431 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
1433 .subvendor = 0x18ac,
1434 .subdevice = 0xdb00,
1435 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
1437 .subvendor = 0x0070,
1438 .subdevice = 0x9002,
1439 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
1441 .subvendor = 0x14f1,
1442 .subdevice = 0x0187,
1443 .card = CX88_BOARD_CONEXANT_DVB_T1,
1445 .subvendor = 0x1540,
1446 .subdevice = 0x2580,
1447 .card = CX88_BOARD_PROVIDEO_PV259,
1449 .subvendor = 0x18ac,
1450 .subdevice = 0xdb10,
1451 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1453 .subvendor = 0x1554,
1454 .subdevice = 0x4811,
1455 .card = CX88_BOARD_PIXELVIEW,
1457 .subvendor = 0x7063,
1458 .subdevice = 0x3000, /* HD-3000 card */
1459 .card = CX88_BOARD_PCHDTV_HD3000,
1461 .subvendor = 0x17de,
1462 .subdevice = 0xa8a6,
1463 .card = CX88_BOARD_DNTV_LIVE_DVB_T,
1465 .subvendor = 0x0070,
1466 .subdevice = 0x2801,
1467 .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
1469 .subvendor = 0x14f1,
1470 .subdevice = 0x0342,
1471 .card = CX88_BOARD_DIGITALLOGIC_MEC,
1473 .subvendor = 0x10fc,
1474 .subdevice = 0xd035,
1475 .card = CX88_BOARD_IODATA_GVBCTV7E,
1477 .subvendor = 0x1421,
1478 .subdevice = 0x0334,
1479 .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
1481 .subvendor = 0x153b,
1482 .subdevice = 0x1166,
1483 .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
1485 .subvendor = 0x18ac,
1486 .subdevice = 0xd500,
1487 .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
1489 .subvendor = 0x1461,
1490 .subdevice = 0x8011,
1491 .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
1493 .subvendor = PCI_VENDOR_ID_ATI,
1494 .subdevice = 0xa101,
1495 .card = CX88_BOARD_ATI_HDTVWONDER,
1497 .subvendor = 0x107d,
1498 .subdevice = 0x665f,
1499 .card = CX88_BOARD_WINFAST_DTV1000,
1501 .subvendor = 0x1461,
1502 .subdevice = 0x000a,
1503 .card = CX88_BOARD_AVERTV_303,
1505 .subvendor = 0x0070,
1506 .subdevice = 0x9200,
1507 .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
1509 .subvendor = 0x0070,
1510 .subdevice = 0x9201,
1511 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
1513 .subvendor = 0x0070,
1514 .subdevice = 0x9202,
1515 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
1517 .subvendor = 0x17de,
1518 .subdevice = 0x08b2,
1519 .card = CX88_BOARD_KWORLD_DVBS_100,
1521 .subvendor = 0x0070,
1522 .subdevice = 0x9400,
1523 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1525 .subvendor = 0x0070,
1526 .subdevice = 0x9402,
1527 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1529 .subvendor = 0x0070,
1530 .subdevice = 0x9800,
1531 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
1533 .subvendor = 0x0070,
1534 .subdevice = 0x9802,
1535 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
1537 .subvendor = 0x0070,
1538 .subdevice = 0x9001,
1539 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
1541 .subvendor = 0x1822,
1542 .subdevice = 0x0025,
1543 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
1545 .subvendor = 0x17de,
1546 .subdevice = 0x08a1,
1547 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
1549 .subvendor = 0x18ac,
1550 .subdevice = 0xdb50,
1551 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
1553 .subvendor = 0x18ac,
1554 .subdevice = 0xdb54,
1555 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
1556 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1558 .subvendor = 0x18ac,
1559 .subdevice = 0xdb11,
1560 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1561 /* Re-branded DViCO: UltraView DVB-T Plus */
1563 .subvendor = 0x17de,
1564 .subdevice = 0x0840,
1565 .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
1567 .subvendor = 0x1421,
1568 .subdevice = 0x0305,
1569 .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
1571 .subvendor = 0x18ac,
1572 .subdevice = 0xdb40,
1573 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
1575 .subvendor = 0x18ac,
1576 .subdevice = 0xdb44,
1577 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
1579 .subvendor = 0x7063,
1580 .subdevice = 0x5500,
1581 .card = CX88_BOARD_PCHDTV_HD5500,
1583 .subvendor = 0x17de,
1584 .subdevice = 0x0841,
1585 .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
1587 .subvendor = 0x1822,
1588 .subdevice = 0x0019,
1589 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
1591 .subvendor = 0x1554,
1592 .subdevice = 0x4813,
1593 .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
1595 .subvendor = 0x14f1,
1596 .subdevice = 0x0842,
1597 .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
1599 .subvendor = 0x107d,
1600 .subdevice = 0x665e,
1601 .card = CX88_BOARD_WINFAST_DTV2000H,
1603 .subvendor = 0x18ac,
1604 .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
1605 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
1607 .subvendor = 0x14f1,
1608 .subdevice = 0x0084,
1609 .card = CX88_BOARD_GENIATECH_DVBS,
1611 .subvendor = 0x0070,
1612 .subdevice = 0x1404,
1613 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1615 .subvendor = 0x1461,
1616 .subdevice = 0xc111, /* AverMedia M150-D */
1617 /* This board is known to work with the ASUS PVR416 config */
1618 .card = CX88_BOARD_ASUS_PVR_416,
1620 .subvendor = 0xc180,
1621 .subdevice = 0xc980,
1622 .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
1624 .subvendor = 0x0070,
1625 .subdevice = 0x9600,
1626 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1628 .subvendor = 0x0070,
1629 .subdevice = 0x9601,
1630 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1632 .subvendor = 0x0070,
1633 .subdevice = 0x9602,
1634 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1636 .subvendor = 0x107d,
1637 .subdevice = 0x6632,
1638 .card = CX88_BOARD_LEADTEK_PVR2000,
1640 .subvendor = 0x12ab,
1641 .subdevice = 0x2300, /* Club3D Zap TV2100 */
1642 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
1644 .subvendor = 0x0070,
1645 .subdevice = 0x9000,
1646 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
1648 .subvendor = 0x0070,
1649 .subdevice = 0x1400,
1650 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1652 .subvendor = 0x0070,
1653 .subdevice = 0x1401,
1654 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1656 .subvendor = 0x0070,
1657 .subdevice = 0x1402,
1658 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1660 .subvendor = 0x1421,
1661 .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */
1662 .card = CX88_BOARD_KWORLD_DVBS_100,
1664 .subvendor = 0x1421,
1665 .subdevice = 0x0390,
1666 .card = CX88_BOARD_ADSTECH_PTV_390,
1669 const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
1671 /* ----------------------------------------------------------------------- */
1672 /* some leadtek specific stuff */
1674 static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
1676 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1677 * any others.
1679 * Byte 0 is 1 on the NTSC board.
1682 if (eeprom_data[4] != 0x7d ||
1683 eeprom_data[5] != 0x10 ||
1684 eeprom_data[7] != 0x66) {
1685 printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
1686 core->name);
1687 return;
1690 core->has_radio = 1;
1691 core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
1693 printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
1694 "tuner=%d, eeprom[0]=0x%02x\n",
1695 core->name, core->tuner_type, eeprom_data[0]);
1698 static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
1700 struct tveeprom tv;
1702 tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
1703 core->tuner_type = tv.tuner_type;
1704 core->tuner_formats = tv.tuner_formats;
1705 core->has_radio = tv.has_radio;
1707 /* Make sure we support the board model */
1708 switch (tv.model)
1710 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1711 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1712 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1713 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1714 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1715 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
1716 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
1717 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1718 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
1719 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
1720 case 34519: /* WinTV-PCI-FM */
1721 case 90002: /* Nova-T-PCI (9002) */
1722 case 92001: /* Nova-S-Plus (Video and IR) */
1723 case 92002: /* Nova-S-Plus (Video and IR) */
1724 case 90003: /* Nova-T-PCI (9002 No RF out) */
1725 case 90500: /* Nova-T-PCI (oem) */
1726 case 90501: /* Nova-T-PCI (oem/IR) */
1727 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
1728 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1729 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
1730 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1731 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1732 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1733 case 96569: /* WinTV-HVR1300 () */
1734 case 96659: /* WinTV-HVR1300 () */
1735 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
1736 /* known */
1737 break;
1738 default:
1739 printk("%s: warning: unknown hauppauge model #%d\n",
1740 core->name, tv.model);
1741 break;
1744 printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
1745 core->name, tv.model);
1748 /* ----------------------------------------------------------------------- */
1749 /* some GDI (was: Modular Technology) specific stuff */
1751 static struct {
1752 int id;
1753 int fm;
1754 char *name;
1755 } gdi_tuner[] = {
1756 [ 0x01 ] = { .id = TUNER_ABSENT,
1757 .name = "NTSC_M" },
1758 [ 0x02 ] = { .id = TUNER_ABSENT,
1759 .name = "PAL_B" },
1760 [ 0x03 ] = { .id = TUNER_ABSENT,
1761 .name = "PAL_I" },
1762 [ 0x04 ] = { .id = TUNER_ABSENT,
1763 .name = "PAL_D" },
1764 [ 0x05 ] = { .id = TUNER_ABSENT,
1765 .name = "SECAM" },
1767 [ 0x10 ] = { .id = TUNER_ABSENT,
1768 .fm = 1,
1769 .name = "TEMIC_4049" },
1770 [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
1771 .name = "TEMIC_4136" },
1772 [ 0x12 ] = { .id = TUNER_ABSENT,
1773 .name = "TEMIC_4146" },
1775 [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
1776 .fm = 1,
1777 .name = "PHILIPS_FQ1216_MK3" },
1778 [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
1779 .name = "PHILIPS_FQ1236_MK3" },
1780 [ 0x22 ] = { .id = TUNER_ABSENT,
1781 .name = "PHILIPS_FI1236_MK3" },
1782 [ 0x23 ] = { .id = TUNER_ABSENT,
1783 .name = "PHILIPS_FI1216_MK3" },
1786 static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
1788 char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
1789 ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
1791 printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
1792 name ? name : "unknown");
1793 if (NULL == name)
1794 return;
1795 core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
1796 core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
1799 /* ----------------------------------------------------------------------- */
1800 /* some DViCO specific stuff */
1802 static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
1804 struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
1805 int i, err;
1806 static u8 init_bufs[13][5] = {
1807 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1808 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1809 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1810 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1811 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1812 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1813 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1814 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1815 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1816 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1817 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1818 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1819 { 0x03, 0x0C },
1822 for (i = 0; i < ARRAY_SIZE(init_bufs); i++) {
1823 msg.buf = init_bufs[i];
1824 msg.len = (i != 12 ? 5 : 2);
1825 err = i2c_transfer(&core->i2c_adap, &msg, 1);
1826 if (err != 1) {
1827 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
1828 return;
1833 /* ----------------------------------------------------------------------- */
1835 void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
1837 int i;
1839 if (0 == pci->subsystem_vendor &&
1840 0 == pci->subsystem_device) {
1841 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1842 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1843 "%s: workaround that. Redirect complaints to the vendor of\n"
1844 "%s: the TV card. Best regards,\n"
1845 "%s: -- tux\n",
1846 core->name,core->name,core->name,core->name,core->name);
1847 } else {
1848 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1849 "%s: try to pick one of the existing card configs via\n"
1850 "%s: card=<n> insmod option. Updating to the latest\n"
1851 "%s: version might help as well.\n",
1852 core->name,core->name,core->name,core->name);
1854 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1855 core->name);
1856 for (i = 0; i < cx88_bcount; i++)
1857 printk("%s: card=%d -> %s\n",
1858 core->name, i, cx88_boards[i].name);
1861 void cx88_card_setup_pre_i2c(struct cx88_core *core)
1863 switch (core->board) {
1864 case CX88_BOARD_HAUPPAUGE_HVR1300:
1865 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1866 /* We leave here with the 702 on the bus */
1867 cx_write(MO_GP0_IO, 0x0000e780);
1868 udelay(1000);
1869 cx_clear(MO_GP0_IO, 0x00000080);
1870 udelay(50);
1871 cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */
1872 udelay(1000);
1873 break;
1877 void cx88_card_setup(struct cx88_core *core)
1879 static u8 eeprom[256];
1881 if (0 == core->i2c_rc) {
1882 core->i2c_client.addr = 0xa0 >> 1;
1883 tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
1886 switch (core->board) {
1887 case CX88_BOARD_HAUPPAUGE:
1888 case CX88_BOARD_HAUPPAUGE_ROSLYN:
1889 if (0 == core->i2c_rc)
1890 hauppauge_eeprom(core,eeprom+8);
1891 break;
1892 case CX88_BOARD_GDI:
1893 if (0 == core->i2c_rc)
1894 gdi_eeprom(core,eeprom);
1895 break;
1896 case CX88_BOARD_WINFAST2000XP_EXPERT:
1897 if (0 == core->i2c_rc)
1898 leadtek_eeprom(core,eeprom);
1899 break;
1900 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
1901 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
1902 case CX88_BOARD_HAUPPAUGE_DVB_T1:
1903 case CX88_BOARD_HAUPPAUGE_HVR1100:
1904 case CX88_BOARD_HAUPPAUGE_HVR1100LP:
1905 case CX88_BOARD_HAUPPAUGE_HVR3000:
1906 case CX88_BOARD_HAUPPAUGE_HVR1300:
1907 if (0 == core->i2c_rc)
1908 hauppauge_eeprom(core,eeprom);
1909 break;
1910 case CX88_BOARD_KWORLD_DVBS_100:
1911 cx_write(MO_GP0_IO, 0x000007f8);
1912 cx_write(MO_GP1_IO, 0x00000001);
1913 break;
1914 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
1915 /* GPIO0:6 is hooked to FX2 reset pin */
1916 cx_set(MO_GP0_IO, 0x00004040);
1917 cx_clear(MO_GP0_IO, 0x00000040);
1918 msleep(1000);
1919 cx_set(MO_GP0_IO, 0x00004040);
1920 /* FALLTHROUGH */
1921 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
1922 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
1923 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
1924 /* GPIO0:0 is hooked to mt352 reset pin */
1925 cx_set(MO_GP0_IO, 0x00000101);
1926 cx_clear(MO_GP0_IO, 0x00000001);
1927 msleep(1);
1928 cx_set(MO_GP0_IO, 0x00000101);
1929 if (0 == core->i2c_rc &&
1930 core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
1931 dvico_fusionhdtv_hybrid_init(core);
1932 break;
1933 case CX88_BOARD_KWORLD_DVB_T:
1934 case CX88_BOARD_DNTV_LIVE_DVB_T:
1935 cx_set(MO_GP0_IO, 0x00000707);
1936 cx_set(MO_GP2_IO, 0x00000101);
1937 cx_clear(MO_GP2_IO, 0x00000001);
1938 msleep(1);
1939 cx_clear(MO_GP0_IO, 0x00000007);
1940 cx_set(MO_GP2_IO, 0x00000101);
1941 break;
1942 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
1943 cx_write(MO_GP0_IO, 0x00080808);
1944 break;
1945 case CX88_BOARD_ATI_HDTVWONDER:
1946 if (0 == core->i2c_rc) {
1947 /* enable tuner */
1948 int i;
1949 static const u8 buffer [][2] = {
1950 {0x10,0x12},
1951 {0x13,0x04},
1952 {0x16,0x00},
1953 {0x14,0x04},
1954 {0x17,0x00}
1956 core->i2c_client.addr = 0x0a;
1958 for (i = 0; i < ARRAY_SIZE(buffer); i++)
1959 if (2 != i2c_master_send(&core->i2c_client,
1960 buffer[i],2))
1961 printk(KERN_WARNING
1962 "%s: Unable to enable "
1963 "tuner(%i).\n",
1964 core->name, i);
1966 break;
1968 if (cx88_boards[core->board].radio.type == CX88_RADIO)
1969 core->has_radio = 1;
1972 /* ------------------------------------------------------------------ */
1974 EXPORT_SYMBOL(cx88_boards);
1977 * Local variables:
1978 * c-basic-offset: 8
1979 * End:
1980 * 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