Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq
[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/Typhoon 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 / Gold",
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_ELSA_700TV] = {
644                 .name           = "ELSA EX-VISION 700TV",
645                 .audio_clock    = 0x00187de7,
646                 .tuner_type     = TUNER_HITACHI_NTSC,
647                 .radio_type     = UNSET,
648                 .tuner_addr     = ADDR_UNSET,
649                 .radio_addr     = ADDR_UNSET,
650                 .inputs         = {{
651                         .name = name_tv,
652                         .vmux = 4,
653                         .amux = LINE2,
654                         .tv   = 1,
655                 },{
656                         .name = name_comp1,
657                         .vmux = 6,
658                         .amux = LINE1,
659                 },{
660                         .name = name_svideo,
661                         .vmux = 7,
662                         .amux = LINE1,
663                 }},
664                 .mute           = {
665                         .name = name_mute,
666                         .amux = TV,
667                 },
668         },
669         [SAA7134_BOARD_ASUSTeK_TVFM7134] = {
670                 .name           = "ASUS TV-FM 7134",
671                 .audio_clock    = 0x00187de7,
672                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
673                 .radio_type     = UNSET,
674                 .tuner_addr     = ADDR_UNSET,
675                 .radio_addr     = ADDR_UNSET,
676                 .tda9887_conf   = TDA9887_PRESENT,
677                 .inputs         = {{
678                         .name = name_tv,
679                         .vmux = 1,
680                         .amux = TV,
681                         .tv   = 1,
682                 },{
683                         .name = name_comp1,
684                         .vmux = 4,
685                         .amux = LINE2,
686                 },{
687                         .name = name_svideo,
688                         .vmux = 6,
689                         .amux = LINE2,
690                 }},
691                 .radio = {
692                         .name = name_radio,
693                         .amux = LINE1,
694                 },
695         },
696         [SAA7134_BOARD_ASUSTeK_TVFM7135] = {
697                 .name           = "ASUS TV-FM 7135",
698                 .audio_clock    = 0x00187de7,
699                 .tuner_type     = TUNER_PHILIPS_TDA8290,
700                 .radio_type     = UNSET,
701                 .tuner_addr     = ADDR_UNSET,
702                 .radio_addr     = ADDR_UNSET,
703                 .gpiomask       = 0x200000,
704                 .inputs         = {{
705                         .name = name_tv,
706                         .vmux = 1,
707                         .amux = TV,
708                         .gpio = 0x0000,
709                         .tv   = 1,
710                 },{
711                         .name = name_comp1,
712                         .vmux = 4,
713                         .amux = LINE2,
714                         .gpio = 0x0000,
715                 },{
716                         .name = name_svideo,
717                         .vmux = 6,
718                         .amux = LINE2,
719                         .gpio = 0x0000,
720                 }},
721                 .radio = {
722                         .name = name_radio,
723                         .amux = TV,
724                         .gpio = 0x200000,
725                 },
726                 .mute  = {
727                         .name = name_mute,
728                         .gpio = 0x0000,
729                 },
730
731         },
732         [SAA7134_BOARD_VA1000POWER] = {
733                 .name           = "AOPEN VA1000 POWER",
734                 .audio_clock    = 0x00187de7,
735                 .tuner_type     = TUNER_PHILIPS_NTSC,
736                 .radio_type     = UNSET,
737                 .tuner_addr     = ADDR_UNSET,
738                 .radio_addr     = ADDR_UNSET,
739                 .inputs         = {{
740                         .name = name_svideo,
741                         .vmux = 8,
742                         .amux = LINE1,
743                 },{
744                         .name = name_comp1,
745                         .vmux = 3,
746                         .amux = LINE1,
747                 },{
748                         .name = name_tv,
749                         .vmux = 1,
750                         .amux = LINE2,
751                         .tv   = 1,
752                 }},
753         },
754         [SAA7134_BOARD_10MOONSTVMASTER] = {
755                 /* "lilicheng" <llc@linuxfans.org> */
756                 .name           = "10MOONS PCI TV CAPTURE CARD",
757                 .audio_clock    = 0x00200000,
758                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
759                 .radio_type     = UNSET,
760                 .tuner_addr     = ADDR_UNSET,
761                 .radio_addr     = ADDR_UNSET,
762                 .gpiomask       = 0xe000,
763                 .inputs         = {{
764                         .name = name_tv,
765                         .vmux = 1,
766                         .amux = LINE2,
767                         .gpio = 0x0000,
768                         .tv   = 1,
769                 },{
770                         .name = name_comp1,
771                         .vmux = 0,
772                         .amux = LINE2,
773                         .gpio = 0x4000,
774                 },{
775                         .name = name_comp2,
776                         .vmux = 3,
777                         .amux = LINE2,
778                         .gpio = 0x4000,
779                 },{
780                         .name = name_svideo,
781                         .vmux = 8,
782                         .amux = LINE2,
783                         .gpio = 0x4000,
784                 }},
785                 .radio = {
786                         .name = name_radio,
787                         .amux = LINE2,
788                         .gpio = 0x2000,
789                 },
790                 .mute = {
791                         .name = name_mute,
792                         .amux = LINE2,
793                         .gpio = 0x8000,
794                 },
795         },
796         [SAA7134_BOARD_BMK_MPEX_NOTUNER] = {
797                 /* "Andrew de Quincey" <adq@lidskialf.net> */
798                 .name           = "BMK MPEX No Tuner",
799                 .audio_clock    = 0x200000,
800                 .tuner_type     = TUNER_ABSENT,
801                 .radio_type     = UNSET,
802                 .tuner_addr     = ADDR_UNSET,
803                 .radio_addr     = ADDR_UNSET,
804                 .inputs         = {{
805                         .name = name_comp1,
806                         .vmux = 4,
807                         .amux = LINE1,
808                 },{
809                         .name = name_comp2,
810                         .vmux = 3,
811                         .amux = LINE1,
812                 },{
813                         .name = name_comp3,
814                         .vmux = 0,
815                         .amux = LINE1,
816                 },{
817                         .name = name_comp4,
818                         .vmux = 1,
819                         .amux = LINE1,
820                 },{
821                         .name = name_svideo,
822                         .vmux = 8,
823                         .amux = LINE1,
824                 }},
825                 .mpeg      = SAA7134_MPEG_EMPRESS,
826                 .video_out = CCIR656,
827         },
828         [SAA7134_BOARD_VIDEOMATE_TV] = {
829                 .name           = "Compro VideoMate TV",
830                 .audio_clock    = 0x00187de7,
831                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
832                 .radio_type     = UNSET,
833                 .tuner_addr     = ADDR_UNSET,
834                 .radio_addr     = ADDR_UNSET,
835                 .inputs         = {{
836                         .name = name_svideo,
837                         .vmux = 8,
838                         .amux = LINE1,
839                 },{
840                         .name = name_comp1,
841                         .vmux = 3,
842                         .amux = LINE1,
843                 },{
844                         .name = name_tv,
845                         .vmux = 1,
846                         .amux = LINE2,
847                         .tv   = 1,
848                 }},
849         },
850         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS] = {
851                 .name           = "Compro VideoMate TV Gold+",
852                 .audio_clock    = 0x00187de7,
853                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
854                 .gpiomask       = 0x800c0000,
855                 .radio_type     = UNSET,
856                 .tuner_addr     = ADDR_UNSET,
857                 .radio_addr     = ADDR_UNSET,
858                 .inputs         = {{
859                         .name = name_svideo,
860                         .vmux = 8,
861                         .amux = LINE1,
862                         .gpio = 0x06c00012,
863                 },{
864                         .name = name_comp1,
865                         .vmux = 3,
866                         .amux = LINE1,
867                         .gpio = 0x0ac20012,
868                 },{
869                         .name = name_tv,
870                         .vmux = 1,
871                         .amux = LINE2,
872                         .gpio = 0x08c20012,
873                         .tv   = 1,
874                 }},                             /* radio and probably mute is missing */
875         },
876         [SAA7134_BOARD_CRONOS_PLUS] = {
877                 /*
878                 gpio pins:
879                         0  .. 3   BASE_ID
880                         4  .. 7   PROTECT_ID
881                         8  .. 11  USER_OUT
882                         12 .. 13  USER_IN
883                         14 .. 15  VIDIN_SEL
884                 */
885                 .name           = "Matrox CronosPlus",
886                 .tuner_type     = TUNER_ABSENT,
887                 .radio_type     = UNSET,
888                 .tuner_addr     = ADDR_UNSET,
889                 .radio_addr     = ADDR_UNSET,
890                 .gpiomask       = 0xcf00,
891                 .inputs         = {{
892                         .name = name_comp1,
893                         .vmux = 0,
894                         .gpio = 2 << 14,
895                 },{
896                         .name = name_comp2,
897                         .vmux = 0,
898                         .gpio = 1 << 14,
899                 },{
900                         .name = name_comp3,
901                         .vmux = 0,
902                         .gpio = 0 << 14,
903                 },{
904                         .name = name_comp4,
905                         .vmux = 0,
906                         .gpio = 3 << 14,
907                 },{
908                         .name = name_svideo,
909                         .vmux = 8,
910                         .gpio = 2 << 14,
911                 }},
912         },
913         [SAA7134_BOARD_MD2819] = {
914                 .name           = "AverMedia M156 / Medion 2819",
915                 .audio_clock    = 0x00187de7,
916                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
917                 .radio_type     = UNSET,
918                 .tuner_addr     = ADDR_UNSET,
919                 .radio_addr     = ADDR_UNSET,
920                 .tda9887_conf   = TDA9887_PRESENT,
921                 .inputs         = {{
922                         .name = name_tv,
923                         .vmux = 1,
924                         .amux = TV,
925                         .tv   = 1,
926                 },{
927                         .name = name_comp1,
928                         .vmux = 0,
929                         .amux = LINE2,
930                 },{
931                         .name = name_comp2,
932                         .vmux = 3,
933                         .amux = LINE2,
934                 },{
935                         .name = name_svideo,
936                         .vmux = 8,
937                         .amux = LINE2,
938                 }},
939                 .radio = {
940                         .name = name_radio,
941                         .amux = LINE2,
942                 },
943         },
944         [SAA7134_BOARD_BMK_MPEX_TUNER] = {
945                 /* "Greg Wickham <greg.wickham@grangenet.net> */
946                 .name           = "BMK MPEX Tuner",
947                 .audio_clock    = 0x200000,
948                 .tuner_type     = TUNER_PHILIPS_PAL,
949                 .radio_type     = UNSET,
950                 .tuner_addr     = ADDR_UNSET,
951                 .radio_addr     = ADDR_UNSET,
952                 .inputs         = {{
953                         .name = name_comp1,
954                         .vmux = 1,
955                         .amux = LINE1,
956                 },{
957                         .name = name_svideo,
958                         .vmux = 8,
959                         .amux = LINE1,
960                 },{
961                         .name = name_tv,
962                         .vmux = 3,
963                         .amux = TV,
964                         .tv   = 1,
965                 }},
966                 .mpeg      = SAA7134_MPEG_EMPRESS,
967                 .video_out = CCIR656,
968         },
969         [SAA7134_BOARD_ASUSTEK_TVFM7133] = {
970                 .name           = "ASUS TV-FM 7133",
971                 .audio_clock    = 0x00187de7,
972                 /* probably wrong, the 7133 one is the NTSC version ...
973                 * .tuner_type  = TUNER_PHILIPS_FM1236_MK3 */
974                 .tuner_type     = TUNER_LG_NTSC_NEW_TAPC,
975                 .radio_type     = UNSET,
976                 .tuner_addr     = ADDR_UNSET,
977                 .radio_addr     = ADDR_UNSET,
978                 .tda9887_conf   = TDA9887_PRESENT,
979                 .inputs         = {{
980                         .name = name_tv,
981                         .vmux = 1,
982                         .amux = TV,
983                         .tv   = 1,
984
985                 },{
986                         .name = name_comp1,
987                         .vmux = 4,
988                         .amux = LINE2,
989                 },{
990                         .name = name_svideo,
991                         .vmux = 6,
992                         .amux = LINE2,
993                 }},
994                 .radio = {
995                         .name = name_radio,
996                         .amux = LINE1,
997                 },
998         },
999         [SAA7134_BOARD_PINNACLE_PCTV_STEREO] = {
1000                 .name           = "Pinnacle PCTV Stereo (saa7134)",
1001                 .audio_clock    = 0x00187de7,
1002                 .tuner_type     = TUNER_MT2032,
1003                 .radio_type     = UNSET,
1004                 .tuner_addr     = ADDR_UNSET,
1005                 .radio_addr     = ADDR_UNSET,
1006                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_INACTIVE,
1007                 .inputs         = {{
1008                         .name = name_tv,
1009                         .vmux = 3,
1010                         .amux = TV,
1011                         .tv   = 1,
1012                 },{
1013                         .name = name_comp1,
1014                         .vmux = 0,
1015                         .amux = LINE2,
1016                 },{
1017                         .name = name_comp2,
1018                         .vmux = 1,
1019                         .amux = LINE2,
1020                 },{
1021                         .name = name_svideo,
1022                         .vmux = 8,
1023                         .amux = LINE2,
1024                 }},
1025         },
1026         [SAA7134_BOARD_MANLI_MTV002] = {
1027                 /* Ognjen Nastic <ognjen@logosoft.ba> */
1028                 .name           = "Manli MuchTV M-TV002/Behold TV 403 FM",
1029                 .audio_clock    = 0x00200000,
1030                 .tuner_type     = TUNER_PHILIPS_PAL,
1031                 .radio_type     = UNSET,
1032                 .tuner_addr     = ADDR_UNSET,
1033                 .radio_addr     = ADDR_UNSET,
1034                 .inputs         = {{
1035                         .name = name_svideo,
1036                         .vmux = 8,
1037                         .amux = LINE1,
1038                 },{
1039                         .name   = name_comp1,
1040                         .vmux   = 1,
1041                         .amux   = LINE1,
1042                 },{
1043                         .name = name_tv,
1044                         .vmux = 3,
1045                         .amux = LINE2,
1046                         .tv   = 1,
1047                 }},
1048                 .radio = {
1049                         .name = name_radio,
1050                         .amux = LINE2,
1051                 },
1052         },
1053         [SAA7134_BOARD_MANLI_MTV001] = {
1054                 /* Ognjen Nastic <ognjen@logosoft.ba> UNTESTED */
1055                 .name           = "Manli MuchTV M-TV001/Behold TV 401",
1056                 .audio_clock    = 0x00200000,
1057                 .tuner_type     = TUNER_PHILIPS_PAL,
1058                 .radio_type     = UNSET,
1059                 .tuner_addr     = ADDR_UNSET,
1060                 .radio_addr     = ADDR_UNSET,
1061                 .inputs         = {{
1062                         .name = name_svideo,
1063                         .vmux = 8,
1064                         .amux = LINE1,
1065                 },{
1066                         .name = name_comp1,
1067                         .vmux = 1,
1068                         .amux = LINE1,
1069                 },{
1070                         .name = name_tv,
1071                         .vmux = 3,
1072                         .amux = LINE2,
1073                         .tv   = 1,
1074                 }},
1075                 .mute = {
1076                         .name = name_mute,
1077                         .amux = LINE1,
1078                 },
1079         },
1080         [SAA7134_BOARD_TG3000TV] = {
1081                 /* TransGear 3000TV */
1082                 .name           = "Nagase Sangyo TransGear 3000TV",
1083                 .audio_clock    = 0x00187de7,
1084                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1085                 .radio_type     = UNSET,
1086                 .tuner_addr     = ADDR_UNSET,
1087                 .radio_addr     = ADDR_UNSET,
1088                 .inputs         = {{
1089                         .name = name_tv,
1090                         .vmux = 1,
1091                         .amux = LINE2,
1092                         .tv   = 1,
1093                 },{
1094                         .name = name_comp1,
1095                         .vmux = 3,
1096                         .amux = LINE2,
1097                 },{
1098                         .name = name_svideo,
1099                         .vmux = 8,
1100                         .amux = LINE2,
1101                 }},
1102         },
1103         [SAA7134_BOARD_ECS_TVP3XP] = {
1104                 .name           = "Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) ",
1105                 .audio_clock    = 0x187de7,  /* xtal 32.1 MHz */
1106                 .tuner_type     = TUNER_PHILIPS_PAL,
1107                 .radio_type     = UNSET,
1108                 .tuner_addr     = ADDR_UNSET,
1109                 .radio_addr     = ADDR_UNSET,
1110                 .inputs         = {{
1111                         .name   = name_tv,
1112                         .vmux   = 1,
1113                         .amux   = TV,
1114                         .tv     = 1,
1115                 },{
1116                         .name   = name_tv_mono,
1117                         .vmux   = 1,
1118                         .amux   = LINE2,
1119                         .tv     = 1,
1120                 },{
1121                         .name   = name_comp1,
1122                         .vmux   = 3,
1123                         .amux   = LINE1,
1124                 },{
1125                         .name   = name_svideo,
1126                         .vmux   = 8,
1127                         .amux   = LINE1,
1128                 },{
1129                         .name   = "CVid over SVid",
1130                         .vmux   = 0,
1131                         .amux   = LINE1,
1132                 }},
1133                 .radio = {
1134                         .name   = name_radio,
1135                         .amux   = LINE2,
1136                 },
1137         },
1138         [SAA7134_BOARD_ECS_TVP3XP_4CB5] = {
1139                 .name           = "Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM)",
1140                 .audio_clock    = 0x187de7,
1141                 .tuner_type     = TUNER_PHILIPS_NTSC,
1142                 .radio_type     = UNSET,
1143                 .tuner_addr     = ADDR_UNSET,
1144                 .radio_addr     = ADDR_UNSET,
1145                 .inputs         = {{
1146                         .name   = name_tv,
1147                         .vmux   = 1,
1148                         .amux   = TV,
1149                         .tv     = 1,
1150                 },{
1151                         .name   = name_tv_mono,
1152                         .vmux   = 1,
1153                         .amux   = LINE2,
1154                         .tv     = 1,
1155                 },{
1156                         .name   = name_comp1,
1157                         .vmux   = 3,
1158                         .amux   = LINE1,
1159                 },{
1160                         .name   = name_svideo,
1161                         .vmux   = 8,
1162                         .amux   = LINE1,
1163                 },{
1164                         .name   = "CVid over SVid",
1165                         .vmux   = 0,
1166                         .amux   = LINE1,
1167                 }},
1168                 .radio = {
1169                         .name   = name_radio,
1170                         .amux   = LINE2,
1171                 },
1172         },
1173         [SAA7134_BOARD_AVACSSMARTTV] = {
1174                 /* Roman Pszonczenko <romka@kolos.math.uni.lodz.pl> */
1175                 .name           = "AVACS SmartTV",
1176                 .audio_clock    = 0x00187de7,
1177                 .tuner_type     = TUNER_PHILIPS_PAL,
1178                 .radio_type     = UNSET,
1179                 .tuner_addr     = ADDR_UNSET,
1180                 .radio_addr     = ADDR_UNSET,
1181                 .inputs         = {{
1182                         .name = name_tv,
1183                         .vmux = 1,
1184                         .amux = TV,
1185                         .tv   = 1,
1186                 },{
1187                         .name = name_tv_mono,
1188                         .vmux = 1,
1189                         .amux = LINE2,
1190                         .tv   = 1,
1191                 },{
1192                         .name = name_comp1,
1193                         .vmux = 0,
1194                         .amux = LINE2,
1195                 },{
1196                         .name = name_comp2,
1197                         .vmux = 3,
1198                         .amux = LINE2,
1199                 },{
1200                         .name = name_svideo,
1201                         .vmux = 8,
1202                         .amux = LINE2,
1203                 }},
1204                 .radio = {
1205                         .name = name_radio,
1206                         .amux = LINE2,
1207                         .gpio = 0x200000,
1208                 },
1209         },
1210         [SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER] = {
1211                 /* Michael Smith <msmith@cbnco.com> */
1212                 .name           = "AVerMedia DVD EZMaker",
1213                 .audio_clock    = 0x00187de7,
1214                 .tuner_type     = TUNER_ABSENT,
1215                 .radio_type     = UNSET,
1216                 .tuner_addr     = ADDR_UNSET,
1217                 .radio_addr     = ADDR_UNSET,
1218                 .inputs         = {{
1219                         .name = name_comp1,
1220                         .vmux = 3,
1221                 },{
1222                         .name = name_svideo,
1223                         .vmux = 8,
1224                 }},
1225         },
1226         [SAA7134_BOARD_NOVAC_PRIMETV7133] = {
1227                 /* toshii@netbsd.org */
1228                 .name           = "Noval Prime TV 7133",
1229                 .audio_clock    = 0x00200000,
1230                 .tuner_type     = TUNER_ALPS_TSBH1_NTSC,
1231                 .radio_type     = UNSET,
1232                 .tuner_addr     = ADDR_UNSET,
1233                 .radio_addr     = ADDR_UNSET,
1234                 .inputs         = {{
1235                         .name = name_comp1,
1236                         .vmux = 3,
1237                 },{
1238                         .name = name_tv,
1239                         .vmux = 1,
1240                         .amux = TV,
1241                         .tv   = 1,
1242                 },{
1243                         .name = name_svideo,
1244                         .vmux = 8,
1245                 }},
1246         },
1247         [SAA7134_BOARD_AVERMEDIA_STUDIO_305] = {
1248                 .name           = "AverMedia AverTV Studio 305",
1249                 .audio_clock    = 0x00187de7,
1250                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1251                 .radio_type     = UNSET,
1252                 .tuner_addr     = ADDR_UNSET,
1253                 .radio_addr     = ADDR_UNSET,
1254                 .tda9887_conf   = TDA9887_PRESENT,
1255                 .inputs         = {{
1256                         .name = name_tv,
1257                         .vmux = 1,
1258                         .amux = LINE2,
1259                         .tv   = 1,
1260                 },{
1261                         .name = name_comp1,
1262                         .vmux = 0,
1263                         .amux = LINE2,
1264                 },{
1265                         .name = name_comp2,
1266                         .vmux = 3,
1267                         .amux = LINE2,
1268                 },{
1269                         .name = name_svideo,
1270                         .vmux = 8,
1271                         .amux = LINE2,
1272                 }},
1273                 .radio = {
1274                         .name = name_radio,
1275                         .amux = LINE2,
1276                 },
1277                 .mute = {
1278                         .name = name_mute,
1279                         .amux = LINE1,
1280                 },
1281         },
1282         [SAA7134_BOARD_UPMOST_PURPLE_TV] = {
1283                 .name           = "UPMOST PURPLE TV",
1284                 .audio_clock    = 0x00187de7,
1285                 .tuner_type     = TUNER_PHILIPS_FM1236_MK3,
1286                 .radio_type     = UNSET,
1287                 .tuner_addr     = ADDR_UNSET,
1288                 .radio_addr     = ADDR_UNSET,
1289                 .tda9887_conf   = TDA9887_PRESENT,
1290                 .inputs         = {{
1291                         .name = name_tv,
1292                         .vmux = 7,
1293                         .amux = TV,
1294                         .tv   = 1,
1295                 },{
1296                         .name = name_svideo,
1297                         .vmux = 7,
1298                         .amux = LINE1,
1299                 }},
1300         },
1301         [SAA7134_BOARD_ITEMS_MTV005] = {
1302                 /* Norman Jonas <normanjonas@arcor.de> */
1303                 .name           = "Items MuchTV Plus / IT-005",
1304                 .audio_clock    = 0x00187de7,
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 = 3,
1312                         .amux = TV,
1313                         .tv   = 1,
1314                 },{
1315                         .name   = name_comp1,
1316                         .vmux   = 1,
1317                         .amux   = LINE1,
1318                 },{
1319                         .name = name_svideo,
1320                         .vmux = 8,
1321                         .amux = LINE1,
1322                 }},
1323                 .radio = {
1324                         .name = name_radio,
1325                         .amux = LINE2,
1326                 },
1327         },
1328         [SAA7134_BOARD_CINERGY200] = {
1329                 .name           = "Terratec Cinergy 200 TV",
1330                 .audio_clock    = 0x00200000,
1331                 .tuner_type     = TUNER_PHILIPS_PAL,
1332                 .radio_type     = UNSET,
1333                 .tuner_addr     = ADDR_UNSET,
1334                 .radio_addr     = ADDR_UNSET,
1335                 .inputs         = {{
1336                         .name = name_tv,
1337                         .vmux = 1,
1338                         .amux = LINE2,
1339                         .tv   = 1,
1340                 },{
1341                         .name = name_comp1,
1342                         .vmux = 4,
1343                         .amux = LINE1,
1344                 },{
1345                         .name = name_svideo,
1346                         .vmux = 8,
1347                         .amux = LINE1,
1348                 },{
1349                         .name = name_comp2, /* CVideo over SVideo Connector */
1350                         .vmux = 0,
1351                         .amux = LINE1,
1352                 }},
1353                 .mute = {
1354                         .name = name_mute,
1355                         .amux = LINE2,
1356                 },
1357         },
1358         [SAA7134_BOARD_VIDEOMATE_TV_PVR] = {
1359                 /* Alain St-Denis <alain@topaze.homeip.net> */
1360                 .name           = "Compro VideoMate TV PVR/FM",
1361                 .audio_clock    = 0x00187de7,
1362                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1363                 .radio_type     = UNSET,
1364                 .tuner_addr     = ADDR_UNSET,
1365                 .radio_addr     = ADDR_UNSET,
1366                 .gpiomask       = 0x808c0080,
1367                 .inputs         = {{
1368                         .name = name_svideo,
1369                         .vmux = 8,
1370                         .amux = LINE1,
1371                         .gpio = 0x00080,
1372                 },{
1373                         .name = name_comp1,
1374                         .vmux = 3,
1375                         .amux = LINE1,
1376                         .gpio = 0x00080,
1377                 },{
1378                         .name = name_tv,
1379                         .vmux = 1,
1380                         .amux = LINE2_LEFT,
1381                         .tv   = 1,
1382                         .gpio = 0x00080,
1383                 }},
1384                 .radio = {
1385                         .name = name_radio,
1386                         .amux = LINE2,
1387                         .gpio = 0x80000,
1388                 },
1389                 .mute = {
1390                         .name = name_mute,
1391                         .amux = LINE2,
1392                         .gpio = 0x40000,
1393                 },
1394         },
1395         [SAA7134_BOARD_SABRENT_SBTTVFM] = {
1396                 /* Michael Rodriguez-Torrent <mrtorrent@asu.edu> */
1397                 .name           = "Sabrent SBT-TVFM (saa7130)",
1398                 .audio_clock    = 0x00187de7,
1399                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1400                 .radio_type     = UNSET,
1401                 .tuner_addr     = ADDR_UNSET,
1402                 .radio_addr     = ADDR_UNSET,
1403                 .inputs         = {{
1404                         .name = name_comp1,
1405                         .vmux = 1,
1406                         .amux = LINE1,
1407                 },{
1408                         .name = name_tv,
1409                         .vmux = 3,
1410                         .amux = LINE2,
1411                         .tv   = 1,
1412                 },{
1413                         .name = name_svideo,
1414                         .vmux = 8,
1415                         .amux = LINE1,
1416                 }},
1417                 .radio = {
1418                         .name   = name_radio,
1419                         .amux   = LINE2,
1420                 },
1421         },
1422         [SAA7134_BOARD_ZOLID_XPERT_TV7134] = {
1423                 /* Helge Jensen <helge.jensen@slog.dk> */
1424                 .name           = ":Zolid Xpert TV7134",
1425                 .audio_clock    = 0x00187de7,
1426                 .tuner_type     = TUNER_PHILIPS_NTSC,
1427                 .radio_type     = UNSET,
1428                 .tuner_addr     = ADDR_UNSET,
1429                 .radio_addr     = ADDR_UNSET,
1430                 .inputs         = {{
1431                         .name = name_svideo,
1432                         .vmux = 8,
1433                         .amux = LINE1,
1434                 },{
1435                         .name = name_comp1,
1436                         .vmux = 3,
1437                         .amux = LINE1,
1438                 },{
1439                         .name = name_tv,
1440                         .vmux = 1,
1441                         .amux = LINE2,
1442                         .tv   = 1,
1443                 }},
1444         },
1445         [SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE] = {
1446                 /* "Matteo Az" <matte.az@nospam.libero.it> ;-) */
1447                 .name           = "Empire PCI TV-Radio LE",
1448                 .audio_clock    = 0x00187de7,
1449                 .tuner_type     = TUNER_PHILIPS_PAL,
1450                 .radio_type     = UNSET,
1451                 .tuner_addr     = ADDR_UNSET,
1452                 .radio_addr     = ADDR_UNSET,
1453                 .gpiomask       = 0x4000,
1454                 .inputs         = {{
1455                         .name = name_tv_mono,
1456                         .vmux = 1,
1457                         .amux = LINE2,
1458                         .gpio = 0x8000,
1459                         .tv   = 1,
1460                 },{
1461                         .name = name_comp1,
1462                         .vmux = 3,
1463                         .amux = LINE1,
1464                         .gpio = 0x8000,
1465                 },{
1466                         .name = name_svideo,
1467                         .vmux = 6,
1468                         .amux = LINE1,
1469                         .gpio = 0x8000,
1470                 }},
1471                 .radio = {
1472                         .name = name_radio,
1473                         .amux = LINE1,
1474                         .gpio = 0x8000,
1475                 },
1476                 .mute = {
1477                         .name = name_mute,
1478                         .amux = TV,
1479                         .gpio =0x8000,
1480                 }
1481         },
1482         [SAA7134_BOARD_AVERMEDIA_STUDIO_307] = {
1483                 /*
1484                 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
1485                 Lots of thanks to Andrey Zolotarev <zolotarev_andrey@mail.ru>
1486                 */
1487                 .name           = "Avermedia AVerTV Studio 307",
1488                 .audio_clock    = 0x00187de7,
1489                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1490                 .radio_type     = UNSET,
1491                 .tuner_addr     = ADDR_UNSET,
1492                 .radio_addr     = ADDR_UNSET,
1493                 .tda9887_conf   = TDA9887_PRESENT,
1494                 .gpiomask       = 0x03,
1495                 .inputs         = {{
1496                         .name = name_tv,
1497                         .vmux = 1,
1498                         .amux = TV,
1499                         .tv   = 1,
1500                         .gpio = 0x00,
1501                 },{
1502                         .name = name_comp1,
1503                         .vmux = 0,
1504                         .amux = LINE2,
1505                         .gpio = 0x00,
1506                 },{
1507                         .name = name_comp2,
1508                         .vmux = 3,
1509                         .amux = LINE2,
1510                         .gpio = 0x00,
1511                 },{
1512                         .name = name_svideo,
1513                         .vmux = 8,
1514                         .amux = LINE2,
1515                         .gpio = 0x00,
1516                 }},
1517                 .radio = {
1518                         .name = name_radio,
1519                         .amux = LINE1,
1520                         .gpio = 0x01,
1521                 },
1522                 .mute  = {
1523                         .name = name_mute,
1524                         .amux = LINE1,
1525                         .gpio = 0x00,
1526                 },
1527         },
1528         [SAA7134_BOARD_AVERMEDIA_GO_007_FM] = {
1529                 .name           = "Avermedia AVerTV GO 007 FM",
1530                 .audio_clock    = 0x00187de7,
1531                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1532                 .radio_type     = UNSET,
1533                 .tuner_addr     = ADDR_UNSET,
1534                 .radio_addr     = ADDR_UNSET,
1535                 .gpiomask       = 0x00300003,
1536                 /* .gpiomask       = 0x8c240003, */
1537                 .inputs         = {{
1538                         .name = name_tv,
1539                         .vmux = 1,
1540                         .amux = TV,
1541                         .tv   = 1,
1542                         .gpio = 0x01,
1543                 },{
1544                         .name = name_comp1,
1545                         .vmux = 0,
1546                         .amux = LINE1,
1547                         .gpio = 0x02,
1548                 },{
1549                         .name = name_svideo,
1550                         .vmux = 6,
1551                         .amux = LINE1,
1552                         .gpio = 0x02,
1553                 }},
1554                 .radio = {
1555                         .name = name_radio,
1556                         .amux = LINE1,
1557                         .gpio = 0x00300001,
1558                 },
1559                 .mute = {
1560                         .name = name_mute,
1561                         .amux = TV,
1562                         .gpio = 0x01,
1563                 },
1564         },
1565         [SAA7134_BOARD_AVERMEDIA_CARDBUS] = {
1566                 /* Kees.Blom@cwi.nl */
1567                 .name           = "AVerMedia Cardbus TV/Radio (E500)",
1568                 .audio_clock    = 0x187de7,
1569                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1570                 .radio_type     = UNSET,
1571                 .tuner_addr     = ADDR_UNSET,
1572                 .radio_addr     = ADDR_UNSET,
1573                 .inputs         = {{
1574                         .name = name_tv,
1575                         .vmux = 1,
1576                         .amux = TV,
1577                         .tv   = 1,
1578                 },{
1579                         .name = name_comp1,
1580                         .vmux = 3,
1581                         .amux = LINE2,
1582                 },{
1583                         .name = name_svideo,
1584                         .vmux = 8,
1585                         .amux = LINE1,
1586                 }},
1587                 .radio = {
1588                         .name = name_radio,
1589                         .amux = LINE1,
1590                 },
1591         },
1592         [SAA7134_BOARD_CINERGY400_CARDBUS] = {
1593                 .name           = "Terratec Cinergy 400 mobile",
1594                 .audio_clock    = 0x187de7,
1595                 .tuner_type     = TUNER_ALPS_TSBE5_PAL,
1596                 .radio_type     = UNSET,
1597                 .tuner_addr     = ADDR_UNSET,
1598                 .radio_addr     = ADDR_UNSET,
1599                 .tda9887_conf   = TDA9887_PRESENT,
1600                 .inputs         = {{
1601                         .name = name_tv,
1602                         .vmux = 1,
1603                         .amux = TV,
1604                         .tv   = 1,
1605                 },{
1606                         .name = name_tv_mono,
1607                         .vmux = 1,
1608                         .amux = LINE2,
1609                         .tv   = 1,
1610                 },{
1611                         .name = name_comp1,
1612                         .vmux = 3,
1613                         .amux = LINE1,
1614                 },{
1615                         .name = name_svideo,
1616                         .vmux = 8,
1617                         .amux = LINE1,
1618                 }},
1619         },
1620         [SAA7134_BOARD_CINERGY600_MK3] = {
1621                 .name           = "Terratec Cinergy 600 TV MK3",
1622                 .audio_clock    = 0x00200000,
1623                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1624                 .radio_type     = UNSET,
1625                 .tuner_addr     = ADDR_UNSET,
1626                 .radio_addr     = ADDR_UNSET,
1627                 .tda9887_conf   = TDA9887_PRESENT,
1628                 .inputs         = {{
1629                         .name = name_tv,
1630                         .vmux = 1,
1631                         .amux = TV,
1632                         .tv   = 1,
1633                 },{
1634                         .name = name_comp1,
1635                         .vmux = 4,
1636                         .amux = LINE1,
1637                 },{
1638                         .name = name_svideo,
1639                         .vmux = 8,
1640                         .amux = LINE1,
1641                 },{
1642                         .name = name_comp2, /* CVideo over SVideo Connector */
1643                         .vmux = 0,
1644                         .amux = LINE1,
1645                 }},
1646                 .radio = {
1647                         .name = name_radio,
1648                         .amux = LINE2,
1649                 },
1650         },
1651         [SAA7134_BOARD_VIDEOMATE_GOLD_PLUS] = {
1652                 /* Dylan Walkden <dylan_walkden@hotmail.com> */
1653                 .name           = "Compro VideoMate Gold+ Pal",
1654                 .audio_clock    = 0x00187de7,
1655                 .tuner_type     = TUNER_PHILIPS_PAL,
1656                 .radio_type     = UNSET,
1657                 .tuner_addr     = ADDR_UNSET,
1658                 .radio_addr     = ADDR_UNSET,
1659                 .gpiomask       = 0x1ce780,
1660                 .inputs         = {{
1661                         .name = name_svideo,
1662                         .vmux = 0,              /* CVideo over SVideo Connector - ok? */
1663                         .amux = LINE1,
1664                         .gpio = 0x008080,
1665                 },{
1666                         .name = name_comp1,
1667                         .vmux = 3,
1668                         .amux = LINE1,
1669                         .gpio = 0x008080,
1670                 },{
1671                         .name = name_tv,
1672                         .vmux = 1,
1673                         .amux = TV,
1674                         .tv   = 1,
1675                         .gpio = 0x008080,
1676                 }},
1677                 .radio = {
1678                         .name = name_radio,
1679                         .amux = LINE2,
1680                         .gpio = 0x80000,
1681                 },
1682                 .mute = {
1683                         .name = name_mute,
1684                         .amux = LINE2,
1685                         .gpio = 0x0c8000,
1686                 },
1687         },
1688         [SAA7134_BOARD_PINNACLE_300I_DVBT_PAL] = {
1689                 .name           = "Pinnacle PCTV 300i DVB-T + PAL",
1690                 .audio_clock    = 0x00187de7,
1691                 .tuner_type     = TUNER_MT2032,
1692                 .radio_type     = UNSET,
1693                 .tuner_addr     = ADDR_UNSET,
1694                 .radio_addr     = ADDR_UNSET,
1695                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_INACTIVE,
1696                 .mpeg           = SAA7134_MPEG_DVB,
1697                 .inputs         = {{
1698                         .name = name_tv,
1699                         .vmux = 3,
1700                         .amux = TV,
1701                         .tv   = 1,
1702                 },{
1703                         .name = name_comp1,
1704                         .vmux = 0,
1705                         .amux = LINE2,
1706                 },{
1707                         .name = name_comp2,
1708                         .vmux = 1,
1709                         .amux = LINE2,
1710                 },{
1711                         .name = name_svideo,
1712                         .vmux = 8,
1713                         .amux = LINE2,
1714                 }},
1715         },
1716         [SAA7134_BOARD_PROVIDEO_PV952] = {
1717                 /* andreas.kretschmer@web.de */
1718                 .name           = "ProVideo PV952",
1719                 .audio_clock    = 0x00187de7,
1720                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1721                 .radio_type     = UNSET,
1722                 .tuner_addr     = ADDR_UNSET,
1723                 .radio_addr     = ADDR_UNSET,
1724                 .tda9887_conf   = TDA9887_PRESENT,
1725                 .inputs         = {{
1726                         .name = name_comp1,
1727                         .vmux = 0,
1728                         .amux = LINE1,
1729                 },{
1730                         .name = name_tv,
1731                         .vmux = 1,
1732                         .amux = TV,
1733                         .tv   = 1,
1734                 },{
1735                         .name = name_tv_mono,
1736                         .vmux = 1,
1737                         .amux = LINE2,
1738                         .tv   = 1,
1739                 }},
1740                 .radio = {
1741                         .name = name_radio,
1742                         .amux = LINE2,
1743                 },
1744         },
1745         [SAA7134_BOARD_AVERMEDIA_305] = {
1746                 /* much like the "studio" version but without radio
1747                 * and another tuner (sirspiritus@yandex.ru) */
1748                 .name           = "AverMedia AverTV/305",
1749                 .audio_clock    = 0x00187de7,
1750                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1751                 .radio_type     = UNSET,
1752                 .tuner_addr     = ADDR_UNSET,
1753                 .radio_addr     = ADDR_UNSET,
1754                 .tda9887_conf   = TDA9887_PRESENT,
1755                 .inputs         = {{
1756                         .name = name_tv,
1757                         .vmux = 1,
1758                         .amux = LINE2,
1759                         .tv   = 1,
1760                 },{
1761                         .name = name_comp1,
1762                         .vmux = 0,
1763                         .amux = LINE2,
1764                 },{
1765                         .name = name_comp2,
1766                         .vmux = 3,
1767                         .amux = LINE2,
1768                 },{
1769                         .name = name_svideo,
1770                         .vmux = 8,
1771                         .amux = LINE2,
1772                 }},
1773                 .mute = {
1774                         .name = name_mute,
1775                         .amux = LINE1,
1776                 },
1777         },
1778         [SAA7134_BOARD_FLYDVBTDUO] = {
1779                 /* LifeView FlyDVB-T DUO */
1780                 /* "Nico Sabbi <nsabbi@tiscali.it>  Hartmut Hackmann hartmut.hackmann@t-online.de*/
1781                 .name           = "LifeView FlyDVB-T DUO / MSI TV@nywhere Duo",
1782                 .audio_clock    = 0x00200000,
1783                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1784                 .radio_type     = UNSET,
1785                 .tuner_addr     = ADDR_UNSET,
1786                 .radio_addr     = ADDR_UNSET,
1787                 .gpiomask       = 0x00200000,
1788                 .mpeg           = SAA7134_MPEG_DVB,
1789                 .inputs         = {{
1790                         .name = name_tv,
1791                         .vmux = 1,
1792                         .amux = TV,
1793                         .gpio = 0x200000,       /* GPIO21=High for TV input */
1794                         .tv   = 1,
1795                 },{
1796                         .name = name_comp1,     /* Composite signal on S-Video input */
1797                         .vmux = 0,
1798                         .amux = LINE2,
1799                 },{
1800                         .name = name_comp2,     /* Composite input */
1801                         .vmux = 3,
1802                         .amux = LINE2,
1803                 },{
1804                         .name = name_svideo,    /* S-Video signal on S-Video input */
1805                         .vmux = 8,
1806                         .amux = LINE2,
1807                 }},
1808                 .radio = {
1809                         .name = name_radio,
1810                         .amux = TV,
1811                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
1812                 },
1813         },
1814         [SAA7134_BOARD_PHILIPS_TOUGH] = {
1815                 .name           = "Philips TOUGH DVB-T reference design",
1816                 .tuner_type     = TUNER_ABSENT,
1817                 .audio_clock    = 0x00187de7,
1818                 .radio_type     = UNSET,
1819                 .tuner_addr     = ADDR_UNSET,
1820                 .radio_addr     = ADDR_UNSET,
1821                 .mpeg           = SAA7134_MPEG_DVB,
1822                 .inputs = {{
1823                         .name   = name_comp1,
1824                         .vmux   = 0,
1825                         .amux   = LINE1,
1826                 },{
1827                         .name   = name_svideo,
1828                         .vmux   = 8,
1829                         .amux   = LINE1,
1830                 }},
1831         },
1832         [SAA7134_BOARD_AVERMEDIA_307] = {
1833                 /*
1834                 Davydov Vladimir <vladimir@iqmedia.com>
1835                 */
1836                 .name           = "Avermedia AVerTV 307",
1837                 .audio_clock    = 0x00187de7,
1838                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1839                 .radio_type     = UNSET,
1840                 .tuner_addr     = ADDR_UNSET,
1841                 .radio_addr     = ADDR_UNSET,
1842                 .tda9887_conf   = TDA9887_PRESENT,
1843                 .inputs         = {{
1844                         .name = name_tv,
1845                         .vmux = 1,
1846                         .amux = TV,
1847                         .tv   = 1,
1848                 },{
1849                         .name = name_comp1,
1850                         .vmux = 0,
1851                         .amux = LINE1,
1852                 },{
1853                         .name = name_comp2,
1854                         .vmux = 3,
1855                         .amux = LINE1,
1856                 },{
1857                         .name = name_svideo,
1858                         .vmux = 8,
1859                         .amux = LINE1,
1860                 }},
1861         },
1862         [SAA7134_BOARD_ADS_INSTANT_TV] = {
1863                 .name           = "ADS Tech Instant TV (saa7135)",
1864                 .audio_clock    = 0x00187de7,
1865                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1866                 .radio_type     = UNSET,
1867                 .tuner_addr     = ADDR_UNSET,
1868                 .radio_addr     = ADDR_UNSET,
1869                 .inputs         = {{
1870                         .name = name_tv,
1871                         .vmux = 1,
1872                         .amux = TV,
1873                         .tv   = 1,
1874                 },{
1875                         .name = name_comp1,
1876                         .vmux = 3,
1877                         .amux = LINE2,
1878                 },{
1879                         .name = name_svideo,
1880                         .vmux = 8,
1881                         .amux = LINE2,
1882                 }},
1883         },
1884         [SAA7134_BOARD_KWORLD_VSTREAM_XPERT] = {
1885                 .name           = "Kworld/Tevion V-Stream Xpert TV PVR7134",
1886                 .audio_clock    = 0x00187de7,
1887                 .tuner_type     = TUNER_PHILIPS_PAL_I,
1888                 .radio_type     = UNSET,
1889                 .tuner_addr     = ADDR_UNSET,
1890                 .radio_addr     = ADDR_UNSET,
1891                 .gpiomask       = 0x0700,
1892                 .inputs = {{
1893                         .name   = name_tv,
1894                         .vmux   = 1,
1895                         .amux   = TV,
1896                         .tv     = 1,
1897                         .gpio   = 0x000,
1898                 },{
1899                         .name   = name_comp1,
1900                         .vmux   = 3,
1901                         .amux   = LINE1,
1902                         .gpio   = 0x200,                /* gpio by DScaler */
1903                 },{
1904                         .name   = name_svideo,
1905                         .vmux   = 0,
1906                         .amux   = LINE1,
1907                         .gpio   = 0x200,
1908                 }},
1909                 .radio = {
1910                         .name   = name_radio,
1911                         .amux   = LINE1,
1912                         .gpio   = 0x100,
1913                 },
1914                 .mute  = {
1915                         .name = name_mute,
1916                         .amux = TV,
1917                         .gpio = 0x000,
1918                 },
1919         },
1920         [SAA7134_BOARD_FLYDVBT_DUO_CARDBUS] = {
1921                 .name           = "LifeView/Typhoon/Genius FlyDVB-T Duo Cardbus",
1922                 .audio_clock    = 0x00200000,
1923                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1924                 .radio_type     = UNSET,
1925                 .tuner_addr     = ADDR_UNSET,
1926                 .radio_addr     = ADDR_UNSET,
1927                 .mpeg           = SAA7134_MPEG_DVB,
1928                 .gpiomask       = 0x00200000,
1929                 .inputs         = {{
1930                         .name = name_tv,
1931                         .vmux = 1,
1932                         .amux = TV,
1933                         .gpio = 0x200000,       /* GPIO21=High for TV input */
1934                         .tv   = 1,
1935                 },{
1936                         .name = name_svideo,    /* S-Video signal on S-Video input */
1937                         .vmux = 8,
1938                         .amux = LINE2,
1939                 },{
1940                         .name = name_comp1,     /* Composite signal on S-Video input */
1941                         .vmux = 0,
1942                         .amux = LINE2,
1943                 },{
1944                         .name = name_comp2,     /* Composite input */
1945                         .vmux = 3,
1946                         .amux = LINE2,
1947                 }},
1948                 .radio = {
1949                         .name = name_radio,
1950                         .amux = TV,
1951                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
1952                 },
1953         },
1954         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
1955                 .name           = "Compro VideoMate TV Gold+II",
1956                 .audio_clock    = 0x002187de7,
1957                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
1958                 .radio_type     = TUNER_TEA5767,
1959                 .tuner_addr     = 0x63,
1960                 .radio_addr     = 0x60,
1961                 .gpiomask       = 0x8c1880,
1962                 .inputs         = {{
1963                         .name = name_svideo,
1964                         .vmux = 0,
1965                         .amux = LINE1,
1966                         .gpio = 0x800800,
1967                 },{
1968                         .name = name_comp1,
1969                         .vmux = 3,
1970                         .amux = LINE1,
1971                         .gpio = 0x801000,
1972                 },{
1973                         .name = name_tv,
1974                         .vmux = 1,
1975                         .amux = TV,
1976                         .tv   = 1,
1977                         .gpio = 0x800000,
1978                 }},
1979                 .radio = {
1980                         .name = name_radio,
1981                         .amux = TV,
1982                         .gpio = 0x880000,
1983                 },
1984                 .mute = {
1985                         .name = name_mute,
1986                         .amux = LINE2,
1987                         .gpio = 0x840000,
1988                 },
1989         },
1990         [SAA7134_BOARD_KWORLD_XPERT] = {
1991                 /*
1992                 FIXME:
1993                 - Remote control doesn't initialize properly.
1994                 - Audio volume starts muted,
1995                 then gradually increases after channel change.
1996                 - Overlay scaling problems (application error?)
1997                 - Composite S-Video untested.
1998                 From: Konrad Rzepecki <hannibal@megapolis.pl>
1999                 */
2000                 .name           = "Kworld Xpert TV PVR7134",
2001                 .audio_clock    = 0x00187de7,
2002                 .tuner_type     = TUNER_TENA_9533_DI,
2003                 .radio_type     = TUNER_TEA5767,
2004                 .tuner_addr     = 0x61,
2005                 .radio_addr     = 0x60,
2006                 .gpiomask       = 0x0700,
2007                 .inputs = {{
2008                         .name   = name_tv,
2009                         .vmux   = 1,
2010                         .amux   = TV,
2011                         .tv     = 1,
2012                         .gpio   = 0x000,
2013                 },{
2014                         .name   = name_comp1,
2015                         .vmux   = 3,
2016                         .amux   = LINE1,
2017                         .gpio   = 0x200,                /* gpio by DScaler */
2018                 },{
2019                         .name   = name_svideo,
2020                         .vmux   = 0,
2021                         .amux   = LINE1,
2022                         .gpio   = 0x200,
2023                 }},
2024                 .radio = {
2025                         .name   = name_radio,
2026                         .amux   = LINE1,
2027                         .gpio   = 0x100,
2028                 },
2029                 .mute = {
2030                         .name = name_mute,
2031                         .amux = TV,
2032                         .gpio = 0x000,
2033                 },
2034         },
2035         [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2036                 .name           = "FlyTV mini Asus Digimatrix",
2037                 .audio_clock    = 0x00200000,
2038                 .tuner_type     = TUNER_LG_TALN,
2039                 .radio_type     = UNSET,
2040                 .tuner_addr     = ADDR_UNSET,
2041                 .radio_addr     = ADDR_UNSET,
2042                 .inputs         = {{
2043                         .name = name_tv,
2044                         .vmux = 1,
2045                         .amux = TV,
2046                         .tv   = 1,
2047                 },{
2048                         .name = name_tv_mono,
2049                         .vmux = 1,
2050                         .amux = LINE2,
2051                         .tv   = 1,
2052                 },{
2053                         .name = name_comp1,
2054                         .vmux = 0,
2055                         .amux = LINE2,
2056                 },{
2057                         .name = name_comp2,
2058                         .vmux = 3,
2059                         .amux = LINE2,
2060                 },{
2061                         .name = name_svideo,
2062                         .vmux = 8,
2063                         .amux = LINE2,
2064                 }},
2065                 .radio = {
2066                         .name = name_radio,             /* radio unconfirmed */
2067                         .amux = LINE2,
2068                 },
2069         },
2070         [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2071                 /* Kworld V-Stream Studio TV Terminator */
2072                 /* "James Webb <jrwebb@qwest.net> */
2073                 .name           = "V-Stream Studio TV Terminator",
2074                 .audio_clock    = 0x00187de7,
2075                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2076                 .radio_type     = UNSET,
2077                 .tuner_addr     = ADDR_UNSET,
2078                 .radio_addr     = ADDR_UNSET,
2079                 .gpiomask       = 1 << 21,
2080                 .inputs         = {{
2081                         .name = name_tv,
2082                         .vmux = 1,
2083                         .amux = TV,
2084                         .gpio = 0x0000000,
2085                         .tv   = 1,
2086                 },{
2087                         .name = name_comp1,     /* Composite input */
2088                         .vmux = 3,
2089                         .amux = LINE2,
2090                         .gpio = 0x0000000,
2091                 },{
2092                         .name = name_svideo,    /* S-Video input */
2093                         .vmux = 8,
2094                         .amux = LINE2,
2095                         .gpio = 0x0000000,
2096                 }},
2097                 .radio = {
2098                         .name = name_radio,
2099                         .amux = TV,
2100                         .gpio = 0x0200000,
2101                 },
2102         },
2103         [SAA7134_BOARD_YUAN_TUN900] = {
2104                 /* FIXME:
2105                  * S-Video and composite sources untested.
2106                  * Radio not working.
2107                  * Remote control not yet implemented.
2108                  * From : codemaster@webgeeks.be */
2109                 .name           = "Yuan TUN-900 (saa7135)",
2110                 .audio_clock    = 0x00187de7,
2111                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2112                 .radio_type     = UNSET,
2113                 .tuner_addr= ADDR_UNSET,
2114                 .radio_addr= ADDR_UNSET,
2115                 .gpiomask       = 0x00010003,
2116                 .inputs         = {{
2117                         .name = name_tv,
2118                         .vmux = 1,
2119                         .amux = TV,
2120                         .tv   = 1,
2121                         .gpio = 0x01,
2122                 },{
2123                         .name = name_comp1,
2124                         .vmux = 0,
2125                         .amux = LINE2,
2126                         .gpio = 0x02,
2127                 },{
2128                         .name = name_svideo,
2129                         .vmux = 6,
2130                         .amux = LINE2,
2131                         .gpio = 0x02,
2132                 }},
2133                 .radio = {
2134                         .name = name_radio,
2135                         .amux = LINE1,
2136                         .gpio = 0x00010003,
2137                 },
2138                 .mute = {
2139                         .name = name_mute,
2140                         .amux = TV,
2141                         .gpio = 0x01,
2142                 },
2143         },
2144         [SAA7134_BOARD_BEHOLD_409FM] = {
2145                 /* <http://tuner.beholder.ru>, Sergey <skiv@orel.ru> */
2146                 .name           = "Beholder BeholdTV 409 FM",
2147                 .audio_clock    = 0x00187de7,
2148                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
2149                 .radio_type     = UNSET,
2150                 .tuner_addr     = ADDR_UNSET,
2151                 .radio_addr     = ADDR_UNSET,
2152                 .tda9887_conf   = TDA9887_PRESENT,
2153                 .inputs         = {{
2154                           .name = name_tv,
2155                           .vmux = 3,
2156                           .amux = TV,
2157                           .tv   = 1,
2158                 },{
2159                           .name = name_comp1,
2160                           .vmux = 1,
2161                           .amux = LINE1,
2162                 },{
2163                           .name = name_svideo,
2164                           .vmux = 8,
2165                           .amux = LINE1,
2166                 }},
2167                 .radio = {
2168                           .name = name_radio,
2169                           .amux = LINE2,
2170                 },
2171         },
2172         [SAA7134_BOARD_GOTVIEW_7135] = {
2173                 /* Mike Baikov <mike@baikov.com> */
2174                 /* Andrey Cvetcov <ays14@yandex.ru> */
2175                 .name            = "GoTView 7135 PCI",
2176                 .audio_clock     = 0x00187de7,
2177                 .tuner_type      = TUNER_PHILIPS_FM1216ME_MK3,
2178                 .radio_type      = UNSET,
2179                 .tuner_addr      = ADDR_UNSET,
2180                 .radio_addr      = ADDR_UNSET,
2181                 .tda9887_conf    = TDA9887_PRESENT,
2182                 .gpiomask        = 0x00200003,
2183                 .inputs          = {{
2184                         .name = name_tv,
2185                         .vmux = 1,
2186                         .amux = TV,
2187                         .tv   = 1,
2188                         .gpio = 0x00200003,
2189                 },{
2190                         .name = name_tv_mono,
2191                         .vmux = 1,
2192                         .amux = LINE2,
2193                         .gpio = 0x00200003,
2194                 },{
2195                         .name = name_comp1,
2196                         .vmux = 3,
2197                         .amux = LINE1,
2198                         .gpio = 0x00200003,
2199                 },{
2200                         .name = name_svideo,
2201                         .vmux = 8,
2202                         .amux = LINE1,
2203                         .gpio = 0x00200003,
2204                 }},
2205                 .radio = {
2206                         .name = name_radio,
2207                         .amux = LINE2,
2208                         .gpio = 0x00200003,
2209                 },
2210                 .mute = {
2211                         .name = name_mute,
2212                         .amux = TV,
2213                         .gpio = 0x00200003,
2214                 },
2215         },
2216         [SAA7134_BOARD_PHILIPS_EUROPA] = {
2217                 .name           = "Philips EUROPA V3 reference design",
2218                 .audio_clock    = 0x00187de7,
2219                 .tuner_type     = TUNER_PHILIPS_TD1316,
2220                 .radio_type     = UNSET,
2221                 .tuner_addr     = 0x61,
2222                 .radio_addr     = ADDR_UNSET,
2223                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
2224                 .mpeg           = SAA7134_MPEG_DVB,
2225                 .inputs = {{
2226                         .name   = name_tv,
2227                         .vmux   = 3,
2228                         .amux   = TV,
2229                         .tv     = 1,
2230                 },{
2231                         .name   = name_comp1,
2232                         .vmux   = 0,
2233                         .amux   = LINE2,
2234                 },{
2235                         .name   = name_svideo,
2236                         .vmux   = 8,
2237                         .amux   = LINE2,
2238                 }},
2239         },
2240         [SAA7134_BOARD_VIDEOMATE_DVBT_300] = {
2241                 .name           = "Compro Videomate DVB-T300",
2242                 .audio_clock    = 0x00187de7,
2243                 .tuner_type     = TUNER_PHILIPS_TD1316,
2244                 .radio_type     = UNSET,
2245                 .tuner_addr     = 0x61,
2246                 .radio_addr     = ADDR_UNSET,
2247                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
2248                 .mpeg           = SAA7134_MPEG_DVB,
2249                 .inputs = {{
2250                         .name   = name_tv,
2251                         .vmux   = 3,
2252                         .amux   = TV,
2253                         .tv     = 1,
2254                 },{
2255                         .name   = name_comp1,
2256                         .vmux   = 1,
2257                         .amux   = LINE2,
2258                 },{
2259                         .name   = name_svideo,
2260                         .vmux   = 8,
2261                         .amux   = LINE2,
2262                 }},
2263         },
2264         [SAA7134_BOARD_VIDEOMATE_DVBT_200] = {
2265                 .name           = "Compro Videomate DVB-T200",
2266                 .tuner_type     = TUNER_ABSENT,
2267                 .audio_clock    = 0x00187de7,
2268                 .radio_type     = UNSET,
2269                 .tuner_addr     = ADDR_UNSET,
2270                 .radio_addr     = ADDR_UNSET,
2271                 .mpeg           = SAA7134_MPEG_DVB,
2272                 .inputs = {{
2273                         .name   = name_comp1,
2274                         .vmux   = 0,
2275                         .amux   = LINE1,
2276                 },{
2277                         .name   = name_svideo,
2278                         .vmux   = 8,
2279                         .amux   = LINE1,
2280                 }},
2281         },
2282         [SAA7134_BOARD_RTD_VFG7350] = {
2283                 .name           = "RTD Embedded Technologies VFG7350",
2284                 .audio_clock    = 0x00200000,
2285                 .tuner_type     = TUNER_ABSENT,
2286                 .radio_type     = UNSET,
2287                 .tuner_addr     = ADDR_UNSET,
2288                 .radio_addr     = ADDR_UNSET,
2289                 .inputs         = {{
2290                         .name   = "Composite 0",
2291                         .vmux   = 0,
2292                         .amux   = LINE1,
2293                 },{
2294                         .name   = "Composite 1",
2295                         .vmux   = 1,
2296                         .amux   = LINE2,
2297                 },{
2298                         .name   = "Composite 2",
2299                         .vmux   = 2,
2300                         .amux   = LINE1,
2301                 },{
2302                         .name   = "Composite 3",
2303                         .vmux   = 3,
2304                         .amux   = LINE2,
2305                 },{
2306                         .name   = "S-Video 0",
2307                         .vmux   = 8,
2308                         .amux   = LINE1,
2309                 },{
2310                         .name   = "S-Video 1",
2311                         .vmux   = 9,
2312                         .amux   = LINE2,
2313                 }},
2314                 .mpeg           = SAA7134_MPEG_EMPRESS,
2315                 .video_out      = CCIR656,
2316                 .vid_port_opts  = ( SET_T_CODE_POLARITY_NON_INVERTED |
2317                                     SET_CLOCK_NOT_DELAYED |
2318                                     SET_CLOCK_INVERTED |
2319                                     SET_VSYNC_OFF ),
2320         },
2321         [SAA7134_BOARD_RTD_VFG7330] = {
2322                 .name           = "RTD Embedded Technologies VFG7330",
2323                 .audio_clock    = 0x00200000,
2324                 .tuner_type     = TUNER_ABSENT,
2325                 .radio_type     = UNSET,
2326                 .tuner_addr     = ADDR_UNSET,
2327                 .radio_addr     = ADDR_UNSET,
2328                 .inputs         = {{
2329                         .name   = "Composite 0",
2330                         .vmux   = 0,
2331                         .amux   = LINE1,
2332                 },{
2333                         .name   = "Composite 1",
2334                         .vmux   = 1,
2335                         .amux   = LINE2,
2336                 },{
2337                         .name   = "Composite 2",
2338                         .vmux   = 2,
2339                         .amux   = LINE1,
2340                 },{
2341                         .name   = "Composite 3",
2342                         .vmux   = 3,
2343                         .amux   = LINE2,
2344                 },{
2345                         .name   = "S-Video 0",
2346                         .vmux   = 8,
2347                         .amux   = LINE1,
2348                 },{
2349                         .name   = "S-Video 1",
2350                         .vmux   = 9,
2351                         .amux   = LINE2,
2352                 }},
2353         },
2354         [SAA7134_BOARD_FLYTVPLATINUM_MINI2] = {
2355                 .name           = "LifeView FlyTV Platinum Mini2",
2356                 .audio_clock    = 0x00200000,
2357                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2358                 .radio_type     = UNSET,
2359                 .tuner_addr     = ADDR_UNSET,
2360                 .radio_addr     = ADDR_UNSET,
2361
2362                 .inputs         = {{
2363                         .name = name_tv,
2364                         .vmux = 1,
2365                         .amux = TV,
2366                         .tv   = 1,
2367                 },{
2368                         .name = name_comp1,     /* Composite signal on S-Video input */
2369                         .vmux = 0,
2370                         .amux = LINE2,
2371                 },{
2372                         .name = name_comp2,     /* Composite input */
2373                         .vmux = 3,
2374                         .amux = LINE2,
2375                 },{
2376                         .name = name_svideo,
2377                         .vmux = 8,
2378                         .amux = LINE2,
2379                 }},
2380         },
2381         [SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180] = {
2382                 /* Michael Krufky <mkrufky@m1k.net>
2383                  * Uses Alps Electric TDHU2, containing NXT2004 ATSC Decoder
2384                  * AFAIK, there is no analog demod, thus,
2385                  * no support for analog television.
2386                  */
2387                 .name           = "AVerMedia AVerTVHD MCE A180",
2388                 .audio_clock    = 0x00187de7,
2389                 .tuner_type     = TUNER_ABSENT,
2390                 .radio_type     = UNSET,
2391                 .tuner_addr     = ADDR_UNSET,
2392                 .radio_addr     = ADDR_UNSET,
2393                 .mpeg           = SAA7134_MPEG_DVB,
2394                 .inputs         = {{
2395                         .name = name_comp1,
2396                         .vmux = 3,
2397                         .amux = LINE2,
2398                 },{
2399                         .name = name_svideo,
2400                         .vmux = 8,
2401                         .amux = LINE2,
2402                 }},
2403         },
2404         [SAA7134_BOARD_MONSTERTV_MOBILE] = {
2405                 .name           = "SKNet MonsterTV Mobile",
2406                 .audio_clock    = 0x00187de7,
2407                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2408                 .radio_type     = UNSET,
2409                 .tuner_addr     = ADDR_UNSET,
2410                 .radio_addr     = ADDR_UNSET,
2411
2412                 .inputs         = {{
2413                           .name = name_tv,
2414                           .vmux = 1,
2415                           .amux = TV,
2416                           .tv   = 1,
2417                 },{
2418                           .name = name_comp1,
2419                           .vmux = 3,
2420                           .amux = LINE1,
2421                 },{
2422                           .name = name_svideo,
2423                           .vmux = 6,
2424                           .amux = LINE1,
2425                 }},
2426         },
2427         [SAA7134_BOARD_PINNACLE_PCTV_110i] = {
2428                .name           = "Pinnacle PCTV 40i/50i/110i (saa7133)",
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       = 0x080200000,
2435                 .inputs         = {{
2436                           .name = name_tv,
2437                           .vmux = 4,
2438                           .amux = TV,
2439                           .tv   = 1,
2440                 },{
2441                           .name = name_comp1,
2442                           .vmux = 1,
2443                          .amux = LINE2,
2444                },{
2445                          .name = name_comp2,
2446                          .vmux = 0,
2447                           .amux = LINE2,
2448                 },{
2449                           .name = name_svideo,
2450                           .vmux = 8,
2451                           .amux = LINE2,
2452                 }},
2453                 .radio = {
2454                           .name = name_radio,
2455                           .amux = LINE1,
2456                 },
2457         },
2458         [SAA7134_BOARD_ASUSTeK_P7131_DUAL] = {
2459                 .name           = "ASUSTeK P7131 Dual",
2460                 .audio_clock    = 0x00187de7,
2461                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2462                 .radio_type     = UNSET,
2463                 .tuner_addr     = ADDR_UNSET,
2464                 .radio_addr     = ADDR_UNSET,
2465                 .gpiomask       = 1 << 21,
2466                 .mpeg           = SAA7134_MPEG_DVB,
2467                 .inputs         = {{
2468                         .name = name_tv,
2469                         .vmux = 1,
2470                         .amux = TV,
2471                         .tv   = 1,
2472                         .gpio = 0x0000000,
2473                 },{
2474                         .name = name_comp1,
2475                         .vmux = 3,
2476                         .amux = LINE2,
2477                         .gpio = 0x0200000,
2478                 },{
2479                         .name = name_comp2,
2480                         .vmux = 0,
2481                         .amux = LINE2,
2482                         .gpio = 0x0200000,
2483                 },{
2484                         .name = name_svideo,
2485                         .vmux = 8,
2486                         .amux = LINE2,
2487                         .gpio = 0x0200000,
2488                 }},
2489                 .radio = {
2490                         .name = name_radio,
2491                         .amux = TV,
2492                         .gpio = 0x0200000,
2493                 },
2494         },
2495         [SAA7134_BOARD_SEDNA_PC_TV_CARDBUS] = {
2496                 /* Paul Tom Zalac <pzalac@gmail.com> */
2497                 /* Pavel Mihaylov <bin@bash.info> */
2498                 .name           = "Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)",
2499                                 /* Sedna/MuchTV (OEM) Cardbus TV Tuner */
2500                 .audio_clock    = 0x00187de7,
2501                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2502                 .radio_type     = UNSET,
2503                 .tuner_addr     = ADDR_UNSET,
2504                 .radio_addr     = ADDR_UNSET,
2505                 .gpiomask       = 0xe880c0,
2506                 .inputs         = {{
2507                         .name = name_tv,
2508                         .vmux = 3,
2509                         .amux = TV,
2510                         .tv   = 1,
2511                 },{
2512                         .name = name_comp1,
2513                         .vmux = 1,
2514                         .amux = LINE1,
2515                 },{
2516                         .name = name_svideo,
2517                         .vmux = 6,
2518                         .amux = LINE1,
2519                 }},
2520                 .radio = {
2521                         .name = name_radio,
2522                         .amux = LINE2,
2523                 },
2524         },
2525         [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
2526                 /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
2527                 .name           = "ASUS Digimatrix TV",
2528                 .audio_clock    = 0x00200000,
2529                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
2530                 .tda9887_conf   = TDA9887_PRESENT,
2531                 .radio_type     = UNSET,
2532                 .tuner_addr     = ADDR_UNSET,
2533                 .radio_addr     = ADDR_UNSET,
2534                 .inputs         = {{
2535                         .name = name_tv,
2536                         .vmux = 1,
2537                         .amux = TV,
2538                         .tv   = 1,
2539                 },{
2540                         .name = name_comp1,
2541                         .vmux = 3,
2542                         .amux = LINE1,
2543                 },{
2544                         .name = name_svideo,
2545                         .vmux = 8,
2546                         .amux = LINE1,
2547                 }},
2548         },
2549         [SAA7134_BOARD_PHILIPS_TIGER] = {
2550                 .name           = "Philips Tiger reference design",
2551                 .audio_clock    = 0x00187de7,
2552                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2553                 .radio_type     = UNSET,
2554                 .tuner_addr     = ADDR_UNSET,
2555                 .radio_addr     = ADDR_UNSET,
2556                 .tuner_config   = 0,
2557                 .mpeg           = SAA7134_MPEG_DVB,
2558                 .gpiomask       = 0x0200000,
2559                 .inputs = {{
2560                         .name   = name_tv,
2561                         .vmux   = 1,
2562                         .amux   = TV,
2563                         .tv     = 1,
2564                 },{
2565                         .name   = name_comp1,
2566                         .vmux   = 3,
2567                         .amux   = LINE1,
2568                 },{
2569                         .name   = name_svideo,
2570                         .vmux   = 8,
2571                         .amux   = LINE1,
2572                 }},
2573                 .radio = {
2574                         .name   = name_radio,
2575                         .amux   = TV,
2576                         .gpio   = 0x0200000,
2577                 },
2578         },
2579         [SAA7134_BOARD_MSI_TVATANYWHERE_PLUS] = {
2580                 .name           = "MSI TV@Anywhere plus",
2581                 .audio_clock    = 0x00187de7,
2582                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2583                 .radio_type     = UNSET,
2584                 .tuner_addr     = ADDR_UNSET,
2585                 .radio_addr     = ADDR_UNSET,
2586                 .gpiomask       = 1 << 21,
2587                 .inputs = {{
2588                         .name   = name_tv,
2589                         .vmux   = 1,
2590                         .amux   = TV,
2591                         .tv     = 1,
2592                 },{
2593                         .name   = name_comp1,
2594                         .vmux   = 3,
2595                         .amux   = LINE2,        /* unconfirmed, taken from Philips driver */
2596                 },{
2597                         .name   = name_comp2,
2598                         .vmux   = 0,            /* untested, Composite over S-Video */
2599                         .amux   = LINE2,
2600                 },{
2601                         .name   = name_svideo,
2602                         .vmux   = 8,
2603                         .amux   = LINE2,
2604                 }},
2605                 .radio = {
2606                         .name   = name_radio,
2607                         .amux   = TV,
2608                         .gpio   = 0x0200000,
2609                 },
2610         },
2611         [SAA7134_BOARD_CINERGY250PCI] = {
2612                 /* remote-control does not work. The signal about a
2613                    key press comes in via gpio, but the key code
2614                    doesn't. Neither does it have an i2c remote control
2615                    interface. */
2616                 .name           = "Terratec Cinergy 250 PCI TV",
2617                 .audio_clock    = 0x00187de7,
2618                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2619                 .radio_type     = UNSET,
2620                 .tuner_addr     = ADDR_UNSET,
2621                 .radio_addr     = ADDR_UNSET,
2622                 .gpiomask       = 0x80200000,
2623                 .inputs         = {{
2624                         .name = name_tv,
2625                         .vmux = 1,
2626                         .amux = TV,
2627                         .tv   = 1,
2628                 },{
2629                         .name = name_svideo,  /* NOT tested */
2630                         .vmux = 8,
2631                         .amux = LINE1,
2632                 }},
2633                 .radio = {
2634                         .name   = name_radio,
2635                         .amux   = TV,
2636                         .gpio   = 0x0200000,
2637                 },
2638         },
2639         [SAA7134_BOARD_FLYDVB_TRIO] = {
2640                 /* LifeView LR319 FlyDVB Trio */
2641                 /* Peter Missel <peter.missel@onlinehome.de> */
2642                 .name           = "LifeView FlyDVB Trio",
2643                 .audio_clock    = 0x00200000,
2644                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2645                 .radio_type     = UNSET,
2646                 .tuner_addr     = ADDR_UNSET,
2647                 .radio_addr     = ADDR_UNSET,
2648                 .gpiomask       = 0x00200000,
2649                 .mpeg           = SAA7134_MPEG_DVB,
2650                 .inputs         = {{
2651                         .name = name_tv,        /* Analog broadcast/cable TV */
2652                         .vmux = 1,
2653                         .amux = TV,
2654                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2655                         .tv   = 1,
2656                 },{
2657                         .name = name_svideo,    /* S-Video signal on S-Video input */
2658                         .vmux = 8,
2659                         .amux = LINE2,
2660                 },{
2661                         .name = name_comp1,     /* Composite signal on S-Video input */
2662                         .vmux = 0,
2663                         .amux = LINE2,
2664                 },{
2665                         .name = name_comp2,     /* Composite input */
2666                         .vmux = 3,
2667                         .amux = LINE2,
2668                 }},
2669                 .radio = {
2670                         .name = name_radio,
2671                         .amux = TV,
2672                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2673                 },
2674         },
2675         [SAA7134_BOARD_AVERMEDIA_777] = {
2676                 .name           = "AverTV DVB-T 777",
2677                 .audio_clock    = 0x00187de7,
2678                 .tuner_type     = TUNER_ABSENT,
2679                 .radio_type     = UNSET,
2680                 .tuner_addr     = ADDR_UNSET,
2681                 .radio_addr     = ADDR_UNSET,
2682                 .mpeg           = SAA7134_MPEG_DVB,
2683                 .inputs = {{
2684                         .name   = name_comp1,
2685                         .vmux   = 1,
2686                         .amux   = LINE1,
2687                 },{
2688                         .name   = name_svideo,
2689                         .vmux   = 8,
2690                         .amux   = LINE1,
2691                 }},
2692         },
2693         [SAA7134_BOARD_FLYDVBT_LR301] = {
2694                 /* LifeView FlyDVB-T */
2695                 /* Giampiero Giancipoli <gianci@libero.it> */
2696                 .name           = "LifeView FlyDVB-T / Genius VideoWonder DVB-T",
2697                 .audio_clock    = 0x00200000,
2698                 .tuner_type     = TUNER_ABSENT,
2699                 .radio_type     = UNSET,
2700                 .tuner_addr     = ADDR_UNSET,
2701                 .radio_addr     = ADDR_UNSET,
2702                 .mpeg           = SAA7134_MPEG_DVB,
2703                 .inputs         = {{
2704                         .name = name_comp1,     /* Composite input */
2705                         .vmux = 3,
2706                         .amux = LINE2,
2707                 },{
2708                         .name = name_svideo,    /* S-Video signal on S-Video input */
2709                         .vmux = 8,
2710                         .amux = LINE2,
2711                 }},
2712         },
2713         [SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331] = {
2714                 .name           = "ADS Instant TV Duo Cardbus PTV331",
2715                 .audio_clock    = 0x00200000,
2716                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2717                 .radio_type     = UNSET,
2718                 .tuner_addr     = ADDR_UNSET,
2719                 .radio_addr     = ADDR_UNSET,
2720                 .mpeg           = SAA7134_MPEG_DVB,
2721                 .gpiomask       = 0x00600000, /* Bit 21 0=Radio, Bit 22 0=TV */
2722                 .inputs = {{
2723                         .name   = name_tv,
2724                         .vmux   = 1,
2725                         .amux   = TV,
2726                         .tv     = 1,
2727                         .gpio   = 0x00200000,
2728                 }},
2729         },
2730         [SAA7134_BOARD_TEVION_DVBT_220RF] = {
2731                 .name           = "Tevion/KWorld DVB-T 220RF",
2732                 .audio_clock    = 0x00187de7,
2733                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2734                 .radio_type     = UNSET,
2735                 .tuner_addr     = ADDR_UNSET,
2736                 .radio_addr     = ADDR_UNSET,
2737                 .mpeg           = SAA7134_MPEG_DVB,
2738                 .inputs = {{
2739                         .name   = name_tv,
2740                         .vmux   = 1,
2741                         .amux   = TV,
2742                         .tv     = 1,
2743                 },{
2744                         .name   = name_comp1,
2745                         .vmux   = 3,
2746                         .amux   = LINE1,
2747                 },{
2748                         .name   = name_svideo,
2749                         .vmux   = 0,
2750                         .amux   = LINE1,
2751                 }},
2752                 .radio = {
2753                         .name   = name_radio,
2754                         .amux   = LINE1,
2755                 },
2756         },
2757         [SAA7134_BOARD_KWORLD_ATSC110] = {
2758                 .name           = "Kworld ATSC110",
2759                 .audio_clock    = 0x00187de7,
2760                 .tuner_type     = TUNER_PHILIPS_TUV1236D,
2761                 .radio_type     = UNSET,
2762                 .tuner_addr     = ADDR_UNSET,
2763                 .radio_addr     = ADDR_UNSET,
2764                 .tda9887_conf   = TDA9887_PRESENT,
2765                 .mpeg           = SAA7134_MPEG_DVB,
2766                 .inputs         = {{
2767                         .name = name_tv,
2768                         .vmux = 1,
2769                         .amux = TV,
2770                         .tv   = 1,
2771                 },{
2772                         .name = name_comp1,
2773                         .vmux = 3,
2774                         .amux = LINE2,
2775                 },{
2776                         .name = name_svideo,
2777                         .vmux = 8,
2778                         .amux = LINE2,
2779                 }},
2780         },
2781         [SAA7134_BOARD_AVERMEDIA_A169_B] = {
2782                 /* AVerMedia A169  */
2783                 /* Rickard Osser <ricky@osser.se>  */
2784                 /* This card has two saa7134 chips on it,
2785                    but only one of them is currently working. */
2786                 .name           = "AVerMedia A169 B",
2787                 .audio_clock    = 0x02187de7,
2788                 .tuner_type     = TUNER_LG_TALN,
2789                 .radio_type     = UNSET,
2790                 .tuner_addr     = ADDR_UNSET,
2791                 .radio_addr     = ADDR_UNSET,
2792                 .tda9887_conf   = TDA9887_PRESENT,
2793                 .gpiomask       = 0x0a60000,
2794         },
2795         [SAA7134_BOARD_AVERMEDIA_A169_B1] = {
2796                 /* AVerMedia A169 */
2797                 /* Rickard Osser <ricky@osser.se> */
2798                 .name           = "AVerMedia A169 B1",
2799                 .audio_clock    = 0x02187de7,
2800                 .tuner_type     = TUNER_LG_TALN,
2801                 .radio_type     = UNSET,
2802                 .tuner_addr     = ADDR_UNSET,
2803                 .radio_addr     = ADDR_UNSET,
2804                 .tda9887_conf   = TDA9887_PRESENT,
2805                 .gpiomask       = 0xca60000,
2806                 .inputs         = {{
2807                         .name = name_tv,
2808                         .vmux = 4,
2809                         .amux = TV,
2810                         .tv   = 1,
2811                         .gpio = 0x04a61000,
2812                 },{
2813                         .name = name_comp2,  /*  Composite SVIDEO (B/W if signal is carried with SVIDEO) */
2814                         .vmux = 1,
2815                         .amux = LINE2,
2816                 },{
2817                         .name = name_svideo,
2818                         .vmux = 9,           /* 9 is correct as S-VIDEO1 according to a169.inf! */
2819                         .amux = LINE1,
2820                 }},
2821         },
2822         [SAA7134_BOARD_MD7134_BRIDGE_2] = {
2823                 /* This card has two saa7134 chips on it,
2824                    but only one of them is currently working.
2825                    The programming for the primary decoder is
2826                    in SAA7134_BOARD_MD7134 */
2827                 .name           = "Medion 7134 Bridge #2",
2828                 .audio_clock    = 0x00187de7,
2829                 .radio_type     = UNSET,
2830                 .tuner_addr     = ADDR_UNSET,
2831                 .radio_addr     = ADDR_UNSET,
2832         },
2833         [SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS] = {
2834                 .name           = "LifeView FlyDVB-T Hybrid Cardbus",
2835                 .audio_clock    = 0x00200000,
2836                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2837                 .radio_type     = UNSET,
2838                 .tuner_addr     = ADDR_UNSET,
2839                 .radio_addr     = ADDR_UNSET,
2840                 .mpeg           = SAA7134_MPEG_DVB,
2841                 .gpiomask       = 0x00600000, /* Bit 21 0=Radio, Bit 22 0=TV */
2842                 .inputs         = {{
2843                         .name = name_tv,
2844                         .vmux = 1,
2845                         .amux = TV,
2846                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2847                         .tv   = 1,
2848                 },{
2849                         .name = name_svideo,    /* S-Video signal on S-Video input */
2850                         .vmux = 8,
2851                         .amux = LINE2,
2852                 },{
2853                         .name = name_comp1,     /* Composite signal on S-Video input */
2854                         .vmux = 0,
2855                         .amux = LINE2,
2856                 },{
2857                         .name = name_comp2,     /* Composite input */
2858                         .vmux = 3,
2859                         .amux = LINE2,
2860                 }},
2861                 .radio = {
2862                         .name = name_radio,
2863                         .amux = TV,
2864                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2865                 },
2866         },
2867         [SAA7134_BOARD_FLYVIDEO3000_NTSC] = {
2868                 /* "Zac Bowling" <zac@zacbowling.com> */
2869                 .name           = "LifeView FlyVIDEO3000 (NTSC)",
2870                 .audio_clock    = 0x00200000,
2871                 .tuner_type     = TUNER_PHILIPS_NTSC,
2872                 .radio_type     = UNSET,
2873                 .tuner_addr     = ADDR_UNSET,
2874                 .radio_addr     = ADDR_UNSET,
2875
2876                 .gpiomask       = 0xe000,
2877                 .inputs         = {{
2878                         .name = name_tv,
2879                         .vmux = 1,
2880                         .amux = TV,
2881                         .gpio = 0x8000,
2882                         .tv   = 1,
2883                 },{
2884                         .name = name_tv_mono,
2885                         .vmux = 1,
2886                         .amux = LINE2,
2887                         .gpio = 0x0000,
2888                         .tv   = 1,
2889                 },{
2890                         .name = name_comp1,
2891                         .vmux = 0,
2892                         .amux = LINE2,
2893                         .gpio = 0x4000,
2894                 },{
2895                         .name = name_comp2,
2896                         .vmux = 3,
2897                         .amux = LINE2,
2898                         .gpio = 0x4000,
2899                 },{
2900                         .name = name_svideo,
2901                         .vmux = 8,
2902                         .amux = LINE2,
2903                         .gpio = 0x4000,
2904                 }},
2905                 .radio = {
2906                         .name = name_radio,
2907                         .amux = LINE2,
2908                         .gpio = 0x2000,
2909                 },
2910                         .mute = {
2911                         .name = name_mute,
2912                         .amux = TV,
2913                         .gpio = 0x8000,
2914                 },
2915         },
2916         [SAA7134_BOARD_MEDION_MD8800_QUADRO] = {
2917                 .name           = "Medion Md8800 Quadro",
2918                 .audio_clock    = 0x00187de7,
2919                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2920                 .radio_type     = UNSET,
2921                 .tuner_addr     = ADDR_UNSET,
2922                 .radio_addr     = ADDR_UNSET,
2923                 .mpeg           = SAA7134_MPEG_DVB,
2924                 .inputs = {{
2925                         .name   = name_tv,
2926                         .vmux   = 1,
2927                         .amux   = TV,
2928                         .tv     = 1,
2929                 },{
2930                         .name   = name_comp1,
2931                         .vmux   = 0,
2932                         .amux   = LINE2,
2933                 },{
2934                         .name   = name_svideo,
2935                         .vmux   = 8,
2936                         .amux   = LINE2,
2937                 }},
2938         },
2939         [SAA7134_BOARD_FLYDVBS_LR300] = {
2940                 /* LifeView FlyDVB-s */
2941                 /* Igor M. Liplianin <liplianin@tut.by> */
2942                 .name           = "LifeView FlyDVB-S /Acorp TV134DS",
2943                 .audio_clock    = 0x00200000,
2944                 .tuner_type     = TUNER_ABSENT,
2945                 .radio_type     = UNSET,
2946                 .tuner_addr     = ADDR_UNSET,
2947                 .radio_addr     = ADDR_UNSET,
2948                 .mpeg           = SAA7134_MPEG_DVB,
2949                 .inputs         = {{
2950                         .name = name_comp1,     /* Composite input */
2951                         .vmux = 3,
2952                         .amux = LINE1,
2953                 },{
2954                         .name = name_svideo,    /* S-Video signal on S-Video input */
2955                         .vmux = 8,
2956                         .amux = LINE1,
2957                 }},
2958         },
2959         [SAA7134_BOARD_PROTEUS_2309] = {
2960                 .name           = "Proteus Pro 2309",
2961                 .audio_clock    = 0x00187de7,
2962                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
2963                 .radio_type     = UNSET,
2964                 .tuner_addr     = ADDR_UNSET,
2965                 .radio_addr     = ADDR_UNSET,
2966                 .tda9887_conf   = TDA9887_PRESENT,
2967                 .inputs         = {{
2968                         .name = name_tv,
2969                         .vmux = 1,
2970                         .amux = LINE2,
2971                         .tv   = 1,
2972                 },{
2973                         .name = name_comp1,
2974                         .vmux = 0,
2975                         .amux = LINE2,
2976                 },{
2977                         .name = name_comp2,
2978                         .vmux = 3,
2979                         .amux = LINE2,
2980                 },{
2981                         .name = name_svideo,
2982                         .vmux = 8,
2983                         .amux = LINE2,
2984                 }},
2985                 .mute = {
2986                         .name = name_mute,
2987                         .amux = LINE1,
2988                 },
2989         },
2990         [SAA7134_BOARD_AVERMEDIA_A16AR] = {
2991                 /* Petr Baudis <pasky@ucw.cz> */
2992                 .name           = "AVerMedia TV Hybrid A16AR",
2993                 .audio_clock    = 0x187de7,
2994                 .tuner_type     = TUNER_PHILIPS_TD1316, /* untested */
2995                 .radio_type     = TUNER_TEA5767, /* untested */
2996                 .tuner_addr     = ADDR_UNSET,
2997                 .radio_addr     = ADDR_UNSET,
2998                 .tda9887_conf   = TDA9887_PRESENT,
2999                 .mpeg           = SAA7134_MPEG_DVB,
3000                 .inputs         = {{
3001                         .name = name_tv,
3002                         .vmux = 1,
3003                         .amux = TV,
3004                         .tv   = 1,
3005                 },{
3006                         .name = name_comp1,
3007                         .vmux = 3,
3008                         .amux = LINE2,
3009                 },{
3010                         .name = name_svideo,
3011                         .vmux = 8,
3012                         .amux = LINE1,
3013                 }},
3014                 .radio = {
3015                         .name = name_radio,
3016                         .amux = LINE1,
3017                 },
3018         },
3019         [SAA7134_BOARD_ASUS_EUROPA2_HYBRID] = {
3020                 .name           = "Asus Europa2 OEM",
3021                 .audio_clock    = 0x00187de7,
3022                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
3023                 .radio_type     = UNSET,
3024                 .tuner_addr     = ADDR_UNSET,
3025                 .radio_addr     = ADDR_UNSET,
3026                 .tda9887_conf   = TDA9887_PRESENT| TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE,
3027                 .mpeg           = SAA7134_MPEG_DVB,
3028                 .inputs = {{
3029                         .name   = name_tv,
3030                         .vmux   = 3,
3031                         .amux   = TV,
3032                         .tv     = 1,
3033                 },{
3034                         .name   = name_comp1,
3035                         .vmux   = 4,
3036                         .amux   = LINE2,
3037                 },{
3038                         .name   = name_svideo,
3039                         .vmux   = 8,
3040                         .amux   = LINE2,
3041                 }},
3042                 .radio = {
3043                         .name   = name_radio,
3044                         .amux   = LINE1,
3045                 },
3046         },
3047         [SAA7134_BOARD_PINNACLE_PCTV_310i] = {
3048                 .name           = "Pinnacle PCTV 310i",
3049                 .audio_clock    = 0x00187de7,
3050                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3051                 .radio_type     = UNSET,
3052                 .tuner_addr     = ADDR_UNSET,
3053                 .radio_addr     = ADDR_UNSET,
3054                 .tuner_config   = 1,
3055                 .mpeg           = SAA7134_MPEG_DVB,
3056                 .gpiomask       = 0x000200000,
3057                 .inputs         = {{
3058                         .name = name_tv,
3059                         .vmux = 4,
3060                         .amux = TV,
3061                         .tv   = 1,
3062                 },{
3063                         .name = name_comp1,
3064                         .vmux = 1,
3065                         .amux = LINE2,
3066                 },{
3067                         .name = name_comp2,
3068                         .vmux = 0,
3069                         .amux = LINE2,
3070                 },{
3071                         .name = name_svideo,
3072                         .vmux = 8,
3073                         .amux = LINE2,
3074                 }},
3075                 .radio = {
3076                         .name = name_radio,
3077                         .amux   = TV,
3078                         .gpio   = 0x0200000,
3079                 },
3080         },
3081         [SAA7134_BOARD_AVERMEDIA_STUDIO_507] = {
3082                 /* Mikhail Fedotov <mo_fedotov@mail.ru> */
3083                 .name           = "Avermedia AVerTV Studio 507",
3084                 .audio_clock    = 0x00187de7,
3085                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
3086                 .radio_type     = UNSET,
3087                 .tuner_addr     = ADDR_UNSET,
3088                 .radio_addr     = ADDR_UNSET,
3089                 .tda9887_conf   = TDA9887_PRESENT,
3090                 .gpiomask       = 0x03,
3091                 .inputs         = {{
3092                         .name = name_tv,
3093                         .vmux = 1,
3094                         .amux = TV,
3095                         .tv   = 1,
3096                         .gpio = 0x00,
3097                 },{
3098                         .name = name_comp1,
3099                         .vmux = 0,
3100                         .amux = LINE2,
3101                         .gpio = 0x00,
3102                 },{
3103                         .name = name_comp2,
3104                         .vmux = 3,
3105                         .amux = LINE2,
3106                         .gpio = 0x00,
3107                 },{
3108                         .name = name_svideo,
3109                         .vmux = 8,
3110                         .amux = LINE2,
3111                         .gpio = 0x00,
3112                 }},
3113                 .radio = {
3114                         .name = name_radio,
3115                         .amux = LINE2,
3116                         .gpio = 0x01,
3117                 },
3118                 .mute  = {
3119                         .name = name_mute,
3120                         .amux = LINE1,
3121                         .gpio = 0x00,
3122                 },
3123         },
3124         [SAA7134_BOARD_VIDEOMATE_DVBT_200A] = {
3125                 /* Francis Barber <fedora@barber-family.id.au> */
3126                 .name           = "Compro Videomate DVB-T200A",
3127                 .audio_clock    = 0x00187de7,
3128                 .tuner_type     = TUNER_ABSENT,
3129                 .radio_type     = UNSET,
3130                 .tuner_addr     = ADDR_UNSET,
3131                 .radio_addr     = ADDR_UNSET,
3132                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
3133                 .mpeg           = SAA7134_MPEG_DVB,
3134                 .inputs = {{
3135                         .name   = name_tv,
3136                         .vmux   = 3,
3137                         .amux   = TV,
3138                         .tv     = 1,
3139                 },{
3140                         .name   = name_comp1,
3141                         .vmux   = 1,
3142                         .amux   = LINE2,
3143                 },{
3144                         .name   = name_svideo,
3145                         .vmux   = 8,
3146                         .amux   = LINE2,
3147                 }},
3148         },
3149         [SAA7134_BOARD_HAUPPAUGE_HVR1110] = {
3150                 /* Thomas Genty <tomlohave@gmail.com> */
3151                 .name           = "Hauppauge WinTV-HVR1110 DVB-T/Hybrid",
3152                 .audio_clock    = 0x00187de7,
3153                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3154                 .radio_type     = UNSET,
3155                 .tuner_addr     = ADDR_UNSET,
3156                 .radio_addr     = ADDR_UNSET,
3157                 .mpeg           = SAA7134_MPEG_DVB,
3158                 .inputs         = {{
3159                         .name = name_tv,
3160                         .vmux = 1,
3161                         .amux = TV,
3162                         .tv   = 1,
3163                 },{
3164                         .name   = name_comp1,
3165                         .vmux   = 3,
3166                         .amux   = LINE2, /* FIXME: audio doesn't work on svideo/composite */
3167                 },{
3168                         .name   = name_svideo,
3169                         .vmux   = 8,
3170                         .amux   = LINE2, /* FIXME: audio doesn't work on svideo/composite */
3171                 }},
3172                 .radio = {
3173                         .name = name_radio,
3174                         .amux   = TV,
3175                 },
3176         },
3177         [SAA7134_BOARD_CINERGY_HT_PCMCIA] = {
3178                 .name           = "Terratec Cinergy HT PCMCIA",
3179                 .audio_clock    = 0x00187de7,
3180                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3181                 .radio_type     = UNSET,
3182                 .tuner_addr     = ADDR_UNSET,
3183                 .radio_addr     = ADDR_UNSET,
3184                 .mpeg           = SAA7134_MPEG_DVB,
3185                 .inputs = {{
3186                         .name   = name_tv,
3187                         .vmux   = 1,
3188                         .amux   = TV,
3189                         .tv     = 1,
3190                 },{
3191                         .name   = name_comp1,
3192                         .vmux   = 0,
3193                         .amux   = LINE1,
3194                 },{
3195                         .name   = name_svideo,
3196                         .vmux   = 6,
3197                         .amux   = LINE1,
3198                 }},
3199         },
3200         [SAA7134_BOARD_ENCORE_ENLTV] = {
3201         /* Steven Walter <stevenrwalter@gmail.com>
3202            Juan Pablo Sormani <sorman@gmail.com> */
3203                 .name           = "Encore ENLTV",
3204                 .audio_clock    = 0x00200000,
3205                 .tuner_type     = TUNER_TNF_5335MF,
3206                 .radio_type     = UNSET,
3207                 .tuner_addr     = ADDR_UNSET,
3208                 .radio_addr     = ADDR_UNSET,
3209                 .inputs         = {{
3210                         .name = name_tv,
3211                         .vmux = 1,
3212                         .amux = 3,
3213                         .tv   = 1,
3214                 },{
3215                         .name = name_tv_mono,
3216                         .vmux = 7,
3217                         .amux = 4,
3218                         .tv   = 1,
3219                 },{
3220                         .name = name_comp1,
3221                         .vmux = 3,
3222                         .amux = 2,
3223                 },{
3224                         .name = name_svideo,
3225                         .vmux = 0,
3226                         .amux = 2,
3227                 }},
3228                 .radio = {
3229                         .name = name_radio,
3230                         .amux = LINE2,
3231 /*                      .gpio = 0x00300001,*/
3232                         .gpio = 0x20000,
3233
3234                 },
3235                 .mute = {
3236                         .name = name_mute,
3237                         .amux = 0,
3238                 },
3239         },
3240         [SAA7134_BOARD_ENCORE_ENLTV_FM] = {
3241   /*    Juan Pablo Sormani <sorman@gmail.com> */
3242                 .name           = "Encore ENLTV-FM",
3243                 .audio_clock    = 0x00200000,
3244                 .tuner_type     = TUNER_PHILIPS_ATSC,
3245                 .radio_type     = UNSET,
3246                 .tuner_addr     = ADDR_UNSET,
3247                 .radio_addr     = ADDR_UNSET,
3248                 .inputs         = {{
3249                         .name = name_tv,
3250                         .vmux = 1,
3251                         .amux = 3,
3252                         .tv   = 1,
3253                 },{
3254                         .name = name_tv_mono,
3255                         .vmux = 7,
3256                         .amux = 4,
3257                         .tv   = 1,
3258                 },{
3259                         .name = name_comp1,
3260                         .vmux = 3,
3261                         .amux = 2,
3262                 },{
3263                         .name = name_svideo,
3264                         .vmux = 0,
3265                         .amux = 2,
3266                 }},
3267                 .radio = {
3268                         .name = name_radio,
3269                         .amux = LINE2,
3270                         .gpio = 0x20000,
3271
3272                 },
3273                 .mute = {
3274                         .name = name_mute,
3275                         .amux = 0,
3276                 },
3277         },
3278         [SAA7134_BOARD_CINERGY_HT_PCI] = {
3279                 .name           = "Terratec Cinergy HT PCI",
3280                 .audio_clock    = 0x00187de7,
3281                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3282                 .radio_type     = UNSET,
3283                 .tuner_addr     = ADDR_UNSET,
3284                 .radio_addr     = ADDR_UNSET,
3285                 .mpeg           = SAA7134_MPEG_DVB,
3286                 .inputs = {{
3287                         .name   = name_tv,
3288                         .vmux   = 1,
3289                         .amux   = TV,
3290                         .tv     = 1,
3291                 },{
3292                         .name   = name_comp1,
3293                         .vmux   = 0,
3294                         .amux   = LINE1,
3295                 },{
3296                         .name   = name_svideo,
3297                         .vmux   = 6,
3298                         .amux   = LINE1,
3299                 }},
3300         },
3301         [SAA7134_BOARD_PHILIPS_TIGER_S] = {
3302                 .name           = "Philips Tiger - S Reference design",
3303                 .audio_clock    = 0x00187de7,
3304                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3305                 .radio_type     = UNSET,
3306                 .tuner_addr     = ADDR_UNSET,
3307                 .radio_addr     = ADDR_UNSET,
3308                 .tuner_config   = 2,
3309                 .mpeg           = SAA7134_MPEG_DVB,
3310                 .gpiomask       = 0x0200000,
3311                 .inputs = {{
3312                         .name   = name_tv,
3313                         .vmux   = 1,
3314                         .amux   = TV,
3315                         .tv     = 1,
3316                 },{
3317                         .name   = name_comp1,
3318                         .vmux   = 3,
3319                         .amux   = LINE1,
3320                 },{
3321                         .name   = name_svideo,
3322                         .vmux   = 8,
3323                         .amux   = LINE1,
3324                 }},
3325                 .radio = {
3326                         .name   = name_radio,
3327                         .amux   = TV,
3328                         .gpio   = 0x0200000,
3329                 },
3330         },
3331         [SAA7134_BOARD_AVERMEDIA_M102] = {
3332                 .name           = "Avermedia M102",
3333                 .audio_clock    = 0x00187de7,
3334                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3335                 .radio_type     = UNSET,
3336                 .tuner_addr     = ADDR_UNSET,
3337                 .radio_addr     = ADDR_UNSET,
3338                 .gpiomask       = 1<<21,
3339                 .inputs         = {{
3340                         .name = name_tv,
3341                         .vmux = 1,
3342                         .amux = TV,
3343                         .tv   = 1,
3344                 },{
3345                         .name = name_comp1,
3346                         .vmux = 0,
3347                         .amux = LINE2,
3348                 },{
3349                         .name = name_svideo,
3350                         .vmux = 6,
3351                         .amux = LINE2,
3352                 }},
3353         },
3354         [SAA7134_BOARD_ASUS_P7131_4871] = {
3355                 .name           = "ASUS P7131 4871",
3356                 .audio_clock    = 0x00187de7,
3357                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3358                 .radio_type     = UNSET,
3359                 .tuner_addr     = ADDR_UNSET,
3360                 .radio_addr     = ADDR_UNSET,
3361                 .tuner_config   = 2,
3362                 .mpeg           = SAA7134_MPEG_DVB,
3363                 .gpiomask       = 0x0200000,
3364                 .inputs = {{
3365                         .name   = name_tv,
3366                         .vmux   = 1,
3367                         .amux   = TV,
3368                         .tv     = 1,
3369                         .gpio   = 0x0200000,
3370                 }},
3371         },
3372         [SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA] = {
3373                 .name           = "ASUSTeK P7131 Hybrid",
3374                 .audio_clock    = 0x00187de7,
3375                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3376                 .radio_type     = UNSET,
3377                 .tuner_addr     = ADDR_UNSET,
3378                 .radio_addr     = ADDR_UNSET,
3379                 .tuner_config   = 2,
3380                 .gpiomask       = 1 << 21,
3381                 .mpeg           = SAA7134_MPEG_DVB,
3382                 .inputs         = {{
3383                         .name = name_tv,
3384                         .vmux = 1,
3385                         .amux = TV,
3386                         .tv   = 1,
3387                         .gpio = 0x0000000,
3388                 },{
3389                         .name = name_comp1,
3390                         .vmux = 3,
3391                         .amux = LINE2,
3392                         .gpio = 0x0200000,
3393                 },{
3394                         .name = name_comp2,
3395                         .vmux = 0,
3396                         .amux = LINE2,
3397                         .gpio = 0x0200000,
3398                 },{
3399                         .name = name_svideo,
3400                         .vmux = 8,
3401                         .amux = LINE2,
3402                         .gpio = 0x0200000,
3403                 }},
3404                 .radio = {
3405                         .name = name_radio,
3406                         .amux = TV,
3407                         .gpio = 0x0200000,
3408                 },
3409         },
3410 };
3411
3412 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
3413
3414 /* ------------------------------------------------------------------ */
3415 /* PCI ids + subsystem IDs                                            */
3416
3417 struct pci_device_id saa7134_pci_tbl[] = {
3418         {
3419                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3420                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3421                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3422                 .subdevice    = 0x2001,
3423                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
3424         },{
3425                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3426                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3427                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3428                 .subdevice    = 0x2001,
3429                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
3430         },{
3431                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3432                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3433                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3434                 .subdevice    = 0x6752,
3435                 .driver_data  = SAA7134_BOARD_EMPRESS,
3436         },{
3437                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3438                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3439                 .subvendor    = 0x1131,
3440                 .subdevice    = 0x4e85,
3441                 .driver_data  = SAA7134_BOARD_MONSTERTV,
3442         },{
3443                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3444                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3445                 .subvendor    = 0x153b,
3446                 .subdevice    = 0x1142,
3447                 .driver_data  = SAA7134_BOARD_CINERGY400,
3448         },{
3449                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3450                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3451                 .subvendor    = 0x153b,
3452                 .subdevice    = 0x1143,
3453                 .driver_data  = SAA7134_BOARD_CINERGY600,
3454         },{
3455                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3456                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3457                 .subvendor    = 0x153b,
3458                 .subdevice    = 0x1158,
3459                 .driver_data  = SAA7134_BOARD_CINERGY600_MK3,
3460         },{
3461                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3462                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3463                 .subvendor    = 0x153b,
3464                 .subdevice    = 0x1162,
3465                 .driver_data  = SAA7134_BOARD_CINERGY400_CARDBUS,
3466         },{
3467                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3468                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3469                 .subvendor    = 0x5169,
3470                 .subdevice    = 0x0138,
3471                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000_NTSC,
3472         },{
3473                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3474                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3475                 .subvendor    = 0x5168,
3476                 .subdevice    = 0x0138,
3477                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
3478         },{
3479                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3480                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3481                 .subvendor    = 0x4e42,                         /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
3482                 .subdevice    = 0x0138,
3483                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
3484         },{
3485                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3486                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3487                 .subvendor    = 0x5168,
3488                 .subdevice    = 0x0138,
3489                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
3490         },{
3491                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3492                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3493                 .subvendor    = 0x4e42,         /* Typhoon */
3494                 .subdevice    = 0x0138,         /* LifeView FlyTV Prime30 OEM */
3495                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
3496         },{
3497                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3498                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3499                 .subvendor    = 0x5168,
3500                 .subdevice    = 0x0212, /* minipci, LR212 */
3501                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
3502         },{
3503                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3504                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3505                 .subvendor    = 0x14c0,
3506                 .subdevice    = 0x1212, /* minipci, LR1212 */
3507                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
3508         },{
3509                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3510                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3511                 .subvendor    = 0x4e42,
3512                 .subdevice    = 0x0212, /* OEM minipci, LR212 */
3513                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
3514         },{
3515                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3516                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3517                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
3518                 .subdevice    = 0x0214, /* Standard PCI, LR214WF */
3519                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
3520         },{
3521                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3522                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3523                 .subvendor    = 0x1489, /* KYE */
3524                 .subdevice    = 0x0214, /* Genius VideoWonder ProTV */
3525                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
3526         },{
3527                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3528                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3529                 .subvendor    = 0x16be,
3530                 .subdevice    = 0x0003,
3531                 .driver_data  = SAA7134_BOARD_MD7134,
3532         },{
3533                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3534                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3535                 .subvendor    = 0x1048,
3536                 .subdevice    = 0x226b,
3537                 .driver_data  = SAA7134_BOARD_ELSA,
3538         },{
3539                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3540                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3541                 .subvendor    = 0x1048,
3542                 .subdevice    = 0x226a,
3543                 .driver_data  = SAA7134_BOARD_ELSA_500TV,
3544         },{
3545                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3546                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3547                 .subvendor    = 0x1048,
3548                 .subdevice    = 0x226c,
3549                 .driver_data  = SAA7134_BOARD_ELSA_700TV,
3550         },{
3551                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3552                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3553                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3554                 .subdevice    = 0x4842,
3555                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3556         },{
3557                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3558                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3559                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3560                 .subdevice    = 0x4845,
3561                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7135,
3562         },{
3563                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3564                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3565                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3566                 .subdevice    = 0x4830,
3567                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3568         },{
3569                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3570                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3571                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3572                 .subdevice    = 0x4843,
3573                 .driver_data  = SAA7134_BOARD_ASUSTEK_TVFM7133,
3574         },{
3575                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3576                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3577                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3578                 .subdevice    = 0x4840,
3579                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3580         },{
3581                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3582                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3583                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3584                 .subdevice    = 0xfe01,
3585                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
3586         },{
3587                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3588                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3589                 .subvendor    = 0x1894,
3590                 .subdevice    = 0xfe01,
3591                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
3592         },{
3593                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3594                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3595                 .subvendor    = 0x1894,
3596                 .subdevice    = 0xa006,
3597                 .driver_data  = SAA7134_BOARD_TVSTATION_DVR,
3598         },{
3599                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3600                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3601                 .subvendor    = 0x1131,
3602                 .subdevice    = 0x7133,
3603                 .driver_data  = SAA7134_BOARD_VA1000POWER,
3604         },{
3605                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3606                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3607                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3608                 .subdevice    = 0x2001,
3609                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER,
3610         },{
3611                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3612                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3613                 .subvendor    = 0x185b,
3614                 .subdevice    = 0xc100,
3615                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV,
3616         },{
3617                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3618                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3619                 .subvendor    = 0x185b,
3620                 .subdevice    = 0xc100,
3621                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
3622         },{
3623                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3624                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3625                 .subvendor    = PCI_VENDOR_ID_MATROX,
3626                 .subdevice    = 0x48d0,
3627                 .driver_data  = SAA7134_BOARD_CRONOS_PLUS,
3628         },{
3629                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3630                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3631                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3632                 .subdevice    = 0xa70b,
3633                 .driver_data  = SAA7134_BOARD_MD2819,
3634         },{
3635                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3636                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3637                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3638                 .subdevice    = 0x2115,
3639                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
3640         },{
3641                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3642                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3643                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3644                 .subdevice    = 0x2108,
3645                 .driver_data  = SAA7134_BOARD_AVERMEDIA_305,
3646         },{
3647                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3648                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3649                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3650                 .subdevice    = 0x10ff,
3651                 .driver_data  = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
3652         },{
3653                 /* AVerMedia CardBus */
3654                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3655                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3656                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3657                 .subdevice    = 0xd6ee,
3658                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
3659         },{
3660                 /* TransGear 3000TV */
3661                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3662                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3663                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3664                 .subdevice    = 0x050c,
3665                 .driver_data  = SAA7134_BOARD_TG3000TV,
3666         },{
3667                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3668                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3669                 .subvendor    = 0x11bd,
3670                 .subdevice    = 0x002b,
3671                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
3672         },{
3673                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3674                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3675                 .subvendor    = 0x11bd,
3676                 .subdevice    = 0x002d,
3677                 .driver_data  = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
3678         },{
3679                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3680                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3681                 .subvendor    = 0x1019,
3682                 .subdevice    = 0x4cb4,
3683                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP,
3684         },{
3685                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3686                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3687                 .subvendor    = 0x1019,
3688                 .subdevice    = 0x4cb5,
3689                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB5,
3690         },{
3691                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3692                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3693                 .subvendor    = 0x12ab,
3694                 .subdevice    = 0x0800,
3695                 .driver_data  = SAA7134_BOARD_UPMOST_PURPLE_TV,
3696         },{
3697                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3698                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3699                 .subvendor    = 0x153b,
3700                 .subdevice    = 0x1152,
3701                 .driver_data  = SAA7134_BOARD_CINERGY200,
3702         },{
3703                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3704                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3705                 .subvendor    = 0x185b,
3706                 .subdevice    = 0xc100,
3707                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_PVR,
3708         },{
3709                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3710                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3711                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3712                 .subdevice    = 0x9715,
3713                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
3714         },{
3715                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3716                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3717                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3718                 .subdevice    = 0xa70a,
3719                 .driver_data  = SAA7134_BOARD_AVERMEDIA_307,
3720         },{
3721                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3722                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3723                 .subvendor    = 0x185b,
3724                 .subdevice    = 0xc200,
3725                 .driver_data  = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
3726         },{
3727                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3728                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3729                 .subvendor    = 0x1540,
3730                 .subdevice    = 0x9524,
3731                 .driver_data  = SAA7134_BOARD_PROVIDEO_PV952,
3732
3733         },{
3734                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3735                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3736                 .subvendor    = 0x5168,
3737                 .subdevice    = 0x0502,                /* Cardbus version */
3738                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
3739         },{
3740                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3741                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3742                 .subvendor    = 0x5168,
3743                 .subdevice    = 0x0306,                /* PCI version */
3744                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
3745         },{
3746                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3747                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3748                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3749                 .subdevice    = 0xf31f,
3750                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
3751
3752         },{
3753                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3754                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3755                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3756                 .subdevice    = 0x2004,
3757                 .driver_data  = SAA7134_BOARD_PHILIPS_TOUGH,
3758         },{
3759                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3760                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3761                 .subvendor    = 0x1421,
3762                 .subdevice    = 0x0350,         /* PCI version */
3763                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3764         },{
3765                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3766                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3767                 .subvendor    = 0x1421,
3768                 .subdevice    = 0x0351,         /* PCI version, new revision */
3769                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3770         },{
3771                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3772                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3773                 .subvendor    = 0x1421,
3774                 .subdevice    = 0x0370,         /* cardbus version */
3775                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3776         },{
3777                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3778                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3779                 .subvendor    = 0x1421,
3780                 .subdevice    = 0x1370,        /* cardbus version */
3781                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3782
3783         },{
3784                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3785                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3786                 .subvendor    = 0x4e42,         /* Typhoon */
3787                 .subdevice    = 0x0502,         /* LifeView LR502 OEM */
3788                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
3789         },{
3790                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3791                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3792                 .subvendor    = 0x1043,
3793                 .subdevice    = 0x0210,         /* mini pci NTSC version */
3794                 .driver_data  = SAA7134_BOARD_FLYTV_DIGIMATRIX,
3795         },{
3796                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3797                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3798                 .subvendor    = 0x1043,
3799                 .subdevice    = 0x0210,         /* mini pci PAL/SECAM version */
3800                 .driver_data  = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
3801
3802         },{
3803                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3804                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3805                 .subvendor    = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
3806                 .subdevice    = 0x4091,
3807                 .driver_data  = SAA7134_BOARD_BEHOLD_409FM,
3808         },{
3809                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3810                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3811                 .subvendor    = 0x5456, /* GoTView */
3812                 .subdevice    = 0x7135,
3813                 .driver_data  = SAA7134_BOARD_GOTVIEW_7135,
3814         },{
3815                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3816                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3817                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3818                 .subdevice    = 0x2004,
3819                 .driver_data  = SAA7134_BOARD_PHILIPS_EUROPA,
3820         },{
3821                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3822                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3823                 .subvendor    = 0x185b,
3824                 .subdevice    = 0xc900,
3825                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_300,
3826         },{
3827                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3828                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3829                 .subvendor    = 0x185b,
3830                 .subdevice    = 0xc901,
3831                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_200,
3832         },{
3833                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3834                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3835                 .subvendor    = 0x1435,
3836                 .subdevice    = 0x7350,
3837                 .driver_data  = SAA7134_BOARD_RTD_VFG7350,
3838         },{
3839                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3840                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3841                 .subvendor    = 0x1435,
3842                 .subdevice    = 0x7330,
3843                 .driver_data  = SAA7134_BOARD_RTD_VFG7330,
3844         },{
3845                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3846                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3847                 .subvendor    = 0x1461,
3848                 .subdevice    = 0x1044,
3849                 .driver_data  = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
3850         },{
3851                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3852                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3853                 .subvendor    = 0x1131,
3854                 .subdevice    = 0x4ee9,
3855                 .driver_data  = SAA7134_BOARD_MONSTERTV_MOBILE,
3856         },{
3857                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3858                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3859                 .subvendor    = 0x11bd,
3860                 .subdevice    = 0x002e,
3861                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_110i,
3862         },{
3863                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3864                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3865                 .subvendor    = 0x1043,
3866                 .subdevice    = 0x4862,
3867                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3868         },{
3869                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3870                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3871                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3872                 .subdevice    = 0x2018,
3873                 .driver_data  = SAA7134_BOARD_PHILIPS_TIGER,
3874         },{
3875                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3876                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3877                 .subvendor    = 0x1462,
3878                 .subdevice    = 0x6231,
3879                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
3880         },{
3881                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3882                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3883                 .subvendor    = 0x153b,
3884                 .subdevice    = 0x1160,
3885                 .driver_data  = SAA7134_BOARD_CINERGY250PCI,
3886         },{
3887                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3888                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,  /* SAA 7131E */
3889                 .subvendor    = 0x5168,
3890                 .subdevice    = 0x0319,
3891                 .driver_data  = SAA7134_BOARD_FLYDVB_TRIO,
3892         },{
3893                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3894                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3895                 .subvendor    = 0x1461,
3896                 .subdevice    = 0x2c05,
3897                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
3898         },{
3899                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3900                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3901                 .subvendor    = 0x5168,
3902                 .subdevice    = 0x0301,
3903                 .driver_data  = SAA7134_BOARD_FLYDVBT_LR301,
3904         },{
3905                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3906                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3907                 .subvendor    = 0x0331,
3908                 .subdevice    = 0x1421,
3909                 .driver_data  = SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331,
3910         },{
3911                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3912                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3913                 .subvendor    = 0x17de,
3914                 .subdevice    = 0x7201,
3915                 .driver_data  = SAA7134_BOARD_TEVION_DVBT_220RF,
3916         },{
3917                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3918                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
3919                 .subvendor    = 0x17de,
3920                 .subdevice    = 0x7350,
3921                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110,
3922         },{
3923                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3924                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3925                 .subvendor    = 0x1461,
3926                 .subdevice    = 0x7360,
3927                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B,
3928         },{
3929                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3930                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3931                 .subvendor    = 0x1461,
3932                 .subdevice    = 0x6360,
3933                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B1,
3934         },{
3935                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3936                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3937                 .subvendor    = 0x16be,
3938                 .subdevice    = 0x0005,
3939                 .driver_data  = SAA7134_BOARD_MD7134_BRIDGE_2,
3940         },{
3941                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3942                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3943                 .subvendor    = 0x5168,
3944                 .subdevice    = 0x0300,
3945                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
3946         },{
3947                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3948                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3949                 .subvendor    = 0x4e42,
3950                 .subdevice    = 0x0300,/* LR300 */
3951                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
3952         },{
3953                 .vendor = PCI_VENDOR_ID_PHILIPS,
3954                 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3955                 .subvendor = 0x1489,
3956                 .subdevice = 0x0301,
3957                 .driver_data = SAA7134_BOARD_FLYDVBT_LR301,
3958         },{
3959                 .vendor = PCI_VENDOR_ID_PHILIPS,
3960                 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3961                 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
3962                 .subdevice = 0x0304,
3963                 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
3964         },{
3965                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3966                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3967                 .subvendor    = 0x5168,
3968                 .subdevice    = 0x3306,
3969                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
3970         },{
3971                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3972                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3973                 .subvendor    = 0x5168,
3974                 .subdevice    = 0x3502,  /* whats the difference to 0x3306 ?*/
3975                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
3976         },{
3977                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3978                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3979                 .subvendor    = 0x16be,
3980                 .subdevice    = 0x0007,
3981                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
3982         },{
3983                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3984                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3985                 .subvendor    = 0x16be,
3986                 .subdevice    = 0x0008,
3987                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
3988         },{
3989                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3990                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3991                 .subvendor    = 0x1461,
3992                 .subdevice    = 0x2c05,
3993                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
3994         },{
3995                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3996                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3997                 .subvendor    = 0x1489,
3998                 .subdevice    = 0x0502,                /* Cardbus version */
3999                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
4000         },{
4001                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4002                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4003                 .subvendor    = 0x0919, /* Philips Proteus PRO 2309 */
4004                 .subdevice    = 0x2003,
4005                 .driver_data  = SAA7134_BOARD_PROTEUS_2309,
4006         },{
4007                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4008                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4009                 .subvendor    = 0x1461,
4010                 .subdevice    = 0x2c00,
4011                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16AR,
4012         },{
4013                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4014                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4015                 .subvendor    = 0x1043,
4016                 .subdevice    = 0x4860,
4017                 .driver_data  = SAA7134_BOARD_ASUS_EUROPA2_HYBRID,
4018         },{
4019                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4020                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4021                 .subvendor    = 0x11bd,
4022                 .subdevice    = 0x002f,
4023                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_310i,
4024         },{
4025                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4026                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4027                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4028                 .subdevice    = 0x9715,
4029                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
4030         },{
4031                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4032                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4033                 .subvendor    = 0x1043,
4034                 .subdevice    = 0x4876,
4035                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA,
4036         },{
4037                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4038                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4039                 .subvendor    = 0x0070,
4040                 .subdevice    = 0x6701,
4041                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4042         },{
4043                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4044                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4045                 .subvendor    = 0x153b,
4046                 .subdevice    = 0x1172,
4047                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCMCIA,
4048         },{
4049                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4050                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4051                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4052                 .subdevice    = 0x2342,
4053                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
4054         },{
4055                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4056                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4057                 .subvendor    = 0x1131,
4058                 .subdevice    = 0x2341,
4059                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
4060         },{
4061                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4062                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4063                 .subvendor    = 0x3016,
4064                 .subdevice    = 0x2344,
4065                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
4066         },{
4067                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4068                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4069                 .subvendor    = 0x1131,
4070                 .subdevice    = 0x230f,
4071                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV_FM,
4072         },{
4073                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4074                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4075                 .subvendor    = 0x153b,
4076                 .subdevice    = 0x1175,
4077                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCI,
4078         },{
4079                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4080                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4081                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4082                 .subdevice    = 0xf31e,
4083                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M102,
4084         },{
4085                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4086                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4087                 .subvendor    = 0x4E42,         /* MSI */
4088                 .subdevice    = 0x0306,         /* TV@nywhere DUO */
4089                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
4090         },{
4091                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4092                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4093                 .subvendor    = 0x1043,
4094                 .subdevice    = 0x4871,
4095                 .driver_data  = SAA7134_BOARD_ASUS_P7131_4871,
4096         },{
4097                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4098                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4099                 .subvendor    = 0x1043,
4100                 .subdevice    = 0x4857,
4101                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
4102         },{
4103                 /* --- boards without eeprom + subsystem ID --- */
4104                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4105                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4106                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4107                 .subdevice    = 0,
4108                 .driver_data  = SAA7134_BOARD_NOAUTO,
4109         },{
4110                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4111                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4112                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4113                 .subdevice    = 0,
4114                 .driver_data  = SAA7134_BOARD_NOAUTO,
4115         },{
4116                 /* --- default catch --- */
4117                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4118                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4119                 .subvendor    = PCI_ANY_ID,
4120                 .subdevice    = PCI_ANY_ID,
4121                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4122         },{
4123                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4124                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4125                 .subvendor    = PCI_ANY_ID,
4126                 .subdevice    = PCI_ANY_ID,
4127                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4128         },{
4129                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4130                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4131                 .subvendor    = PCI_ANY_ID,
4132                 .subdevice    = PCI_ANY_ID,
4133                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4134         },{
4135                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4136                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7135,
4137                 .subvendor    = PCI_ANY_ID,
4138                 .subdevice    = PCI_ANY_ID,
4139                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4140         },{
4141                 /* --- end of list --- */
4142         }
4143 };
4144 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
4145
4146 /* ----------------------------------------------------------- */
4147 /* flyvideo tweaks                                             */
4148
4149
4150 static void board_flyvideo(struct saa7134_dev *dev)
4151 {
4152         printk("%s: there are different flyvideo cards with different tuners\n"
4153                "%s: out there, you might have to use the tuner=<nr> insmod\n"
4154                "%s: option to override the default value.\n",
4155                dev->name, dev->name, dev->name);
4156 }
4157
4158 /* ----------------------------------------------------------- */
4159
4160 int saa7134_board_init1(struct saa7134_dev *dev)
4161 {
4162         /* Always print gpio, often manufacturers encode tuner type and other info. */
4163         saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
4164         dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
4165         printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
4166
4167         switch (dev->board) {
4168         case SAA7134_BOARD_FLYVIDEO2000:
4169         case SAA7134_BOARD_FLYVIDEO3000:
4170         case SAA7134_BOARD_FLYVIDEO3000_NTSC:
4171                 dev->has_remote = SAA7134_REMOTE_GPIO;
4172                 board_flyvideo(dev);
4173                 break;
4174         case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
4175         case SAA7134_BOARD_FLYTVPLATINUM_FM:
4176         case SAA7134_BOARD_CINERGY400:
4177         case SAA7134_BOARD_CINERGY600:
4178         case SAA7134_BOARD_CINERGY600_MK3:
4179         case SAA7134_BOARD_ECS_TVP3XP:
4180         case SAA7134_BOARD_ECS_TVP3XP_4CB5:
4181         case SAA7134_BOARD_MD2819:
4182         case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
4183         case SAA7134_BOARD_KWORLD_XPERT:
4184         case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
4185         case SAA7134_BOARD_AVERMEDIA_305:
4186         case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
4187         case SAA7134_BOARD_AVERMEDIA_307:
4188         case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
4189         case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
4190         case SAA7134_BOARD_AVERMEDIA_777:
4191 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
4192         case SAA7134_BOARD_VIDEOMATE_TV_PVR:
4193         case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
4194         case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
4195         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
4196         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
4197         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
4198         case SAA7134_BOARD_MANLI_MTV001:
4199         case SAA7134_BOARD_MANLI_MTV002:
4200         case SAA7134_BOARD_BEHOLD_409FM:
4201         case SAA7134_BOARD_AVACSSMARTTV:
4202         case SAA7134_BOARD_GOTVIEW_7135:
4203         case SAA7134_BOARD_KWORLD_TERMINATOR:
4204         case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
4205         case SAA7134_BOARD_FLYDVBT_LR301:
4206         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
4207         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
4208         case SAA7134_BOARD_FLYDVBTDUO:
4209         case SAA7134_BOARD_PROTEUS_2309:
4210         case SAA7134_BOARD_AVERMEDIA_A16AR:
4211         case SAA7134_BOARD_ENCORE_ENLTV:
4212         case SAA7134_BOARD_ENCORE_ENLTV_FM:
4213                 dev->has_remote = SAA7134_REMOTE_GPIO;
4214                 break;
4215         case SAA7134_BOARD_FLYDVBS_LR300:
4216                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x80);
4217                 saa_writeb(SAA7134_GPIO_GPSTATUS2, 0x40);
4218                 dev->has_remote = SAA7134_REMOTE_GPIO;
4219                 break;
4220         case SAA7134_BOARD_MD5044:
4221                 printk("%s: seems there are two different versions of the MD5044\n"
4222                        "%s: (with the same ID) out there.  If sound doesn't work for\n"
4223                        "%s: you try the audio_clock_override=0x200000 insmod option.\n",
4224                        dev->name,dev->name,dev->name);
4225                 break;
4226         case SAA7134_BOARD_CINERGY400_CARDBUS:
4227                 /* power-up tuner chip */
4228                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
4229                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
4230                 break;
4231         case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
4232                 /* this turns the remote control chip off to work around a bug in it */
4233                 saa_writeb(SAA7134_GPIO_GPMODE1, 0x80);
4234                 saa_writeb(SAA7134_GPIO_GPSTATUS1, 0x80);
4235                 break;
4236         case SAA7134_BOARD_MONSTERTV_MOBILE:
4237                 /* power-up tuner chip */
4238                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
4239                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
4240                 break;
4241         case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
4242                 /* turn the fan on */
4243                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
4244                 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
4245                 break;
4246         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
4247         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
4248                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x08000000, 0x08000000);
4249                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08000000, 0x00000000);
4250                 break;
4251         case SAA7134_BOARD_AVERMEDIA_CARDBUS:
4252                 /* power-up tuner chip */
4253                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0xffffffff);
4254                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
4255                 msleep(1);
4256                 break;
4257         case SAA7134_BOARD_RTD_VFG7350:
4258
4259                 /*
4260                  * Make sure Production Test Register at offset 0x1D1 is cleared
4261                  * to take chip out of test mode.  Clearing bit 4 (TST_EN_AOUT)
4262                  * prevents pin 105 from remaining low; keeping pin 105 low
4263                  * continually resets the SAA6752 chip.
4264                  */
4265
4266                 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
4267                 break;
4268         /* i2c remotes */
4269         case SAA7134_BOARD_PINNACLE_PCTV_110i:
4270         case SAA7134_BOARD_PINNACLE_PCTV_310i:
4271         case SAA7134_BOARD_UPMOST_PURPLE_TV:
4272         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
4273                 dev->has_remote = SAA7134_REMOTE_I2C;
4274                 break;
4275         case SAA7134_BOARD_AVERMEDIA_A169_B:
4276         case SAA7134_BOARD_MD7134_BRIDGE_2:
4277                 printk("%s: %s: dual saa713x broadcast decoders\n"
4278                        "%s: Sorry, none of the inputs to this chip are supported yet.\n"
4279                        "%s: Dual decoder functionality is disabled for now, use the other chip.\n",
4280                        dev->name,card(dev).name,dev->name,dev->name);
4281                 break;
4282         case SAA7134_BOARD_AVERMEDIA_M102:
4283                 /* enable tuner */
4284                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8c040007, 0x8c040007);
4285                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
4286                 break;
4287         }
4288         return 0;
4289 }
4290
4291 /* stuff which needs working i2c */
4292 int saa7134_board_init2(struct saa7134_dev *dev)
4293 {
4294         unsigned char buf;
4295         int board;
4296         struct tuner_setup tun_setup;
4297         tun_setup.config = 0;
4298         tun_setup.tuner_callback = saa7134_tuner_callback;
4299
4300         switch (dev->board) {
4301         case SAA7134_BOARD_BMK_MPEX_NOTUNER:
4302         case SAA7134_BOARD_BMK_MPEX_TUNER:
4303                 dev->i2c_client.addr = 0x60;
4304                 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
4305                         ? SAA7134_BOARD_BMK_MPEX_NOTUNER
4306                         : SAA7134_BOARD_BMK_MPEX_TUNER;
4307                 if (board == dev->board)
4308                         break;
4309                 dev->board = board;
4310                 printk("%s: board type fixup: %s\n", dev->name,
4311                 saa7134_boards[dev->board].name);
4312                 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
4313
4314                 if (TUNER_ABSENT != dev->tuner_type) {
4315                                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
4316                                 tun_setup.type = dev->tuner_type;
4317                                 tun_setup.addr = ADDR_UNSET;
4318
4319                                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
4320                 }
4321                 break;
4322         case SAA7134_BOARD_MD7134:
4323                 {
4324                 u8 subaddr;
4325                 u8 data[3];
4326                 int ret, tuner_t;
4327
4328                 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
4329                                         {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
4330                 subaddr= 0x14;
4331                 tuner_t = 0;
4332                 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
4333                 if (ret != 2) {
4334                         printk(KERN_ERR "EEPROM read failure\n");
4335                 } else if ((data[0] != 0) && (data[0] != 0xff)) {
4336                         /* old config structure */
4337                         subaddr = data[0] + 2;
4338                         msg[1].len = 2;
4339                         i2c_transfer(&dev->i2c_adap, msg, 2);
4340                         tuner_t = (data[0] << 8) + data[1];
4341                         switch (tuner_t){
4342                         case 0x0103:
4343                                 dev->tuner_type = TUNER_PHILIPS_PAL;
4344                                 break;
4345                         case 0x010C:
4346                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
4347                                 break;
4348                         default:
4349                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
4350                         }
4351                 } else if ((data[1] != 0) && (data[1] != 0xff)) {
4352                         /* new config structure */
4353                         subaddr = data[1] + 1;
4354                         msg[1].len = 1;
4355                         i2c_transfer(&dev->i2c_adap, msg, 2);
4356                         subaddr = data[0] + 1;
4357                         msg[1].len = 2;
4358                         i2c_transfer(&dev->i2c_adap, msg, 2);
4359                         tuner_t = (data[1] << 8) + data[0];
4360                         switch (tuner_t) {
4361                         case 0x0005:
4362                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
4363                                 break;
4364                         case 0x001d:
4365                                 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
4366                                         printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
4367                                 break;
4368                         default:
4369                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
4370                         }
4371                 } else {
4372                         printk(KERN_ERR "%s unexpected config structure\n", dev->name);
4373                 }
4374
4375                 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
4376                 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
4377                         dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
4378                         saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
4379                 }
4380
4381                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
4382                 tun_setup.type = dev->tuner_type;
4383                 tun_setup.addr = ADDR_UNSET;
4384
4385                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4386                 }
4387                 break;
4388         case SAA7134_BOARD_PHILIPS_EUROPA:
4389         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
4390         case SAA7134_BOARD_ASUS_EUROPA2_HYBRID:
4391                 /* The Philips EUROPA based hybrid boards have the tuner connected through
4392                  * the channel decoder. We have to make it transparent to find it
4393                  */
4394                 {
4395                 u8 data[] = { 0x07, 0x02};
4396                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4397                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4398
4399                 tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
4400                 tun_setup.type = dev->tuner_type;
4401                 tun_setup.addr = dev->tuner_addr;
4402
4403                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4404                 }
4405                 break;
4406         case SAA7134_BOARD_PHILIPS_TIGER:
4407         case SAA7134_BOARD_PHILIPS_TIGER_S:
4408                 {
4409                 u8 data[] = { 0x3c, 0x33, 0x60};
4410                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4411                 if(dev->autodetected && (dev->eedata[0x49] == 0x50)) {
4412                         dev->board = SAA7134_BOARD_PHILIPS_TIGER_S;
4413                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
4414                                 dev->name, saa7134_boards[dev->board].name);
4415                 }
4416                 if(dev->board == SAA7134_BOARD_PHILIPS_TIGER_S) {
4417                         tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
4418                         tun_setup.type = TUNER_PHILIPS_TDA8290;
4419                         tun_setup.addr = 0x4b;
4420                         tun_setup.config = 2;
4421
4422                         saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4423                         data[2] = 0x68;
4424                 }
4425                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4426                 }
4427                 break;
4428         case SAA7134_BOARD_PINNACLE_PCTV_310i:
4429         case SAA7134_BOARD_TEVION_DVBT_220RF:
4430         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
4431         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
4432         case SAA7134_BOARD_MEDION_MD8800_QUADRO:
4433         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
4434                 /* this is a hybrid board, initialize to analog mode
4435                  * and configure firmware eeprom address
4436                  */
4437                 {
4438                 u8 data[] = { 0x3c, 0x33, 0x60};
4439                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4440                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4441                 }
4442                 break;
4443         case SAA7134_BOARD_FLYDVB_TRIO:
4444                 {
4445                 u8 data[] = { 0x3c, 0x33, 0x62};
4446                 struct i2c_msg msg = {.addr=0x09, .flags=0, .buf=data, .len = sizeof(data)};
4447                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4448                 }
4449                 break;
4450         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
4451         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
4452                 /* initialize analog mode  */
4453                 {
4454                 u8 data[] = { 0x3c, 0x33, 0x6a};
4455                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4456                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4457                 }
4458                 break;
4459         case SAA7134_BOARD_CINERGY_HT_PCMCIA:
4460         case SAA7134_BOARD_CINERGY_HT_PCI:
4461                 /* initialize analog mode */
4462                 {
4463                 u8 data[] = { 0x3c, 0x33, 0x68};
4464                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4465                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4466                 }
4467                 break;
4468         case SAA7134_BOARD_KWORLD_ATSC110:
4469                 {
4470                         /* enable tuner */
4471                         int i;
4472                         static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
4473                         dev->i2c_client.addr = 0x0a;
4474                         for (i = 0; i < 5; i++)
4475                                 if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
4476                                         printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
4477                                                dev->name, i);
4478                 }
4479                 break;
4480         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
4481         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
4482                 /* The T200 and the T200A share the same pci id.  Consequently,
4483                  * we are going to query eeprom to try to find out which one we
4484                  * are actually looking at. */
4485
4486                 /* Don't do this if the board was specifically selected with an
4487                  * insmod option or if we have the default configuration T200*/
4488                 if(!dev->autodetected || (dev->eedata[0x41] == 0xd0))
4489                         break;
4490                 if(dev->eedata[0x41] == 0x02) {
4491                         /* Reconfigure board  as T200A */
4492                         dev->board = SAA7134_BOARD_VIDEOMATE_DVBT_200A;
4493                         dev->tuner_type   = saa7134_boards[dev->board].tuner_type;
4494                         dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
4495                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
4496                                 dev->name, saa7134_boards[dev->board].name);
4497                 } else {
4498                         printk(KERN_WARNING "%s: Unexpected tuner type info: %x in eeprom\n",
4499                                 dev->name, dev->eedata[0x41]);
4500                         break;
4501                 }
4502                 break;
4503         }
4504         return 0;
4505 }
4506
4507 /* ----------------------------------------------------------- */
4508 /*
4509  * Local variables:
4510  * c-basic-offset: 8
4511  * End:
4512  */