Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
[linux-2.6] / drivers / media / video / saa7134 / saa7134-cards.c
1 /*
2  *
3  * device driver for philips saa7134 based TV cards
4  * card-specific stuff.
5  *
6  * (c) 2001-04 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
26 #include "saa7134-reg.h"
27 #include "saa7134.h"
28 #include <media/v4l2-common.h>
29
30 /* commly used strings */
31 static char name_mute[]    = "mute";
32 static char name_radio[]   = "Radio";
33 static char name_tv[]      = "Television";
34 static char name_tv_mono[] = "TV (mono only)";
35 static char name_comp1[]   = "Composite1";
36 static char name_comp2[]   = "Composite2";
37 static char name_comp3[]   = "Composite3";
38 static char name_comp4[]   = "Composite4";
39 static char name_svideo[]  = "S-Video";
40
41 /* ------------------------------------------------------------------ */
42 /* board config info                                                  */
43
44 struct saa7134_board saa7134_boards[] = {
45         [SAA7134_BOARD_UNKNOWN] = {
46                 .name           = "UNKNOWN/GENERIC",
47                 .audio_clock    = 0x00187de7,
48                 .tuner_type     = TUNER_ABSENT,
49                 .radio_type     = UNSET,
50                 .tuner_addr     = ADDR_UNSET,
51                 .radio_addr     = ADDR_UNSET,
52
53                 .inputs         = {{
54                         .name = "default",
55                         .vmux = 0,
56                         .amux = LINE1,
57                 }},
58         },
59         [SAA7134_BOARD_PROTEUS_PRO] = {
60                 /* /me */
61                 .name           = "Proteus Pro [philips reference design]",
62                 .audio_clock    = 0x00187de7,
63                 .tuner_type     = TUNER_PHILIPS_PAL,
64                 .radio_type     = UNSET,
65                 .tuner_addr     = ADDR_UNSET,
66                 .radio_addr     = ADDR_UNSET,
67
68                 .inputs         = {{
69                         .name = name_comp1,
70                         .vmux = 0,
71                         .amux = LINE1,
72                 },{
73                         .name = name_tv,
74                         .vmux = 1,
75                         .amux = TV,
76                         .tv   = 1,
77                 },{
78                         .name = name_tv_mono,
79                         .vmux = 1,
80                         .amux = LINE2,
81                         .tv   = 1,
82                 }},
83                 .radio = {
84                         .name = name_radio,
85                         .amux = LINE2,
86                 },
87         },
88         [SAA7134_BOARD_FLYVIDEO3000] = {
89                 /* "Marco d'Itri" <md@Linux.IT> */
90                 .name           = "LifeView FlyVIDEO3000",
91                 .audio_clock    = 0x00200000,
92                 .tuner_type     = TUNER_PHILIPS_PAL,
93                 .radio_type     = UNSET,
94                 .tuner_addr     = ADDR_UNSET,
95                 .radio_addr     = ADDR_UNSET,
96
97                 .gpiomask       = 0xe000,
98                 .inputs         = {{
99                         .name = name_tv,
100                         .vmux = 1,
101                         .amux = TV,
102                         .gpio = 0x8000,
103                         .tv   = 1,
104                 },{
105                         .name = name_tv_mono,
106                         .vmux = 1,
107                         .amux = LINE2,
108                         .gpio = 0x0000,
109                         .tv   = 1,
110                 },{
111                         .name = name_comp1,
112                         .vmux = 0,
113                         .amux = LINE2,
114                         .gpio = 0x4000,
115                 },{
116                         .name = name_comp2,
117                         .vmux = 3,
118                         .amux = LINE2,
119                         .gpio = 0x4000,
120                 },{
121                         .name = name_svideo,
122                         .vmux = 8,
123                         .amux = LINE2,
124                         .gpio = 0x4000,
125                 }},
126                 .radio = {
127                         .name = name_radio,
128                         .amux = LINE2,
129                         .gpio = 0x2000,
130                 },
131                 .mute = {
132                         .name = name_mute,
133                         .amux = TV,
134                         .gpio = 0x8000,
135                 },
136         },
137         [SAA7134_BOARD_FLYVIDEO2000] = {
138                 /* "TC Wan" <tcwan@cs.usm.my> */
139                 .name           = "LifeView FlyVIDEO2000",
140                 .audio_clock    = 0x00200000,
141                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
142                 .radio_type     = UNSET,
143                 .tuner_addr     = ADDR_UNSET,
144                 .radio_addr     = ADDR_UNSET,
145
146                 .gpiomask       = 0xe000,
147                 .inputs         = {{
148                         .name = name_tv,
149                         .vmux = 1,
150                         .amux = LINE2,
151                         .gpio = 0x0000,
152                         .tv   = 1,
153                 },{
154                         .name = name_comp1,
155                         .vmux = 0,
156                         .amux = LINE2,
157                         .gpio = 0x4000,
158                 },{
159                         .name = name_comp2,
160                         .vmux = 3,
161                         .amux = LINE2,
162                         .gpio = 0x4000,
163                 },{
164                         .name = name_svideo,
165                         .vmux = 8,
166                         .amux = LINE2,
167                         .gpio = 0x4000,
168                 }},
169                 .radio = {
170                         .name = name_radio,
171                         .amux = LINE2,
172                         .gpio = 0x2000,
173                 },
174                 .mute = {
175                         .name = name_mute,
176                         .amux = LINE2,
177                         .gpio = 0x8000,
178                 },
179         },
180         [SAA7134_BOARD_FLYTVPLATINUM_MINI] = {
181                 /* "Arnaud Quette" <aquette@free.fr> */
182                 .name           = "LifeView FlyTV Platinum Mini",
183                 .audio_clock    = 0x00200000,
184                 .tuner_type     = TUNER_PHILIPS_TDA8290,
185                 .radio_type     = UNSET,
186                 .tuner_addr     = ADDR_UNSET,
187                 .radio_addr     = ADDR_UNSET,
188
189                 .inputs         = {{
190                         .name = name_tv,
191                         .vmux = 1,
192                         .amux = TV,
193                         .tv   = 1,
194                 },{
195                         .name = name_comp1,     /* Composite signal on S-Video input */
196                         .vmux = 0,
197                         .amux = LINE2,
198                 },{
199                         .name = name_comp2,     /* Composite input */
200                         .vmux = 3,
201                         .amux = LINE2,
202                 },{
203                         .name = name_svideo,
204                         .vmux = 8,
205                         .amux = LINE2,
206                 }},
207         },
208         [SAA7134_BOARD_FLYTVPLATINUM_FM] = {
209                 /* LifeView FlyTV Platinum FM (LR214WF) */
210                 /* "Peter Missel <peter.missel@onlinehome.de> */
211                 .name           = "LifeView FlyTV Platinum FM",
212                 .audio_clock    = 0x00200000,
213                 .tuner_type     = TUNER_PHILIPS_TDA8290,
214                 .radio_type     = UNSET,
215                 .tuner_addr     = ADDR_UNSET,
216                 .radio_addr     = ADDR_UNSET,
217
218                 .gpiomask       = 0x1E000,      /* Set GP16 and unused 15,14,13 to Output */
219                 .inputs         = {{
220                         .name = name_tv,
221                         .vmux = 1,
222                         .amux = TV,
223                         .gpio = 0x10000,        /* GP16=1 selects TV input */
224                         .tv   = 1,
225                 },{
226 /*                      .name = name_tv_mono,
227                         .vmux = 1,
228                         .amux = LINE2,
229                         .gpio = 0x0000,
230                         .tv   = 1,
231                 },{
232 */                      .name = name_comp1,     /* Composite signal on S-Video input */
233                         .vmux = 0,
234                         .amux = LINE2,
235 /*                      .gpio = 0x4000,         */
236                 },{
237                         .name = name_comp2,     /* Composite input */
238                         .vmux = 3,
239                         .amux = LINE2,
240 /*                      .gpio = 0x4000,         */
241                 },{
242                         .name = name_svideo,    /* S-Video signal on S-Video input */
243                         .vmux = 8,
244                         .amux = LINE2,
245 /*                      .gpio = 0x4000,         */
246                 }},
247                 .radio = {
248                         .name = name_radio,
249                         .amux = TV,
250                         .gpio = 0x00000,        /* GP16=0 selects FM radio antenna */
251                 },
252                 .mute = {
253                         .name = name_mute,
254                         .amux = TV,
255                         .gpio = 0x10000,
256                 },
257         },
258         [SAA7134_BOARD_EMPRESS] = {
259                 /* "Gert Vervoort" <gert.vervoort@philips.com> */
260                 .name           = "EMPRESS",
261                 .audio_clock    = 0x00187de7,
262                 .tuner_type     = TUNER_PHILIPS_PAL,
263                 .radio_type     = UNSET,
264                 .tuner_addr     = ADDR_UNSET,
265                 .radio_addr     = ADDR_UNSET,
266
267                 .inputs         = {{
268                         .name = name_comp1,
269                         .vmux = 0,
270                         .amux = LINE1,
271                 },{
272                         .name = name_svideo,
273                         .vmux = 8,
274                         .amux = LINE1,
275                 },{
276                         .name = name_tv,
277                         .vmux = 1,
278                         .amux = LINE2,
279                         .tv   = 1,
280                 }},
281                 .radio = {
282                         .name = name_radio,
283                         .amux = LINE2,
284                 },
285                 .mpeg      = SAA7134_MPEG_EMPRESS,
286                 .video_out = CCIR656,
287         },
288         [SAA7134_BOARD_MONSTERTV] = {
289                 /* "K.Ohta" <alpha292@bremen.or.jp> */
290                 .name           = "SKNet Monster TV",
291                 .audio_clock    = 0x00187de7,
292                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
293                 .radio_type     = UNSET,
294                 .tuner_addr     = ADDR_UNSET,
295                 .radio_addr     = ADDR_UNSET,
296
297                 .inputs         = {{
298                         .name = name_tv,
299                         .vmux = 1,
300                         .amux = TV,
301                         .tv   = 1,
302                 },{
303                         .name = name_comp1,
304                         .vmux = 0,
305                         .amux = LINE1,
306                 },{
307                         .name = name_svideo,
308                         .vmux = 8,
309                         .amux = LINE1,
310                 }},
311                 .radio = {
312                         .name = name_radio,
313                         .amux = LINE2,
314                 },
315         },
316         [SAA7134_BOARD_MD9717] = {
317                 .name           = "Tevion MD 9717",
318                 .audio_clock    = 0x00200000,
319                 .tuner_type     = TUNER_PHILIPS_PAL,
320                 .radio_type     = UNSET,
321                 .tuner_addr     = ADDR_UNSET,
322                 .radio_addr     = ADDR_UNSET,
323                 .inputs         = {{
324                         .name = name_tv,
325                         .vmux = 1,
326                         .amux = TV,
327                         .tv   = 1,
328                 },{
329                         /* workaround for problems with normal TV sound */
330                         .name = name_tv_mono,
331                         .vmux = 1,
332                         .amux = LINE2,
333                         .tv   = 1,
334                 },{
335                         .name = name_comp1,
336                         .vmux = 2,
337                         .amux = LINE1,
338                 },{
339                         .name = name_comp2,
340                         .vmux = 3,
341                         .amux = LINE1,
342                 },{
343                         .name = name_svideo,
344                         .vmux = 8,
345                         .amux = LINE1,
346                 }},
347                 .radio = {
348                         .name = name_radio,
349                         .amux = LINE2,
350                 },
351         },
352         [SAA7134_BOARD_TVSTATION_RDS] = {
353                 /* Typhoon TV Tuner RDS: Art.Nr. 50694 */
354                 .name           = "KNC One TV-Station RDS / Typhoon TV Tuner RDS",
355                 .audio_clock    = 0x00200000,
356                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
357                 .radio_type     = UNSET,
358                 .tuner_addr     = ADDR_UNSET,
359                 .radio_addr     = ADDR_UNSET,
360                 .tda9887_conf   = TDA9887_PRESENT,
361                 .inputs         = {{
362                         .name = name_tv,
363                         .vmux = 1,
364                         .amux = TV,
365                         .tv   = 1,
366                 },{
367                         .name = name_tv_mono,
368                         .vmux = 1,
369                         .amux   = LINE2,
370                         .tv   = 1,
371                 },{
372
373                         .name = name_svideo,
374                         .vmux = 8,
375                         .amux = LINE1,
376                 },{
377                         .name = name_comp1,
378                         .vmux = 3,
379                         .amux = LINE1,
380                 },{
381
382                         .name = "CVid over SVid",
383                         .vmux = 0,
384                         .amux = LINE1,
385                 }},
386                 .radio = {
387                         .name = name_radio,
388                         .amux = LINE2,
389                 },
390         },
391         [SAA7134_BOARD_TVSTATION_DVR] = {
392                 .name           = "KNC One TV-Station DVR",
393                 .audio_clock    = 0x00200000,
394                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
395                 .radio_type     = UNSET,
396                 .tuner_addr     = ADDR_UNSET,
397                 .radio_addr     = ADDR_UNSET,
398                 .tda9887_conf   = TDA9887_PRESENT,
399                 .gpiomask       = 0x820000,
400                 .inputs         = {{
401                         .name = name_tv,
402                         .vmux = 1,
403                         .amux = LINE2,
404                         .tv   = 1,
405                         .gpio = 0x20000,
406                 },{
407                         .name = name_svideo,
408                         .vmux = 8,
409                         .amux = LINE1,
410                         .gpio = 0x20000,
411                 },{
412                         .name = name_comp1,
413                         .vmux = 3,
414                         .amux = LINE1,
415                         .gpio = 0x20000,
416                 }},
417                 .radio          = {
418                         .name = name_radio,
419                         .amux = LINE2,
420                         .gpio = 0x20000,
421                 },
422                 .mpeg           = SAA7134_MPEG_EMPRESS,
423                 .video_out      = CCIR656,
424         },
425         [SAA7134_BOARD_CINERGY400] = {
426                 .name           = "Terratec Cinergy 400 TV",
427                 .audio_clock    = 0x00200000,
428                 .tuner_type     = TUNER_PHILIPS_PAL,
429                 .radio_type     = UNSET,
430                 .tuner_addr     = ADDR_UNSET,
431                 .radio_addr     = ADDR_UNSET,
432                 .inputs         = {{
433                         .name = name_tv,
434                         .vmux = 1,
435                         .amux = TV,
436                         .tv   = 1,
437                 },{
438                         .name = name_comp1,
439                         .vmux = 4,
440                         .amux = LINE1,
441                 },{
442                         .name = name_svideo,
443                         .vmux = 8,
444                         .amux = LINE1,
445                 },{
446                         .name = name_comp2, /* CVideo over SVideo Connector */
447                         .vmux = 0,
448                         .amux = LINE1,
449                 }}
450         },
451         [SAA7134_BOARD_MD5044] = {
452                 .name           = "Medion 5044",
453                 .audio_clock    = 0x00187de7, /* was: 0x00200000, */
454                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
455                 .radio_type     = UNSET,
456                 .tuner_addr     = ADDR_UNSET,
457                 .radio_addr     = ADDR_UNSET,
458                 .tda9887_conf   = TDA9887_PRESENT,
459                 .inputs         = {{
460                         .name = name_tv,
461                         .vmux = 1,
462                         .amux = TV,
463                         .tv   = 1,
464                 },{
465                         /* workaround for problems with normal TV sound */
466                         .name = name_tv_mono,
467                         .vmux = 1,
468                         .amux = LINE2,
469                         .tv   = 1,
470                 },{
471                         .name = name_comp1,
472                         .vmux = 0,
473                         .amux = LINE2,
474                 },{
475                         .name = name_comp2,
476                         .vmux = 3,
477                         .amux = LINE2,
478                 },{
479                         .name = name_svideo,
480                         .vmux = 8,
481                         .amux = LINE2,
482                 }},
483                 .radio = {
484                         .name = name_radio,
485                         .amux = LINE2,
486                 },
487         },
488         [SAA7134_BOARD_KWORLD] = {
489                 .name           = "Kworld/KuroutoShikou SAA7130-TVPCI",
490                 .audio_clock    = 0x00187de7,
491                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
492                 .radio_type     = UNSET,
493                 .tuner_addr     = ADDR_UNSET,
494                 .radio_addr     = ADDR_UNSET,
495                 .inputs         = {{
496                         .name = name_svideo,
497                         .vmux = 8,
498                         .amux = LINE1,
499                 },{
500                         .name = name_comp1,
501                         .vmux = 3,
502                         .amux = LINE1,
503                 },{
504                         .name = name_tv,
505                         .vmux = 1,
506                         .amux = LINE2,
507                         .tv   = 1,
508                 }},
509         },
510         [SAA7134_BOARD_CINERGY600] = {
511                 .name           = "Terratec Cinergy 600 TV",
512                 .audio_clock    = 0x00200000,
513                 .tuner_type     = TUNER_PHILIPS_PAL,
514                 .radio_type     = UNSET,
515                 .tuner_addr     = ADDR_UNSET,
516                 .radio_addr     = ADDR_UNSET,
517                 .tda9887_conf   = TDA9887_PRESENT,
518                 .inputs         = {{
519                         .name = name_tv,
520                         .vmux = 1,
521                         .amux = TV,
522                         .tv   = 1,
523                 },{
524                         .name = name_comp1,
525                         .vmux = 4,
526                         .amux = LINE1,
527                 },{
528                         .name = name_svideo,
529                         .vmux = 8,
530                         .amux = LINE1,
531                 },{
532                         .name = name_comp2, /* CVideo over SVideo Connector */
533                         .vmux = 0,
534                         .amux = LINE1,
535                 }},
536                 .radio = {
537                         .name = name_radio,
538                         .amux = LINE2,
539         },
540         },
541         [SAA7134_BOARD_MD7134] = {
542                 .name           = "Medion 7134",
543                 .audio_clock    = 0x00187de7,
544                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
545                 .radio_type     = UNSET,
546                 .tuner_addr     = ADDR_UNSET,
547                 .radio_addr     = ADDR_UNSET,
548                 .tda9887_conf   = TDA9887_PRESENT,
549                 .mpeg           = SAA7134_MPEG_DVB,
550                 .inputs = {{
551                         .name   = name_tv,
552                         .vmux   = 1,
553                         .amux   = TV,
554                         .tv     = 1,
555                 },{
556                         .name   = name_comp1,
557                         .vmux   = 0,
558                         .amux   = LINE1,
559                 },{
560                         .name   = name_svideo,
561                         .vmux   = 8,
562                         .amux   = LINE1,
563                 }},
564                 .radio = {
565                         .name   = name_radio,
566                         .amux   = LINE2,
567                 },
568         },
569         [SAA7134_BOARD_TYPHOON_90031] = {
570                 /* aka Typhoon "TV+Radio", Art.Nr 90031 */
571                 /* Tom Zoerner <tomzo at users sourceforge net> */
572                 .name           = "Typhoon TV+Radio 90031",
573                 .audio_clock    = 0x00200000,
574                 .tuner_type     = TUNER_PHILIPS_PAL,
575                 .radio_type     = UNSET,
576                 .tuner_addr     = ADDR_UNSET,
577                 .radio_addr     = ADDR_UNSET,
578                 .tda9887_conf   = TDA9887_PRESENT,
579                 .inputs         = {{
580                         .name   = name_tv,
581                         .vmux   = 1,
582                         .amux   = TV,
583                         .tv     = 1,
584                 },{
585                         .name   = name_comp1,
586                         .vmux   = 3,
587                         .amux   = LINE1,
588                 },{
589                         .name   = name_svideo,
590                         .vmux   = 8,
591                         .amux   = LINE1,
592                 }},
593                 .radio = {
594                         .name   = name_radio,
595                         .amux   = LINE2,
596                 },
597         },
598         [SAA7134_BOARD_ELSA] = {
599                 .name           = "ELSA EX-VISION 300TV",
600                 .audio_clock    = 0x00187de7,
601                 .tuner_type     = TUNER_HITACHI_NTSC,
602                 .radio_type     = UNSET,
603                 .tuner_addr     = ADDR_UNSET,
604                 .radio_addr     = ADDR_UNSET,
605                 .inputs         = {{
606                         .name = name_svideo,
607                         .vmux = 8,
608                         .amux = LINE1,
609                 },{
610                         .name   = name_comp1,
611                         .vmux   = 0,
612                         .amux   = LINE1,
613                 },{
614                         .name = name_tv,
615                         .vmux = 4,
616                         .amux = LINE2,
617                         .tv   = 1,
618                 }},
619         },
620         [SAA7134_BOARD_ELSA_500TV] = {
621                 .name           = "ELSA EX-VISION 500TV",
622                 .audio_clock    = 0x00187de7,
623                 .tuner_type     = TUNER_HITACHI_NTSC,
624                 .radio_type     = UNSET,
625                 .tuner_addr     = ADDR_UNSET,
626                 .radio_addr     = ADDR_UNSET,
627                 .inputs         = {{
628                         .name = name_svideo,
629                         .vmux = 7,
630                         .amux = LINE1,
631                 },{
632                         .name = name_tv,
633                         .vmux = 8,
634                         .amux = TV,
635                         .tv   = 1,
636                 },{
637                         .name = name_tv_mono,
638                         .vmux = 8,
639                         .amux = LINE2,
640                         .tv   = 1,
641                 }},
642         },
643         [SAA7134_BOARD_ASUSTeK_TVFM7134] = {
644                 .name           = "ASUS TV-FM 7134",
645                 .audio_clock    = 0x00187de7,
646                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
647                 .radio_type     = UNSET,
648                 .tuner_addr     = ADDR_UNSET,
649                 .radio_addr     = ADDR_UNSET,
650                 .tda9887_conf   = TDA9887_PRESENT,
651                 .inputs         = {{
652                         .name = name_tv,
653                         .vmux = 1,
654                         .amux = TV,
655                         .tv   = 1,
656                 },{
657                         .name = name_comp1,
658                         .vmux = 4,
659                         .amux = LINE2,
660                 },{
661                         .name = name_svideo,
662                         .vmux = 6,
663                         .amux = LINE2,
664                 }},
665                 .radio = {
666                         .name = name_radio,
667                         .amux = LINE1,
668                 },
669         },
670         [SAA7134_BOARD_ASUSTeK_TVFM7135] = {
671                 .name           = "ASUS TV-FM 7135",
672                 .audio_clock    = 0x00187de7,
673                 .tuner_type     = TUNER_PHILIPS_TDA8290,
674                 .radio_type     = UNSET,
675                 .tuner_addr     = ADDR_UNSET,
676                 .radio_addr     = ADDR_UNSET,
677                 .gpiomask       = 0x200000,
678                 .inputs         = {{
679                         .name = name_tv,
680                         .vmux = 1,
681                         .amux = TV,
682                         .gpio = 0x0000,
683                         .tv   = 1,
684                 },{
685                         .name = name_comp1,
686                         .vmux = 4,
687                         .amux = LINE2,
688                         .gpio = 0x0000,
689                 },{
690                         .name = name_svideo,
691                         .vmux = 6,
692                         .amux = LINE2,
693                         .gpio = 0x0000,
694                 }},
695                 .radio = {
696                         .name = name_radio,
697                         .amux = TV,
698                         .gpio = 0x200000,
699                 },
700                 .mute  = {
701                         .name = name_mute,
702                         .gpio = 0x0000,
703                 },
704
705         },
706         [SAA7134_BOARD_VA1000POWER] = {
707                 .name           = "AOPEN VA1000 POWER",
708                 .audio_clock    = 0x00187de7,
709                 .tuner_type     = TUNER_PHILIPS_NTSC,
710                 .radio_type     = UNSET,
711                 .tuner_addr     = ADDR_UNSET,
712                 .radio_addr     = ADDR_UNSET,
713                 .inputs         = {{
714                         .name = name_svideo,
715                         .vmux = 8,
716                         .amux = LINE1,
717                 },{
718                         .name = name_comp1,
719                         .vmux = 3,
720                         .amux = LINE1,
721                 },{
722                         .name = name_tv,
723                         .vmux = 1,
724                         .amux = LINE2,
725                         .tv   = 1,
726                 }},
727         },
728         [SAA7134_BOARD_10MOONSTVMASTER] = {
729                 /* "lilicheng" <llc@linuxfans.org> */
730                 .name           = "10MOONS PCI TV CAPTURE CARD",
731                 .audio_clock    = 0x00200000,
732                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
733                 .radio_type     = UNSET,
734                 .tuner_addr     = ADDR_UNSET,
735                 .radio_addr     = ADDR_UNSET,
736                 .gpiomask       = 0xe000,
737                 .inputs         = {{
738                         .name = name_tv,
739                         .vmux = 1,
740                         .amux = LINE2,
741                         .gpio = 0x0000,
742                         .tv   = 1,
743                 },{
744                         .name = name_comp1,
745                         .vmux = 0,
746                         .amux = LINE2,
747                         .gpio = 0x4000,
748                 },{
749                         .name = name_comp2,
750                         .vmux = 3,
751                         .amux = LINE2,
752                         .gpio = 0x4000,
753                 },{
754                         .name = name_svideo,
755                         .vmux = 8,
756                         .amux = LINE2,
757                         .gpio = 0x4000,
758                 }},
759                 .radio = {
760                         .name = name_radio,
761                         .amux = LINE2,
762                         .gpio = 0x2000,
763                 },
764                 .mute = {
765                         .name = name_mute,
766                         .amux = LINE2,
767                         .gpio = 0x8000,
768                 },
769         },
770         [SAA7134_BOARD_BMK_MPEX_NOTUNER] = {
771                 /* "Andrew de Quincey" <adq@lidskialf.net> */
772                 .name           = "BMK MPEX No Tuner",
773                 .audio_clock    = 0x200000,
774                 .tuner_type     = TUNER_ABSENT,
775                 .radio_type     = UNSET,
776                 .tuner_addr     = ADDR_UNSET,
777                 .radio_addr     = ADDR_UNSET,
778                 .inputs         = {{
779                         .name = name_comp1,
780                         .vmux = 4,
781                         .amux = LINE1,
782                 },{
783                         .name = name_comp2,
784                         .vmux = 3,
785                         .amux = LINE1,
786                 },{
787                         .name = name_comp3,
788                         .vmux = 0,
789                         .amux = LINE1,
790                 },{
791                         .name = name_comp4,
792                         .vmux = 1,
793                         .amux = LINE1,
794                 },{
795                         .name = name_svideo,
796                         .vmux = 8,
797                         .amux = LINE1,
798                 }},
799                 .mpeg      = SAA7134_MPEG_EMPRESS,
800                 .video_out = CCIR656,
801         },
802         [SAA7134_BOARD_VIDEOMATE_TV] = {
803                 .name           = "Compro VideoMate TV",
804                 .audio_clock    = 0x00187de7,
805                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
806                 .radio_type     = UNSET,
807                 .tuner_addr     = ADDR_UNSET,
808                 .radio_addr     = ADDR_UNSET,
809                 .inputs         = {{
810                         .name = name_svideo,
811                         .vmux = 8,
812                         .amux = LINE1,
813                 },{
814                         .name = name_comp1,
815                         .vmux = 3,
816                         .amux = LINE1,
817                 },{
818                         .name = name_tv,
819                         .vmux = 1,
820                         .amux = LINE2,
821                         .tv   = 1,
822                 }},
823         },
824         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS] = {
825                 .name           = "Compro VideoMate TV Gold+",
826                 .audio_clock    = 0x00187de7,
827                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
828                 .gpiomask       = 0x800c0000,
829                 .radio_type     = UNSET,
830                 .tuner_addr     = ADDR_UNSET,
831                 .radio_addr     = ADDR_UNSET,
832                 .inputs         = {{
833                         .name = name_svideo,
834                         .vmux = 8,
835                         .amux = LINE1,
836                         .gpio = 0x06c00012,
837                 },{
838                         .name = name_comp1,
839                         .vmux = 3,
840                         .amux = LINE1,
841                         .gpio = 0x0ac20012,
842                 },{
843                         .name = name_tv,
844                         .vmux = 1,
845                         .amux = LINE2,
846                         .gpio = 0x08c20012,
847                         .tv   = 1,
848                 }},                             /* radio and probably mute is missing */
849         },
850         [SAA7134_BOARD_CRONOS_PLUS] = {
851                 /*
852                 gpio pins:
853                         0  .. 3   BASE_ID
854                         4  .. 7   PROTECT_ID
855                         8  .. 11  USER_OUT
856                         12 .. 13  USER_IN
857                         14 .. 15  VIDIN_SEL
858                 */
859                 .name           = "Matrox CronosPlus",
860                 .tuner_type     = TUNER_ABSENT,
861                 .radio_type     = UNSET,
862                 .tuner_addr     = ADDR_UNSET,
863                 .radio_addr     = ADDR_UNSET,
864                 .gpiomask       = 0xcf00,
865                 .inputs         = {{
866                         .name = name_comp1,
867                         .vmux = 0,
868                         .gpio = 2 << 14,
869                 },{
870                         .name = name_comp2,
871                         .vmux = 0,
872                         .gpio = 1 << 14,
873                 },{
874                         .name = name_comp3,
875                         .vmux = 0,
876                         .gpio = 0 << 14,
877                 },{
878                         .name = name_comp4,
879                         .vmux = 0,
880                         .gpio = 3 << 14,
881                 },{
882                         .name = name_svideo,
883                         .vmux = 8,
884                         .gpio = 2 << 14,
885                 }},
886         },
887         [SAA7134_BOARD_MD2819] = {
888                 .name           = "AverMedia M156 / Medion 2819",
889                 .audio_clock    = 0x00187de7,
890                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
891                 .radio_type     = UNSET,
892                 .tuner_addr     = ADDR_UNSET,
893                 .radio_addr     = ADDR_UNSET,
894                 .tda9887_conf   = TDA9887_PRESENT,
895                 .inputs         = {{
896                         .name = name_tv,
897                         .vmux = 1,
898                         .amux = TV,
899                         .tv   = 1,
900                 },{
901                         .name = name_comp1,
902                         .vmux = 0,
903                         .amux = LINE2,
904                 },{
905                         .name = name_comp2,
906                         .vmux = 3,
907                         .amux = LINE2,
908                 },{
909                         .name = name_svideo,
910                         .vmux = 8,
911                         .amux = LINE2,
912                 }},
913                 .radio = {
914                         .name = name_radio,
915                         .amux = LINE2,
916                 },
917         },
918         [SAA7134_BOARD_BMK_MPEX_TUNER] = {
919                 /* "Greg Wickham <greg.wickham@grangenet.net> */
920                 .name           = "BMK MPEX Tuner",
921                 .audio_clock    = 0x200000,
922                 .tuner_type     = TUNER_PHILIPS_PAL,
923                 .radio_type     = UNSET,
924                 .tuner_addr     = ADDR_UNSET,
925                 .radio_addr     = ADDR_UNSET,
926                 .inputs         = {{
927                         .name = name_comp1,
928                         .vmux = 1,
929                         .amux = LINE1,
930                 },{
931                         .name = name_svideo,
932                         .vmux = 8,
933                         .amux = LINE1,
934                 },{
935                         .name = name_tv,
936                         .vmux = 3,
937                         .amux = TV,
938                         .tv   = 1,
939                 }},
940                 .mpeg      = SAA7134_MPEG_EMPRESS,
941                 .video_out = CCIR656,
942         },
943         [SAA7134_BOARD_ASUSTEK_TVFM7133] = {
944                 .name           = "ASUS TV-FM 7133",
945                 .audio_clock    = 0x00187de7,
946                 /* probably wrong, the 7133 one is the NTSC version ...
947                 * .tuner_type  = TUNER_PHILIPS_FM1236_MK3 */
948                 .tuner_type     = TUNER_LG_NTSC_NEW_TAPC,
949                 .radio_type     = UNSET,
950                 .tuner_addr     = ADDR_UNSET,
951                 .radio_addr     = ADDR_UNSET,
952                 .tda9887_conf   = TDA9887_PRESENT,
953                 .inputs         = {{
954                         .name = name_tv,
955                         .vmux = 1,
956                         .amux = TV,
957                         .tv   = 1,
958
959                 },{
960                         .name = name_comp1,
961                         .vmux = 4,
962                         .amux = LINE2,
963                 },{
964                         .name = name_svideo,
965                         .vmux = 6,
966                         .amux = LINE2,
967                 }},
968                 .radio = {
969                         .name = name_radio,
970                         .amux = LINE1,
971                 },
972         },
973         [SAA7134_BOARD_PINNACLE_PCTV_STEREO] = {
974                 .name           = "Pinnacle PCTV Stereo (saa7134)",
975                 .audio_clock    = 0x00187de7,
976                 .tuner_type     = TUNER_MT2032,
977                 .radio_type     = UNSET,
978                 .tuner_addr     = ADDR_UNSET,
979                 .radio_addr     = ADDR_UNSET,
980                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_ACTIVE,
981                 .inputs         = {{
982                         .name = name_tv,
983                         .vmux = 3,
984                         .amux = TV,
985                         .tv   = 1,
986                 },{
987                         .name = name_comp1,
988                         .vmux = 0,
989                         .amux = LINE2,
990                 },{
991                         .name = name_comp2,
992                         .vmux = 1,
993                         .amux = LINE2,
994                 },{
995                         .name = name_svideo,
996                         .vmux = 8,
997                         .amux = LINE2,
998                 }},
999         },
1000         [SAA7134_BOARD_MANLI_MTV002] = {
1001                 /* Ognjen Nastic <ognjen@logosoft.ba> */
1002                 .name           = "Manli MuchTV M-TV002/Behold TV 403 FM",
1003                 .audio_clock    = 0x00200000,
1004                 .tuner_type     = TUNER_PHILIPS_PAL,
1005                 .radio_type     = UNSET,
1006                 .tuner_addr     = ADDR_UNSET,
1007                 .radio_addr     = ADDR_UNSET,
1008                 .inputs         = {{
1009                         .name = name_svideo,
1010                         .vmux = 8,
1011                         .amux = LINE1,
1012                 },{
1013                         .name   = name_comp1,
1014                         .vmux   = 1,
1015                         .amux   = LINE1,
1016                 },{
1017                         .name = name_tv,
1018                         .vmux = 3,
1019                         .amux = LINE2,
1020                         .tv   = 1,
1021                 }},
1022                 .radio = {
1023                         .name = name_radio,
1024                         .amux = LINE2,
1025                 },
1026         },
1027         [SAA7134_BOARD_MANLI_MTV001] = {
1028                 /* Ognjen Nastic <ognjen@logosoft.ba> UNTESTED */
1029                 .name           = "Manli MuchTV M-TV001/Behold TV 401",
1030                 .audio_clock    = 0x00200000,
1031                 .tuner_type     = TUNER_PHILIPS_PAL,
1032                 .radio_type     = UNSET,
1033                 .tuner_addr     = ADDR_UNSET,
1034                 .radio_addr     = ADDR_UNSET,
1035                 .inputs         = {{
1036                         .name = name_svideo,
1037                         .vmux = 8,
1038                         .amux = LINE1,
1039                 },{
1040                         .name = name_comp1,
1041                         .vmux = 1,
1042                         .amux = LINE1,
1043                 },{
1044                         .name = name_tv,
1045                         .vmux = 3,
1046                         .amux = LINE2,
1047                         .tv   = 1,
1048                 }},
1049                 .mute = {
1050                         .name = name_mute,
1051                         .amux = LINE1,
1052                 },
1053         },
1054         [SAA7134_BOARD_TG3000TV] = {
1055                 /* TransGear 3000TV */
1056                 .name           = "Nagase Sangyo TransGear 3000TV",
1057                 .audio_clock    = 0x00187de7,
1058                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1059                 .radio_type     = UNSET,
1060                 .tuner_addr     = ADDR_UNSET,
1061                 .radio_addr     = ADDR_UNSET,
1062                 .inputs         = {{
1063                         .name = name_tv,
1064                         .vmux = 1,
1065                         .amux = LINE2,
1066                         .tv   = 1,
1067                 },{
1068                         .name = name_comp1,
1069                         .vmux = 3,
1070                         .amux = LINE2,
1071                 },{
1072                         .name = name_svideo,
1073                         .vmux = 8,
1074                         .amux = LINE2,
1075                 }},
1076         },
1077         [SAA7134_BOARD_ECS_TVP3XP] = {
1078                 .name           = "Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) ",
1079                 .audio_clock    = 0x187de7,  /* xtal 32.1 MHz */
1080                 .tuner_type     = TUNER_PHILIPS_PAL,
1081                 .radio_type     = UNSET,
1082                 .tuner_addr     = ADDR_UNSET,
1083                 .radio_addr     = ADDR_UNSET,
1084                 .inputs         = {{
1085                         .name   = name_tv,
1086                         .vmux   = 1,
1087                         .amux   = TV,
1088                         .tv     = 1,
1089                 },{
1090                         .name   = name_tv_mono,
1091                         .vmux   = 1,
1092                         .amux   = LINE2,
1093                         .tv     = 1,
1094                 },{
1095                         .name   = name_comp1,
1096                         .vmux   = 3,
1097                         .amux   = LINE1,
1098                 },{
1099                         .name   = name_svideo,
1100                         .vmux   = 8,
1101                         .amux   = LINE1,
1102                 },{
1103                         .name   = "CVid over SVid",
1104                         .vmux   = 0,
1105                         .amux   = LINE1,
1106                 }},
1107                 .radio = {
1108                         .name   = name_radio,
1109                         .amux   = LINE2,
1110                 },
1111         },
1112         [SAA7134_BOARD_ECS_TVP3XP_4CB5] = {
1113                 .name           = "Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM)",
1114                 .audio_clock    = 0x187de7,
1115                 .tuner_type     = TUNER_PHILIPS_NTSC,
1116                 .radio_type     = UNSET,
1117                 .tuner_addr     = ADDR_UNSET,
1118                 .radio_addr     = ADDR_UNSET,
1119                 .inputs         = {{
1120                         .name   = name_tv,
1121                         .vmux   = 1,
1122                         .amux   = TV,
1123                         .tv     = 1,
1124                 },{
1125                         .name   = name_tv_mono,
1126                         .vmux   = 1,
1127                         .amux   = LINE2,
1128                         .tv     = 1,
1129                 },{
1130                         .name   = name_comp1,
1131                         .vmux   = 3,
1132                         .amux   = LINE1,
1133                 },{
1134                         .name   = name_svideo,
1135                         .vmux   = 8,
1136                         .amux   = LINE1,
1137                 },{
1138                         .name   = "CVid over SVid",
1139                         .vmux   = 0,
1140                         .amux   = LINE1,
1141                 }},
1142                 .radio = {
1143                         .name   = name_radio,
1144                         .amux   = LINE2,
1145                 },
1146         },
1147         [SAA7134_BOARD_AVACSSMARTTV] = {
1148                 /* Roman Pszonczenko <romka@kolos.math.uni.lodz.pl> */
1149                 .name           = "AVACS SmartTV",
1150                 .audio_clock    = 0x00187de7,
1151                 .tuner_type     = TUNER_PHILIPS_PAL,
1152                 .radio_type     = UNSET,
1153                 .tuner_addr     = ADDR_UNSET,
1154                 .radio_addr     = ADDR_UNSET,
1155                 .inputs         = {{
1156                         .name = name_tv,
1157                         .vmux = 1,
1158                         .amux = TV,
1159                         .tv   = 1,
1160                 },{
1161                         .name = name_tv_mono,
1162                         .vmux = 1,
1163                         .amux = LINE2,
1164                         .tv   = 1,
1165                 },{
1166                         .name = name_comp1,
1167                         .vmux = 0,
1168                         .amux = LINE2,
1169                 },{
1170                         .name = name_comp2,
1171                         .vmux = 3,
1172                         .amux = LINE2,
1173                 },{
1174                         .name = name_svideo,
1175                         .vmux = 8,
1176                         .amux = LINE2,
1177                 }},
1178                 .radio = {
1179                         .name = name_radio,
1180                         .amux = LINE2,
1181                         .gpio = 0x200000,
1182                 },
1183         },
1184         [SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER] = {
1185                 /* Michael Smith <msmith@cbnco.com> */
1186                 .name           = "AVerMedia DVD EZMaker",
1187                 .audio_clock    = 0x00187de7,
1188                 .tuner_type     = TUNER_ABSENT,
1189                 .radio_type     = UNSET,
1190                 .tuner_addr     = ADDR_UNSET,
1191                 .radio_addr     = ADDR_UNSET,
1192                 .inputs         = {{
1193                         .name = name_comp1,
1194                         .vmux = 3,
1195                 },{
1196                         .name = name_svideo,
1197                         .vmux = 8,
1198                 }},
1199         },
1200         [SAA7134_BOARD_NOVAC_PRIMETV7133] = {
1201                 /* toshii@netbsd.org */
1202                 .name           = "Noval Prime TV 7133",
1203                 .audio_clock    = 0x00200000,
1204                 .tuner_type     = TUNER_ALPS_TSBH1_NTSC,
1205                 .radio_type     = UNSET,
1206                 .tuner_addr     = ADDR_UNSET,
1207                 .radio_addr     = ADDR_UNSET,
1208                 .inputs         = {{
1209                         .name = name_comp1,
1210                         .vmux = 3,
1211                 },{
1212                         .name = name_tv,
1213                         .vmux = 1,
1214                         .amux = TV,
1215                         .tv   = 1,
1216                 },{
1217                         .name = name_svideo,
1218                         .vmux = 8,
1219                 }},
1220         },
1221         [SAA7134_BOARD_AVERMEDIA_STUDIO_305] = {
1222                 .name           = "AverMedia AverTV Studio 305",
1223                 .audio_clock    = 0x00187de7,
1224                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1225                 .radio_type     = UNSET,
1226                 .tuner_addr     = ADDR_UNSET,
1227                 .radio_addr     = ADDR_UNSET,
1228                 .tda9887_conf   = TDA9887_PRESENT,
1229                 .inputs         = {{
1230                         .name = name_tv,
1231                         .vmux = 1,
1232                         .amux = LINE2,
1233                         .tv   = 1,
1234                 },{
1235                         .name = name_comp1,
1236                         .vmux = 0,
1237                         .amux = LINE2,
1238                 },{
1239                         .name = name_comp2,
1240                         .vmux = 3,
1241                         .amux = LINE2,
1242                 },{
1243                         .name = name_svideo,
1244                         .vmux = 8,
1245                         .amux = LINE2,
1246                 }},
1247                 .radio = {
1248                         .name = name_radio,
1249                         .amux = LINE2,
1250                 },
1251                 .mute = {
1252                         .name = name_mute,
1253                         .amux = LINE1,
1254                 },
1255         },
1256         [SAA7134_BOARD_UPMOST_PURPLE_TV] = {
1257                 .name           = "UPMOST PURPLE TV",
1258                 .audio_clock    = 0x00187de7,
1259                 .tuner_type     = TUNER_PHILIPS_FM1236_MK3,
1260                 .radio_type     = UNSET,
1261                 .tuner_addr     = ADDR_UNSET,
1262                 .radio_addr     = ADDR_UNSET,
1263                 .tda9887_conf   = TDA9887_PRESENT,
1264                 .inputs         = {{
1265                         .name = name_tv,
1266                         .vmux = 7,
1267                         .amux = TV,
1268                         .tv   = 1,
1269                 },{
1270                         .name = name_svideo,
1271                         .vmux = 7,
1272                         .amux = LINE1,
1273                 }},
1274         },
1275         [SAA7134_BOARD_ITEMS_MTV005] = {
1276                 /* Norman Jonas <normanjonas@arcor.de> */
1277                 .name           = "Items MuchTV Plus / IT-005",
1278                 .audio_clock    = 0x00187de7,
1279                 .tuner_type     = TUNER_PHILIPS_PAL,
1280                 .radio_type     = UNSET,
1281                 .tuner_addr     = ADDR_UNSET,
1282                 .radio_addr     = ADDR_UNSET,
1283                 .inputs         = {{
1284                         .name = name_tv,
1285                         .vmux = 3,
1286                         .amux = TV,
1287                         .tv   = 1,
1288                 },{
1289                         .name   = name_comp1,
1290                         .vmux   = 1,
1291                         .amux   = LINE1,
1292                 },{
1293                         .name = name_svideo,
1294                         .vmux = 8,
1295                         .amux = LINE1,
1296                 }},
1297                 .radio = {
1298                         .name = name_radio,
1299                         .amux = LINE2,
1300                 },
1301         },
1302         [SAA7134_BOARD_CINERGY200] = {
1303                 .name           = "Terratec Cinergy 200 TV",
1304                 .audio_clock    = 0x00200000,
1305                 .tuner_type     = TUNER_PHILIPS_PAL,
1306                 .radio_type     = UNSET,
1307                 .tuner_addr     = ADDR_UNSET,
1308                 .radio_addr     = ADDR_UNSET,
1309                 .inputs         = {{
1310                         .name = name_tv,
1311                         .vmux = 1,
1312                         .amux = LINE2,
1313                         .tv   = 1,
1314                 },{
1315                         .name = name_comp1,
1316                         .vmux = 4,
1317                         .amux = LINE1,
1318                 },{
1319                         .name = name_svideo,
1320                         .vmux = 8,
1321                         .amux = LINE1,
1322                 },{
1323                         .name = name_comp2, /* CVideo over SVideo Connector */
1324                         .vmux = 0,
1325                         .amux = LINE1,
1326                 }},
1327                 .mute = {
1328                         .name = name_mute,
1329                         .amux = LINE2,
1330                 },
1331         },
1332         [SAA7134_BOARD_VIDEOMATE_TV_PVR] = {
1333                 /* Alain St-Denis <alain@topaze.homeip.net> */
1334                 .name           = "Compro VideoMate TV PVR/FM",
1335                 .audio_clock    = 0x00187de7,
1336                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1337                 .radio_type     = UNSET,
1338                 .tuner_addr     = ADDR_UNSET,
1339                 .radio_addr     = ADDR_UNSET,
1340                 .gpiomask       = 0x808c0080,
1341                 .inputs         = {{
1342                         .name = name_svideo,
1343                         .vmux = 8,
1344                         .amux = LINE1,
1345                         .gpio = 0x00080,
1346                 },{
1347                         .name = name_comp1,
1348                         .vmux = 3,
1349                         .amux = LINE1,
1350                         .gpio = 0x00080,
1351                 },{
1352                         .name = name_tv,
1353                         .vmux = 1,
1354                         .amux = LINE2_LEFT,
1355                         .tv   = 1,
1356                         .gpio = 0x00080,
1357                 }},
1358                 .radio = {
1359                         .name = name_radio,
1360                         .amux = LINE2,
1361                         .gpio = 0x80000,
1362                 },
1363                 .mute = {
1364                         .name = name_mute,
1365                         .amux = LINE2,
1366                         .gpio = 0x40000,
1367                 },
1368         },
1369         [SAA7134_BOARD_SABRENT_SBTTVFM] = {
1370                 /* Michael Rodriguez-Torrent <mrtorrent@asu.edu> */
1371                 .name           = "Sabrent SBT-TVFM (saa7130)",
1372                 .audio_clock    = 0x00187de7,
1373                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1374                 .radio_type     = UNSET,
1375                 .tuner_addr     = ADDR_UNSET,
1376                 .radio_addr     = ADDR_UNSET,
1377                 .inputs         = {{
1378                         .name = name_comp1,
1379                         .vmux = 1,
1380                         .amux = LINE1,
1381                 },{
1382                         .name = name_tv,
1383                         .vmux = 3,
1384                         .amux = LINE2,
1385                         .tv   = 1,
1386                 },{
1387                         .name = name_svideo,
1388                         .vmux = 8,
1389                         .amux = LINE1,
1390                 }},
1391                 .radio = {
1392                         .name   = name_radio,
1393                         .amux   = LINE2,
1394                 },
1395         },
1396         [SAA7134_BOARD_ZOLID_XPERT_TV7134] = {
1397                 /* Helge Jensen <helge.jensen@slog.dk> */
1398                 .name           = ":Zolid Xpert TV7134",
1399                 .audio_clock    = 0x00187de7,
1400                 .tuner_type     = TUNER_PHILIPS_NTSC,
1401                 .radio_type     = UNSET,
1402                 .tuner_addr     = ADDR_UNSET,
1403                 .radio_addr     = ADDR_UNSET,
1404                 .inputs         = {{
1405                         .name = name_svideo,
1406                         .vmux = 8,
1407                         .amux = LINE1,
1408                 },{
1409                         .name = name_comp1,
1410                         .vmux = 3,
1411                         .amux = LINE1,
1412                 },{
1413                         .name = name_tv,
1414                         .vmux = 1,
1415                         .amux = LINE2,
1416                         .tv   = 1,
1417                 }},
1418         },
1419         [SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE] = {
1420                 /* "Matteo Az" <matte.az@nospam.libero.it> ;-) */
1421                 .name           = "Empire PCI TV-Radio LE",
1422                 .audio_clock    = 0x00187de7,
1423                 .tuner_type     = TUNER_PHILIPS_PAL,
1424                 .radio_type     = UNSET,
1425                 .tuner_addr     = ADDR_UNSET,
1426                 .radio_addr     = ADDR_UNSET,
1427                 .gpiomask       = 0x4000,
1428                 .inputs         = {{
1429                         .name = name_tv_mono,
1430                         .vmux = 1,
1431                         .amux = LINE2,
1432                         .gpio = 0x8000,
1433                         .tv   = 1,
1434                 },{
1435                         .name = name_comp1,
1436                         .vmux = 3,
1437                         .amux = LINE1,
1438                         .gpio = 0x8000,
1439                 },{
1440                         .name = name_svideo,
1441                         .vmux = 6,
1442                         .amux = LINE1,
1443                         .gpio = 0x8000,
1444                 }},
1445                 .radio = {
1446                         .name = name_radio,
1447                         .amux = LINE1,
1448                         .gpio = 0x8000,
1449                 },
1450                 .mute = {
1451                         .name = name_mute,
1452                         .amux = TV,
1453                         .gpio =0x8000,
1454                 }
1455         },
1456         [SAA7134_BOARD_AVERMEDIA_STUDIO_307] = {
1457                 /*
1458                 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
1459                 Lots of thanks to Andrey Zolotarev <zolotarev_andrey@mail.ru>
1460                 */
1461                 .name           = "Avermedia AVerTV Studio 307",
1462                 .audio_clock    = 0x00187de7,
1463                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1464                 .radio_type     = UNSET,
1465                 .tuner_addr     = ADDR_UNSET,
1466                 .radio_addr     = ADDR_UNSET,
1467                 .tda9887_conf   = TDA9887_PRESENT,
1468                 .gpiomask       = 0x03,
1469                 .inputs         = {{
1470                         .name = name_tv,
1471                         .vmux = 1,
1472                         .amux = TV,
1473                         .tv   = 1,
1474                         .gpio = 0x00,
1475                 },{
1476                         .name = name_comp1,
1477                         .vmux = 0,
1478                         .amux = LINE2,
1479                         .gpio = 0x00,
1480                 },{
1481                         .name = name_comp2,
1482                         .vmux = 3,
1483                         .amux = LINE2,
1484                         .gpio = 0x00,
1485                 },{
1486                         .name = name_svideo,
1487                         .vmux = 8,
1488                         .amux = LINE2,
1489                         .gpio = 0x00,
1490                 }},
1491                 .radio = {
1492                         .name = name_radio,
1493                         .amux = LINE1,
1494                         .gpio = 0x01,
1495                 },
1496                 .mute  = {
1497                         .name = name_mute,
1498                         .amux = LINE1,
1499                         .gpio = 0x00,
1500                 },
1501         },
1502         [SAA7134_BOARD_AVERMEDIA_GO_007_FM] = {
1503                 .name           = "Avermedia AVerTV GO 007 FM",
1504                 .audio_clock    = 0x00187de7,
1505                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1506                 .radio_type     = UNSET,
1507                 .tuner_addr     = ADDR_UNSET,
1508                 .radio_addr     = ADDR_UNSET,
1509                 .gpiomask       = 0x00300003,
1510                 /* .gpiomask       = 0x8c240003, */
1511                 .inputs         = {{
1512                         .name = name_tv,
1513                         .vmux = 1,
1514                         .amux = TV,
1515                         .tv   = 1,
1516                         .gpio = 0x01,
1517                 },{
1518                         .name = name_comp1,
1519                         .vmux = 0,
1520                         .amux = LINE2,
1521                         .gpio = 0x02,
1522                 },{
1523                         .name = name_svideo,
1524                         .vmux = 6,
1525                         .amux = LINE2,
1526                         .gpio = 0x02,
1527                 }},
1528                 .radio = {
1529                         .name = name_radio,
1530                         .amux = LINE1,
1531                         .gpio = 0x00300001,
1532                 },
1533                 .mute = {
1534                         .name = name_mute,
1535                         .amux = TV,
1536                         .gpio = 0x01,
1537                 },
1538         },
1539         [SAA7134_BOARD_AVERMEDIA_CARDBUS] = {
1540                 /* Kees.Blom@cwi.nl */
1541                 .name           = "AVerMedia Cardbus TV/Radio (E500)",
1542                 .audio_clock    = 0x187de7,
1543                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1544                 .radio_type     = UNSET,
1545                 .tuner_addr     = ADDR_UNSET,
1546                 .radio_addr     = ADDR_UNSET,
1547                 .inputs         = {{
1548                         .name = name_tv,
1549                         .vmux = 1,
1550                         .amux = TV,
1551                         .tv   = 1,
1552                 },{
1553                         .name = name_comp1,
1554                         .vmux = 3,
1555                         .amux = LINE2,
1556                 },{
1557                         .name = name_svideo,
1558                         .vmux = 8,
1559                         .amux = LINE1,
1560                 }},
1561                 .radio = {
1562                         .name = name_radio,
1563                         .amux = LINE1,
1564                 },
1565         },
1566         [SAA7134_BOARD_CINERGY400_CARDBUS] = {
1567                 .name           = "Terratec Cinergy 400 mobile",
1568                 .audio_clock    = 0x187de7,
1569                 .tuner_type     = TUNER_ALPS_TSBE5_PAL,
1570                 .radio_type     = UNSET,
1571                 .tuner_addr     = ADDR_UNSET,
1572                 .radio_addr     = ADDR_UNSET,
1573                 .tda9887_conf   = TDA9887_PRESENT,
1574                 .inputs         = {{
1575                         .name = name_tv,
1576                         .vmux = 1,
1577                         .amux = TV,
1578                         .tv   = 1,
1579                 },{
1580                         .name = name_tv_mono,
1581                         .vmux = 1,
1582                         .amux = LINE2,
1583                         .tv   = 1,
1584                 },{
1585                         .name = name_comp1,
1586                         .vmux = 3,
1587                         .amux = LINE1,
1588                 },{
1589                         .name = name_svideo,
1590                         .vmux = 8,
1591                         .amux = LINE1,
1592                 }},
1593         },
1594         [SAA7134_BOARD_CINERGY600_MK3] = {
1595                 .name           = "Terratec Cinergy 600 TV MK3",
1596                 .audio_clock    = 0x00200000,
1597                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1598                 .radio_type     = UNSET,
1599                 .tuner_addr     = ADDR_UNSET,
1600                 .radio_addr     = ADDR_UNSET,
1601                 .tda9887_conf   = TDA9887_PRESENT,
1602                 .inputs         = {{
1603                         .name = name_tv,
1604                         .vmux = 1,
1605                         .amux = TV,
1606                         .tv   = 1,
1607                 },{
1608                         .name = name_comp1,
1609                         .vmux = 4,
1610                         .amux = LINE1,
1611                 },{
1612                         .name = name_svideo,
1613                         .vmux = 8,
1614                         .amux = LINE1,
1615                 },{
1616                         .name = name_comp2, /* CVideo over SVideo Connector */
1617                         .vmux = 0,
1618                         .amux = LINE1,
1619                 }},
1620                 .radio = {
1621                         .name = name_radio,
1622                         .amux = LINE2,
1623                 },
1624         },
1625         [SAA7134_BOARD_VIDEOMATE_GOLD_PLUS] = {
1626                 /* Dylan Walkden <dylan_walkden@hotmail.com> */
1627                 .name           = "Compro VideoMate Gold+ Pal",
1628                 .audio_clock    = 0x00187de7,
1629                 .tuner_type     = TUNER_PHILIPS_PAL,
1630                 .radio_type     = UNSET,
1631                 .tuner_addr     = ADDR_UNSET,
1632                 .radio_addr     = ADDR_UNSET,
1633                 .gpiomask       = 0x1ce780,
1634                 .inputs         = {{
1635                         .name = name_svideo,
1636                         .vmux = 0,              /* CVideo over SVideo Connector - ok? */
1637                         .amux = LINE1,
1638                         .gpio = 0x008080,
1639                 },{
1640                         .name = name_comp1,
1641                         .vmux = 3,
1642                         .amux = LINE1,
1643                         .gpio = 0x008080,
1644                 },{
1645                         .name = name_tv,
1646                         .vmux = 1,
1647                         .amux = TV,
1648                         .tv   = 1,
1649                         .gpio = 0x008080,
1650                 }},
1651                 .radio = {
1652                         .name = name_radio,
1653                         .amux = LINE2,
1654                         .gpio = 0x80000,
1655                 },
1656                 .mute = {
1657                         .name = name_mute,
1658                         .amux = LINE2,
1659                         .gpio = 0x0c8000,
1660                 },
1661         },
1662         [SAA7134_BOARD_PINNACLE_300I_DVBT_PAL] = {
1663                 .name           = "Pinnacle PCTV 300i DVB-T + PAL",
1664                 .audio_clock    = 0x00187de7,
1665                 .tuner_type     = TUNER_MT2032,
1666                 .radio_type     = UNSET,
1667                 .tuner_addr     = ADDR_UNSET,
1668                 .radio_addr     = ADDR_UNSET,
1669                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER,
1670                 .mpeg           = SAA7134_MPEG_DVB,
1671                 .inputs         = {{
1672                         .name = name_tv,
1673                         .vmux = 3,
1674                         .amux = TV,
1675                         .tv   = 1,
1676                 },{
1677                         .name = name_comp1,
1678                         .vmux = 0,
1679                         .amux = LINE2,
1680                 },{
1681                         .name = name_comp2,
1682                         .vmux = 1,
1683                         .amux = LINE2,
1684                 },{
1685                         .name = name_svideo,
1686                         .vmux = 8,
1687                         .amux = LINE2,
1688                 }},
1689         },
1690         [SAA7134_BOARD_PROVIDEO_PV952] = {
1691                 /* andreas.kretschmer@web.de */
1692                 .name           = "ProVideo PV952",
1693                 .audio_clock    = 0x00187de7,
1694                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1695                 .radio_type     = UNSET,
1696                 .tuner_addr     = ADDR_UNSET,
1697                 .radio_addr     = ADDR_UNSET,
1698                 .tda9887_conf   = TDA9887_PRESENT,
1699                 .inputs         = {{
1700                         .name = name_comp1,
1701                         .vmux = 0,
1702                         .amux = LINE1,
1703                 },{
1704                         .name = name_tv,
1705                         .vmux = 1,
1706                         .amux = TV,
1707                         .tv   = 1,
1708                 },{
1709                         .name = name_tv_mono,
1710                         .vmux = 1,
1711                         .amux = LINE2,
1712                         .tv   = 1,
1713                 }},
1714                 .radio = {
1715                         .name = name_radio,
1716                         .amux = LINE2,
1717                 },
1718         },
1719         [SAA7134_BOARD_AVERMEDIA_305] = {
1720                 /* much like the "studio" version but without radio
1721                 * and another tuner (sirspiritus@yandex.ru) */
1722                 .name           = "AverMedia AverTV/305",
1723                 .audio_clock    = 0x00187de7,
1724                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1725                 .radio_type     = UNSET,
1726                 .tuner_addr     = ADDR_UNSET,
1727                 .radio_addr     = ADDR_UNSET,
1728                 .tda9887_conf   = TDA9887_PRESENT,
1729                 .inputs         = {{
1730                         .name = name_tv,
1731                         .vmux = 1,
1732                         .amux = LINE2,
1733                         .tv   = 1,
1734                 },{
1735                         .name = name_comp1,
1736                         .vmux = 0,
1737                         .amux = LINE2,
1738                 },{
1739                         .name = name_comp2,
1740                         .vmux = 3,
1741                         .amux = LINE2,
1742                 },{
1743                         .name = name_svideo,
1744                         .vmux = 8,
1745                         .amux = LINE2,
1746                 }},
1747                 .mute = {
1748                         .name = name_mute,
1749                         .amux = LINE1,
1750                 },
1751         },
1752         [SAA7134_BOARD_FLYDVBTDUO] = {
1753                 /* LifeView FlyDVB-T DUO */
1754                 /* "Nico Sabbi <nsabbi@tiscali.it>  Hartmut Hackmann hartmut.hackmann@t-online.de*/
1755                 .name           = "LifeView FlyDVB-T DUO",
1756                 .audio_clock    = 0x00200000,
1757                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1758                 .radio_type     = UNSET,
1759                 .tuner_addr     = ADDR_UNSET,
1760                 .radio_addr     = ADDR_UNSET,
1761                 .mpeg           = SAA7134_MPEG_DVB,
1762                 .inputs         = {{
1763                         .name = name_tv,
1764                         .vmux = 1,
1765                         .amux = TV,
1766                         .tv   = 1,
1767                 },{
1768                         .name = name_comp1,     /* Composite signal on S-Video input */
1769                         .vmux = 0,
1770                         .amux = LINE2,
1771                 },{
1772                         .name = name_comp2,     /* Composite input */
1773                         .vmux = 3,
1774                         .amux = LINE2,
1775                 },{
1776                         .name = name_svideo,    /* S-Video signal on S-Video input */
1777                         .vmux = 8,
1778                         .amux = LINE2,
1779                 }},
1780         },
1781         [SAA7134_BOARD_PHILIPS_TOUGH] = {
1782                 .name           = "Philips TOUGH DVB-T reference design",
1783                 .tuner_type     = TUNER_ABSENT,
1784                 .audio_clock    = 0x00187de7,
1785                 .radio_type     = UNSET,
1786                 .tuner_addr     = ADDR_UNSET,
1787                 .radio_addr     = ADDR_UNSET,
1788                 .mpeg           = SAA7134_MPEG_DVB,
1789                 .inputs = {{
1790                         .name   = name_comp1,
1791                         .vmux   = 0,
1792                         .amux   = LINE1,
1793                 },{
1794                         .name   = name_svideo,
1795                         .vmux   = 8,
1796                         .amux   = LINE1,
1797                 }},
1798         },
1799         [SAA7134_BOARD_AVERMEDIA_307] = {
1800                 /*
1801                 Davydov Vladimir <vladimir@iqmedia.com>
1802                 */
1803                 .name           = "Avermedia AVerTV 307",
1804                 .audio_clock    = 0x00187de7,
1805                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1806                 .radio_type     = UNSET,
1807                 .tuner_addr     = ADDR_UNSET,
1808                 .radio_addr     = ADDR_UNSET,
1809                 .tda9887_conf   = TDA9887_PRESENT,
1810                 .inputs         = {{
1811                         .name = name_tv,
1812                         .vmux = 1,
1813                         .amux = TV,
1814                         .tv   = 1,
1815                 },{
1816                         .name = name_comp1,
1817                         .vmux = 0,
1818                         .amux = LINE1,
1819                 },{
1820                         .name = name_comp2,
1821                         .vmux = 3,
1822                         .amux = LINE1,
1823                 },{
1824                         .name = name_svideo,
1825                         .vmux = 8,
1826                         .amux = LINE1,
1827                 }},
1828         },
1829         [SAA7134_BOARD_ADS_INSTANT_TV] = {
1830                 .name           = "ADS Tech Instant TV (saa7135)",
1831                 .audio_clock    = 0x00187de7,
1832                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1833                 .radio_type     = UNSET,
1834                 .tuner_addr     = ADDR_UNSET,
1835                 .radio_addr     = ADDR_UNSET,
1836                 .inputs         = {{
1837                         .name = name_tv,
1838                         .vmux = 1,
1839                         .amux = TV,
1840                         .tv   = 1,
1841                 },{
1842                         .name = name_comp1,
1843                         .vmux = 3,
1844                         .amux = LINE2,
1845                 },{
1846                         .name = name_svideo,
1847                         .vmux = 8,
1848                         .amux = LINE2,
1849                 }},
1850         },
1851         [SAA7134_BOARD_KWORLD_VSTREAM_XPERT] = {
1852                 .name           = "Kworld/Tevion V-Stream Xpert TV PVR7134",
1853                 .audio_clock    = 0x00187de7,
1854                 .tuner_type     = TUNER_PHILIPS_PAL_I,
1855                 .radio_type     = UNSET,
1856                 .tuner_addr     = ADDR_UNSET,
1857                 .radio_addr     = ADDR_UNSET,
1858                 .gpiomask       = 0x0700,
1859                 .inputs = {{
1860                         .name   = name_tv,
1861                         .vmux   = 1,
1862                         .amux   = TV,
1863                         .tv     = 1,
1864                         .gpio   = 0x000,
1865                 },{
1866                         .name   = name_comp1,
1867                         .vmux   = 3,
1868                         .amux   = LINE1,
1869                         .gpio   = 0x200,                /* gpio by DScaler */
1870                 },{
1871                         .name   = name_svideo,
1872                         .vmux   = 0,
1873                         .amux   = LINE1,
1874                         .gpio   = 0x200,
1875                 }},
1876                 .radio = {
1877                         .name   = name_radio,
1878                         .amux   = LINE1,
1879                         .gpio   = 0x100,
1880                 },
1881                 .mute  = {
1882                         .name = name_mute,
1883                         .amux = TV,
1884                         .gpio = 0x000,
1885                 },
1886         },
1887         [SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS] = {
1888                 .name           = "Typhoon DVB-T Duo Digital/Analog Cardbus",
1889                 .audio_clock    = 0x00200000,
1890                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1891                 .radio_type     = UNSET,
1892                 .tuner_addr     = ADDR_UNSET,
1893                 .radio_addr     = ADDR_UNSET,
1894                 .mpeg           = SAA7134_MPEG_DVB,
1895                 /* .gpiomask       = 0xe000, */
1896                 .inputs         = {{
1897                         .name = name_tv,
1898                         .vmux = 1,
1899                         .amux = TV,
1900                 /*      .gpio = 0x0000,      */
1901                         .tv   = 1,
1902                 },{
1903                         .name = name_comp1,     /* Composite signal on S-Video input */
1904                         .vmux = 0,
1905                         .amux = LINE2,
1906                 /*      .gpio = 0x4000,      */
1907                 },{
1908                         .name = name_comp2,     /* Composite input */
1909                         .vmux = 3,
1910                         .amux = LINE2,
1911                 /*      .gpio = 0x4000,      */
1912                 },{
1913                         .name = name_svideo,    /* S-Video signal on S-Video input */
1914                         .vmux = 8,
1915                         .amux = LINE2,
1916                 /*      .gpio = 0x4000,      */
1917                 }},
1918                 .radio = {
1919                         .name = name_radio,
1920                         .amux = LINE2,
1921                 },
1922                 .mute = {
1923                         .name = name_mute,
1924                         .amux = LINE1,
1925                 },
1926         },
1927         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
1928                 .name           = "Compro VideoMate TV Gold+II",
1929                 .audio_clock    = 0x002187de7,
1930                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
1931                 .radio_type     = TUNER_TEA5767,
1932                 .tuner_addr     = 0x63,
1933                 .radio_addr     = 0x60,
1934                 .gpiomask       = 0x8c1880,
1935                 .inputs         = {{
1936                         .name = name_svideo,
1937                         .vmux = 0,
1938                         .amux = LINE1,
1939                         .gpio = 0x800800,
1940                 },{
1941                         .name = name_comp1,
1942                         .vmux = 3,
1943                         .amux = LINE1,
1944                         .gpio = 0x801000,
1945                 },{
1946                         .name = name_tv,
1947                         .vmux = 1,
1948                         .amux = TV,
1949                         .tv   = 1,
1950                         .gpio = 0x800000,
1951                 }},
1952                 .radio = {
1953                         .name = name_radio,
1954                         .amux = TV,
1955                         .gpio = 0x880000,
1956                 },
1957                 .mute = {
1958                         .name = name_mute,
1959                         .amux = LINE2,
1960                         .gpio = 0x840000,
1961                 },
1962         },
1963         [SAA7134_BOARD_KWORLD_XPERT] = {
1964                 /*
1965                 FIXME:
1966                 - Remote control doesn't initialize properly.
1967                 - Audio volume starts muted,
1968                 then gradually increases after channel change.
1969                 - Overlay scaling problems (application error?)
1970                 - Composite S-Video untested.
1971                 From: Konrad Rzepecki <hannibal@megapolis.pl>
1972                 */
1973                 .name           = "Kworld Xpert TV PVR7134",
1974                 .audio_clock    = 0x00187de7,
1975                 .tuner_type     = TUNER_TENA_9533_DI,
1976                 .radio_type     = TUNER_TEA5767,
1977                 .tuner_addr     = 0x61,
1978                 .radio_addr     = 0x60,
1979                 .gpiomask       = 0x0700,
1980                 .inputs = {{
1981                         .name   = name_tv,
1982                         .vmux   = 1,
1983                         .amux   = TV,
1984                         .tv     = 1,
1985                         .gpio   = 0x000,
1986                 },{
1987                         .name   = name_comp1,
1988                         .vmux   = 3,
1989                         .amux   = LINE1,
1990                         .gpio   = 0x200,                /* gpio by DScaler */
1991                 },{
1992                         .name   = name_svideo,
1993                         .vmux   = 0,
1994                         .amux   = LINE1,
1995                         .gpio   = 0x200,
1996                 }},
1997                 .radio = {
1998                         .name   = name_radio,
1999                         .amux   = LINE1,
2000                         .gpio   = 0x100,
2001                 },
2002                 .mute = {
2003                         .name = name_mute,
2004                         .amux = TV,
2005                         .gpio = 0x000,
2006                 },
2007         },
2008         [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2009                 .name           = "FlyTV mini Asus Digimatrix",
2010                 .audio_clock    = 0x00200000,
2011                 .tuner_type     = TUNER_LG_NTSC_TALN_MINI,
2012                 .radio_type     = UNSET,
2013                 .tuner_addr     = ADDR_UNSET,
2014                 .radio_addr     = ADDR_UNSET,
2015                 .inputs         = {{
2016                         .name = name_tv,
2017                         .vmux = 1,
2018                         .amux = TV,
2019                         .tv   = 1,
2020                 },{
2021                         .name = name_tv_mono,
2022                         .vmux = 1,
2023                         .amux = LINE2,
2024                         .tv   = 1,
2025                 },{
2026                         .name = name_comp1,
2027                         .vmux = 0,
2028                         .amux = LINE2,
2029                 },{
2030                         .name = name_comp2,
2031                         .vmux = 3,
2032                         .amux = LINE2,
2033                 },{
2034                         .name = name_svideo,
2035                         .vmux = 8,
2036                         .amux = LINE2,
2037                 }},
2038                 .radio = {
2039                         .name = name_radio,             /* radio unconfirmed */
2040                         .amux = LINE2,
2041                 },
2042         },
2043         [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2044                 /* Kworld V-Stream Studio TV Terminator */
2045                 /* "James Webb <jrwebb@qwest.net> */
2046                 .name           = "V-Stream Studio TV Terminator",
2047                 .audio_clock    = 0x00187de7,
2048                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2049                 .radio_type     = UNSET,
2050                 .tuner_addr     = ADDR_UNSET,
2051                 .radio_addr     = ADDR_UNSET,
2052                 .gpiomask       = 1 << 21,
2053                 .inputs         = {{
2054                         .name = name_tv,
2055                         .vmux = 1,
2056                         .amux = TV,
2057                         .gpio = 0x0000000,
2058                         .tv   = 1,
2059                 },{
2060                         .name = name_comp1,     /* Composite input */
2061                         .vmux = 3,
2062                         .amux = LINE2,
2063                         .gpio = 0x0000000,
2064                 },{
2065                         .name = name_svideo,    /* S-Video input */
2066                         .vmux = 8,
2067                         .amux = LINE2,
2068                         .gpio = 0x0000000,
2069                 }},
2070                 .radio = {
2071                         .name = name_radio,
2072                         .amux = TV,
2073                         .gpio = 0x0200000,
2074                 },
2075         },
2076         [SAA7134_BOARD_YUAN_TUN900] = {
2077                 /* FIXME:
2078                  * S-Video and composite sources untested.
2079                  * Radio not working.
2080                  * Remote control not yet implemented.
2081                  * From : codemaster@webgeeks.be */
2082                 .name           = "Yuan TUN-900 (saa7135)",
2083                 .audio_clock    = 0x00187de7,
2084                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2085                 .radio_type     = UNSET,
2086                 .tuner_addr= ADDR_UNSET,
2087                 .radio_addr= ADDR_UNSET,
2088                 .gpiomask       = 0x00010003,
2089                 .inputs         = {{
2090                         .name = name_tv,
2091                         .vmux = 1,
2092                         .amux = TV,
2093                         .tv   = 1,
2094                         .gpio = 0x01,
2095                 },{
2096                         .name = name_comp1,
2097                         .vmux = 0,
2098                         .amux = LINE2,
2099                         .gpio = 0x02,
2100                 },{
2101                         .name = name_svideo,
2102                         .vmux = 6,
2103                         .amux = LINE2,
2104                         .gpio = 0x02,
2105                 }},
2106                 .radio = {
2107                         .name = name_radio,
2108                         .amux = LINE1,
2109                         .gpio = 0x00010003,
2110                 },
2111                 .mute = {
2112                         .name = name_mute,
2113                         .amux = TV,
2114                         .gpio = 0x01,
2115                 },
2116         },
2117         [SAA7134_BOARD_BEHOLD_409FM] = {
2118                 /* <http://tuner.beholder.ru>, Sergey <skiv@orel.ru> */
2119                 .name           = "Beholder BeholdTV 409 FM",
2120                 .audio_clock    = 0x00187de7,
2121                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
2122                 .radio_type     = UNSET,
2123                 .tuner_addr     = ADDR_UNSET,
2124                 .radio_addr     = ADDR_UNSET,
2125                 .tda9887_conf   = TDA9887_PRESENT,
2126                 .inputs         = {{
2127                           .name = name_tv,
2128                           .vmux = 3,
2129                           .amux = TV,
2130                           .tv   = 1,
2131                 },{
2132                           .name = name_comp1,
2133                           .vmux = 1,
2134                           .amux = LINE1,
2135                 },{
2136                           .name = name_svideo,
2137                           .vmux = 8,
2138                           .amux = LINE1,
2139                 }},
2140                 .radio = {
2141                           .name = name_radio,
2142                           .amux = LINE2,
2143                 },
2144         },
2145         [SAA7134_BOARD_GOTVIEW_7135] = {
2146                 /* Mike Baikov <mike@baikov.com> */
2147                 /* Andrey Cvetcov <ays14@yandex.ru> */
2148                 .name            = "GoTView 7135 PCI",
2149                 .audio_clock     = 0x00187de7,
2150                 .tuner_type      = TUNER_PHILIPS_FM1216ME_MK3,
2151                 .radio_type      = UNSET,
2152                 .tuner_addr      = ADDR_UNSET,
2153                 .radio_addr      = ADDR_UNSET,
2154                 .tda9887_conf    = TDA9887_PRESENT,
2155                 .gpiomask        = 0x00200003,
2156                 .inputs          = {{
2157                         .name = name_tv,
2158                         .vmux = 1,
2159                         .amux = TV,
2160                         .tv   = 1,
2161                         .gpio = 0x00200003,
2162                 },{
2163                         .name = name_tv_mono,
2164                         .vmux = 1,
2165                         .amux = LINE2,
2166                         .gpio = 0x00200003,
2167                 },{
2168                         .name = name_comp1,
2169                         .vmux = 3,
2170                         .amux = LINE1,
2171                         .gpio = 0x00200003,
2172                 },{
2173                         .name = name_svideo,
2174                         .vmux = 8,
2175                         .amux = LINE1,
2176                         .gpio = 0x00200003,
2177                 }},
2178                 .radio = {
2179                         .name = name_radio,
2180                         .amux = LINE2,
2181                         .gpio = 0x00200003,
2182                 },
2183                 .mute = {
2184                         .name = name_mute,
2185                         .amux = TV,
2186                         .gpio = 0x00200003,
2187                 },
2188         },
2189         [SAA7134_BOARD_PHILIPS_EUROPA] = {
2190                 .name           = "Philips EUROPA V3 reference design",
2191                 .audio_clock    = 0x00187de7,
2192                 .tuner_type     = TUNER_PHILIPS_TD1316,
2193                 .radio_type     = UNSET,
2194                 .tuner_addr     = 0x61,
2195                 .radio_addr     = ADDR_UNSET,
2196                 .tda9887_conf   = TDA9887_PRESENT,
2197                 .mpeg           = SAA7134_MPEG_DVB,
2198                 .inputs = {{
2199                         .name   = name_tv,
2200                         .vmux   = 3,
2201                         .amux   = TV,
2202                         .tv     = 1,
2203                 },{
2204                         .name   = name_comp1,
2205                         .vmux   = 0,
2206                         .amux   = LINE2,
2207                 },{
2208                         .name   = name_svideo,
2209                         .vmux   = 8,
2210                         .amux   = LINE2,
2211                 }},
2212         },
2213         [SAA7134_BOARD_VIDEOMATE_DVBT_300] = {
2214                 .name           = "Compro Videomate DVB-T300",
2215                 .audio_clock    = 0x00187de7,
2216                 .tuner_type     = TUNER_PHILIPS_TD1316,
2217                 .radio_type     = UNSET,
2218                 .tuner_addr     = 0x61,
2219                 .radio_addr     = ADDR_UNSET,
2220                 .tda9887_conf   = TDA9887_PRESENT,
2221                 .mpeg           = SAA7134_MPEG_DVB,
2222                 .inputs = {{
2223                         .name   = name_tv,
2224                         .vmux   = 3,
2225                         .amux   = TV,
2226                         .tv     = 1,
2227                 },{
2228                         .name   = name_comp1,
2229                         .vmux   = 1,
2230                         .amux   = LINE2,
2231                 },{
2232                         .name   = name_svideo,
2233                         .vmux   = 8,
2234                         .amux   = LINE2,
2235                 }},
2236         },
2237         [SAA7134_BOARD_VIDEOMATE_DVBT_200] = {
2238                 .name           = "Compro Videomate DVB-T200",
2239                 .tuner_type     = TUNER_ABSENT,
2240                 .audio_clock    = 0x00187de7,
2241                 .radio_type     = UNSET,
2242                 .tuner_addr     = ADDR_UNSET,
2243                 .radio_addr     = ADDR_UNSET,
2244                 .mpeg           = SAA7134_MPEG_DVB,
2245                 .inputs = {{
2246                         .name   = name_comp1,
2247                         .vmux   = 0,
2248                         .amux   = LINE1,
2249                 },{
2250                         .name   = name_svideo,
2251                         .vmux   = 8,
2252                         .amux   = LINE1,
2253                 }},
2254         },
2255         [SAA7134_BOARD_RTD_VFG7350] = {
2256                 .name           = "RTD Embedded Technologies VFG7350",
2257                 .audio_clock    = 0x00200000,
2258                 .tuner_type     = TUNER_ABSENT,
2259                 .radio_type     = UNSET,
2260                 .tuner_addr     = ADDR_UNSET,
2261                 .radio_addr     = ADDR_UNSET,
2262                 .inputs         = {{
2263                         .name   = "Composite 0",
2264                         .vmux   = 0,
2265                         .amux   = LINE1,
2266                 },{
2267                         .name   = "Composite 1",
2268                         .vmux   = 1,
2269                         .amux   = LINE2,
2270                 },{
2271                         .name   = "Composite 2",
2272                         .vmux   = 2,
2273                         .amux   = LINE1,
2274                 },{
2275                         .name   = "Composite 3",
2276                         .vmux   = 3,
2277                         .amux   = LINE2,
2278                 },{
2279                         .name   = "S-Video 0",
2280                         .vmux   = 8,
2281                         .amux   = LINE1,
2282                 },{
2283                         .name   = "S-Video 1",
2284                         .vmux   = 9,
2285                         .amux   = LINE2,
2286                 }},
2287                 .mpeg           = SAA7134_MPEG_EMPRESS,
2288                 .video_out      = CCIR656,
2289                 .vid_port_opts  = ( SET_T_CODE_POLARITY_NON_INVERTED |
2290                                     SET_CLOCK_NOT_DELAYED |
2291                                     SET_CLOCK_INVERTED |
2292                                     SET_VSYNC_OFF ),
2293         },
2294         [SAA7134_BOARD_RTD_VFG7330] = {
2295                 .name           = "RTD Embedded Technologies VFG7330",
2296                 .audio_clock    = 0x00200000,
2297                 .tuner_type     = TUNER_ABSENT,
2298                 .radio_type     = UNSET,
2299                 .tuner_addr     = ADDR_UNSET,
2300                 .radio_addr     = ADDR_UNSET,
2301                 .inputs         = {{
2302                         .name   = "Composite 0",
2303                         .vmux   = 0,
2304                         .amux   = LINE1,
2305                 },{
2306                         .name   = "Composite 1",
2307                         .vmux   = 1,
2308                         .amux   = LINE2,
2309                 },{
2310                         .name   = "Composite 2",
2311                         .vmux   = 2,
2312                         .amux   = LINE1,
2313                 },{
2314                         .name   = "Composite 3",
2315                         .vmux   = 3,
2316                         .amux   = LINE2,
2317                 },{
2318                         .name   = "S-Video 0",
2319                         .vmux   = 8,
2320                         .amux   = LINE1,
2321                 },{
2322                         .name   = "S-Video 1",
2323                         .vmux   = 9,
2324                         .amux   = LINE2,
2325                 }},
2326         },
2327         [SAA7134_BOARD_FLYTVPLATINUM_MINI2] = {
2328                 .name           = "LifeView FlyTV Platinum Mini2",
2329                 .audio_clock    = 0x00200000,
2330                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2331                 .radio_type     = UNSET,
2332                 .tuner_addr     = ADDR_UNSET,
2333                 .radio_addr     = ADDR_UNSET,
2334
2335                 .inputs         = {{
2336                         .name = name_tv,
2337                         .vmux = 1,
2338                         .amux = TV,
2339                         .tv   = 1,
2340                 },{
2341                         .name = name_comp1,     /* Composite signal on S-Video input */
2342                         .vmux = 0,
2343                         .amux = LINE2,
2344                 },{
2345                         .name = name_comp2,     /* Composite input */
2346                         .vmux = 3,
2347                         .amux = LINE2,
2348                 },{
2349                         .name = name_svideo,
2350                         .vmux = 8,
2351                         .amux = LINE2,
2352                 }},
2353         },
2354         [SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180] = {
2355                 /* Michael Krufky <mkrufky@m1k.net>
2356                  * Uses Alps Electric TDHU2, containing NXT2004 ATSC Decoder
2357                  * AFAIK, there is no analog demod, thus,
2358                  * no support for analog television.
2359                  */
2360                 .name           = "AVerMedia AVerTVHD MCE A180",
2361                 .audio_clock    = 0x00187de7,
2362                 .tuner_type     = TUNER_ABSENT,
2363                 .radio_type     = UNSET,
2364                 .tuner_addr     = ADDR_UNSET,
2365                 .radio_addr     = ADDR_UNSET,
2366                 .mpeg           = SAA7134_MPEG_DVB,
2367                 .inputs         = {{
2368                         .name = name_comp1,
2369                         .vmux = 3,
2370                         .amux = LINE2,
2371                 },{
2372                         .name = name_svideo,
2373                         .vmux = 8,
2374                         .amux = LINE2,
2375                 }},
2376         },
2377         [SAA7134_BOARD_MONSTERTV_MOBILE] = {
2378                 .name           = "SKNet MonsterTV Mobile",
2379                 .audio_clock    = 0x00187de7,
2380                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2381                 .radio_type     = UNSET,
2382                 .tuner_addr     = ADDR_UNSET,
2383                 .radio_addr     = ADDR_UNSET,
2384
2385                 .inputs         = {{
2386                           .name = name_tv,
2387                           .vmux = 1,
2388                           .amux = TV,
2389                           .tv   = 1,
2390                 },{
2391                           .name = name_comp1,
2392                           .vmux = 3,
2393                           .amux = LINE1,
2394                 },{
2395                           .name = name_svideo,
2396                           .vmux = 6,
2397                           .amux = LINE1,
2398                 }},
2399         },
2400         [SAA7134_BOARD_PINNACLE_PCTV_110i] = {
2401                 .name           = "Pinnacle PCTV 110i (saa7133)",
2402                 .audio_clock    = 0x00187de7,
2403                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2404                 .radio_type     = UNSET,
2405                 .tuner_addr     = ADDR_UNSET,
2406                 .radio_addr     = ADDR_UNSET,
2407                 .gpiomask       = 0x080200000,
2408                 .inputs         = {{
2409                           .name = name_tv,
2410                           .vmux = 4,
2411                           .amux = TV,
2412                           .tv   = 1,
2413                 },{
2414                           .name = name_comp1,
2415                           .vmux = 1,
2416                           .amux = LINE2,
2417                 },{
2418                           .name = name_svideo,
2419                           .vmux = 8,
2420                           .amux = LINE2,
2421                 }},
2422                 .radio = {
2423                           .name = name_radio,
2424                           .amux = LINE1,
2425                 },
2426         },
2427         [SAA7134_BOARD_ASUSTeK_P7131_DUAL] = {
2428                 .name           = "ASUSTeK P7131 Dual",
2429                 .audio_clock    = 0x00187de7,
2430                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2431                 .radio_type     = UNSET,
2432                 .tuner_addr     = ADDR_UNSET,
2433                 .radio_addr     = ADDR_UNSET,
2434                 .gpiomask       = 1 << 21,
2435                 .mpeg           = SAA7134_MPEG_DVB,
2436                 .inputs         = {{
2437                         .name = name_tv,
2438                         .vmux = 1,
2439                         .amux = TV,
2440                         .tv   = 1,
2441                 },{
2442                         .name = name_comp1,
2443                         .vmux = 3,
2444                         .amux = LINE2,
2445                 },{
2446                         .name = name_svideo,
2447                         .vmux = 8,
2448                         .amux = LINE2,
2449                 }},
2450                 .radio = {
2451                         .name = name_radio,
2452                         .amux = TV,
2453                         .gpio = 0x0200000,
2454                 },
2455         },
2456         [SAA7134_BOARD_SEDNA_PC_TV_CARDBUS] = {
2457                 /* Paul Tom Zalac <pzalac@gmail.com> */
2458                 /* Pavel Mihaylov <bin@bash.info> */
2459                 .name           = "Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)",
2460                                 /* Sedna/MuchTV (OEM) Cardbus TV Tuner */
2461                 .audio_clock    = 0x00187de7,
2462                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2463                 .radio_type     = UNSET,
2464                 .tuner_addr     = ADDR_UNSET,
2465                 .radio_addr     = ADDR_UNSET,
2466                 .gpiomask       = 0xe880c0,
2467                 .inputs         = {{
2468                         .name = name_tv,
2469                         .vmux = 3,
2470                         .amux = TV,
2471                         .tv   = 1,
2472                 },{
2473                         .name = name_comp1,
2474                         .vmux = 1,
2475                         .amux = LINE1,
2476                 },{
2477                         .name = name_svideo,
2478                         .vmux = 6,
2479                         .amux = LINE1,
2480                 }},
2481                 .radio = {
2482                         .name = name_radio,
2483                         .amux = LINE2,
2484                 },
2485         },
2486         [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
2487                 /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
2488                 .name           = "ASUS Digimatrix TV",
2489                 .audio_clock    = 0x00200000,
2490                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
2491                 .tda9887_conf   = TDA9887_PRESENT,
2492                 .radio_type     = UNSET,
2493                 .tuner_addr     = ADDR_UNSET,
2494                 .radio_addr     = ADDR_UNSET,
2495                 .inputs         = {{
2496                         .name = name_tv,
2497                         .vmux = 1,
2498                         .amux = TV,
2499                         .tv   = 1,
2500                 },{
2501                         .name = name_comp1,
2502                         .vmux = 3,
2503                         .amux = LINE1,
2504                 },{
2505                         .name = name_svideo,
2506                         .vmux = 8,
2507                         .amux = LINE1,
2508                 }},
2509         },
2510         [SAA7134_BOARD_PHILIPS_TIGER] = {
2511                 .name           = "Philips Tiger reference design",
2512                 .audio_clock    = 0x00187de7,
2513                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2514                 .radio_type     = UNSET,
2515                 .tuner_addr     = ADDR_UNSET,
2516                 .radio_addr     = ADDR_UNSET,
2517                 .mpeg           = SAA7134_MPEG_DVB,
2518                 .inputs = {{
2519                         .name   = name_tv,
2520                         .vmux   = 1,
2521                         .amux   = TV,
2522                         .tv     = 1,
2523                 },{
2524                         .name   = name_comp1,
2525                         .vmux   = 3,
2526                         .amux   = LINE1,
2527                 },{
2528                         .name   = name_svideo,
2529                         .vmux   = 8,
2530                         .amux   = LINE1,
2531                 }},
2532         },
2533         [SAA7134_BOARD_MSI_TVATANYWHERE_PLUS] = {
2534                 .name           = "MSI TV@Anywhere plus",
2535                 .audio_clock    = 0x00187de7,
2536                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2537                 .radio_type     = UNSET,
2538                 .tuner_addr     = ADDR_UNSET,
2539                 .radio_addr     = ADDR_UNSET,
2540                 .inputs = {{
2541                         .name   = name_tv,
2542                         .vmux   = 1,
2543                         .amux   = TV,
2544                         .tv     = 1,
2545                 },{
2546                         .name   = name_comp1,
2547                         .vmux   = 3,
2548                         .amux   = LINE1,
2549                 },{
2550                         .name   = name_svideo,
2551                         .vmux   = 0,
2552                         .amux   = LINE1,
2553                 }},
2554                 .radio = {
2555                         .name   = name_radio,
2556                         .amux   = LINE1,
2557                 },
2558         },
2559         [SAA7134_BOARD_CINERGY250PCI] = {
2560                 /* remote-control does not work. The signal about a
2561                    key press comes in via gpio, but the key code
2562                    doesn't. Neither does it have an i2c remote control
2563                    interface. */
2564                 .name           = "Terratec Cinergy 250 PCI TV",
2565                 .audio_clock    = 0x00187de7,
2566                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2567                 .radio_type     = UNSET,
2568                 .tuner_addr     = ADDR_UNSET,
2569                 .radio_addr     = ADDR_UNSET,
2570                 .gpiomask       = 0x80200000,
2571                 .inputs         = {{
2572                         .name = name_tv,
2573                         .vmux = 1,
2574                         .amux = TV,
2575                         .tv   = 1,
2576                 },{
2577                         .name = name_svideo,  /* NOT tested */
2578                         .vmux = 8,
2579                         .amux = LINE1,
2580                 }},
2581                 .radio = {
2582                         .name   = name_radio,
2583                         .amux   = LINE1,
2584                         .gpio   = 0x0200000,
2585                 },
2586         },
2587         [SAA7134_BOARD_FLYDVB_TRIO] = {
2588                 /* LifeView LR319 FlyDVB Trio */
2589                 /* Peter Missel <peter.missel@onlinehome.de> */
2590                 .name           = "LifeView FlyDVB Trio",
2591                 .audio_clock    = 0x00200000,
2592                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2593                 .radio_type     = UNSET,
2594                 .tuner_addr     = ADDR_UNSET,
2595                 .radio_addr     = ADDR_UNSET,
2596                 .gpiomask       = 0x00200000,
2597                 .inputs         = {{
2598                         .name = name_tv,        /* Analog broadcast/cable TV */
2599                         .vmux = 1,
2600                         .amux = TV,
2601                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2602                         .tv   = 1,
2603                 },{
2604                         .name = name_svideo,    /* S-Video signal on S-Video input */
2605                         .vmux = 8,
2606                         .amux = LINE2,
2607                 },{
2608                         .name = name_comp1,     /* Composite signal on S-Video input */
2609                         .vmux = 0,
2610                         .amux = LINE2,
2611                 },{
2612                         .name = name_comp2,     /* Composite input */
2613                         .vmux = 3,
2614                         .amux = LINE2,
2615                 }},
2616                 .radio = {
2617                         .name = name_radio,
2618                         .amux = TV,
2619                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2620                 },
2621         },
2622 };
2623
2624 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
2625
2626 /* ------------------------------------------------------------------ */
2627 /* PCI ids + subsystem IDs                                            */
2628
2629 struct pci_device_id saa7134_pci_tbl[] = {
2630         {
2631                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2632                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2633                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2634                 .subdevice    = 0x2001,
2635                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
2636         },{
2637                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2638                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2639                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2640                 .subdevice    = 0x2001,
2641                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
2642         },{
2643                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2644                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2645                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2646                 .subdevice    = 0x6752,
2647                 .driver_data  = SAA7134_BOARD_EMPRESS,
2648         },{
2649                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2650                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2651                 .subvendor    = 0x1131,
2652                 .subdevice    = 0x4e85,
2653                 .driver_data  = SAA7134_BOARD_MONSTERTV,
2654         },{
2655                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2656                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2657                 .subvendor    = 0x153b,
2658                 .subdevice    = 0x1142,
2659                 .driver_data  = SAA7134_BOARD_CINERGY400,
2660         },{
2661                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2662                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2663                 .subvendor    = 0x153b,
2664                 .subdevice    = 0x1143,
2665                 .driver_data  = SAA7134_BOARD_CINERGY600,
2666         },{
2667                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2668                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2669                 .subvendor    = 0x153b,
2670                 .subdevice    = 0x1158,
2671                 .driver_data  = SAA7134_BOARD_CINERGY600_MK3,
2672         },{
2673                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2674                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2675                 .subvendor    = 0x153b,
2676                 .subdevice    = 0x1162,
2677                 .driver_data  = SAA7134_BOARD_CINERGY400_CARDBUS,
2678         },{
2679                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2680                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2681                 .subvendor    = 0x5168,
2682                 .subdevice    = 0x0138,
2683                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
2684         },{
2685                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2686                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2687                 .subvendor    = 0x4e42,                         /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
2688                 .subdevice    = 0x0138,
2689                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
2690         },{
2691                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2692                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2693                 .subvendor    = 0x5168,
2694                 .subdevice    = 0x0138,
2695                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
2696         },{
2697                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2698                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2699                 .subvendor    = 0x5168,
2700                 .subdevice    = 0x0212, /* minipci, LR212 */
2701                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2702         },{
2703                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2704                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2705                 .subvendor    = 0x14c0,
2706                 .subdevice    = 0x1212, /* minipci, LR1212 */
2707                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
2708         },{
2709                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2710                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2711                 .subvendor    = 0x4e42,
2712                 .subdevice    = 0x0212, /* OEM minipci, LR212 */
2713                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
2714         },{
2715                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2716                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2717                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
2718                 .subdevice    = 0x0214, /* Standard PCI, LR214WF */
2719                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
2720         },{
2721                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2722                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2723                 .subvendor    = 0x1489, /* KYE */
2724                 .subdevice    = 0x0214, /* Genius VideoWonder ProTV */
2725                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
2726         },{
2727                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2728                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2729                 .subvendor    = 0x16be,
2730                 .subdevice    = 0x0003,
2731                 .driver_data  = SAA7134_BOARD_MD7134,
2732         },{
2733                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2734                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2735                 .subvendor    = 0x1048,
2736                 .subdevice    = 0x226b,
2737                 .driver_data  = SAA7134_BOARD_ELSA,
2738         },{
2739                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2740                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2741                 .subvendor    = 0x1048,
2742                 .subdevice    = 0x226b,
2743                 .driver_data  = SAA7134_BOARD_ELSA_500TV,
2744         },{
2745                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2746                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2747                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
2748                 .subdevice    = 0x4842,
2749                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
2750         },{
2751                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2752                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2753                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
2754                 .subdevice    = 0x4845,
2755                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7135,
2756         },{
2757                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2758                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2759                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
2760                 .subdevice    = 0x4830,
2761                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
2762         },{
2763                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2764                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2765                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
2766                 .subdevice    = 0x4843,
2767                 .driver_data  = SAA7134_BOARD_ASUSTEK_TVFM7133,
2768         },{
2769                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2770                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2771                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
2772                 .subdevice    = 0x4840,
2773                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
2774         },{
2775                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2776                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2777                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2778                 .subdevice    = 0xfe01,
2779                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
2780         },{
2781                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2782                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2783                 .subvendor    = 0x1894,
2784                 .subdevice    = 0xfe01,
2785                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
2786         },{
2787                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2788                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2789                 .subvendor    = 0x1894,
2790                 .subdevice    = 0xa006,
2791                 .driver_data  = SAA7134_BOARD_TVSTATION_DVR,
2792         },{
2793                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2794                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2795                 .subvendor    = 0x1131,
2796                 .subdevice    = 0x7133,
2797                 .driver_data  = SAA7134_BOARD_VA1000POWER,
2798         },{
2799                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2800                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2801                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2802                 .subdevice    = 0x2001,
2803                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER,
2804         },{
2805                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2806                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2807                 .subvendor    = 0x185b,
2808                 .subdevice    = 0xc100,
2809                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV,
2810         },{
2811                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2812                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2813                 .subvendor    = 0x185b,
2814                 .subdevice    = 0xc100,
2815                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
2816         },{
2817                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2818                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2819                 .subvendor    = PCI_VENDOR_ID_MATROX,
2820                 .subdevice    = 0x48d0,
2821                 .driver_data  = SAA7134_BOARD_CRONOS_PLUS,
2822         },{
2823                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2824                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2825                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2826                 .subdevice    = 0xa70b,
2827                 .driver_data  = SAA7134_BOARD_MD2819,
2828         },{
2829                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2830                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2831                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2832                 .subdevice    = 0x2115,
2833                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
2834         },{
2835                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2836                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2837                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2838                 .subdevice    = 0x2108,
2839                 .driver_data  = SAA7134_BOARD_AVERMEDIA_305,
2840         },{
2841                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2842                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2843                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2844                 .subdevice    = 0x10ff,
2845                 .driver_data  = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
2846         },{
2847                 /* AVerMedia CardBus */
2848                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2849                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2850                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2851                 .subdevice    = 0xd6ee,
2852                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
2853         },{
2854                 /* TransGear 3000TV */
2855                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2856                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2857                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2858                 .subdevice    = 0x050c,
2859                 .driver_data  = SAA7134_BOARD_TG3000TV,
2860         },{
2861                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2862                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2863                 .subvendor    = 0x11bd,
2864                 .subdevice    = 0x002b,
2865                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
2866         },{
2867                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2868                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2869                 .subvendor    = 0x11bd,
2870                 .subdevice    = 0x002d,
2871                 .driver_data  = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
2872         },{
2873                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2874                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2875                 .subvendor    = 0x1019,
2876                 .subdevice    = 0x4cb4,
2877                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP,
2878         },{
2879                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2880                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2881                 .subvendor    = 0x1019,
2882                 .subdevice    = 0x4cb5,
2883                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB5,
2884         },{
2885                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2886                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2887                 .subvendor    = 0x12ab,
2888                 .subdevice    = 0x0800,
2889                 .driver_data  = SAA7134_BOARD_UPMOST_PURPLE_TV,
2890         },{
2891                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2892                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2893                 .subvendor    = 0x153b,
2894                 .subdevice    = 0x1152,
2895                 .driver_data  = SAA7134_BOARD_CINERGY200,
2896         },{
2897                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2898                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2899                 .subvendor    = 0x185b,
2900                 .subdevice    = 0xc100,
2901                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_PVR,
2902         },{
2903                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2904                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2905                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2906                 .subdevice    = 0x9715,
2907                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
2908         },{
2909                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2910                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2911                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2912                 .subdevice    = 0xa70a,
2913                 .driver_data  = SAA7134_BOARD_AVERMEDIA_307,
2914         },{
2915                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2916                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2917                 .subvendor    = 0x185b,
2918                 .subdevice    = 0xc200,
2919                 .driver_data  = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
2920         },{
2921                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2922                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2923                 .subvendor    = 0x1540,
2924                 .subdevice    = 0x9524,
2925                 .driver_data  = SAA7134_BOARD_PROVIDEO_PV952,
2926
2927         },{
2928                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2929                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2930                 .subvendor    = 0x5168,
2931                 .subdevice    = 0x0502,                /* Cardbus version */
2932                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
2933         },{
2934                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2935                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2936                 .subvendor    = 0x5168,
2937                 .subdevice    = 0x0306,                /* PCI version */
2938                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
2939         },{
2940                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2941                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2942                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
2943                 .subdevice    = 0xf31f,
2944                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
2945
2946         },{
2947                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2948                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
2949                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
2950                 .subdevice    = 0x2004,
2951                 .driver_data  = SAA7134_BOARD_PHILIPS_TOUGH,
2952         },{
2953                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2954                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2955                 .subvendor    = 0x1421,
2956                 .subdevice    = 0x0350,         /* PCI version */
2957                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
2958         },{
2959                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2960                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2961                 .subvendor    = 0x1421,
2962                 .subdevice    = 0x0351,         /* PCI version, new revision */
2963                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
2964         },{
2965                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2966                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2967                 .subvendor    = 0x1421,
2968                 .subdevice    = 0x0370,         /* cardbus version */
2969                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
2970         },{
2971                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2972                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2973                 .subvendor    = 0x1421,
2974                 .subdevice    = 0x1370,        /* cardbus version */
2975                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
2976
2977         },{     /* Typhoon DVB-T Duo Digital/Analog Cardbus */
2978                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2979                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2980                 .subvendor    = 0x4e42,
2981                 .subdevice    = 0x0502,
2982                 .driver_data  = SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS,
2983         },{
2984                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2985                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2986                 .subvendor    = 0x1043,
2987                 .subdevice    = 0x0210,         /* mini pci NTSC version */
2988                 .driver_data  = SAA7134_BOARD_FLYTV_DIGIMATRIX,
2989         },{
2990                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2991                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
2992                 .subvendor    = 0x1043,
2993                 .subdevice    = 0x0210,         /* mini pci PAL/SECAM version */
2994                 .driver_data  = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
2995
2996         },{
2997                 .vendor       = PCI_VENDOR_ID_PHILIPS,
2998                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
2999                 .subvendor    = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
3000                 .subdevice    = 0x4091,
3001                 .driver_data  = SAA7134_BOARD_BEHOLD_409FM,
3002         },{
3003                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3004                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3005                 .subvendor    = 0x5456, /* GoTView */
3006                 .subdevice    = 0x7135,
3007                 .driver_data  = SAA7134_BOARD_GOTVIEW_7135,
3008         },{
3009                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3010                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3011                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3012                 .subdevice    = 0x2004,
3013                 .driver_data  = SAA7134_BOARD_PHILIPS_EUROPA,
3014         },{
3015                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3016                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3017                 .subvendor    = 0x185b,
3018                 .subdevice    = 0xc900,
3019                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_300,
3020         },{
3021                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3022                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3023                 .subvendor    = 0x185b,
3024                 .subdevice    = 0xc901,
3025                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_200,
3026         },{
3027                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3028                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3029                 .subvendor    = 0x1435,
3030                 .subdevice    = 0x7350,
3031                 .driver_data  = SAA7134_BOARD_RTD_VFG7350,
3032         },{
3033                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3034                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3035                 .subvendor    = 0x1435,
3036                 .subdevice    = 0x7330,
3037                 .driver_data  = SAA7134_BOARD_RTD_VFG7330,
3038         },{
3039                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3040                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3041                 .subvendor    = 0x1461,
3042                 .subdevice    = 0x1044,
3043                 .driver_data  = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
3044         },{
3045                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3046                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3047                 .subvendor    = 0x1131,
3048                 .subdevice    = 0x4ee9,
3049                 .driver_data  = SAA7134_BOARD_MONSTERTV_MOBILE,
3050         },{
3051                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3052                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3053                 .subvendor    = 0x11bd,
3054                 .subdevice    = 0x002e,
3055                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_110i,
3056         },{
3057                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3058                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3059                 .subvendor    = 0x1043,
3060                 .subdevice    = 0x4862,
3061                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3062         },{
3063                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3064                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3065                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3066                 .subdevice    = 0x2018,
3067                 .driver_data  = SAA7134_BOARD_PHILIPS_TIGER,
3068         },{
3069                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3070                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3071                 .subvendor    = 0x1462,
3072                 .subdevice    = 0x6231,
3073                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
3074         },{
3075                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3076                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3077                 .subvendor    = 0x153b,
3078                 .subdevice    = 0x1160,
3079                 .driver_data  = SAA7134_BOARD_CINERGY250PCI,
3080         },{
3081                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3082                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,  /* SAA 7131E */
3083                 .subvendor    = 0x5168,
3084                 .subdevice    = 0x0319,
3085                 .driver_data  = SAA7134_BOARD_FLYDVB_TRIO,
3086         },{
3087                 /* --- boards without eeprom + subsystem ID --- */
3088                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3089                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3090                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3091                 .subdevice    = 0,
3092                 .driver_data  = SAA7134_BOARD_NOAUTO,
3093         },{
3094                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3095                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3096                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3097                 .subdevice    = 0,
3098                 .driver_data  = SAA7134_BOARD_NOAUTO,
3099         },{
3100
3101                 /* --- default catch --- */
3102                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3103                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3104                 .subvendor    = PCI_ANY_ID,
3105                 .subdevice    = PCI_ANY_ID,
3106                 .driver_data  = SAA7134_BOARD_UNKNOWN,
3107         },{
3108                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3109                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3110                 .subvendor    = PCI_ANY_ID,
3111                 .subdevice    = PCI_ANY_ID,
3112                 .driver_data  = SAA7134_BOARD_UNKNOWN,
3113         },{
3114                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3115                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3116                 .subvendor    = PCI_ANY_ID,
3117                 .subdevice    = PCI_ANY_ID,
3118                 .driver_data  = SAA7134_BOARD_UNKNOWN,
3119         },{
3120                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3121                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7135,
3122                 .subvendor    = PCI_ANY_ID,
3123                 .subdevice    = PCI_ANY_ID,
3124                 .driver_data  = SAA7134_BOARD_UNKNOWN,
3125         },{
3126                 /* --- end of list --- */
3127         }
3128 };
3129 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
3130
3131 /* ----------------------------------------------------------- */
3132 /* flyvideo tweaks                                             */
3133
3134
3135 static void board_flyvideo(struct saa7134_dev *dev)
3136 {
3137         printk("%s: there are different flyvideo cards with different tuners\n"
3138                "%s: out there, you might have to use the tuner=<nr> insmod\n"
3139                "%s: option to override the default value.\n",
3140                dev->name, dev->name, dev->name);
3141 }
3142
3143 /* ----------------------------------------------------------- */
3144
3145 int saa7134_board_init1(struct saa7134_dev *dev)
3146 {
3147         /* Always print gpio, often manufacturers encode tuner type and other info. */
3148         saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
3149         dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
3150         printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
3151
3152         switch (dev->board) {
3153         case SAA7134_BOARD_FLYVIDEO2000:
3154         case SAA7134_BOARD_FLYVIDEO3000:
3155                 dev->has_remote = SAA7134_REMOTE_GPIO;
3156                 board_flyvideo(dev);
3157                 break;
3158         case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
3159         case SAA7134_BOARD_FLYTVPLATINUM_FM:
3160         case SAA7134_BOARD_CINERGY400:
3161         case SAA7134_BOARD_CINERGY600:
3162         case SAA7134_BOARD_CINERGY600_MK3:
3163         case SAA7134_BOARD_ECS_TVP3XP:
3164         case SAA7134_BOARD_ECS_TVP3XP_4CB5:
3165         case SAA7134_BOARD_MD2819:
3166         case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
3167         case SAA7134_BOARD_KWORLD_XPERT:
3168         case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
3169         case SAA7134_BOARD_AVERMEDIA_305:
3170         case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
3171         case SAA7134_BOARD_AVERMEDIA_307:
3172         case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
3173 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
3174         case SAA7134_BOARD_VIDEOMATE_TV_PVR:
3175         case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
3176         case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
3177         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3178         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
3179         case SAA7134_BOARD_MANLI_MTV001:
3180         case SAA7134_BOARD_MANLI_MTV002:
3181         case SAA7134_BOARD_BEHOLD_409FM:
3182         case SAA7134_BOARD_AVACSSMARTTV:
3183         case SAA7134_BOARD_GOTVIEW_7135:
3184         case SAA7134_BOARD_KWORLD_TERMINATOR:
3185         case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
3186                 dev->has_remote = SAA7134_REMOTE_GPIO;
3187                 break;
3188         case SAA7134_BOARD_MD5044:
3189                 printk("%s: seems there are two different versions of the MD5044\n"
3190                 "%s: (with the same ID) out there.  If sound doesn't work for\n"
3191                 "%s: you try the audio_clock_override=0x200000 insmod option.\n",
3192                 dev->name,dev->name,dev->name);
3193                 break;
3194         case SAA7134_BOARD_CINERGY400_CARDBUS:
3195                 /* power-up tuner chip */
3196                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
3197                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
3198         case SAA7134_BOARD_MONSTERTV_MOBILE:
3199                 /* power-up tuner chip */
3200                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
3201                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
3202                 break;
3203         case SAA7134_BOARD_FLYDVBTDUO:
3204         case SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS:
3205                 /* turn the fan on */
3206                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
3207                 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
3208                 break;
3209         case SAA7134_BOARD_AVERMEDIA_CARDBUS:
3210                 /* power-up tuner chip */
3211                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0xffffffff);
3212                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
3213                 msleep(1);
3214                 break;
3215         case SAA7134_BOARD_RTD_VFG7350:
3216
3217                 /*
3218                  * Make sure Production Test Register at offset 0x1D1 is cleared
3219                  * to take chip out of test mode.  Clearing bit 4 (TST_EN_AOUT)
3220                  * prevents pin 105 from remaining low; keeping pin 105 low
3221                  * continually resets the SAA6752 chip.
3222                  */
3223
3224                 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
3225                 break;
3226         /* i2c remotes */
3227         case SAA7134_BOARD_PINNACLE_PCTV_110i:
3228         case SAA7134_BOARD_UPMOST_PURPLE_TV:
3229                 dev->has_remote = SAA7134_REMOTE_I2C;
3230                 break;
3231         }
3232         return 0;
3233 }
3234
3235 /* stuff which needs working i2c */
3236 int saa7134_board_init2(struct saa7134_dev *dev)
3237 {
3238         unsigned char buf;
3239         int board;
3240
3241         switch (dev->board) {
3242         case SAA7134_BOARD_BMK_MPEX_NOTUNER:
3243         case SAA7134_BOARD_BMK_MPEX_TUNER:
3244                 dev->i2c_client.addr = 0x60;
3245                 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
3246                         ? SAA7134_BOARD_BMK_MPEX_NOTUNER
3247                         : SAA7134_BOARD_BMK_MPEX_TUNER;
3248                 if (board == dev->board)
3249                         break;
3250                 dev->board = board;
3251                 printk("%s: board type fixup: %s\n", dev->name,
3252                 saa7134_boards[dev->board].name);
3253                 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
3254
3255                 if (TUNER_ABSENT != dev->tuner_type) {
3256                                 struct tuner_setup tun_setup;
3257
3258                                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3259                                 tun_setup.type = dev->tuner_type;
3260                                 tun_setup.addr = ADDR_UNSET;
3261
3262                                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
3263                 }
3264                 break;
3265         case SAA7134_BOARD_MD7134:
3266                 {
3267                 struct tuner_setup tun_setup;
3268                 u8 subaddr;
3269                 u8 data[3];
3270                 int ret, tuner_t;
3271
3272                 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
3273                                         {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
3274                 subaddr= 0x14;
3275                 tuner_t = 0;
3276                 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
3277                 if (ret != 2) {
3278                         printk(KERN_ERR "EEPROM read failure\n");
3279                 } else if ((data[0] != 0) && (data[0] != 0xff)) {
3280                         /* old config structure */
3281                         subaddr = data[0] + 2;
3282                         msg[1].len = 2;
3283                         i2c_transfer(&dev->i2c_adap, msg, 2);
3284                         tuner_t = (data[0] << 8) + data[1];
3285                         switch (tuner_t){
3286                         case 0x0103:
3287                                 dev->tuner_type = TUNER_PHILIPS_PAL;
3288                                 break;
3289                         case 0x010C:
3290                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3291                                 break;
3292                         default:
3293                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3294                         }
3295                 } else if ((data[1] != 0) && (data[1] != 0xff)) {
3296                         /* new config structure */
3297                         subaddr = data[1] + 1;
3298                         msg[1].len = 1;
3299                         i2c_transfer(&dev->i2c_adap, msg, 2);
3300                         subaddr = data[0] + 1;
3301                         msg[1].len = 2;
3302                         i2c_transfer(&dev->i2c_adap, msg, 2);
3303                         tuner_t = (data[1] << 8) + data[0];
3304                         switch (tuner_t) {
3305                         case 0x0005:
3306                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
3307                                 break;
3308                         case 0x001d:
3309                                 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
3310                                         printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
3311                                 break;
3312                         default:
3313                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
3314                         }
3315                 } else {
3316                         printk(KERN_ERR "%s unexpected config structure\n", dev->name);
3317                 }
3318
3319                 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
3320                 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
3321                         dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
3322                         saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
3323                 }
3324
3325                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
3326                 tun_setup.type = dev->tuner_type;
3327                 tun_setup.addr = ADDR_UNSET;
3328
3329                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3330                 }
3331                 break;
3332         case SAA7134_BOARD_PHILIPS_EUROPA:
3333         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3334                 /* The Philips EUROPA based hybrid boards have the tuner connected through
3335                  * the channel decoder. We have to make it transparent to find it
3336                  */
3337                 {
3338                 struct tuner_setup tun_setup;
3339                 u8 data[] = { 0x07, 0x02};
3340                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3341                 i2c_transfer(&dev->i2c_adap, &msg, 1);
3342
3343                 tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
3344                 tun_setup.type = dev->tuner_type;
3345                 tun_setup.addr = dev->tuner_addr;
3346
3347                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
3348                 }
3349                 break;
3350         case SAA7134_BOARD_PHILIPS_TIGER:
3351         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
3352                 /* this is a hybrid board, initialize to analog mode */
3353                 {
3354                 u8 data[] = { 0x3c, 0x33, 0x68};
3355                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
3356                 i2c_transfer(&dev->i2c_adap, &msg, 1);
3357                 }
3358                 break;
3359         }
3360         return 0;
3361 }
3362
3363 /* ----------------------------------------------------------- */
3364 /*
3365  * Local variables:
3366  * c-basic-offset: 8
3367  * End:
3368  */