V4L/DVB (5323): Updated support for tuner callbacks
[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 = LINE2,
1547                         .gpio = 0x02,
1548                 },{
1549                         .name = name_svideo,
1550                         .vmux = 6,
1551                         .amux = LINE2,
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",
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 };
3332
3333 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
3334
3335 /* ------------------------------------------------------------------ */
3336 /* PCI ids + subsystem IDs                                            */
3337
3338 struct pci_device_id saa7134_pci_tbl[] = {
3339         {
3340                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3341                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3342                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3343                 .subdevice    = 0x2001,
3344                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
3345         },{
3346                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3347                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3348                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3349                 .subdevice    = 0x2001,
3350                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
3351         },{
3352                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3353                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3354                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3355                 .subdevice    = 0x6752,
3356                 .driver_data  = SAA7134_BOARD_EMPRESS,
3357         },{
3358                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3359                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3360                 .subvendor    = 0x1131,
3361                 .subdevice    = 0x4e85,
3362                 .driver_data  = SAA7134_BOARD_MONSTERTV,
3363         },{
3364                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3365                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3366                 .subvendor    = 0x153b,
3367                 .subdevice    = 0x1142,
3368                 .driver_data  = SAA7134_BOARD_CINERGY400,
3369         },{
3370                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3371                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3372                 .subvendor    = 0x153b,
3373                 .subdevice    = 0x1143,
3374                 .driver_data  = SAA7134_BOARD_CINERGY600,
3375         },{
3376                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3377                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3378                 .subvendor    = 0x153b,
3379                 .subdevice    = 0x1158,
3380                 .driver_data  = SAA7134_BOARD_CINERGY600_MK3,
3381         },{
3382                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3383                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3384                 .subvendor    = 0x153b,
3385                 .subdevice    = 0x1162,
3386                 .driver_data  = SAA7134_BOARD_CINERGY400_CARDBUS,
3387         },{
3388                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3389                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3390                 .subvendor    = 0x5169,
3391                 .subdevice    = 0x0138,
3392                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000_NTSC,
3393         },{
3394                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3395                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3396                 .subvendor    = 0x5168,
3397                 .subdevice    = 0x0138,
3398                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
3399         },{
3400                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3401                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3402                 .subvendor    = 0x4e42,                         /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
3403                 .subdevice    = 0x0138,
3404                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
3405         },{
3406                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3407                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3408                 .subvendor    = 0x5168,
3409                 .subdevice    = 0x0138,
3410                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
3411         },{
3412                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3413                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3414                 .subvendor    = 0x4e42,         /* Typhoon */
3415                 .subdevice    = 0x0138,         /* LifeView FlyTV Prime30 OEM */
3416                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
3417         },{
3418                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3419                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3420                 .subvendor    = 0x5168,
3421                 .subdevice    = 0x0212, /* minipci, LR212 */
3422                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
3423         },{
3424                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3425                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3426                 .subvendor    = 0x14c0,
3427                 .subdevice    = 0x1212, /* minipci, LR1212 */
3428                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
3429         },{
3430                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3431                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3432                 .subvendor    = 0x4e42,
3433                 .subdevice    = 0x0212, /* OEM minipci, LR212 */
3434                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
3435         },{
3436                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3437                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3438                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
3439                 .subdevice    = 0x0214, /* Standard PCI, LR214WF */
3440                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
3441         },{
3442                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3443                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3444                 .subvendor    = 0x1489, /* KYE */
3445                 .subdevice    = 0x0214, /* Genius VideoWonder ProTV */
3446                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
3447         },{
3448                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3449                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3450                 .subvendor    = 0x16be,
3451                 .subdevice    = 0x0003,
3452                 .driver_data  = SAA7134_BOARD_MD7134,
3453         },{
3454                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3455                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3456                 .subvendor    = 0x1048,
3457                 .subdevice    = 0x226b,
3458                 .driver_data  = SAA7134_BOARD_ELSA,
3459         },{
3460                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3461                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3462                 .subvendor    = 0x1048,
3463                 .subdevice    = 0x226a,
3464                 .driver_data  = SAA7134_BOARD_ELSA_500TV,
3465         },{
3466                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3467                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3468                 .subvendor    = 0x1048,
3469                 .subdevice    = 0x226c,
3470                 .driver_data  = SAA7134_BOARD_ELSA_700TV,
3471         },{
3472                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3473                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3474                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3475                 .subdevice    = 0x4842,
3476                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3477         },{
3478                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3479                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3480                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3481                 .subdevice    = 0x4845,
3482                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7135,
3483         },{
3484                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3485                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3486                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3487                 .subdevice    = 0x4830,
3488                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3489         },{
3490                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3491                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3492                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3493                 .subdevice    = 0x4843,
3494                 .driver_data  = SAA7134_BOARD_ASUSTEK_TVFM7133,
3495         },{
3496                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3497                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3498                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
3499                 .subdevice    = 0x4840,
3500                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
3501         },{
3502                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3503                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3504                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3505                 .subdevice    = 0xfe01,
3506                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
3507         },{
3508                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3509                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3510                 .subvendor    = 0x1894,
3511                 .subdevice    = 0xfe01,
3512                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
3513         },{
3514                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3515                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3516                 .subvendor    = 0x1894,
3517                 .subdevice    = 0xa006,
3518                 .driver_data  = SAA7134_BOARD_TVSTATION_DVR,
3519         },{
3520                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3521                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3522                 .subvendor    = 0x1131,
3523                 .subdevice    = 0x7133,
3524                 .driver_data  = SAA7134_BOARD_VA1000POWER,
3525         },{
3526                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3527                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3528                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3529                 .subdevice    = 0x2001,
3530                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER,
3531         },{
3532                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3533                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3534                 .subvendor    = 0x185b,
3535                 .subdevice    = 0xc100,
3536                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV,
3537         },{
3538                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3539                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3540                 .subvendor    = 0x185b,
3541                 .subdevice    = 0xc100,
3542                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
3543         },{
3544                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3545                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3546                 .subvendor    = PCI_VENDOR_ID_MATROX,
3547                 .subdevice    = 0x48d0,
3548                 .driver_data  = SAA7134_BOARD_CRONOS_PLUS,
3549         },{
3550                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3551                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3552                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3553                 .subdevice    = 0xa70b,
3554                 .driver_data  = SAA7134_BOARD_MD2819,
3555         },{
3556                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3557                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3558                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3559                 .subdevice    = 0x2115,
3560                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
3561         },{
3562                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3563                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3564                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3565                 .subdevice    = 0x2108,
3566                 .driver_data  = SAA7134_BOARD_AVERMEDIA_305,
3567         },{
3568                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3569                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3570                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3571                 .subdevice    = 0x10ff,
3572                 .driver_data  = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
3573         },{
3574                 /* AVerMedia CardBus */
3575                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3576                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3577                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3578                 .subdevice    = 0xd6ee,
3579                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
3580         },{
3581                 /* TransGear 3000TV */
3582                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3583                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3584                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3585                 .subdevice    = 0x050c,
3586                 .driver_data  = SAA7134_BOARD_TG3000TV,
3587         },{
3588                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3589                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3590                 .subvendor    = 0x11bd,
3591                 .subdevice    = 0x002b,
3592                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
3593         },{
3594                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3595                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3596                 .subvendor    = 0x11bd,
3597                 .subdevice    = 0x002d,
3598                 .driver_data  = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
3599         },{
3600                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3601                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3602                 .subvendor    = 0x1019,
3603                 .subdevice    = 0x4cb4,
3604                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP,
3605         },{
3606                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3607                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3608                 .subvendor    = 0x1019,
3609                 .subdevice    = 0x4cb5,
3610                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB5,
3611         },{
3612                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3613                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3614                 .subvendor    = 0x12ab,
3615                 .subdevice    = 0x0800,
3616                 .driver_data  = SAA7134_BOARD_UPMOST_PURPLE_TV,
3617         },{
3618                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3619                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3620                 .subvendor    = 0x153b,
3621                 .subdevice    = 0x1152,
3622                 .driver_data  = SAA7134_BOARD_CINERGY200,
3623         },{
3624                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3625                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3626                 .subvendor    = 0x185b,
3627                 .subdevice    = 0xc100,
3628                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_PVR,
3629         },{
3630                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3631                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3632                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3633                 .subdevice    = 0x9715,
3634                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
3635         },{
3636                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3637                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3638                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3639                 .subdevice    = 0xa70a,
3640                 .driver_data  = SAA7134_BOARD_AVERMEDIA_307,
3641         },{
3642                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3643                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3644                 .subvendor    = 0x185b,
3645                 .subdevice    = 0xc200,
3646                 .driver_data  = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
3647         },{
3648                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3649                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3650                 .subvendor    = 0x1540,
3651                 .subdevice    = 0x9524,
3652                 .driver_data  = SAA7134_BOARD_PROVIDEO_PV952,
3653
3654         },{
3655                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3656                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3657                 .subvendor    = 0x5168,
3658                 .subdevice    = 0x0502,                /* Cardbus version */
3659                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
3660         },{
3661                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3662                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3663                 .subvendor    = 0x5168,
3664                 .subdevice    = 0x0306,                /* PCI version */
3665                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
3666         },{
3667                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3668                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3669                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3670                 .subdevice    = 0xf31f,
3671                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
3672
3673         },{
3674                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3675                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3676                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3677                 .subdevice    = 0x2004,
3678                 .driver_data  = SAA7134_BOARD_PHILIPS_TOUGH,
3679         },{
3680                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3681                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3682                 .subvendor    = 0x1421,
3683                 .subdevice    = 0x0350,         /* PCI version */
3684                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3685         },{
3686                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3687                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3688                 .subvendor    = 0x1421,
3689                 .subdevice    = 0x0351,         /* PCI version, new revision */
3690                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3691         },{
3692                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3693                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3694                 .subvendor    = 0x1421,
3695                 .subdevice    = 0x0370,         /* cardbus version */
3696                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3697         },{
3698                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3699                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3700                 .subvendor    = 0x1421,
3701                 .subdevice    = 0x1370,        /* cardbus version */
3702                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
3703
3704         },{
3705                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3706                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3707                 .subvendor    = 0x4e42,         /* Typhoon */
3708                 .subdevice    = 0x0502,         /* LifeView LR502 OEM */
3709                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
3710         },{
3711                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3712                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3713                 .subvendor    = 0x1043,
3714                 .subdevice    = 0x0210,         /* mini pci NTSC version */
3715                 .driver_data  = SAA7134_BOARD_FLYTV_DIGIMATRIX,
3716         },{
3717                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3718                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3719                 .subvendor    = 0x1043,
3720                 .subdevice    = 0x0210,         /* mini pci PAL/SECAM version */
3721                 .driver_data  = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
3722
3723         },{
3724                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3725                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3726                 .subvendor    = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
3727                 .subdevice    = 0x4091,
3728                 .driver_data  = SAA7134_BOARD_BEHOLD_409FM,
3729         },{
3730                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3731                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3732                 .subvendor    = 0x5456, /* GoTView */
3733                 .subdevice    = 0x7135,
3734                 .driver_data  = SAA7134_BOARD_GOTVIEW_7135,
3735         },{
3736                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3737                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3738                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3739                 .subdevice    = 0x2004,
3740                 .driver_data  = SAA7134_BOARD_PHILIPS_EUROPA,
3741         },{
3742                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3743                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3744                 .subvendor    = 0x185b,
3745                 .subdevice    = 0xc900,
3746                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_300,
3747         },{
3748                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3749                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3750                 .subvendor    = 0x185b,
3751                 .subdevice    = 0xc901,
3752                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_200,
3753         },{
3754                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3755                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3756                 .subvendor    = 0x1435,
3757                 .subdevice    = 0x7350,
3758                 .driver_data  = SAA7134_BOARD_RTD_VFG7350,
3759         },{
3760                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3761                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3762                 .subvendor    = 0x1435,
3763                 .subdevice    = 0x7330,
3764                 .driver_data  = SAA7134_BOARD_RTD_VFG7330,
3765         },{
3766                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3767                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3768                 .subvendor    = 0x1461,
3769                 .subdevice    = 0x1044,
3770                 .driver_data  = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
3771         },{
3772                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3773                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3774                 .subvendor    = 0x1131,
3775                 .subdevice    = 0x4ee9,
3776                 .driver_data  = SAA7134_BOARD_MONSTERTV_MOBILE,
3777         },{
3778                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3779                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3780                 .subvendor    = 0x11bd,
3781                 .subdevice    = 0x002e,
3782                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_110i,
3783         },{
3784                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3785                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3786                 .subvendor    = 0x1043,
3787                 .subdevice    = 0x4862,
3788                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3789         },{
3790                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3791                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3792                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3793                 .subdevice    = 0x2018,
3794                 .driver_data  = SAA7134_BOARD_PHILIPS_TIGER,
3795         },{
3796                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3797                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3798                 .subvendor    = 0x1462,
3799                 .subdevice    = 0x6231,
3800                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
3801         },{
3802                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3803                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3804                 .subvendor    = 0x153b,
3805                 .subdevice    = 0x1160,
3806                 .driver_data  = SAA7134_BOARD_CINERGY250PCI,
3807         },{
3808                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3809                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,  /* SAA 7131E */
3810                 .subvendor    = 0x5168,
3811                 .subdevice    = 0x0319,
3812                 .driver_data  = SAA7134_BOARD_FLYDVB_TRIO,
3813         },{
3814                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3815                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3816                 .subvendor    = 0x1461,
3817                 .subdevice    = 0x2c05,
3818                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
3819         },{
3820                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3821                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3822                 .subvendor    = 0x5168,
3823                 .subdevice    = 0x0301,
3824                 .driver_data  = SAA7134_BOARD_FLYDVBT_LR301,
3825         },{
3826                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3827                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3828                 .subvendor    = 0x0331,
3829                 .subdevice    = 0x1421,
3830                 .driver_data  = SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331,
3831         },{
3832                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3833                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3834                 .subvendor    = 0x17de,
3835                 .subdevice    = 0x7201,
3836                 .driver_data  = SAA7134_BOARD_TEVION_DVBT_220RF,
3837         },{
3838                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3839                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
3840                 .subvendor    = 0x17de,
3841                 .subdevice    = 0x7350,
3842                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110,
3843         },{
3844                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3845                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3846                 .subvendor    = 0x1461,
3847                 .subdevice    = 0x7360,
3848                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B,
3849         },{
3850                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3851                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3852                 .subvendor    = 0x1461,
3853                 .subdevice    = 0x6360,
3854                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B1,
3855         },{
3856                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3857                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3858                 .subvendor    = 0x16be,
3859                 .subdevice    = 0x0005,
3860                 .driver_data  = SAA7134_BOARD_MD7134_BRIDGE_2,
3861         },{
3862                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3863                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3864                 .subvendor    = 0x5168,
3865                 .subdevice    = 0x0300,
3866                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
3867         },{
3868                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3869                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3870                 .subvendor    = 0x4e42,
3871                 .subdevice    = 0x0300,/* LR300 */
3872                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
3873         },{
3874                 .vendor = PCI_VENDOR_ID_PHILIPS,
3875                 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
3876                 .subvendor = 0x1489,
3877                 .subdevice = 0x0301,
3878                 .driver_data = SAA7134_BOARD_FLYDVBT_LR301,
3879         },{
3880                 .vendor = PCI_VENDOR_ID_PHILIPS,
3881                 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
3882                 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
3883                 .subdevice = 0x0304,
3884                 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
3885         },{
3886                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3887                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3888                 .subvendor    = 0x5168,
3889                 .subdevice    = 0x3306,
3890                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
3891         },{
3892                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3893                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3894                 .subvendor    = 0x5168,
3895                 .subdevice    = 0x3502,  /* whats the difference to 0x3306 ?*/
3896                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
3897         },{
3898                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3899                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3900                 .subvendor    = 0x16be,
3901                 .subdevice    = 0x0007,
3902                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
3903         },{
3904                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3905                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3906                 .subvendor    = 0x16be,
3907                 .subdevice    = 0x0008,
3908                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
3909         },{
3910                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3911                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3912                 .subvendor    = 0x1461,
3913                 .subdevice    = 0x2c05,
3914                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
3915         },{
3916                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3917                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3918                 .subvendor    = 0x1489,
3919                 .subdevice    = 0x0502,                /* Cardbus version */
3920                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
3921         },{
3922                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3923                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3924                 .subvendor    = 0x0919, /* Philips Proteus PRO 2309 */
3925                 .subdevice    = 0x2003,
3926                 .driver_data  = SAA7134_BOARD_PROTEUS_2309,
3927         },{
3928                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3929                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3930                 .subvendor    = 0x1461,
3931                 .subdevice    = 0x2c00,
3932                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16AR,
3933         },{
3934                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3935                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
3936                 .subvendor    = 0x1043,
3937                 .subdevice    = 0x4860,
3938                 .driver_data  = SAA7134_BOARD_ASUS_EUROPA2_HYBRID,
3939         },{
3940                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3941                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3942                 .subvendor    = 0x11bd,
3943                 .subdevice    = 0x002f,
3944                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_310i,
3945         },{
3946                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3947                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3948                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
3949                 .subdevice    = 0x9715,
3950                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
3951         },{
3952                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3953                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3954                 .subvendor    = 0x1043,
3955                 .subdevice    = 0x4876,
3956                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
3957         },{
3958                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3959                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3960                 .subvendor    = 0x0070,
3961                 .subdevice    = 0x6701,
3962                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
3963         },{
3964                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3965                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3966                 .subvendor    = 0x153b,
3967                 .subdevice    = 0x1172,
3968                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCMCIA,
3969         },{
3970                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3971                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3972                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
3973                 .subdevice    = 0x2342,
3974                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
3975         },{
3976                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3977                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3978                 .subvendor    = 0x1131,
3979                 .subdevice    = 0x2341,
3980                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
3981         },{
3982                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3983                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3984                 .subvendor    = 0x3016,
3985                 .subdevice    = 0x2344,
3986                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
3987         },{
3988                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3989                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
3990                 .subvendor    = 0x1131,
3991                 .subdevice    = 0x230f,
3992                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV_FM,
3993         },{
3994                 .vendor       = PCI_VENDOR_ID_PHILIPS,
3995                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
3996                 .subvendor    = 0x153b,
3997                 .subdevice    = 0x1175,
3998                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCI,
3999         },{
4000                 /* --- boards without eeprom + subsystem ID --- */
4001                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4002                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4003                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4004                 .subdevice    = 0,
4005                 .driver_data  = SAA7134_BOARD_NOAUTO,
4006         },{
4007                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4008                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4009                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4010                 .subdevice    = 0,
4011                 .driver_data  = SAA7134_BOARD_NOAUTO,
4012         },{
4013
4014                 /* --- default catch --- */
4015                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4016                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4017                 .subvendor    = PCI_ANY_ID,
4018                 .subdevice    = PCI_ANY_ID,
4019                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4020         },{
4021                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4022                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4023                 .subvendor    = PCI_ANY_ID,
4024                 .subdevice    = PCI_ANY_ID,
4025                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4026         },{
4027                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4028                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4029                 .subvendor    = PCI_ANY_ID,
4030                 .subdevice    = PCI_ANY_ID,
4031                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4032         },{
4033                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4034                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7135,
4035                 .subvendor    = PCI_ANY_ID,
4036                 .subdevice    = PCI_ANY_ID,
4037                 .driver_data  = SAA7134_BOARD_UNKNOWN,
4038         },{
4039                 /* --- end of list --- */
4040         }
4041 };
4042 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
4043
4044 /* ----------------------------------------------------------- */
4045 /* flyvideo tweaks                                             */
4046
4047
4048 static void board_flyvideo(struct saa7134_dev *dev)
4049 {
4050         printk("%s: there are different flyvideo cards with different tuners\n"
4051                "%s: out there, you might have to use the tuner=<nr> insmod\n"
4052                "%s: option to override the default value.\n",
4053                dev->name, dev->name, dev->name);
4054 }
4055
4056 /* ----------------------------------------------------------- */
4057
4058 int saa7134_board_init1(struct saa7134_dev *dev)
4059 {
4060         /* Always print gpio, often manufacturers encode tuner type and other info. */
4061         saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
4062         dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
4063         printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
4064
4065         switch (dev->board) {
4066         case SAA7134_BOARD_FLYVIDEO2000:
4067         case SAA7134_BOARD_FLYVIDEO3000:
4068         case SAA7134_BOARD_FLYVIDEO3000_NTSC:
4069                 dev->has_remote = SAA7134_REMOTE_GPIO;
4070                 board_flyvideo(dev);
4071                 break;
4072         case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
4073         case SAA7134_BOARD_FLYTVPLATINUM_FM:
4074         case SAA7134_BOARD_CINERGY400:
4075         case SAA7134_BOARD_CINERGY600:
4076         case SAA7134_BOARD_CINERGY600_MK3:
4077         case SAA7134_BOARD_ECS_TVP3XP:
4078         case SAA7134_BOARD_ECS_TVP3XP_4CB5:
4079         case SAA7134_BOARD_MD2819:
4080         case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
4081         case SAA7134_BOARD_KWORLD_XPERT:
4082         case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
4083         case SAA7134_BOARD_AVERMEDIA_305:
4084         case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
4085         case SAA7134_BOARD_AVERMEDIA_307:
4086         case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
4087         case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
4088         case SAA7134_BOARD_AVERMEDIA_777:
4089 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
4090         case SAA7134_BOARD_VIDEOMATE_TV_PVR:
4091         case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
4092         case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
4093         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
4094         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
4095         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
4096         case SAA7134_BOARD_MANLI_MTV001:
4097         case SAA7134_BOARD_MANLI_MTV002:
4098         case SAA7134_BOARD_BEHOLD_409FM:
4099         case SAA7134_BOARD_AVACSSMARTTV:
4100         case SAA7134_BOARD_GOTVIEW_7135:
4101         case SAA7134_BOARD_KWORLD_TERMINATOR:
4102         case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
4103         case SAA7134_BOARD_FLYDVBT_LR301:
4104         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
4105         case SAA7134_BOARD_FLYDVBTDUO:
4106         case SAA7134_BOARD_PROTEUS_2309:
4107         case SAA7134_BOARD_AVERMEDIA_A16AR:
4108         case SAA7134_BOARD_ENCORE_ENLTV:
4109         case SAA7134_BOARD_ENCORE_ENLTV_FM:
4110                 dev->has_remote = SAA7134_REMOTE_GPIO;
4111                 break;
4112         case SAA7134_BOARD_FLYDVBS_LR300:
4113                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x80);
4114                 saa_writeb(SAA7134_GPIO_GPSTATUS2, 0x40);
4115                 dev->has_remote = SAA7134_REMOTE_GPIO;
4116                 break;
4117         case SAA7134_BOARD_MD5044:
4118                 printk("%s: seems there are two different versions of the MD5044\n"
4119                        "%s: (with the same ID) out there.  If sound doesn't work for\n"
4120                        "%s: you try the audio_clock_override=0x200000 insmod option.\n",
4121                        dev->name,dev->name,dev->name);
4122                 break;
4123         case SAA7134_BOARD_CINERGY400_CARDBUS:
4124                 /* power-up tuner chip */
4125                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
4126                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
4127                 break;
4128         case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
4129                 /* this turns the remote control chip off to work around a bug in it */
4130                 saa_writeb(SAA7134_GPIO_GPMODE1, 0x80);
4131                 saa_writeb(SAA7134_GPIO_GPSTATUS1, 0x80);
4132                 break;
4133         case SAA7134_BOARD_MONSTERTV_MOBILE:
4134                 /* power-up tuner chip */
4135                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
4136                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
4137                 break;
4138         case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
4139                 /* turn the fan on */
4140                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
4141                 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
4142                 break;
4143         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
4144         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
4145                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x08000000, 0x08000000);
4146                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08000000, 0x00000000);
4147                 break;
4148         case SAA7134_BOARD_AVERMEDIA_CARDBUS:
4149                 /* power-up tuner chip */
4150                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0xffffffff);
4151                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
4152                 msleep(1);
4153                 break;
4154         case SAA7134_BOARD_RTD_VFG7350:
4155
4156                 /*
4157                  * Make sure Production Test Register at offset 0x1D1 is cleared
4158                  * to take chip out of test mode.  Clearing bit 4 (TST_EN_AOUT)
4159                  * prevents pin 105 from remaining low; keeping pin 105 low
4160                  * continually resets the SAA6752 chip.
4161                  */
4162
4163                 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
4164                 break;
4165         /* i2c remotes */
4166         case SAA7134_BOARD_PINNACLE_PCTV_110i:
4167         case SAA7134_BOARD_PINNACLE_PCTV_310i:
4168         case SAA7134_BOARD_UPMOST_PURPLE_TV:
4169         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
4170                 dev->has_remote = SAA7134_REMOTE_I2C;
4171                 break;
4172         case SAA7134_BOARD_AVERMEDIA_A169_B:
4173         case SAA7134_BOARD_MD7134_BRIDGE_2:
4174                 printk("%s: %s: dual saa713x broadcast decoders\n"
4175                        "%s: Sorry, none of the inputs to this chip are supported yet.\n"
4176                        "%s: Dual decoder functionality is disabled for now, use the other chip.\n",
4177                        dev->name,card(dev).name,dev->name,dev->name);
4178                 break;
4179         }
4180         return 0;
4181 }
4182
4183 /* stuff which needs working i2c */
4184 int saa7134_board_init2(struct saa7134_dev *dev)
4185 {
4186         unsigned char buf;
4187         int board;
4188         struct tuner_setup tun_setup;
4189         tun_setup.config = 0;
4190         tun_setup.tuner_callback = saa7134_tuner_callback;
4191
4192         switch (dev->board) {
4193         case SAA7134_BOARD_BMK_MPEX_NOTUNER:
4194         case SAA7134_BOARD_BMK_MPEX_TUNER:
4195                 dev->i2c_client.addr = 0x60;
4196                 board = (i2c_master_recv(&dev->i2c_client,&buf,0) < 0)
4197                         ? SAA7134_BOARD_BMK_MPEX_NOTUNER
4198                         : SAA7134_BOARD_BMK_MPEX_TUNER;
4199                 if (board == dev->board)
4200                         break;
4201                 dev->board = board;
4202                 printk("%s: board type fixup: %s\n", dev->name,
4203                 saa7134_boards[dev->board].name);
4204                 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
4205
4206                 if (TUNER_ABSENT != dev->tuner_type) {
4207                                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
4208                                 tun_setup.type = dev->tuner_type;
4209                                 tun_setup.addr = ADDR_UNSET;
4210
4211                                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR, &tun_setup);
4212                 }
4213                 break;
4214         case SAA7134_BOARD_MD7134:
4215                 {
4216                 u8 subaddr;
4217                 u8 data[3];
4218                 int ret, tuner_t;
4219
4220                 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
4221                                         {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
4222                 subaddr= 0x14;
4223                 tuner_t = 0;
4224                 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
4225                 if (ret != 2) {
4226                         printk(KERN_ERR "EEPROM read failure\n");
4227                 } else if ((data[0] != 0) && (data[0] != 0xff)) {
4228                         /* old config structure */
4229                         subaddr = data[0] + 2;
4230                         msg[1].len = 2;
4231                         i2c_transfer(&dev->i2c_adap, msg, 2);
4232                         tuner_t = (data[0] << 8) + data[1];
4233                         switch (tuner_t){
4234                         case 0x0103:
4235                                 dev->tuner_type = TUNER_PHILIPS_PAL;
4236                                 break;
4237                         case 0x010C:
4238                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
4239                                 break;
4240                         default:
4241                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
4242                         }
4243                 } else if ((data[1] != 0) && (data[1] != 0xff)) {
4244                         /* new config structure */
4245                         subaddr = data[1] + 1;
4246                         msg[1].len = 1;
4247                         i2c_transfer(&dev->i2c_adap, msg, 2);
4248                         subaddr = data[0] + 1;
4249                         msg[1].len = 2;
4250                         i2c_transfer(&dev->i2c_adap, msg, 2);
4251                         tuner_t = (data[1] << 8) + data[0];
4252                         switch (tuner_t) {
4253                         case 0x0005:
4254                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
4255                                 break;
4256                         case 0x001d:
4257                                 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
4258                                         printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
4259                                 break;
4260                         default:
4261                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
4262                         }
4263                 } else {
4264                         printk(KERN_ERR "%s unexpected config structure\n", dev->name);
4265                 }
4266
4267                 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
4268                 if (dev->tuner_type == TUNER_PHILIPS_FMD1216ME_MK3) {
4269                         dev->tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
4270                         saa7134_i2c_call_clients(dev,TDA9887_SET_CONFIG, &dev->tda9887_conf);
4271                 }
4272
4273                 tun_setup.mode_mask = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
4274                 tun_setup.type = dev->tuner_type;
4275                 tun_setup.addr = ADDR_UNSET;
4276
4277                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4278                 }
4279                 break;
4280         case SAA7134_BOARD_PHILIPS_EUROPA:
4281         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
4282         case SAA7134_BOARD_ASUS_EUROPA2_HYBRID:
4283                 /* The Philips EUROPA based hybrid boards have the tuner connected through
4284                  * the channel decoder. We have to make it transparent to find it
4285                  */
4286                 {
4287                 u8 data[] = { 0x07, 0x02};
4288                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4289                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4290
4291                 tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
4292                 tun_setup.type = dev->tuner_type;
4293                 tun_setup.addr = dev->tuner_addr;
4294
4295                 saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4296                 }
4297                 break;
4298         case SAA7134_BOARD_PHILIPS_TIGER:
4299         case SAA7134_BOARD_PHILIPS_TIGER_S:
4300                 {
4301                 u8 data[] = { 0x3c, 0x33, 0x60};
4302                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4303                 if(dev->autodetected && (dev->eedata[0x49] == 0x50)) {
4304                         dev->board = SAA7134_BOARD_PHILIPS_TIGER_S;
4305                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
4306                                 dev->name, saa7134_boards[dev->board].name);
4307                 }
4308                 if(dev->board == SAA7134_BOARD_PHILIPS_TIGER_S) {
4309                         tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
4310                         tun_setup.type = TUNER_PHILIPS_TDA8290;
4311                         tun_setup.addr = 0x4b;
4312                         tun_setup.config = 2;
4313
4314                         saa7134_i2c_call_clients (dev, TUNER_SET_TYPE_ADDR,&tun_setup);
4315                         data[2] = 0x68;
4316                 }
4317                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4318                 }
4319                 break;
4320         case SAA7134_BOARD_PINNACLE_PCTV_310i:
4321         case SAA7134_BOARD_TEVION_DVBT_220RF:
4322         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
4323         case SAA7134_BOARD_MEDION_MD8800_QUADRO:
4324         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
4325                 /* this is a hybrid board, initialize to analog mode
4326                  * and configure firmware eeprom address
4327                  */
4328                 {
4329                 u8 data[] = { 0x3c, 0x33, 0x60};
4330                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4331                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4332                 }
4333                 break;
4334         case SAA7134_BOARD_FLYDVB_TRIO:
4335                 {
4336                 u8 data[] = { 0x3c, 0x33, 0x62};
4337                 struct i2c_msg msg = {.addr=0x09, .flags=0, .buf=data, .len = sizeof(data)};
4338                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4339                 }
4340                 break;
4341         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
4342         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
4343                 /* initialize analog mode  */
4344                 {
4345                 u8 data[] = { 0x3c, 0x33, 0x6a};
4346                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4347                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4348                 }
4349                 break;
4350         case SAA7134_BOARD_CINERGY_HT_PCMCIA:
4351         case SAA7134_BOARD_CINERGY_HT_PCI:
4352                 /* initialize analog mode */
4353                 {
4354                 u8 data[] = { 0x3c, 0x33, 0x68};
4355                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
4356                 i2c_transfer(&dev->i2c_adap, &msg, 1);
4357                 }
4358                 break;
4359         case SAA7134_BOARD_KWORLD_ATSC110:
4360                 {
4361                         /* enable tuner */
4362                         int i;
4363                         static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
4364                         dev->i2c_client.addr = 0x0a;
4365                         for (i = 0; i < 5; i++)
4366                                 if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
4367                                         printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
4368                                                dev->name, i);
4369                 }
4370                 break;
4371         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
4372         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
4373                 /* The T200 and the T200A share the same pci id.  Consequently,
4374                  * we are going to query eeprom to try to find out which one we
4375                  * are actually looking at. */
4376
4377                 /* Don't do this if the board was specifically selected with an
4378                  * insmod option or if we have the default configuration T200*/
4379                 if(!dev->autodetected || (dev->eedata[0x41] == 0xd0))
4380                         break;
4381                 if(dev->eedata[0x41] == 0x02) {
4382                         /* Reconfigure board  as T200A */
4383                         dev->board = SAA7134_BOARD_VIDEOMATE_DVBT_200A;
4384                         dev->tuner_type   = saa7134_boards[dev->board].tuner_type;
4385                         dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
4386                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
4387                                 dev->name, saa7134_boards[dev->board].name);
4388                 } else {
4389                         printk(KERN_WARNING "%s: Unexpected tuner type info: %x in eeprom\n",
4390                                 dev->name, dev->eedata[0x41]);
4391                         break;
4392                 }
4393                 break;
4394         }
4395         return 0;
4396 }
4397
4398 /* ----------------------------------------------------------- */
4399 /*
4400  * Local variables:
4401  * c-basic-offset: 8
4402  * End:
4403  */