Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6] / drivers / media / video / saa7134 / saa7134-cards.c
1 /*
2  *
3  * device driver for philips saa7134 based TV cards
4  * card-specific stuff.
5  *
6  * (c) 2001-04 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22
23 #include <linux/init.h>
24 #include <linux/module.h>
25 #include <linux/i2c.h>
26 #include <linux/i2c-algo-bit.h>
27
28 #include "saa7134-reg.h"
29 #include "saa7134.h"
30 #include "tuner-xc2028.h"
31 #include <media/v4l2-common.h>
32 #include <media/tveeprom.h>
33 #include "tea5767.h"
34 #include "tda18271.h"
35
36 /* commly used strings */
37 static char name_mute[]    = "mute";
38 static char name_radio[]   = "Radio";
39 static char name_tv[]      = "Television";
40 static char name_tv_mono[] = "TV (mono only)";
41 static char name_comp[]    = "Composite";
42 static char name_comp1[]   = "Composite1";
43 static char name_comp2[]   = "Composite2";
44 static char name_comp3[]   = "Composite3";
45 static char name_comp4[]   = "Composite4";
46 static char name_svideo[]  = "S-Video";
47
48 /* ------------------------------------------------------------------ */
49 /* board config info                                                  */
50
51 /* If radio_type !=UNSET, radio_addr should be specified
52  */
53
54 struct saa7134_board saa7134_boards[] = {
55         [SAA7134_BOARD_UNKNOWN] = {
56                 .name           = "UNKNOWN/GENERIC",
57                 .audio_clock    = 0x00187de7,
58                 .tuner_type     = TUNER_ABSENT,
59                 .radio_type     = UNSET,
60                 .tuner_addr     = ADDR_UNSET,
61                 .radio_addr     = ADDR_UNSET,
62
63                 .inputs         = {{
64                         .name = "default",
65                         .vmux = 0,
66                         .amux = LINE1,
67                 }},
68         },
69         [SAA7134_BOARD_PROTEUS_PRO] = {
70                 /* /me */
71                 .name           = "Proteus Pro [philips reference design]",
72                 .audio_clock    = 0x00187de7,
73                 .tuner_type     = TUNER_PHILIPS_PAL,
74                 .radio_type     = UNSET,
75                 .tuner_addr     = ADDR_UNSET,
76                 .radio_addr     = ADDR_UNSET,
77
78                 .inputs         = {{
79                         .name = name_comp1,
80                         .vmux = 0,
81                         .amux = LINE1,
82                 },{
83                         .name = name_tv,
84                         .vmux = 1,
85                         .amux = TV,
86                         .tv   = 1,
87                 },{
88                         .name = name_tv_mono,
89                         .vmux = 1,
90                         .amux = LINE2,
91                         .tv   = 1,
92                 }},
93                 .radio = {
94                         .name = name_radio,
95                         .amux = LINE2,
96                 },
97         },
98         [SAA7134_BOARD_FLYVIDEO3000] = {
99                 /* "Marco d'Itri" <md@Linux.IT> */
100                 .name           = "LifeView FlyVIDEO3000",
101                 .audio_clock    = 0x00200000,
102                 .tuner_type     = TUNER_PHILIPS_PAL,
103                 .radio_type     = UNSET,
104                 .tuner_addr     = ADDR_UNSET,
105                 .radio_addr     = ADDR_UNSET,
106
107                 .gpiomask       = 0xe000,
108                 .inputs         = {{
109                         .name = name_tv,
110                         .vmux = 1,
111                         .amux = TV,
112                         .gpio = 0x8000,
113                         .tv   = 1,
114                 },{
115                         .name = name_tv_mono,
116                         .vmux = 1,
117                         .amux = LINE2,
118                         .gpio = 0x0000,
119                         .tv   = 1,
120                 },{
121                         .name = name_comp1,
122                         .vmux = 0,
123                         .amux = LINE2,
124                         .gpio = 0x4000,
125                 },{
126                         .name = name_comp2,
127                         .vmux = 3,
128                         .amux = LINE2,
129                         .gpio = 0x4000,
130                 },{
131                         .name = name_svideo,
132                         .vmux = 8,
133                         .amux = LINE2,
134                         .gpio = 0x4000,
135                 }},
136                 .radio = {
137                         .name = name_radio,
138                         .amux = LINE2,
139                         .gpio = 0x2000,
140                 },
141                 .mute = {
142                         .name = name_mute,
143                         .amux = TV,
144                         .gpio = 0x8000,
145                 },
146         },
147         [SAA7134_BOARD_FLYVIDEO2000] = {
148                 /* "TC Wan" <tcwan@cs.usm.my> */
149                 .name           = "LifeView/Typhoon FlyVIDEO2000",
150                 .audio_clock    = 0x00200000,
151                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
152                 .radio_type     = UNSET,
153                 .tuner_addr     = ADDR_UNSET,
154                 .radio_addr     = ADDR_UNSET,
155
156                 .gpiomask       = 0xe000,
157                 .inputs         = {{
158                         .name = name_tv,
159                         .vmux = 1,
160                         .amux = LINE2,
161                         .gpio = 0x0000,
162                         .tv   = 1,
163                 },{
164                         .name = name_comp1,
165                         .vmux = 0,
166                         .amux = LINE2,
167                         .gpio = 0x4000,
168                 },{
169                         .name = name_comp2,
170                         .vmux = 3,
171                         .amux = LINE2,
172                         .gpio = 0x4000,
173                 },{
174                         .name = name_svideo,
175                         .vmux = 8,
176                         .amux = LINE2,
177                         .gpio = 0x4000,
178                 }},
179                 .radio = {
180                         .name = name_radio,
181                         .amux = LINE2,
182                         .gpio = 0x2000,
183                 },
184                 .mute = {
185                         .name = name_mute,
186                         .amux = LINE2,
187                         .gpio = 0x8000,
188                 },
189         },
190         [SAA7134_BOARD_FLYTVPLATINUM_MINI] = {
191                 /* "Arnaud Quette" <aquette@free.fr> */
192                 .name           = "LifeView FlyTV Platinum Mini",
193                 .audio_clock    = 0x00200000,
194                 .tuner_type     = TUNER_PHILIPS_TDA8290,
195                 .radio_type     = UNSET,
196                 .tuner_addr     = ADDR_UNSET,
197                 .radio_addr     = ADDR_UNSET,
198
199                 .inputs         = {{
200                         .name = name_tv,
201                         .vmux = 1,
202                         .amux = TV,
203                         .tv   = 1,
204                 },{
205                         .name = name_comp1,     /* Composite signal on S-Video input */
206                         .vmux = 0,
207                         .amux = LINE2,
208                 },{
209                         .name = name_comp2,     /* Composite input */
210                         .vmux = 3,
211                         .amux = LINE2,
212                 },{
213                         .name = name_svideo,
214                         .vmux = 8,
215                         .amux = LINE2,
216                 }},
217         },
218         [SAA7134_BOARD_FLYTVPLATINUM_FM] = {
219                 /* LifeView FlyTV Platinum FM (LR214WF) */
220                 /* "Peter Missel <peter.missel@onlinehome.de> */
221                 .name           = "LifeView FlyTV Platinum FM / Gold",
222                 .audio_clock    = 0x00200000,
223                 .tuner_type     = TUNER_PHILIPS_TDA8290,
224                 .radio_type     = UNSET,
225                 .tuner_addr     = ADDR_UNSET,
226                 .radio_addr     = ADDR_UNSET,
227
228                 .gpiomask       = 0x1E000,      /* Set GP16 and unused 15,14,13 to Output */
229                 .inputs         = {{
230                         .name = name_tv,
231                         .vmux = 1,
232                         .amux = TV,
233                         .gpio = 0x10000,        /* GP16=1 selects TV input */
234                         .tv   = 1,
235                 },{
236 /*                      .name = name_tv_mono,
237                         .vmux = 1,
238                         .amux = LINE2,
239                         .gpio = 0x0000,
240                         .tv   = 1,
241                 },{
242 */                      .name = name_comp1,     /* Composite signal on S-Video input */
243                         .vmux = 0,
244                         .amux = LINE2,
245 /*                      .gpio = 0x4000,         */
246                 },{
247                         .name = name_comp2,     /* Composite input */
248                         .vmux = 3,
249                         .amux = LINE2,
250 /*                      .gpio = 0x4000,         */
251                 },{
252                         .name = name_svideo,    /* S-Video signal on S-Video input */
253                         .vmux = 8,
254                         .amux = LINE2,
255 /*                      .gpio = 0x4000,         */
256                 }},
257                 .radio = {
258                         .name = name_radio,
259                         .amux = TV,
260                         .gpio = 0x00000,        /* GP16=0 selects FM radio antenna */
261                 },
262                 .mute = {
263                         .name = name_mute,
264                         .amux = TV,
265                         .gpio = 0x10000,
266                 },
267         },
268         [SAA7134_BOARD_EMPRESS] = {
269                 /* "Gert Vervoort" <gert.vervoort@philips.com> */
270                 .name           = "EMPRESS",
271                 .audio_clock    = 0x00187de7,
272                 .tuner_type     = TUNER_PHILIPS_PAL,
273                 .radio_type     = UNSET,
274                 .tuner_addr     = ADDR_UNSET,
275                 .radio_addr     = ADDR_UNSET,
276                 .empress_addr   = 0x20,
277
278                 .inputs         = {{
279                         .name = name_comp1,
280                         .vmux = 0,
281                         .amux = LINE1,
282                 },{
283                         .name = name_svideo,
284                         .vmux = 8,
285                         .amux = LINE1,
286                 },{
287                         .name = name_tv,
288                         .vmux = 1,
289                         .amux = LINE2,
290                         .tv   = 1,
291                 }},
292                 .radio = {
293                         .name = name_radio,
294                         .amux = LINE2,
295                 },
296                 .mpeg      = SAA7134_MPEG_EMPRESS,
297                 .video_out = CCIR656,
298         },
299         [SAA7134_BOARD_MONSTERTV] = {
300                 /* "K.Ohta" <alpha292@bremen.or.jp> */
301                 .name           = "SKNet Monster TV",
302                 .audio_clock    = 0x00187de7,
303                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
304                 .radio_type     = UNSET,
305                 .tuner_addr     = ADDR_UNSET,
306                 .radio_addr     = ADDR_UNSET,
307
308                 .inputs         = {{
309                         .name = name_tv,
310                         .vmux = 1,
311                         .amux = TV,
312                         .tv   = 1,
313                 },{
314                         .name = name_comp1,
315                         .vmux = 0,
316                         .amux = LINE1,
317                 },{
318                         .name = name_svideo,
319                         .vmux = 8,
320                         .amux = LINE1,
321                 }},
322                 .radio = {
323                         .name = name_radio,
324                         .amux = LINE2,
325                 },
326         },
327         [SAA7134_BOARD_MD9717] = {
328                 .name           = "Tevion MD 9717",
329                 .audio_clock    = 0x00200000,
330                 .tuner_type     = TUNER_PHILIPS_PAL,
331                 .radio_type     = UNSET,
332                 .tuner_addr     = ADDR_UNSET,
333                 .radio_addr     = ADDR_UNSET,
334                 .inputs         = {{
335                         .name = name_tv,
336                         .vmux = 1,
337                         .amux = TV,
338                         .tv   = 1,
339                 },{
340                         /* workaround for problems with normal TV sound */
341                         .name = name_tv_mono,
342                         .vmux = 1,
343                         .amux = LINE2,
344                         .tv   = 1,
345                 },{
346                         .name = name_comp1,
347                         .vmux = 0,
348                         .amux = LINE1,
349                 },{
350                         .name = name_comp2,
351                         .vmux = 3,
352                         .amux = LINE1,
353                 },{
354                         .name = name_svideo,
355                         .vmux = 8,
356                         .amux = LINE1,
357                 }},
358                 .radio = {
359                         .name = name_radio,
360                         .amux = LINE2,
361                 },
362                .mute = {
363                        .name = name_mute,
364                        .amux = TV,
365                },
366         },
367         [SAA7134_BOARD_TVSTATION_RDS] = {
368                 /* Typhoon TV Tuner RDS: Art.Nr. 50694 */
369                 .name           = "KNC One TV-Station RDS / Typhoon TV Tuner RDS",
370                 .audio_clock    = 0x00200000,
371                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
372                 .radio_type     = UNSET,
373                 .tuner_addr     = ADDR_UNSET,
374                 .radio_addr     = ADDR_UNSET,
375                 .tda9887_conf   = TDA9887_PRESENT,
376                 .inputs         = {{
377                         .name = name_tv,
378                         .vmux = 1,
379                         .amux = TV,
380                         .tv   = 1,
381                 },{
382                         .name = name_tv_mono,
383                         .vmux = 1,
384                         .amux   = LINE2,
385                         .tv   = 1,
386                 },{
387
388                         .name = name_svideo,
389                         .vmux = 8,
390                         .amux = LINE1,
391                 },{
392                         .name = name_comp1,
393                         .vmux = 3,
394                         .amux = LINE1,
395                 },{
396
397                         .name = "CVid over SVid",
398                         .vmux = 0,
399                         .amux = LINE1,
400                 }},
401                 .radio = {
402                         .name = name_radio,
403                         .amux = LINE2,
404                 },
405         },
406         [SAA7134_BOARD_TVSTATION_DVR] = {
407                 .name           = "KNC One TV-Station DVR",
408                 .audio_clock    = 0x00200000,
409                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
410                 .radio_type     = UNSET,
411                 .tuner_addr     = ADDR_UNSET,
412                 .radio_addr     = ADDR_UNSET,
413                 .empress_addr   = 0x20,
414                 .tda9887_conf   = TDA9887_PRESENT,
415                 .gpiomask       = 0x820000,
416                 .inputs         = {{
417                         .name = name_tv,
418                         .vmux = 1,
419                         .amux = TV,
420                         .tv   = 1,
421                         .gpio = 0x20000,
422                 },{
423                         .name = name_svideo,
424                         .vmux = 8,
425                         .amux = LINE1,
426                         .gpio = 0x20000,
427                 },{
428                         .name = name_comp1,
429                         .vmux = 3,
430                         .amux = LINE1,
431                         .gpio = 0x20000,
432                 }},
433                 .radio          = {
434                         .name = name_radio,
435                         .amux = LINE2,
436                         .gpio = 0x20000,
437                 },
438                 .mpeg           = SAA7134_MPEG_EMPRESS,
439                 .video_out      = CCIR656,
440         },
441         [SAA7134_BOARD_CINERGY400] = {
442                 .name           = "Terratec Cinergy 400 TV",
443                 .audio_clock    = 0x00200000,
444                 .tuner_type     = TUNER_PHILIPS_PAL,
445                 .radio_type     = UNSET,
446                 .tuner_addr     = ADDR_UNSET,
447                 .radio_addr     = ADDR_UNSET,
448                 .inputs         = {{
449                         .name = name_tv,
450                         .vmux = 1,
451                         .amux = TV,
452                         .tv   = 1,
453                 },{
454                         .name = name_comp1,
455                         .vmux = 4,
456                         .amux = LINE1,
457                 },{
458                         .name = name_svideo,
459                         .vmux = 8,
460                         .amux = LINE1,
461                 },{
462                         .name = name_comp2, /* CVideo over SVideo Connector */
463                         .vmux = 0,
464                         .amux = LINE1,
465                 }}
466         },
467         [SAA7134_BOARD_MD5044] = {
468                 .name           = "Medion 5044",
469                 .audio_clock    = 0x00187de7, /* was: 0x00200000, */
470                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
471                 .radio_type     = UNSET,
472                 .tuner_addr     = ADDR_UNSET,
473                 .radio_addr     = ADDR_UNSET,
474                 .tda9887_conf   = TDA9887_PRESENT,
475                 .inputs         = {{
476                         .name = name_tv,
477                         .vmux = 1,
478                         .amux = TV,
479                         .tv   = 1,
480                 },{
481                         /* workaround for problems with normal TV sound */
482                         .name = name_tv_mono,
483                         .vmux = 1,
484                         .amux = LINE2,
485                         .tv   = 1,
486                 },{
487                         .name = name_comp1,
488                         .vmux = 0,
489                         .amux = LINE2,
490                 },{
491                         .name = name_comp2,
492                         .vmux = 3,
493                         .amux = LINE2,
494                 },{
495                         .name = name_svideo,
496                         .vmux = 8,
497                         .amux = LINE2,
498                 }},
499                 .radio = {
500                         .name = name_radio,
501                         .amux = LINE2,
502                 },
503         },
504         [SAA7134_BOARD_KWORLD] = {
505                 .name           = "Kworld/KuroutoShikou SAA7130-TVPCI",
506                 .audio_clock    = 0x00187de7,
507                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
508                 .radio_type     = UNSET,
509                 .tuner_addr     = ADDR_UNSET,
510                 .radio_addr     = ADDR_UNSET,
511                 .inputs         = {{
512                         .name = name_svideo,
513                         .vmux = 8,
514                         .amux = LINE1,
515                 },{
516                         .name = name_comp1,
517                         .vmux = 3,
518                         .amux = LINE1,
519                 },{
520                         .name = name_tv,
521                         .vmux = 1,
522                         .amux = LINE2,
523                         .tv   = 1,
524                 }},
525         },
526         [SAA7134_BOARD_CINERGY600] = {
527                 .name           = "Terratec Cinergy 600 TV",
528                 .audio_clock    = 0x00200000,
529                 .tuner_type     = TUNER_PHILIPS_PAL,
530                 .radio_type     = UNSET,
531                 .tuner_addr     = ADDR_UNSET,
532                 .radio_addr     = ADDR_UNSET,
533                 .tda9887_conf   = TDA9887_PRESENT,
534                 .inputs         = {{
535                         .name = name_tv,
536                         .vmux = 1,
537                         .amux = TV,
538                         .tv   = 1,
539                 },{
540                         .name = name_comp1,
541                         .vmux = 4,
542                         .amux = LINE1,
543                 },{
544                         .name = name_svideo,
545                         .vmux = 8,
546                         .amux = LINE1,
547                 },{
548                         .name = name_comp2, /* CVideo over SVideo Connector */
549                         .vmux = 0,
550                         .amux = LINE1,
551                 }},
552                 .radio = {
553                         .name = name_radio,
554                         .amux = LINE2,
555                 },
556         },
557         [SAA7134_BOARD_MD7134] = {
558                 .name           = "Medion 7134",
559                 .audio_clock    = 0x00187de7,
560                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
561                 .radio_type     = UNSET,
562                 .tuner_addr     = ADDR_UNSET,
563                 .radio_addr     = ADDR_UNSET,
564                 .tda9887_conf   = TDA9887_PRESENT,
565                 .mpeg           = SAA7134_MPEG_DVB,
566                 .inputs = {{
567                         .name   = name_tv,
568                         .vmux   = 1,
569                         .amux   = TV,
570                         .tv     = 1,
571                 },{
572                         .name   = name_comp1,
573                         .vmux   = 0,
574                         .amux   = LINE1,
575                 },{
576                         .name   = name_svideo,
577                         .vmux   = 8,
578                         .amux   = LINE1,
579                 }},
580                 .radio = {
581                         .name   = name_radio,
582                         .amux   = LINE2,
583                },
584                .mute = {
585                        .name = name_mute,
586                        .amux = TV,
587                 },
588         },
589         [SAA7134_BOARD_TYPHOON_90031] = {
590                 /* aka Typhoon "TV+Radio", Art.Nr 90031 */
591                 /* Tom Zoerner <tomzo at users sourceforge net> */
592                 .name           = "Typhoon TV+Radio 90031",
593                 .audio_clock    = 0x00200000,
594                 .tuner_type     = TUNER_PHILIPS_PAL,
595                 .radio_type     = UNSET,
596                 .tuner_addr     = ADDR_UNSET,
597                 .radio_addr     = ADDR_UNSET,
598                 .tda9887_conf   = TDA9887_PRESENT,
599                 .inputs         = {{
600                         .name   = name_tv,
601                         .vmux   = 1,
602                         .amux   = TV,
603                         .tv     = 1,
604                 },{
605                         .name   = name_comp1,
606                         .vmux   = 3,
607                         .amux   = LINE1,
608                 },{
609                         .name   = name_svideo,
610                         .vmux   = 8,
611                         .amux   = LINE1,
612                 }},
613                 .radio = {
614                         .name   = name_radio,
615                         .amux   = LINE2,
616                 },
617         },
618         [SAA7134_BOARD_ELSA] = {
619                 .name           = "ELSA EX-VISION 300TV",
620                 .audio_clock    = 0x00187de7,
621                 .tuner_type     = TUNER_HITACHI_NTSC,
622                 .radio_type     = UNSET,
623                 .tuner_addr     = ADDR_UNSET,
624                 .radio_addr     = ADDR_UNSET,
625                 .inputs         = {{
626                         .name = name_svideo,
627                         .vmux = 8,
628                         .amux = LINE1,
629                 },{
630                         .name   = name_comp1,
631                         .vmux   = 0,
632                         .amux   = LINE1,
633                 },{
634                         .name = name_tv,
635                         .vmux = 4,
636                         .amux = LINE2,
637                         .tv   = 1,
638                 }},
639         },
640         [SAA7134_BOARD_ELSA_500TV] = {
641                 .name           = "ELSA EX-VISION 500TV",
642                 .audio_clock    = 0x00187de7,
643                 .tuner_type     = TUNER_HITACHI_NTSC,
644                 .radio_type     = UNSET,
645                 .tuner_addr     = ADDR_UNSET,
646                 .radio_addr     = ADDR_UNSET,
647                 .inputs         = {{
648                         .name = name_svideo,
649                         .vmux = 7,
650                         .amux = LINE1,
651                 },{
652                         .name = name_tv,
653                         .vmux = 8,
654                         .amux = TV,
655                         .tv   = 1,
656                 },{
657                         .name = name_tv_mono,
658                         .vmux = 8,
659                         .amux = LINE2,
660                         .tv   = 1,
661                 }},
662         },
663         [SAA7134_BOARD_ELSA_700TV] = {
664                 .name           = "ELSA EX-VISION 700TV",
665                 .audio_clock    = 0x00187de7,
666                 .tuner_type     = TUNER_HITACHI_NTSC,
667                 .radio_type     = UNSET,
668                 .tuner_addr     = ADDR_UNSET,
669                 .radio_addr     = ADDR_UNSET,
670                 .inputs         = {{
671                         .name = name_tv,
672                         .vmux = 4,
673                         .amux = LINE2,
674                         .tv   = 1,
675                 },{
676                         .name = name_comp1,
677                         .vmux = 6,
678                         .amux = LINE1,
679                 },{
680                         .name = name_svideo,
681                         .vmux = 7,
682                         .amux = LINE1,
683                 }},
684                 .mute           = {
685                         .name = name_mute,
686                         .amux = TV,
687                 },
688         },
689         [SAA7134_BOARD_ASUSTeK_TVFM7134] = {
690                 .name           = "ASUS TV-FM 7134",
691                 .audio_clock    = 0x00187de7,
692                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
693                 .radio_type     = UNSET,
694                 .tuner_addr     = ADDR_UNSET,
695                 .radio_addr     = ADDR_UNSET,
696                 .tda9887_conf   = TDA9887_PRESENT,
697                 .inputs         = {{
698                         .name = name_tv,
699                         .vmux = 1,
700                         .amux = TV,
701                         .tv   = 1,
702                 },{
703                         .name = name_comp1,
704                         .vmux = 4,
705                         .amux = LINE2,
706                 },{
707                         .name = name_svideo,
708                         .vmux = 6,
709                         .amux = LINE2,
710                 }},
711                 .radio = {
712                         .name = name_radio,
713                         .amux = LINE1,
714                 },
715         },
716         [SAA7134_BOARD_ASUSTeK_TVFM7135] = {
717                 .name           = "ASUS TV-FM 7135",
718                 .audio_clock    = 0x00187de7,
719                 .tuner_type     = TUNER_PHILIPS_TDA8290,
720                 .radio_type     = UNSET,
721                 .tuner_addr     = ADDR_UNSET,
722                 .radio_addr     = ADDR_UNSET,
723                 .gpiomask       = 0x200000,
724                 .inputs         = {{
725                         .name = name_tv,
726                         .vmux = 1,
727                         .amux = TV,
728                         .gpio = 0x0000,
729                         .tv   = 1,
730                 },{
731                         .name = name_comp1,
732                         .vmux = 4,
733                         .amux = LINE2,
734                         .gpio = 0x0000,
735                 },{
736                         .name = name_svideo,
737                         .vmux = 6,
738                         .amux = LINE2,
739                         .gpio = 0x0000,
740                 }},
741                 .radio = {
742                         .name = name_radio,
743                         .amux = TV,
744                         .gpio = 0x200000,
745                 },
746                 .mute  = {
747                         .name = name_mute,
748                         .gpio = 0x0000,
749                 },
750
751         },
752         [SAA7134_BOARD_VA1000POWER] = {
753                 .name           = "AOPEN VA1000 POWER",
754                 .audio_clock    = 0x00187de7,
755                 .tuner_type     = TUNER_PHILIPS_NTSC,
756                 .radio_type     = UNSET,
757                 .tuner_addr     = ADDR_UNSET,
758                 .radio_addr     = ADDR_UNSET,
759                 .inputs         = {{
760                         .name = name_svideo,
761                         .vmux = 8,
762                         .amux = LINE1,
763                 },{
764                         .name = name_comp1,
765                         .vmux = 3,
766                         .amux = LINE1,
767                 },{
768                         .name = name_tv,
769                         .vmux = 1,
770                         .amux = LINE2,
771                         .tv   = 1,
772                 }},
773         },
774         [SAA7134_BOARD_10MOONSTVMASTER] = {
775                 /* "lilicheng" <llc@linuxfans.org> */
776                 .name           = "10MOONS PCI TV CAPTURE CARD",
777                 .audio_clock    = 0x00200000,
778                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
779                 .radio_type     = UNSET,
780                 .tuner_addr     = ADDR_UNSET,
781                 .radio_addr     = ADDR_UNSET,
782                 .gpiomask       = 0xe000,
783                 .inputs         = {{
784                         .name = name_tv,
785                         .vmux = 1,
786                         .amux = LINE2,
787                         .gpio = 0x0000,
788                         .tv   = 1,
789                 },{
790                         .name = name_comp1,
791                         .vmux = 0,
792                         .amux = LINE2,
793                         .gpio = 0x4000,
794                 },{
795                         .name = name_comp2,
796                         .vmux = 3,
797                         .amux = LINE2,
798                         .gpio = 0x4000,
799                 },{
800                         .name = name_svideo,
801                         .vmux = 8,
802                         .amux = LINE2,
803                         .gpio = 0x4000,
804                 }},
805                 .radio = {
806                         .name = name_radio,
807                         .amux = LINE2,
808                         .gpio = 0x2000,
809                 },
810                 .mute = {
811                         .name = name_mute,
812                         .amux = LINE2,
813                         .gpio = 0x8000,
814                 },
815         },
816         [SAA7134_BOARD_BMK_MPEX_NOTUNER] = {
817                 /* "Andrew de Quincey" <adq@lidskialf.net> */
818                 .name           = "BMK MPEX No Tuner",
819                 .audio_clock    = 0x200000,
820                 .tuner_type     = TUNER_ABSENT,
821                 .radio_type     = UNSET,
822                 .tuner_addr     = ADDR_UNSET,
823                 .radio_addr     = ADDR_UNSET,
824                 .empress_addr   = 0x20,
825                 .inputs         = {{
826                         .name = name_comp1,
827                         .vmux = 4,
828                         .amux = LINE1,
829                 },{
830                         .name = name_comp2,
831                         .vmux = 3,
832                         .amux = LINE1,
833                 },{
834                         .name = name_comp3,
835                         .vmux = 0,
836                         .amux = LINE1,
837                 },{
838                         .name = name_comp4,
839                         .vmux = 1,
840                         .amux = LINE1,
841                 },{
842                         .name = name_svideo,
843                         .vmux = 8,
844                         .amux = LINE1,
845                 }},
846                 .mpeg      = SAA7134_MPEG_EMPRESS,
847                 .video_out = CCIR656,
848         },
849         [SAA7134_BOARD_VIDEOMATE_TV] = {
850                 .name           = "Compro VideoMate TV",
851                 .audio_clock    = 0x00187de7,
852                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
853                 .radio_type     = UNSET,
854                 .tuner_addr     = ADDR_UNSET,
855                 .radio_addr     = ADDR_UNSET,
856                 .inputs         = {{
857                         .name = name_svideo,
858                         .vmux = 8,
859                         .amux = LINE1,
860                 },{
861                         .name = name_comp1,
862                         .vmux = 3,
863                         .amux = LINE1,
864                 },{
865                         .name = name_tv,
866                         .vmux = 1,
867                         .amux = LINE2,
868                         .tv   = 1,
869                 }},
870         },
871         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS] = {
872                 .name           = "Compro VideoMate TV Gold+",
873                 .audio_clock    = 0x00187de7,
874                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
875                 .gpiomask       = 0x800c0000,
876                 .radio_type     = UNSET,
877                 .tuner_addr     = ADDR_UNSET,
878                 .radio_addr     = ADDR_UNSET,
879                 .inputs         = {{
880                         .name = name_svideo,
881                         .vmux = 8,
882                         .amux = LINE1,
883                         .gpio = 0x06c00012,
884                 },{
885                         .name = name_comp1,
886                         .vmux = 3,
887                         .amux = LINE1,
888                         .gpio = 0x0ac20012,
889                 },{
890                         .name = name_tv,
891                         .vmux = 1,
892                         .amux = LINE2,
893                         .gpio = 0x08c20012,
894                         .tv   = 1,
895                 }},                             /* radio and probably mute is missing */
896         },
897         [SAA7134_BOARD_CRONOS_PLUS] = {
898                 /*
899                 gpio pins:
900                         0  .. 3   BASE_ID
901                         4  .. 7   PROTECT_ID
902                         8  .. 11  USER_OUT
903                         12 .. 13  USER_IN
904                         14 .. 15  VIDIN_SEL
905                 */
906                 .name           = "Matrox CronosPlus",
907                 .tuner_type     = TUNER_ABSENT,
908                 .radio_type     = UNSET,
909                 .tuner_addr     = ADDR_UNSET,
910                 .radio_addr     = ADDR_UNSET,
911                 .gpiomask       = 0xcf00,
912                 .inputs         = {{
913                         .name = name_comp1,
914                         .vmux = 0,
915                         .gpio = 2 << 14,
916                 },{
917                         .name = name_comp2,
918                         .vmux = 0,
919                         .gpio = 1 << 14,
920                 },{
921                         .name = name_comp3,
922                         .vmux = 0,
923                         .gpio = 0 << 14,
924                 },{
925                         .name = name_comp4,
926                         .vmux = 0,
927                         .gpio = 3 << 14,
928                 },{
929                         .name = name_svideo,
930                         .vmux = 8,
931                         .gpio = 2 << 14,
932                 }},
933         },
934         [SAA7134_BOARD_MD2819] = {
935                 .name           = "AverMedia M156 / Medion 2819",
936                 .audio_clock    = 0x00187de7,
937                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
938                 .radio_type     = UNSET,
939                 .tuner_addr     = ADDR_UNSET,
940                 .radio_addr     = ADDR_UNSET,
941                 .tda9887_conf   = TDA9887_PRESENT,
942                 .gpiomask       = 0x03,
943                 .inputs         = {{
944                         .name = name_tv,
945                         .vmux = 1,
946                         .amux = TV,
947                         .tv   = 1,
948                         .gpio = 0x00,
949                 }, {
950                         .name = name_comp1,
951                         .vmux = 3,
952                         .amux = LINE1,
953                         .gpio = 0x02,
954                 }, {
955                         .name = name_comp2,
956                         .vmux = 0,
957                         .amux = LINE1,
958                         .gpio = 0x02,
959                 }, {
960                         .name = name_svideo,
961                         .vmux = 8,
962                         .amux = LINE1,
963                         .gpio = 0x02,
964                 } },
965                 .radio = {
966                         .name = name_radio,
967                         .amux = LINE1,
968                         .gpio = 0x01,
969                 },
970                 .mute  = {
971                         .name = name_mute,
972                         .amux = TV,
973                         .gpio = 0x00,
974                 },
975         },
976         [SAA7134_BOARD_BMK_MPEX_TUNER] = {
977                 /* "Greg Wickham <greg.wickham@grangenet.net> */
978                 .name           = "BMK MPEX Tuner",
979                 .audio_clock    = 0x200000,
980                 .tuner_type     = TUNER_PHILIPS_PAL,
981                 .radio_type     = UNSET,
982                 .tuner_addr     = ADDR_UNSET,
983                 .radio_addr     = ADDR_UNSET,
984                 .empress_addr   = 0x20,
985                 .inputs         = {{
986                         .name = name_comp1,
987                         .vmux = 1,
988                         .amux = LINE1,
989                 },{
990                         .name = name_svideo,
991                         .vmux = 8,
992                         .amux = LINE1,
993                 },{
994                         .name = name_tv,
995                         .vmux = 3,
996                         .amux = TV,
997                         .tv   = 1,
998                 }},
999                 .mpeg      = SAA7134_MPEG_EMPRESS,
1000                 .video_out = CCIR656,
1001         },
1002         [SAA7134_BOARD_ASUSTEK_TVFM7133] = {
1003                 .name           = "ASUS TV-FM 7133",
1004                 .audio_clock    = 0x00187de7,
1005                 /* probably wrong, the 7133 one is the NTSC version ...
1006                 * .tuner_type  = TUNER_PHILIPS_FM1236_MK3 */
1007                 .tuner_type     = TUNER_LG_NTSC_NEW_TAPC,
1008                 .radio_type     = UNSET,
1009                 .tuner_addr     = ADDR_UNSET,
1010                 .radio_addr     = ADDR_UNSET,
1011                 .tda9887_conf   = TDA9887_PRESENT,
1012                 .inputs         = {{
1013                         .name = name_tv,
1014                         .vmux = 1,
1015                         .amux = TV,
1016                         .tv   = 1,
1017
1018                 },{
1019                         .name = name_comp1,
1020                         .vmux = 4,
1021                         .amux = LINE2,
1022                 },{
1023                         .name = name_svideo,
1024                         .vmux = 6,
1025                         .amux = LINE2,
1026                 }},
1027                 .radio = {
1028                         .name = name_radio,
1029                         .amux = LINE1,
1030                 },
1031         },
1032         [SAA7134_BOARD_PINNACLE_PCTV_STEREO] = {
1033                 .name           = "Pinnacle PCTV Stereo (saa7134)",
1034                 .audio_clock    = 0x00187de7,
1035                 .tuner_type     = TUNER_MT2032,
1036                 .radio_type     = UNSET,
1037                 .tuner_addr     = ADDR_UNSET,
1038                 .radio_addr     = ADDR_UNSET,
1039                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_INACTIVE,
1040                 .inputs         = {{
1041                         .name = name_tv,
1042                         .vmux = 3,
1043                         .amux = TV,
1044                         .tv   = 1,
1045                 },{
1046                         .name = name_comp1,
1047                         .vmux = 0,
1048                         .amux = LINE2,
1049                 },{
1050                         .name = name_comp2,
1051                         .vmux = 1,
1052                         .amux = LINE2,
1053                 },{
1054                         .name = name_svideo,
1055                         .vmux = 8,
1056                         .amux = LINE2,
1057                 }},
1058         },
1059         [SAA7134_BOARD_MANLI_MTV002] = {
1060                 /* Ognjen Nastic <ognjen@logosoft.ba> */
1061                 .name           = "Manli MuchTV M-TV002",
1062                 .audio_clock    = 0x00200000,
1063                 .tuner_type     = TUNER_PHILIPS_PAL,
1064                 .radio_type     = UNSET,
1065                 .tuner_addr     = ADDR_UNSET,
1066                 .radio_addr     = ADDR_UNSET,
1067                 .inputs         = {{
1068                         .name = name_svideo,
1069                         .vmux = 8,
1070                         .amux = LINE1,
1071                 },{
1072                         .name   = name_comp1,
1073                         .vmux   = 1,
1074                         .amux   = LINE1,
1075                 },{
1076                         .name = name_tv,
1077                         .vmux = 3,
1078                         .amux = LINE2,
1079                         .tv   = 1,
1080                 }},
1081                 .radio = {
1082                         .name = name_radio,
1083                         .amux = LINE2,
1084                 },
1085         },
1086         [SAA7134_BOARD_MANLI_MTV001] = {
1087                 /* Ognjen Nastic <ognjen@logosoft.ba> UNTESTED */
1088                 .name           = "Manli MuchTV M-TV001",
1089                 .audio_clock    = 0x00200000,
1090                 .tuner_type     = TUNER_PHILIPS_PAL,
1091                 .radio_type     = UNSET,
1092                 .tuner_addr     = ADDR_UNSET,
1093                 .radio_addr     = ADDR_UNSET,
1094                 .inputs         = {{
1095                         .name = name_svideo,
1096                         .vmux = 8,
1097                         .amux = LINE1,
1098                 },{
1099                         .name = name_comp1,
1100                         .vmux = 1,
1101                         .amux = LINE1,
1102                 },{
1103                         .name = name_tv,
1104                         .vmux = 3,
1105                         .amux = LINE2,
1106                         .tv   = 1,
1107                 }},
1108                 .mute = {
1109                         .name = name_mute,
1110                         .amux = LINE1,
1111                 },
1112         },
1113         [SAA7134_BOARD_TG3000TV] = {
1114                 /* TransGear 3000TV */
1115                 .name           = "Nagase Sangyo TransGear 3000TV",
1116                 .audio_clock    = 0x00187de7,
1117                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1118                 .radio_type     = UNSET,
1119                 .tuner_addr     = ADDR_UNSET,
1120                 .radio_addr     = ADDR_UNSET,
1121                 .inputs         = {{
1122                         .name = name_tv,
1123                         .vmux = 1,
1124                         .amux = LINE2,
1125                         .tv   = 1,
1126                 },{
1127                         .name = name_comp1,
1128                         .vmux = 3,
1129                         .amux = LINE2,
1130                 },{
1131                         .name = name_svideo,
1132                         .vmux = 8,
1133                         .amux = LINE2,
1134                 }},
1135         },
1136         [SAA7134_BOARD_ECS_TVP3XP] = {
1137                 .name           = "Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) ",
1138                 .audio_clock    = 0x187de7,  /* xtal 32.1 MHz */
1139                 .tuner_type     = TUNER_PHILIPS_PAL,
1140                 .radio_type     = UNSET,
1141                 .tuner_addr     = ADDR_UNSET,
1142                 .radio_addr     = ADDR_UNSET,
1143                 .inputs         = {{
1144                         .name   = name_tv,
1145                         .vmux   = 1,
1146                         .amux   = TV,
1147                         .tv     = 1,
1148                 },{
1149                         .name   = name_tv_mono,
1150                         .vmux   = 1,
1151                         .amux   = LINE2,
1152                         .tv     = 1,
1153                 },{
1154                         .name   = name_comp1,
1155                         .vmux   = 3,
1156                         .amux   = LINE1,
1157                 },{
1158                         .name   = name_svideo,
1159                         .vmux   = 8,
1160                         .amux   = LINE1,
1161                 },{
1162                         .name   = "CVid over SVid",
1163                         .vmux   = 0,
1164                         .amux   = LINE1,
1165                 }},
1166                 .radio = {
1167                         .name   = name_radio,
1168                         .amux   = LINE2,
1169                 },
1170         },
1171         [SAA7134_BOARD_ECS_TVP3XP_4CB5] = {
1172                 .name           = "Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM)",
1173                 .audio_clock    = 0x187de7,
1174                 .tuner_type     = TUNER_PHILIPS_NTSC,
1175                 .radio_type     = UNSET,
1176                 .tuner_addr     = ADDR_UNSET,
1177                 .radio_addr     = ADDR_UNSET,
1178                 .inputs         = {{
1179                         .name   = name_tv,
1180                         .vmux   = 1,
1181                         .amux   = TV,
1182                         .tv     = 1,
1183                 },{
1184                         .name   = name_tv_mono,
1185                         .vmux   = 1,
1186                         .amux   = LINE2,
1187                         .tv     = 1,
1188                 },{
1189                         .name   = name_comp1,
1190                         .vmux   = 3,
1191                         .amux   = LINE1,
1192                 },{
1193                         .name   = name_svideo,
1194                         .vmux   = 8,
1195                         .amux   = LINE1,
1196                 },{
1197                         .name   = "CVid over SVid",
1198                         .vmux   = 0,
1199                         .amux   = LINE1,
1200                 }},
1201                 .radio = {
1202                         .name   = name_radio,
1203                         .amux   = LINE2,
1204                 },
1205         },
1206     [SAA7134_BOARD_ECS_TVP3XP_4CB6] = {
1207                 /* Barry Scott <barry.scott@onelan.co.uk> */
1208                 .name           = "Elitegroup ECS TVP3XP FM1246 Tuner Card (PAL,FM)",
1209                 .audio_clock    = 0x187de7,
1210                 .tuner_type     = TUNER_PHILIPS_PAL_I,
1211                 .radio_type     = UNSET,
1212                 .tuner_addr     = ADDR_UNSET,
1213                 .radio_addr     = ADDR_UNSET,
1214                 .inputs         = {{
1215                         .name   = name_tv,
1216                         .vmux   = 1,
1217                         .amux   = TV,
1218                         .tv     = 1,
1219                 },{
1220                         .name   = name_tv_mono,
1221                         .vmux   = 1,
1222                         .amux   = LINE2,
1223                         .tv     = 1,
1224                 },{
1225                         .name   = name_comp1,
1226                         .vmux   = 3,
1227                         .amux   = LINE1,
1228                 },{
1229                         .name   = name_svideo,
1230                         .vmux   = 8,
1231                         .amux   = LINE1,
1232                 },{
1233                         .name   = "CVid over SVid",
1234                         .vmux   = 0,
1235                         .amux   = LINE1,
1236                 }},
1237                 .radio = {
1238                         .name   = name_radio,
1239                         .amux   = LINE2,
1240                 },
1241         },
1242         [SAA7134_BOARD_AVACSSMARTTV] = {
1243                 /* Roman Pszonczenko <romka@kolos.math.uni.lodz.pl> */
1244                 .name           = "AVACS SmartTV",
1245                 .audio_clock    = 0x00187de7,
1246                 .tuner_type     = TUNER_PHILIPS_PAL,
1247                 .radio_type     = UNSET,
1248                 .tuner_addr     = ADDR_UNSET,
1249                 .radio_addr     = ADDR_UNSET,
1250                 .inputs         = {{
1251                         .name = name_tv,
1252                         .vmux = 1,
1253                         .amux = TV,
1254                         .tv   = 1,
1255                 },{
1256                         .name = name_tv_mono,
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                         .gpio = 0x200000,
1277                 },
1278         },
1279         [SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER] = {
1280                 /* Michael Smith <msmith@cbnco.com> */
1281                 .name           = "AVerMedia DVD EZMaker",
1282                 .audio_clock    = 0x00187de7,
1283                 .tuner_type     = TUNER_ABSENT,
1284                 .radio_type     = UNSET,
1285                 .tuner_addr     = ADDR_UNSET,
1286                 .radio_addr     = ADDR_UNSET,
1287                 .inputs         = {{
1288                         .name = name_comp1,
1289                         .vmux = 3,
1290                 },{
1291                         .name = name_svideo,
1292                         .vmux = 8,
1293                 }},
1294         },
1295         [SAA7134_BOARD_AVERMEDIA_M103] = {
1296                 /* Massimo Piccioni <dafastidio@libero.it> */
1297                 .name           = "AVerMedia MiniPCI DVB-T Hybrid M103",
1298                 .audio_clock    = 0x187de7,
1299                 .tuner_type     = TUNER_XC2028,
1300                 .radio_type     = UNSET,
1301                 .tuner_addr     = ADDR_UNSET,
1302                 .radio_addr     = ADDR_UNSET,
1303                  .mpeg           = SAA7134_MPEG_DVB,
1304                  .inputs         = {{
1305                          .name = name_tv,
1306                          .vmux = 1,
1307                          .amux = TV,
1308                          .tv   = 1,
1309                  } },
1310         },
1311         [SAA7134_BOARD_NOVAC_PRIMETV7133] = {
1312                 /* toshii@netbsd.org */
1313                 .name           = "Noval Prime TV 7133",
1314                 .audio_clock    = 0x00200000,
1315                 .tuner_type     = TUNER_ALPS_TSBH1_NTSC,
1316                 .radio_type     = UNSET,
1317                 .tuner_addr     = ADDR_UNSET,
1318                 .radio_addr     = ADDR_UNSET,
1319                 .inputs         = {{
1320                         .name = name_comp1,
1321                         .vmux = 3,
1322                 },{
1323                         .name = name_tv,
1324                         .vmux = 1,
1325                         .amux = TV,
1326                         .tv   = 1,
1327                 },{
1328                         .name = name_svideo,
1329                         .vmux = 8,
1330                 }},
1331         },
1332         [SAA7134_BOARD_AVERMEDIA_STUDIO_305] = {
1333                 .name           = "AverMedia AverTV Studio 305",
1334                 .audio_clock    = 0x00187de7,
1335                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1336                 .radio_type     = UNSET,
1337                 .tuner_addr     = ADDR_UNSET,
1338                 .radio_addr     = ADDR_UNSET,
1339                 .tda9887_conf   = TDA9887_PRESENT,
1340                 .inputs         = {{
1341                         .name = name_tv,
1342                         .vmux = 1,
1343                         .amux = LINE2,
1344                         .tv   = 1,
1345                 },{
1346                         .name = name_comp1,
1347                         .vmux = 0,
1348                         .amux = LINE2,
1349                 },{
1350                         .name = name_comp2,
1351                         .vmux = 3,
1352                         .amux = LINE2,
1353                 },{
1354                         .name = name_svideo,
1355                         .vmux = 8,
1356                         .amux = LINE2,
1357                 }},
1358                 .radio = {
1359                         .name = name_radio,
1360                         .amux = LINE2,
1361                 },
1362                 .mute = {
1363                         .name = name_mute,
1364                         .amux = LINE1,
1365                 },
1366         },
1367         [SAA7134_BOARD_UPMOST_PURPLE_TV] = {
1368                 .name           = "UPMOST PURPLE TV",
1369                 .audio_clock    = 0x00187de7,
1370                 .tuner_type     = TUNER_PHILIPS_FM1236_MK3,
1371                 .radio_type     = UNSET,
1372                 .tuner_addr     = ADDR_UNSET,
1373                 .radio_addr     = ADDR_UNSET,
1374                 .tda9887_conf   = TDA9887_PRESENT,
1375                 .inputs         = {{
1376                         .name = name_tv,
1377                         .vmux = 7,
1378                         .amux = TV,
1379                         .tv   = 1,
1380                 },{
1381                         .name = name_svideo,
1382                         .vmux = 7,
1383                         .amux = LINE1,
1384                 }},
1385         },
1386         [SAA7134_BOARD_ITEMS_MTV005] = {
1387                 /* Norman Jonas <normanjonas@arcor.de> */
1388                 .name           = "Items MuchTV Plus / IT-005",
1389                 .audio_clock    = 0x00187de7,
1390                 .tuner_type     = TUNER_PHILIPS_PAL,
1391                 .radio_type     = UNSET,
1392                 .tuner_addr     = ADDR_UNSET,
1393                 .radio_addr     = ADDR_UNSET,
1394                 .inputs         = {{
1395                         .name = name_tv,
1396                         .vmux = 3,
1397                         .amux = TV,
1398                         .tv   = 1,
1399                 },{
1400                         .name   = name_comp1,
1401                         .vmux   = 1,
1402                         .amux   = LINE1,
1403                 },{
1404                         .name = name_svideo,
1405                         .vmux = 8,
1406                         .amux = LINE1,
1407                 }},
1408                 .radio = {
1409                         .name = name_radio,
1410                         .amux = LINE2,
1411                 },
1412         },
1413         [SAA7134_BOARD_CINERGY200] = {
1414                 .name           = "Terratec Cinergy 200 TV",
1415                 .audio_clock    = 0x00200000,
1416                 .tuner_type     = TUNER_PHILIPS_PAL,
1417                 .radio_type     = UNSET,
1418                 .tuner_addr     = ADDR_UNSET,
1419                 .radio_addr     = ADDR_UNSET,
1420                 .inputs         = {{
1421                         .name = name_tv,
1422                         .vmux = 1,
1423                         .amux = LINE2,
1424                         .tv   = 1,
1425                 },{
1426                         .name = name_comp1,
1427                         .vmux = 4,
1428                         .amux = LINE1,
1429                 },{
1430                         .name = name_svideo,
1431                         .vmux = 8,
1432                         .amux = LINE1,
1433                 },{
1434                         .name = name_comp2, /* CVideo over SVideo Connector */
1435                         .vmux = 0,
1436                         .amux = LINE1,
1437                 }},
1438                 .mute = {
1439                         .name = name_mute,
1440                         .amux = LINE2,
1441                 },
1442         },
1443         [SAA7134_BOARD_VIDEOMATE_TV_PVR] = {
1444                 /* Alain St-Denis <alain@topaze.homeip.net> */
1445                 .name           = "Compro VideoMate TV PVR/FM",
1446                 .audio_clock    = 0x00187de7,
1447                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1448                 .radio_type     = UNSET,
1449                 .tuner_addr     = ADDR_UNSET,
1450                 .radio_addr     = ADDR_UNSET,
1451                 .gpiomask       = 0x808c0080,
1452                 .inputs         = {{
1453                         .name = name_svideo,
1454                         .vmux = 8,
1455                         .amux = LINE1,
1456                         .gpio = 0x00080,
1457                 },{
1458                         .name = name_comp1,
1459                         .vmux = 3,
1460                         .amux = LINE1,
1461                         .gpio = 0x00080,
1462                 },{
1463                         .name = name_tv,
1464                         .vmux = 1,
1465                         .amux = LINE2_LEFT,
1466                         .tv   = 1,
1467                         .gpio = 0x00080,
1468                 }},
1469                 .radio = {
1470                         .name = name_radio,
1471                         .amux = LINE2,
1472                         .gpio = 0x80000,
1473                 },
1474                 .mute = {
1475                         .name = name_mute,
1476                         .amux = LINE2,
1477                         .gpio = 0x40000,
1478                 },
1479         },
1480         [SAA7134_BOARD_SABRENT_SBTTVFM] = {
1481                 /* Michael Rodriguez-Torrent <mrtorrent@asu.edu> */
1482                 .name           = "Sabrent SBT-TVFM (saa7130)",
1483                 .audio_clock    = 0x00187de7,
1484                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1485                 .radio_type     = UNSET,
1486                 .tuner_addr     = ADDR_UNSET,
1487                 .radio_addr     = ADDR_UNSET,
1488                 .inputs         = {{
1489                         .name = name_comp1,
1490                         .vmux = 1,
1491                         .amux = LINE1,
1492                 },{
1493                         .name = name_tv,
1494                         .vmux = 3,
1495                         .amux = LINE2,
1496                         .tv   = 1,
1497                 },{
1498                         .name = name_svideo,
1499                         .vmux = 8,
1500                         .amux = LINE1,
1501                 }},
1502                 .radio = {
1503                         .name   = name_radio,
1504                         .amux   = LINE2,
1505                 },
1506         },
1507         [SAA7134_BOARD_ZOLID_XPERT_TV7134] = {
1508                 /* Helge Jensen <helge.jensen@slog.dk> */
1509                 .name           = ":Zolid Xpert TV7134",
1510                 .audio_clock    = 0x00187de7,
1511                 .tuner_type     = TUNER_PHILIPS_NTSC,
1512                 .radio_type     = UNSET,
1513                 .tuner_addr     = ADDR_UNSET,
1514                 .radio_addr     = ADDR_UNSET,
1515                 .inputs         = {{
1516                         .name = name_svideo,
1517                         .vmux = 8,
1518                         .amux = LINE1,
1519                 },{
1520                         .name = name_comp1,
1521                         .vmux = 3,
1522                         .amux = LINE1,
1523                 },{
1524                         .name = name_tv,
1525                         .vmux = 1,
1526                         .amux = LINE2,
1527                         .tv   = 1,
1528                 }},
1529         },
1530         [SAA7134_BOARD_EMPIRE_PCI_TV_RADIO_LE] = {
1531                 /* "Matteo Az" <matte.az@nospam.libero.it> ;-) */
1532                 .name           = "Empire PCI TV-Radio LE",
1533                 .audio_clock    = 0x00187de7,
1534                 .tuner_type     = TUNER_PHILIPS_PAL,
1535                 .radio_type     = UNSET,
1536                 .tuner_addr     = ADDR_UNSET,
1537                 .radio_addr     = ADDR_UNSET,
1538                 .gpiomask       = 0x4000,
1539                 .inputs         = {{
1540                         .name = name_tv_mono,
1541                         .vmux = 1,
1542                         .amux = LINE2,
1543                         .gpio = 0x8000,
1544                         .tv   = 1,
1545                 },{
1546                         .name = name_comp1,
1547                         .vmux = 3,
1548                         .amux = LINE1,
1549                         .gpio = 0x8000,
1550                 },{
1551                         .name = name_svideo,
1552                         .vmux = 6,
1553                         .amux = LINE1,
1554                         .gpio = 0x8000,
1555                 }},
1556                 .radio = {
1557                         .name = name_radio,
1558                         .amux = LINE1,
1559                         .gpio = 0x8000,
1560                 },
1561                 .mute = {
1562                         .name = name_mute,
1563                         .amux = TV,
1564                         .gpio =0x8000,
1565                 }
1566         },
1567         [SAA7134_BOARD_AVERMEDIA_STUDIO_307] = {
1568                 /*
1569                 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
1570                 Lots of thanks to Andrey Zolotarev <zolotarev_andrey@mail.ru>
1571                 */
1572                 .name           = "Avermedia AVerTV Studio 307",
1573                 .audio_clock    = 0x00187de7,
1574                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
1575                 .radio_type     = UNSET,
1576                 .tuner_addr     = ADDR_UNSET,
1577                 .radio_addr     = ADDR_UNSET,
1578                 .tda9887_conf   = TDA9887_PRESENT,
1579                 .gpiomask       = 0x03,
1580                 .inputs         = {{
1581                         .name = name_tv,
1582                         .vmux = 1,
1583                         .amux = TV,
1584                         .tv   = 1,
1585                         .gpio = 0x00,
1586                 },{
1587                         .name = name_comp,
1588                         .vmux = 3,
1589                         .amux = LINE1,
1590                         .gpio = 0x02,
1591                 },{
1592                         .name = name_svideo,
1593                         .vmux = 8,
1594                         .amux = LINE1,
1595                         .gpio = 0x02,
1596                 }},
1597                 .radio = {
1598                         .name = name_radio,
1599                         .amux = LINE1,
1600                         .gpio = 0x01,
1601                 },
1602                 .mute  = {
1603                         .name = name_mute,
1604                         .amux = LINE1,
1605                         .gpio = 0x00,
1606                 },
1607         },
1608         [SAA7134_BOARD_AVERMEDIA_GO_007_FM] = {
1609                 .name           = "Avermedia AVerTV GO 007 FM",
1610                 .audio_clock    = 0x00187de7,
1611                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1612                 .radio_type     = UNSET,
1613                 .tuner_addr     = ADDR_UNSET,
1614                 .radio_addr     = ADDR_UNSET,
1615                 .gpiomask       = 0x00300003,
1616                 /* .gpiomask       = 0x8c240003, */
1617                 .inputs         = {{
1618                         .name = name_tv,
1619                         .vmux = 1,
1620                         .amux = TV,
1621                         .tv   = 1,
1622                         .gpio = 0x01,
1623                 },{
1624                         .name = name_comp1,
1625                         .vmux = 0,
1626                         .amux = LINE1,
1627                         .gpio = 0x02,
1628                 },{
1629                         .name = name_svideo,
1630                         .vmux = 6,
1631                         .amux = LINE1,
1632                         .gpio = 0x02,
1633                 }},
1634                 .radio = {
1635                         .name = name_radio,
1636                         .amux = LINE1,
1637                         .gpio = 0x00300001,
1638                 },
1639                 .mute = {
1640                         .name = name_mute,
1641                         .amux = TV,
1642                         .gpio = 0x01,
1643                 },
1644         },
1645         [SAA7134_BOARD_AVERMEDIA_CARDBUS] = {
1646                 /* Kees.Blom@cwi.nl */
1647                 .name           = "AVerMedia Cardbus TV/Radio (E500)",
1648                 .audio_clock    = 0x187de7,
1649                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1650                 .radio_type     = UNSET,
1651                 .tuner_addr     = ADDR_UNSET,
1652                 .radio_addr     = ADDR_UNSET,
1653                 .inputs         = {{
1654                         .name = name_tv,
1655                         .vmux = 1,
1656                         .amux = TV,
1657                         .tv   = 1,
1658                 },{
1659                         .name = name_comp1,
1660                         .vmux = 3,
1661                         .amux = LINE2,
1662                 },{
1663                         .name = name_svideo,
1664                         .vmux = 8,
1665                         .amux = LINE1,
1666                 }},
1667                 .radio = {
1668                         .name = name_radio,
1669                         .amux = LINE1,
1670                 },
1671         },
1672         [SAA7134_BOARD_CINERGY400_CARDBUS] = {
1673                 .name           = "Terratec Cinergy 400 mobile",
1674                 .audio_clock    = 0x187de7,
1675                 .tuner_type     = TUNER_ALPS_TSBE5_PAL,
1676                 .radio_type     = UNSET,
1677                 .tuner_addr     = ADDR_UNSET,
1678                 .radio_addr     = ADDR_UNSET,
1679                 .tda9887_conf   = TDA9887_PRESENT,
1680                 .inputs         = {{
1681                         .name = name_tv,
1682                         .vmux = 1,
1683                         .amux = TV,
1684                         .tv   = 1,
1685                 },{
1686                         .name = name_tv_mono,
1687                         .vmux = 1,
1688                         .amux = LINE2,
1689                         .tv   = 1,
1690                 },{
1691                         .name = name_comp1,
1692                         .vmux = 3,
1693                         .amux = LINE1,
1694                 },{
1695                         .name = name_svideo,
1696                         .vmux = 8,
1697                         .amux = LINE1,
1698                 }},
1699         },
1700         [SAA7134_BOARD_CINERGY600_MK3] = {
1701                 .name           = "Terratec Cinergy 600 TV MK3",
1702                 .audio_clock    = 0x00200000,
1703                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1704                 .radio_type     = UNSET,
1705                 .tuner_addr     = ADDR_UNSET,
1706                 .radio_addr     = ADDR_UNSET,
1707                 .rds_addr       = 0x10,
1708                 .tda9887_conf   = TDA9887_PRESENT,
1709                 .inputs         = {{
1710                         .name = name_tv,
1711                         .vmux = 1,
1712                         .amux = TV,
1713                         .tv   = 1,
1714                 },{
1715                         .name = name_comp1,
1716                         .vmux = 4,
1717                         .amux = LINE1,
1718                 },{
1719                         .name = name_svideo,
1720                         .vmux = 8,
1721                         .amux = LINE1,
1722                 },{
1723                         .name = name_comp2, /* CVideo over SVideo Connector */
1724                         .vmux = 0,
1725                         .amux = LINE1,
1726                 }},
1727                 .radio = {
1728                         .name = name_radio,
1729                         .amux = LINE2,
1730                 },
1731         },
1732         [SAA7134_BOARD_VIDEOMATE_GOLD_PLUS] = {
1733                 /* Dylan Walkden <dylan_walkden@hotmail.com> */
1734                 .name           = "Compro VideoMate Gold+ Pal",
1735                 .audio_clock    = 0x00187de7,
1736                 .tuner_type     = TUNER_PHILIPS_PAL,
1737                 .radio_type     = UNSET,
1738                 .tuner_addr     = ADDR_UNSET,
1739                 .radio_addr     = ADDR_UNSET,
1740                 .gpiomask       = 0x1ce780,
1741                 .inputs         = {{
1742                         .name = name_svideo,
1743                         .vmux = 0,              /* CVideo over SVideo Connector - ok? */
1744                         .amux = LINE1,
1745                         .gpio = 0x008080,
1746                 },{
1747                         .name = name_comp1,
1748                         .vmux = 3,
1749                         .amux = LINE1,
1750                         .gpio = 0x008080,
1751                 },{
1752                         .name = name_tv,
1753                         .vmux = 1,
1754                         .amux = TV,
1755                         .tv   = 1,
1756                         .gpio = 0x008080,
1757                 }},
1758                 .radio = {
1759                         .name = name_radio,
1760                         .amux = LINE2,
1761                         .gpio = 0x80000,
1762                 },
1763                 .mute = {
1764                         .name = name_mute,
1765                         .amux = LINE2,
1766                         .gpio = 0x0c8000,
1767                 },
1768         },
1769         [SAA7134_BOARD_PINNACLE_300I_DVBT_PAL] = {
1770                 .name           = "Pinnacle PCTV 300i DVB-T + PAL",
1771                 .audio_clock    = 0x00187de7,
1772                 .tuner_type     = TUNER_MT2032,
1773                 .radio_type     = UNSET,
1774                 .tuner_addr     = ADDR_UNSET,
1775                 .radio_addr     = ADDR_UNSET,
1776                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_INACTIVE,
1777                 .mpeg           = SAA7134_MPEG_DVB,
1778                 .inputs         = {{
1779                         .name = name_tv,
1780                         .vmux = 3,
1781                         .amux = TV,
1782                         .tv   = 1,
1783                 },{
1784                         .name = name_comp1,
1785                         .vmux = 0,
1786                         .amux = LINE2,
1787                 },{
1788                         .name = name_comp2,
1789                         .vmux = 1,
1790                         .amux = LINE2,
1791                 },{
1792                         .name = name_svideo,
1793                         .vmux = 8,
1794                         .amux = LINE2,
1795                 }},
1796         },
1797         [SAA7134_BOARD_PROVIDEO_PV952] = {
1798                 /* andreas.kretschmer@web.de */
1799                 .name           = "ProVideo PV952",
1800                 .audio_clock    = 0x00187de7,
1801                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
1802                 .radio_type     = UNSET,
1803                 .tuner_addr     = ADDR_UNSET,
1804                 .radio_addr     = ADDR_UNSET,
1805                 .tda9887_conf   = TDA9887_PRESENT,
1806                 .inputs         = {{
1807                         .name = name_comp1,
1808                         .vmux = 0,
1809                         .amux = LINE1,
1810                 },{
1811                         .name = name_tv,
1812                         .vmux = 1,
1813                         .amux = TV,
1814                         .tv   = 1,
1815                 },{
1816                         .name = name_tv_mono,
1817                         .vmux = 1,
1818                         .amux = LINE2,
1819                         .tv   = 1,
1820                 }},
1821                 .radio = {
1822                         .name = name_radio,
1823                         .amux = LINE2,
1824                 },
1825         },
1826         [SAA7134_BOARD_AVERMEDIA_305] = {
1827                 /* much like the "studio" version but without radio
1828                 * and another tuner (sirspiritus@yandex.ru) */
1829                 .name           = "AverMedia AverTV/305",
1830                 .audio_clock    = 0x00187de7,
1831                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1832                 .radio_type     = UNSET,
1833                 .tuner_addr     = ADDR_UNSET,
1834                 .radio_addr     = ADDR_UNSET,
1835                 .tda9887_conf   = TDA9887_PRESENT,
1836                 .inputs         = {{
1837                         .name = name_tv,
1838                         .vmux = 1,
1839                         .amux = LINE2,
1840                         .tv   = 1,
1841                 },{
1842                         .name = name_comp1,
1843                         .vmux = 0,
1844                         .amux = LINE2,
1845                 },{
1846                         .name = name_comp2,
1847                         .vmux = 3,
1848                         .amux = LINE2,
1849                 },{
1850                         .name = name_svideo,
1851                         .vmux = 8,
1852                         .amux = LINE2,
1853                 }},
1854                 .mute = {
1855                         .name = name_mute,
1856                         .amux = LINE1,
1857                 },
1858         },
1859         [SAA7134_BOARD_FLYDVBTDUO] = {
1860                 /* LifeView FlyDVB-T DUO */
1861                 /* "Nico Sabbi <nsabbi@tiscali.it>  Hartmut Hackmann hartmut.hackmann@t-online.de*/
1862                 .name           = "LifeView FlyDVB-T DUO / MSI TV@nywhere Duo",
1863                 .audio_clock    = 0x00200000,
1864                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1865                 .radio_type     = UNSET,
1866                 .tuner_addr     = ADDR_UNSET,
1867                 .radio_addr     = ADDR_UNSET,
1868                 .gpiomask       = 0x00200000,
1869                 .mpeg           = SAA7134_MPEG_DVB,
1870                 .inputs         = {{
1871                         .name = name_tv,
1872                         .vmux = 1,
1873                         .amux = TV,
1874                         .gpio = 0x200000,       /* GPIO21=High for TV input */
1875                         .tv   = 1,
1876                 },{
1877                         .name = name_comp1,     /* Composite signal on S-Video input */
1878                         .vmux = 0,
1879                         .amux = LINE2,
1880                 },{
1881                         .name = name_comp2,     /* Composite input */
1882                         .vmux = 3,
1883                         .amux = LINE2,
1884                 },{
1885                         .name = name_svideo,    /* S-Video signal on S-Video input */
1886                         .vmux = 8,
1887                         .amux = LINE2,
1888                 }},
1889                 .radio = {
1890                         .name = name_radio,
1891                         .amux = TV,
1892                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
1893                 },
1894         },
1895         [SAA7134_BOARD_PHILIPS_TOUGH] = {
1896                 .name           = "Philips TOUGH DVB-T reference design",
1897                 .tuner_type     = TUNER_ABSENT,
1898                 .audio_clock    = 0x00187de7,
1899                 .radio_type     = UNSET,
1900                 .tuner_addr     = ADDR_UNSET,
1901                 .radio_addr     = ADDR_UNSET,
1902                 .mpeg           = SAA7134_MPEG_DVB,
1903                 .inputs = {{
1904                         .name   = name_comp1,
1905                         .vmux   = 0,
1906                         .amux   = LINE1,
1907                 },{
1908                         .name   = name_svideo,
1909                         .vmux   = 8,
1910                         .amux   = LINE1,
1911                 }},
1912         },
1913         [SAA7134_BOARD_AVERMEDIA_307] = {
1914                 /*
1915                 Davydov Vladimir <vladimir@iqmedia.com>
1916                 */
1917                 .name           = "Avermedia AVerTV 307",
1918                 .audio_clock    = 0x00187de7,
1919                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
1920                 .radio_type     = UNSET,
1921                 .tuner_addr     = ADDR_UNSET,
1922                 .radio_addr     = ADDR_UNSET,
1923                 .tda9887_conf   = TDA9887_PRESENT,
1924                 .inputs         = {{
1925                         .name = name_tv,
1926                         .vmux = 1,
1927                         .amux = TV,
1928                         .tv   = 1,
1929                 },{
1930                         .name = name_comp1,
1931                         .vmux = 0,
1932                         .amux = LINE1,
1933                 },{
1934                         .name = name_comp2,
1935                         .vmux = 3,
1936                         .amux = LINE1,
1937                 },{
1938                         .name = name_svideo,
1939                         .vmux = 8,
1940                         .amux = LINE1,
1941                 }},
1942         },
1943         [SAA7134_BOARD_ADS_INSTANT_TV] = {
1944                 .name           = "ADS Tech Instant TV (saa7135)",
1945                 .audio_clock    = 0x00187de7,
1946                 .tuner_type     = TUNER_PHILIPS_TDA8290,
1947                 .radio_type     = UNSET,
1948                 .tuner_addr     = ADDR_UNSET,
1949                 .radio_addr     = ADDR_UNSET,
1950                 .inputs         = {{
1951                         .name = name_tv,
1952                         .vmux = 1,
1953                         .amux = TV,
1954                         .tv   = 1,
1955                 },{
1956                         .name = name_comp1,
1957                         .vmux = 3,
1958                         .amux = LINE2,
1959                 },{
1960                         .name = name_svideo,
1961                         .vmux = 8,
1962                         .amux = LINE2,
1963                 }},
1964         },
1965         [SAA7134_BOARD_KWORLD_VSTREAM_XPERT] = {
1966                 .name           = "Kworld/Tevion V-Stream Xpert TV PVR7134",
1967                 .audio_clock    = 0x00187de7,
1968                 .tuner_type     = TUNER_PHILIPS_PAL_I,
1969                 .radio_type     = UNSET,
1970                 .tuner_addr     = ADDR_UNSET,
1971                 .radio_addr     = ADDR_UNSET,
1972                 .gpiomask       = 0x0700,
1973                 .inputs = {{
1974                         .name   = name_tv,
1975                         .vmux   = 1,
1976                         .amux   = TV,
1977                         .tv     = 1,
1978                         .gpio   = 0x000,
1979                 },{
1980                         .name   = name_comp1,
1981                         .vmux   = 3,
1982                         .amux   = LINE1,
1983                         .gpio   = 0x200,                /* gpio by DScaler */
1984                 },{
1985                         .name   = name_svideo,
1986                         .vmux   = 0,
1987                         .amux   = LINE1,
1988                         .gpio   = 0x200,
1989                 }},
1990                 .radio = {
1991                         .name   = name_radio,
1992                         .amux   = LINE1,
1993                         .gpio   = 0x100,
1994                 },
1995                 .mute  = {
1996                         .name = name_mute,
1997                         .amux = TV,
1998                         .gpio = 0x000,
1999                 },
2000         },
2001         [SAA7134_BOARD_FLYDVBT_DUO_CARDBUS] = {
2002                 .name           = "LifeView/Typhoon/Genius FlyDVB-T Duo Cardbus",
2003                 .audio_clock    = 0x00200000,
2004                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2005                 .radio_type     = UNSET,
2006                 .tuner_addr     = ADDR_UNSET,
2007                 .radio_addr     = ADDR_UNSET,
2008                 .mpeg           = SAA7134_MPEG_DVB,
2009                 .gpiomask       = 0x00200000,
2010                 .inputs         = {{
2011                         .name = name_tv,
2012                         .vmux = 1,
2013                         .amux = TV,
2014                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2015                         .tv   = 1,
2016                 },{
2017                         .name = name_svideo,    /* S-Video signal on S-Video input */
2018                         .vmux = 8,
2019                         .amux = LINE2,
2020                 },{
2021                         .name = name_comp1,     /* Composite signal on S-Video input */
2022                         .vmux = 0,
2023                         .amux = LINE2,
2024                 },{
2025                         .name = name_comp2,     /* Composite input */
2026                         .vmux = 3,
2027                         .amux = LINE2,
2028                 }},
2029                 .radio = {
2030                         .name = name_radio,
2031                         .amux = TV,
2032                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2033                 },
2034         },
2035         [SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII] = {
2036                 .name           = "Compro VideoMate TV Gold+II",
2037                 .audio_clock    = 0x002187de7,
2038                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
2039                 .radio_type     = TUNER_TEA5767,
2040                 .tuner_addr     = 0x63,
2041                 .radio_addr     = 0x60,
2042                 .gpiomask       = 0x8c1880,
2043                 .inputs         = {{
2044                         .name = name_svideo,
2045                         .vmux = 0,
2046                         .amux = LINE1,
2047                         .gpio = 0x800800,
2048                 },{
2049                         .name = name_comp1,
2050                         .vmux = 3,
2051                         .amux = LINE1,
2052                         .gpio = 0x801000,
2053                 },{
2054                         .name = name_tv,
2055                         .vmux = 1,
2056                         .amux = TV,
2057                         .tv   = 1,
2058                         .gpio = 0x800000,
2059                 }},
2060                 .radio = {
2061                         .name = name_radio,
2062                         .amux = TV,
2063                         .gpio = 0x880000,
2064                 },
2065                 .mute = {
2066                         .name = name_mute,
2067                         .amux = LINE2,
2068                         .gpio = 0x840000,
2069                 },
2070         },
2071         [SAA7134_BOARD_KWORLD_XPERT] = {
2072                 /*
2073                 FIXME:
2074                 - Remote control doesn't initialize properly.
2075                 - Audio volume starts muted,
2076                 then gradually increases after channel change.
2077                 - Overlay scaling problems (application error?)
2078                 - Composite S-Video untested.
2079                 From: Konrad Rzepecki <hannibal@megapolis.pl>
2080                 */
2081                 .name           = "Kworld Xpert TV PVR7134",
2082                 .audio_clock    = 0x00187de7,
2083                 .tuner_type     = TUNER_TENA_9533_DI,
2084                 .radio_type     = TUNER_TEA5767,
2085                 .tuner_addr     = 0x61,
2086                 .radio_addr     = 0x60,
2087                 .gpiomask       = 0x0700,
2088                 .inputs = {{
2089                         .name   = name_tv,
2090                         .vmux   = 1,
2091                         .amux   = TV,
2092                         .tv     = 1,
2093                         .gpio   = 0x000,
2094                 },{
2095                         .name   = name_comp1,
2096                         .vmux   = 3,
2097                         .amux   = LINE1,
2098                         .gpio   = 0x200,                /* gpio by DScaler */
2099                 },{
2100                         .name   = name_svideo,
2101                         .vmux   = 0,
2102                         .amux   = LINE1,
2103                         .gpio   = 0x200,
2104                 }},
2105                 .radio = {
2106                         .name   = name_radio,
2107                         .amux   = LINE1,
2108                         .gpio   = 0x100,
2109                 },
2110                 .mute = {
2111                         .name = name_mute,
2112                         .amux = TV,
2113                         .gpio = 0x000,
2114                 },
2115         },
2116         [SAA7134_BOARD_FLYTV_DIGIMATRIX] = {
2117                 .name           = "FlyTV mini Asus Digimatrix",
2118                 .audio_clock    = 0x00200000,
2119                 .tuner_type     = TUNER_LG_TALN,
2120                 .radio_type     = UNSET,
2121                 .tuner_addr     = ADDR_UNSET,
2122                 .radio_addr     = ADDR_UNSET,
2123                 .inputs         = {{
2124                         .name = name_tv,
2125                         .vmux = 1,
2126                         .amux = TV,
2127                         .tv   = 1,
2128                 },{
2129                         .name = name_tv_mono,
2130                         .vmux = 1,
2131                         .amux = LINE2,
2132                         .tv   = 1,
2133                 },{
2134                         .name = name_comp1,
2135                         .vmux = 0,
2136                         .amux = LINE2,
2137                 },{
2138                         .name = name_comp2,
2139                         .vmux = 3,
2140                         .amux = LINE2,
2141                 },{
2142                         .name = name_svideo,
2143                         .vmux = 8,
2144                         .amux = LINE2,
2145                 }},
2146                 .radio = {
2147                         .name = name_radio,             /* radio unconfirmed */
2148                         .amux = LINE2,
2149                 },
2150         },
2151         [SAA7134_BOARD_KWORLD_TERMINATOR] = {
2152                 /* Kworld V-Stream Studio TV Terminator */
2153                 /* "James Webb <jrwebb@qwest.net> */
2154                 .name           = "V-Stream Studio TV Terminator",
2155                 .audio_clock    = 0x00187de7,
2156                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2157                 .radio_type     = UNSET,
2158                 .tuner_addr     = ADDR_UNSET,
2159                 .radio_addr     = ADDR_UNSET,
2160                 .gpiomask       = 1 << 21,
2161                 .inputs         = {{
2162                         .name = name_tv,
2163                         .vmux = 1,
2164                         .amux = TV,
2165                         .gpio = 0x0000000,
2166                         .tv   = 1,
2167                 },{
2168                         .name = name_comp1,     /* Composite input */
2169                         .vmux = 3,
2170                         .amux = LINE2,
2171                         .gpio = 0x0000000,
2172                 },{
2173                         .name = name_svideo,    /* S-Video input */
2174                         .vmux = 8,
2175                         .amux = LINE2,
2176                         .gpio = 0x0000000,
2177                 }},
2178                 .radio = {
2179                         .name = name_radio,
2180                         .amux = TV,
2181                         .gpio = 0x0200000,
2182                 },
2183         },
2184         [SAA7134_BOARD_YUAN_TUN900] = {
2185                 /* FIXME:
2186                  * S-Video and composite sources untested.
2187                  * Radio not working.
2188                  * Remote control not yet implemented.
2189                  * From : codemaster@webgeeks.be */
2190                 .name           = "Yuan TUN-900 (saa7135)",
2191                 .audio_clock    = 0x00187de7,
2192                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2193                 .radio_type     = UNSET,
2194                 .tuner_addr= ADDR_UNSET,
2195                 .radio_addr= ADDR_UNSET,
2196                 .gpiomask       = 0x00010003,
2197                 .inputs         = {{
2198                         .name = name_tv,
2199                         .vmux = 1,
2200                         .amux = TV,
2201                         .tv   = 1,
2202                         .gpio = 0x01,
2203                 },{
2204                         .name = name_comp1,
2205                         .vmux = 0,
2206                         .amux = LINE2,
2207                         .gpio = 0x02,
2208                 },{
2209                         .name = name_svideo,
2210                         .vmux = 6,
2211                         .amux = LINE2,
2212                         .gpio = 0x02,
2213                 }},
2214                 .radio = {
2215                         .name = name_radio,
2216                         .amux = LINE1,
2217                         .gpio = 0x00010003,
2218                 },
2219                 .mute = {
2220                         .name = name_mute,
2221                         .amux = TV,
2222                         .gpio = 0x01,
2223                 },
2224         },
2225         [SAA7134_BOARD_BEHOLD_409FM] = {
2226                 /* <http://tuner.beholder.ru>, Sergey <skiv@orel.ru> */
2227                 /*       Beholder Intl. Ltd. 2008      */
2228                 /*Dmitry Belimov <d.belimov@gmail.com> */
2229                 .name           = "Beholder BeholdTV 409 FM",
2230                 .audio_clock    = 0x00187de7,
2231                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
2232                 .radio_type     = UNSET,
2233                 .tuner_addr     = ADDR_UNSET,
2234                 .radio_addr     = ADDR_UNSET,
2235                 .tda9887_conf   = TDA9887_PRESENT,
2236                 .gpiomask       = 0x00008000,
2237                 .inputs         = {{
2238                           .name = name_tv,
2239                           .vmux = 3,
2240                           .amux = TV,
2241                           .tv   = 1,
2242                 },{
2243                           .name = name_comp1,
2244                           .vmux = 1,
2245                           .amux = LINE1,
2246                 },{
2247                           .name = name_svideo,
2248                           .vmux = 8,
2249                           .amux = LINE1,
2250                 }},
2251                 .radio = {
2252                           .name = name_radio,
2253                           .amux = LINE2,
2254                 },
2255         },
2256         [SAA7134_BOARD_GOTVIEW_7135] = {
2257                 /* Mike Baikov <mike@baikov.com> */
2258                 /* Andrey Cvetcov <ays14@yandex.ru> */
2259                 .name            = "GoTView 7135 PCI",
2260                 .audio_clock     = 0x00187de7,
2261                 .tuner_type      = TUNER_PHILIPS_FM1216ME_MK3,
2262                 .radio_type      = UNSET,
2263                 .tuner_addr      = ADDR_UNSET,
2264                 .radio_addr      = ADDR_UNSET,
2265                 .tda9887_conf    = TDA9887_PRESENT,
2266                 .gpiomask        = 0x00200003,
2267                 .inputs          = {{
2268                         .name = name_tv,
2269                         .vmux = 1,
2270                         .amux = TV,
2271                         .tv   = 1,
2272                         .gpio = 0x00200003,
2273                 },{
2274                         .name = name_tv_mono,
2275                         .vmux = 1,
2276                         .amux = LINE2,
2277                         .gpio = 0x00200003,
2278                 },{
2279                         .name = name_comp1,
2280                         .vmux = 3,
2281                         .amux = LINE1,
2282                         .gpio = 0x00200003,
2283                 },{
2284                         .name = name_svideo,
2285                         .vmux = 8,
2286                         .amux = LINE1,
2287                         .gpio = 0x00200003,
2288                 }},
2289                 .radio = {
2290                         .name = name_radio,
2291                         .amux = LINE2,
2292                         .gpio = 0x00200003,
2293                 },
2294                 .mute = {
2295                         .name = name_mute,
2296                         .amux = TV,
2297                         .gpio = 0x00200003,
2298                 },
2299         },
2300         [SAA7134_BOARD_PHILIPS_EUROPA] = {
2301                 .name           = "Philips EUROPA V3 reference design",
2302                 .audio_clock    = 0x00187de7,
2303                 .tuner_type     = TUNER_PHILIPS_TD1316,
2304                 .radio_type     = UNSET,
2305                 .tuner_addr     = 0x61,
2306                 .radio_addr     = ADDR_UNSET,
2307                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
2308                 .mpeg           = SAA7134_MPEG_DVB,
2309                 .inputs = {{
2310                         .name   = name_tv,
2311                         .vmux   = 3,
2312                         .amux   = TV,
2313                         .tv     = 1,
2314                 },{
2315                         .name   = name_comp1,
2316                         .vmux   = 0,
2317                         .amux   = LINE2,
2318                 },{
2319                         .name   = name_svideo,
2320                         .vmux   = 8,
2321                         .amux   = LINE2,
2322                 }},
2323         },
2324         [SAA7134_BOARD_VIDEOMATE_DVBT_300] = {
2325                 .name           = "Compro Videomate DVB-T300",
2326                 .audio_clock    = 0x00187de7,
2327                 .tuner_type     = TUNER_PHILIPS_TD1316,
2328                 .radio_type     = UNSET,
2329                 .tuner_addr     = 0x61,
2330                 .radio_addr     = ADDR_UNSET,
2331                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
2332                 .mpeg           = SAA7134_MPEG_DVB,
2333                 .inputs = {{
2334                         .name   = name_tv,
2335                         .vmux   = 3,
2336                         .amux   = TV,
2337                         .tv     = 1,
2338                 },{
2339                         .name   = name_comp1,
2340                         .vmux   = 1,
2341                         .amux   = LINE2,
2342                 },{
2343                         .name   = name_svideo,
2344                         .vmux   = 8,
2345                         .amux   = LINE2,
2346                 }},
2347         },
2348         [SAA7134_BOARD_VIDEOMATE_DVBT_200] = {
2349                 .name           = "Compro Videomate DVB-T200",
2350                 .tuner_type     = TUNER_ABSENT,
2351                 .audio_clock    = 0x00187de7,
2352                 .radio_type     = UNSET,
2353                 .tuner_addr     = ADDR_UNSET,
2354                 .radio_addr     = ADDR_UNSET,
2355                 .mpeg           = SAA7134_MPEG_DVB,
2356                 .inputs = {{
2357                         .name   = name_comp1,
2358                         .vmux   = 0,
2359                         .amux   = LINE1,
2360                 },{
2361                         .name   = name_svideo,
2362                         .vmux   = 8,
2363                         .amux   = LINE1,
2364                 }},
2365         },
2366         [SAA7134_BOARD_RTD_VFG7350] = {
2367                 .name           = "RTD Embedded Technologies VFG7350",
2368                 .audio_clock    = 0x00200000,
2369                 .tuner_type     = TUNER_ABSENT,
2370                 .radio_type     = UNSET,
2371                 .tuner_addr     = ADDR_UNSET,
2372                 .radio_addr     = ADDR_UNSET,
2373                 .empress_addr   = 0x21,
2374                 .inputs         = {{
2375                         .name   = "Composite 0",
2376                         .vmux   = 0,
2377                         .amux   = LINE1,
2378                 },{
2379                         .name   = "Composite 1",
2380                         .vmux   = 1,
2381                         .amux   = LINE2,
2382                 },{
2383                         .name   = "Composite 2",
2384                         .vmux   = 2,
2385                         .amux   = LINE1,
2386                 },{
2387                         .name   = "Composite 3",
2388                         .vmux   = 3,
2389                         .amux   = LINE2,
2390                 },{
2391                         .name   = "S-Video 0",
2392                         .vmux   = 8,
2393                         .amux   = LINE1,
2394                 },{
2395                         .name   = "S-Video 1",
2396                         .vmux   = 9,
2397                         .amux   = LINE2,
2398                 }},
2399                 .mpeg           = SAA7134_MPEG_EMPRESS,
2400                 .video_out      = CCIR656,
2401                 .vid_port_opts  = ( SET_T_CODE_POLARITY_NON_INVERTED |
2402                                     SET_CLOCK_NOT_DELAYED |
2403                                     SET_CLOCK_INVERTED |
2404                                     SET_VSYNC_OFF ),
2405         },
2406         [SAA7134_BOARD_RTD_VFG7330] = {
2407                 .name           = "RTD Embedded Technologies VFG7330",
2408                 .audio_clock    = 0x00200000,
2409                 .tuner_type     = TUNER_ABSENT,
2410                 .radio_type     = UNSET,
2411                 .tuner_addr     = ADDR_UNSET,
2412                 .radio_addr     = ADDR_UNSET,
2413                 .inputs         = {{
2414                         .name   = "Composite 0",
2415                         .vmux   = 0,
2416                         .amux   = LINE1,
2417                 },{
2418                         .name   = "Composite 1",
2419                         .vmux   = 1,
2420                         .amux   = LINE2,
2421                 },{
2422                         .name   = "Composite 2",
2423                         .vmux   = 2,
2424                         .amux   = LINE1,
2425                 },{
2426                         .name   = "Composite 3",
2427                         .vmux   = 3,
2428                         .amux   = LINE2,
2429                 },{
2430                         .name   = "S-Video 0",
2431                         .vmux   = 8,
2432                         .amux   = LINE1,
2433                 },{
2434                         .name   = "S-Video 1",
2435                         .vmux   = 9,
2436                         .amux   = LINE2,
2437                 }},
2438         },
2439         [SAA7134_BOARD_FLYTVPLATINUM_MINI2] = {
2440                 .name           = "LifeView FlyTV Platinum Mini2",
2441                 .audio_clock    = 0x00200000,
2442                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2443                 .radio_type     = UNSET,
2444                 .tuner_addr     = ADDR_UNSET,
2445                 .radio_addr     = ADDR_UNSET,
2446
2447                 .inputs         = {{
2448                         .name = name_tv,
2449                         .vmux = 1,
2450                         .amux = TV,
2451                         .tv   = 1,
2452                 },{
2453                         .name = name_comp1,     /* Composite signal on S-Video input */
2454                         .vmux = 0,
2455                         .amux = LINE2,
2456                 },{
2457                         .name = name_comp2,     /* Composite input */
2458                         .vmux = 3,
2459                         .amux = LINE2,
2460                 },{
2461                         .name = name_svideo,
2462                         .vmux = 8,
2463                         .amux = LINE2,
2464                 }},
2465         },
2466         [SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180] = {
2467                 /* Michael Krufky <mkrufky@m1k.net>
2468                  * Uses Alps Electric TDHU2, containing NXT2004 ATSC Decoder
2469                  * AFAIK, there is no analog demod, thus,
2470                  * no support for analog television.
2471                  */
2472                 .name           = "AVerMedia AVerTVHD MCE A180",
2473                 .audio_clock    = 0x00187de7,
2474                 .tuner_type     = TUNER_ABSENT,
2475                 .radio_type     = UNSET,
2476                 .tuner_addr     = ADDR_UNSET,
2477                 .radio_addr     = ADDR_UNSET,
2478                 .mpeg           = SAA7134_MPEG_DVB,
2479                 .inputs         = {{
2480                         .name = name_comp1,
2481                         .vmux = 3,
2482                         .amux = LINE2,
2483                 },{
2484                         .name = name_svideo,
2485                         .vmux = 8,
2486                         .amux = LINE2,
2487                 }},
2488         },
2489         [SAA7134_BOARD_MONSTERTV_MOBILE] = {
2490                 .name           = "SKNet MonsterTV Mobile",
2491                 .audio_clock    = 0x00187de7,
2492                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2493                 .radio_type     = UNSET,
2494                 .tuner_addr     = ADDR_UNSET,
2495                 .radio_addr     = ADDR_UNSET,
2496
2497                 .inputs         = {{
2498                           .name = name_tv,
2499                           .vmux = 1,
2500                           .amux = TV,
2501                           .tv   = 1,
2502                 },{
2503                           .name = name_comp1,
2504                           .vmux = 3,
2505                           .amux = LINE1,
2506                 },{
2507                           .name = name_svideo,
2508                           .vmux = 6,
2509                           .amux = LINE1,
2510                 }},
2511         },
2512         [SAA7134_BOARD_PINNACLE_PCTV_110i] = {
2513                .name           = "Pinnacle PCTV 40i/50i/110i (saa7133)",
2514                 .audio_clock    = 0x00187de7,
2515                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2516                 .radio_type     = UNSET,
2517                 .tuner_addr     = ADDR_UNSET,
2518                 .radio_addr     = ADDR_UNSET,
2519                 .gpiomask       = 0x080200000,
2520                 .inputs         = { {
2521                         .name = name_tv,
2522                         .vmux = 4,
2523                         .amux = TV,
2524                         .tv   = 1,
2525                 }, {
2526                         .name = name_comp1,
2527                         .vmux = 1,
2528                         .amux = LINE2,
2529                 }, {
2530                         .name = name_comp2,
2531                         .vmux = 0,
2532                         .amux = LINE2,
2533                 }, {
2534                         .name = name_svideo,
2535                         .vmux = 8,
2536                         .amux = LINE2,
2537                 } },
2538                 .radio = {
2539                         .name = name_radio,
2540                         .amux = TV,
2541                         .gpio = 0x0200000,
2542                 },
2543         },
2544         [SAA7134_BOARD_ASUSTeK_P7131_DUAL] = {
2545                 .name           = "ASUSTeK P7131 Dual",
2546                 .audio_clock    = 0x00187de7,
2547                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2548                 .radio_type     = UNSET,
2549                 .tuner_addr     = ADDR_UNSET,
2550                 .radio_addr     = ADDR_UNSET,
2551                 .gpiomask       = 1 << 21,
2552                 .mpeg           = SAA7134_MPEG_DVB,
2553                 .inputs         = {{
2554                         .name = name_tv,
2555                         .vmux = 1,
2556                         .amux = TV,
2557                         .tv   = 1,
2558                         .gpio = 0x0000000,
2559                 },{
2560                         .name = name_comp1,
2561                         .vmux = 3,
2562                         .amux = LINE2,
2563                         .gpio = 0x0200000,
2564                 },{
2565                         .name = name_comp2,
2566                         .vmux = 0,
2567                         .amux = LINE2,
2568                         .gpio = 0x0200000,
2569                 },{
2570                         .name = name_svideo,
2571                         .vmux = 8,
2572                         .amux = LINE2,
2573                         .gpio = 0x0200000,
2574                 }},
2575                 .radio = {
2576                         .name = name_radio,
2577                         .amux = TV,
2578                         .gpio = 0x0200000,
2579                 },
2580         },
2581         [SAA7134_BOARD_SEDNA_PC_TV_CARDBUS] = {
2582                 /* Paul Tom Zalac <pzalac@gmail.com> */
2583                 /* Pavel Mihaylov <bin@bash.info> */
2584                 .name           = "Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)",
2585                                 /* Sedna/MuchTV (OEM) Cardbus TV Tuner */
2586                 .audio_clock    = 0x00187de7,
2587                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2588                 .radio_type     = UNSET,
2589                 .tuner_addr     = ADDR_UNSET,
2590                 .radio_addr     = ADDR_UNSET,
2591                 .gpiomask       = 0xe880c0,
2592                 .inputs         = {{
2593                         .name = name_tv,
2594                         .vmux = 3,
2595                         .amux = TV,
2596                         .tv   = 1,
2597                 },{
2598                         .name = name_comp1,
2599                         .vmux = 1,
2600                         .amux = LINE1,
2601                 },{
2602                         .name = name_svideo,
2603                         .vmux = 6,
2604                         .amux = LINE1,
2605                 }},
2606                 .radio = {
2607                         .name = name_radio,
2608                         .amux = LINE2,
2609                 },
2610         },
2611         [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
2612                 /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
2613                 .name           = "ASUS Digimatrix TV",
2614                 .audio_clock    = 0x00200000,
2615                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
2616                 .tda9887_conf   = TDA9887_PRESENT,
2617                 .radio_type     = UNSET,
2618                 .tuner_addr     = ADDR_UNSET,
2619                 .radio_addr     = ADDR_UNSET,
2620                 .inputs         = {{
2621                         .name = name_tv,
2622                         .vmux = 1,
2623                         .amux = TV,
2624                         .tv   = 1,
2625                 },{
2626                         .name = name_comp1,
2627                         .vmux = 3,
2628                         .amux = LINE1,
2629                 },{
2630                         .name = name_svideo,
2631                         .vmux = 8,
2632                         .amux = LINE1,
2633                 }},
2634         },
2635         [SAA7134_BOARD_PHILIPS_TIGER] = {
2636                 .name           = "Philips Tiger reference design",
2637                 .audio_clock    = 0x00187de7,
2638                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2639                 .radio_type     = UNSET,
2640                 .tuner_addr     = ADDR_UNSET,
2641                 .radio_addr     = ADDR_UNSET,
2642                 .tuner_config   = 0,
2643                 .mpeg           = SAA7134_MPEG_DVB,
2644                 .gpiomask       = 0x0200000,
2645                 .inputs = {{
2646                         .name   = name_tv,
2647                         .vmux   = 1,
2648                         .amux   = TV,
2649                         .tv     = 1,
2650                 },{
2651                         .name   = name_comp1,
2652                         .vmux   = 3,
2653                         .amux   = LINE1,
2654                 },{
2655                         .name   = name_svideo,
2656                         .vmux   = 8,
2657                         .amux   = LINE1,
2658                 }},
2659                 .radio = {
2660                         .name   = name_radio,
2661                         .amux   = TV,
2662                         .gpio   = 0x0200000,
2663                 },
2664         },
2665         [SAA7134_BOARD_MSI_TVATANYWHERE_PLUS] = {
2666                 .name           = "MSI TV@Anywhere plus",
2667                 .audio_clock    = 0x00187de7,
2668                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2669                 .radio_type     = UNSET,
2670                 .tuner_addr     = ADDR_UNSET,
2671                 .radio_addr     = ADDR_UNSET,
2672                 .gpiomask       = 1 << 21,
2673                 .inputs = {{
2674                         .name   = name_tv,
2675                         .vmux   = 1,
2676                         .amux   = TV,
2677                         .tv     = 1,
2678                 },{
2679                         .name   = name_comp1,
2680                         .vmux   = 3,
2681                         .amux   = LINE2,        /* unconfirmed, taken from Philips driver */
2682                 },{
2683                         .name   = name_comp2,
2684                         .vmux   = 0,            /* untested, Composite over S-Video */
2685                         .amux   = LINE2,
2686                 },{
2687                         .name   = name_svideo,
2688                         .vmux   = 8,
2689                         .amux   = LINE2,
2690                 }},
2691                 .radio = {
2692                         .name   = name_radio,
2693                         .amux   = TV,
2694                         .gpio   = 0x0200000,
2695                 },
2696         },
2697         [SAA7134_BOARD_CINERGY250PCI] = {
2698                 /* remote-control does not work. The signal about a
2699                    key press comes in via gpio, but the key code
2700                    doesn't. Neither does it have an i2c remote control
2701                    interface. */
2702                 .name           = "Terratec Cinergy 250 PCI TV",
2703                 .audio_clock    = 0x00187de7,
2704                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2705                 .radio_type     = UNSET,
2706                 .tuner_addr     = ADDR_UNSET,
2707                 .radio_addr     = ADDR_UNSET,
2708                 .gpiomask       = 0x80200000,
2709                 .inputs         = {{
2710                         .name = name_tv,
2711                         .vmux = 1,
2712                         .amux = TV,
2713                         .tv   = 1,
2714                 },{
2715                         .name = name_svideo,  /* NOT tested */
2716                         .vmux = 8,
2717                         .amux = LINE1,
2718                 }},
2719                 .radio = {
2720                         .name   = name_radio,
2721                         .amux   = TV,
2722                         .gpio   = 0x0200000,
2723                 },
2724         },
2725         [SAA7134_BOARD_FLYDVB_TRIO] = {
2726                 /* LifeView LR319 FlyDVB Trio */
2727                 /* Peter Missel <peter.missel@onlinehome.de> */
2728                 .name           = "LifeView FlyDVB Trio",
2729                 .audio_clock    = 0x00200000,
2730                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2731                 .radio_type     = UNSET,
2732                 .tuner_addr     = ADDR_UNSET,
2733                 .radio_addr     = ADDR_UNSET,
2734                 .gpiomask       = 0x00200000,
2735                 .mpeg           = SAA7134_MPEG_DVB,
2736                 .inputs         = {{
2737                         .name = name_tv,        /* Analog broadcast/cable TV */
2738                         .vmux = 1,
2739                         .amux = TV,
2740                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2741                         .tv   = 1,
2742                 },{
2743                         .name = name_svideo,    /* S-Video signal on S-Video input */
2744                         .vmux = 8,
2745                         .amux = LINE2,
2746                 },{
2747                         .name = name_comp1,     /* Composite signal on S-Video input */
2748                         .vmux = 0,
2749                         .amux = LINE2,
2750                 },{
2751                         .name = name_comp2,     /* Composite input */
2752                         .vmux = 3,
2753                         .amux = LINE2,
2754                 }},
2755                 .radio = {
2756                         .name = name_radio,
2757                         .amux = TV,
2758                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2759                 },
2760         },
2761         [SAA7134_BOARD_AVERMEDIA_777] = {
2762                 .name           = "AverTV DVB-T 777",
2763                 .audio_clock    = 0x00187de7,
2764                 .tuner_type     = TUNER_ABSENT,
2765                 .radio_type     = UNSET,
2766                 .tuner_addr     = ADDR_UNSET,
2767                 .radio_addr     = ADDR_UNSET,
2768                 .mpeg           = SAA7134_MPEG_DVB,
2769                 .inputs = {{
2770                         .name   = name_comp1,
2771                         .vmux   = 1,
2772                         .amux   = LINE1,
2773                 },{
2774                         .name   = name_svideo,
2775                         .vmux   = 8,
2776                         .amux   = LINE1,
2777                 }},
2778         },
2779         [SAA7134_BOARD_FLYDVBT_LR301] = {
2780                 /* LifeView FlyDVB-T */
2781                 /* Giampiero Giancipoli <gianci@libero.it> */
2782                 .name           = "LifeView FlyDVB-T / Genius VideoWonder DVB-T",
2783                 .audio_clock    = 0x00200000,
2784                 .tuner_type     = TUNER_ABSENT,
2785                 .radio_type     = UNSET,
2786                 .tuner_addr     = ADDR_UNSET,
2787                 .radio_addr     = ADDR_UNSET,
2788                 .mpeg           = SAA7134_MPEG_DVB,
2789                 .inputs         = {{
2790                         .name = name_comp1,     /* Composite input */
2791                         .vmux = 3,
2792                         .amux = LINE2,
2793                 },{
2794                         .name = name_svideo,    /* S-Video signal on S-Video input */
2795                         .vmux = 8,
2796                         .amux = LINE2,
2797                 }},
2798         },
2799         [SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331] = {
2800                 .name           = "ADS Instant TV Duo Cardbus PTV331",
2801                 .audio_clock    = 0x00200000,
2802                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2803                 .radio_type     = UNSET,
2804                 .tuner_addr     = ADDR_UNSET,
2805                 .radio_addr     = ADDR_UNSET,
2806                 .mpeg           = SAA7134_MPEG_DVB,
2807                 .gpiomask       = 0x00600000, /* Bit 21 0=Radio, Bit 22 0=TV */
2808                 .inputs = {{
2809                         .name   = name_tv,
2810                         .vmux   = 1,
2811                         .amux   = TV,
2812                         .tv     = 1,
2813                         .gpio   = 0x00200000,
2814                 }},
2815         },
2816         [SAA7134_BOARD_TEVION_DVBT_220RF] = {
2817                 .name           = "Tevion/KWorld DVB-T 220RF",
2818                 .audio_clock    = 0x00187de7,
2819                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2820                 .radio_type     = UNSET,
2821                 .tuner_addr     = ADDR_UNSET,
2822                 .radio_addr     = ADDR_UNSET,
2823                 .mpeg           = SAA7134_MPEG_DVB,
2824                 .gpiomask       = 1 << 21,
2825                 .inputs = {{
2826                         .name   = name_tv,
2827                         .vmux   = 1,
2828                         .amux   = TV,
2829                         .tv     = 1,
2830                 },{
2831                         .name   = name_comp1,
2832                         .vmux   = 3,
2833                         .amux   = LINE1,
2834                 },{
2835                         .name   = name_comp2,
2836                         .vmux   = 0,
2837                         .amux   = LINE1,
2838                 },{
2839                         .name   = name_svideo,
2840                         .vmux   = 8,
2841                         .amux   = LINE1,
2842                 }},
2843                 .radio = {
2844                         .name   = name_radio,
2845                         .amux   = TV,
2846                         .gpio   = 0x0200000,
2847                 },
2848         },
2849         [SAA7134_BOARD_KWORLD_DVBT_210] = {
2850                 .name           = "KWorld DVB-T 210",
2851                 .audio_clock    = 0x00187de7,
2852                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2853                 .radio_type     = UNSET,
2854                 .tuner_addr     = ADDR_UNSET,
2855                 .radio_addr     = ADDR_UNSET,
2856                 .mpeg           = SAA7134_MPEG_DVB,
2857                 .gpiomask       = 1 << 21,
2858                 .inputs = {{
2859                         .name   = name_tv,
2860                         .vmux   = 1,
2861                         .amux   = TV,
2862                         .tv     = 1,
2863                 },{
2864                         .name   = name_comp1,
2865                         .vmux   = 3,
2866                         .amux   = LINE1,
2867                 },{
2868                         .name   = name_svideo,
2869                         .vmux   = 8,
2870                         .amux   = LINE1,
2871                 }},
2872                 .radio = {
2873                         .name   = name_radio,
2874                         .amux   = TV,
2875                         .gpio   = 0x0200000,
2876                 },
2877         },
2878         [SAA7134_BOARD_KWORLD_ATSC110] = {
2879                 .name           = "Kworld ATSC110/115",
2880                 .audio_clock    = 0x00187de7,
2881                 .tuner_type     = TUNER_PHILIPS_TUV1236D,
2882                 .radio_type     = UNSET,
2883                 .tuner_addr     = ADDR_UNSET,
2884                 .radio_addr     = ADDR_UNSET,
2885                 .tda9887_conf   = TDA9887_PRESENT,
2886                 .mpeg           = SAA7134_MPEG_DVB,
2887                 .inputs         = {{
2888                         .name = name_tv,
2889                         .vmux = 1,
2890                         .amux = TV,
2891                         .tv   = 1,
2892                 },{
2893                         .name = name_comp1,
2894                         .vmux = 3,
2895                         .amux = LINE2,
2896                 },{
2897                         .name = name_svideo,
2898                         .vmux = 8,
2899                         .amux = LINE2,
2900                 }},
2901         },
2902         [SAA7134_BOARD_AVERMEDIA_A169_B] = {
2903                 /* AVerMedia A169  */
2904                 /* Rickard Osser <ricky@osser.se>  */
2905                 /* This card has two saa7134 chips on it,
2906                    but only one of them is currently working. */
2907                 .name           = "AVerMedia A169 B",
2908                 .audio_clock    = 0x02187de7,
2909                 .tuner_type     = TUNER_LG_TALN,
2910                 .radio_type     = UNSET,
2911                 .tuner_addr     = ADDR_UNSET,
2912                 .radio_addr     = ADDR_UNSET,
2913                 .tda9887_conf   = TDA9887_PRESENT,
2914                 .gpiomask       = 0x0a60000,
2915         },
2916         [SAA7134_BOARD_AVERMEDIA_A169_B1] = {
2917                 /* AVerMedia A169 */
2918                 /* Rickard Osser <ricky@osser.se> */
2919                 .name           = "AVerMedia A169 B1",
2920                 .audio_clock    = 0x02187de7,
2921                 .tuner_type     = TUNER_LG_TALN,
2922                 .radio_type     = UNSET,
2923                 .tuner_addr     = ADDR_UNSET,
2924                 .radio_addr     = ADDR_UNSET,
2925                 .tda9887_conf   = TDA9887_PRESENT,
2926                 .gpiomask       = 0xca60000,
2927                 .inputs         = {{
2928                         .name = name_tv,
2929                         .vmux = 4,
2930                         .amux = TV,
2931                         .tv   = 1,
2932                         .gpio = 0x04a61000,
2933                 },{
2934                         .name = name_comp2,  /*  Composite SVIDEO (B/W if signal is carried with SVIDEO) */
2935                         .vmux = 1,
2936                         .amux = LINE2,
2937                 },{
2938                         .name = name_svideo,
2939                         .vmux = 9,           /* 9 is correct as S-VIDEO1 according to a169.inf! */
2940                         .amux = LINE1,
2941                 }},
2942         },
2943         [SAA7134_BOARD_MD7134_BRIDGE_2] = {
2944                 /* The second saa7134 on this card only serves as DVB-S host bridge */
2945                 .name           = "Medion 7134 Bridge #2",
2946                 .audio_clock    = 0x00187de7,
2947                 .radio_type     = UNSET,
2948                 .tuner_addr     = ADDR_UNSET,
2949                 .radio_addr     = ADDR_UNSET,
2950                 .mpeg           = SAA7134_MPEG_DVB,
2951         },
2952         [SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS] = {
2953                 .name           = "LifeView FlyDVB-T Hybrid Cardbus/MSI TV @nywhere A/D NB",
2954                 .audio_clock    = 0x00200000,
2955                 .tuner_type     = TUNER_PHILIPS_TDA8290,
2956                 .radio_type     = UNSET,
2957                 .tuner_addr     = ADDR_UNSET,
2958                 .radio_addr     = ADDR_UNSET,
2959                 .mpeg           = SAA7134_MPEG_DVB,
2960                 .gpiomask       = 0x00600000, /* Bit 21 0=Radio, Bit 22 0=TV */
2961                 .inputs         = {{
2962                         .name = name_tv,
2963                         .vmux = 1,
2964                         .amux = TV,
2965                         .gpio = 0x200000,       /* GPIO21=High for TV input */
2966                         .tv   = 1,
2967                 },{
2968                         .name = name_svideo,    /* S-Video signal on S-Video input */
2969                         .vmux = 8,
2970                         .amux = LINE2,
2971                 },{
2972                         .name = name_comp1,     /* Composite signal on S-Video input */
2973                         .vmux = 0,
2974                         .amux = LINE2,
2975                 },{
2976                         .name = name_comp2,     /* Composite input */
2977                         .vmux = 3,
2978                         .amux = LINE2,
2979                 }},
2980                 .radio = {
2981                         .name = name_radio,
2982                         .amux = TV,
2983                         .gpio = 0x000000,       /* GPIO21=Low for FM radio antenna */
2984                 },
2985         },
2986         [SAA7134_BOARD_FLYVIDEO3000_NTSC] = {
2987                 /* "Zac Bowling" <zac@zacbowling.com> */
2988                 .name           = "LifeView FlyVIDEO3000 (NTSC)",
2989                 .audio_clock    = 0x00200000,
2990                 .tuner_type     = TUNER_PHILIPS_NTSC,
2991                 .radio_type     = UNSET,
2992                 .tuner_addr     = ADDR_UNSET,
2993                 .radio_addr     = ADDR_UNSET,
2994
2995                 .gpiomask       = 0xe000,
2996                 .inputs         = {{
2997                         .name = name_tv,
2998                         .vmux = 1,
2999                         .amux = TV,
3000                         .gpio = 0x8000,
3001                         .tv   = 1,
3002                 },{
3003                         .name = name_tv_mono,
3004                         .vmux = 1,
3005                         .amux = LINE2,
3006                         .gpio = 0x0000,
3007                         .tv   = 1,
3008                 },{
3009                         .name = name_comp1,
3010                         .vmux = 0,
3011                         .amux = LINE2,
3012                         .gpio = 0x4000,
3013                 },{
3014                         .name = name_comp2,
3015                         .vmux = 3,
3016                         .amux = LINE2,
3017                         .gpio = 0x4000,
3018                 },{
3019                         .name = name_svideo,
3020                         .vmux = 8,
3021                         .amux = LINE2,
3022                         .gpio = 0x4000,
3023                 }},
3024                 .radio = {
3025                         .name = name_radio,
3026                         .amux = LINE2,
3027                         .gpio = 0x2000,
3028                 },
3029                         .mute = {
3030                         .name = name_mute,
3031                         .amux = TV,
3032                         .gpio = 0x8000,
3033                 },
3034         },
3035         [SAA7134_BOARD_MEDION_MD8800_QUADRO] = {
3036                 .name           = "Medion Md8800 Quadro",
3037                 .audio_clock    = 0x00187de7,
3038                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3039                 .radio_type     = UNSET,
3040                 .tuner_addr     = ADDR_UNSET,
3041                 .radio_addr     = ADDR_UNSET,
3042                 .mpeg           = SAA7134_MPEG_DVB,
3043                 .inputs = {{
3044                         .name   = name_tv,
3045                         .vmux   = 1,
3046                         .amux   = TV,
3047                         .tv     = 1,
3048                 },{
3049                         .name   = name_comp1,
3050                         .vmux   = 0,
3051                         .amux   = LINE1,
3052                 },{
3053                         .name   = name_svideo,
3054                         .vmux   = 8,
3055                         .amux   = LINE1,
3056                 }},
3057         },
3058         [SAA7134_BOARD_FLYDVBS_LR300] = {
3059                 /* LifeView FlyDVB-s */
3060                 /* Igor M. Liplianin <liplianin@tut.by> */
3061                 .name           = "LifeView FlyDVB-S /Acorp TV134DS",
3062                 .audio_clock    = 0x00200000,
3063                 .tuner_type     = TUNER_ABSENT,
3064                 .radio_type     = UNSET,
3065                 .tuner_addr     = ADDR_UNSET,
3066                 .radio_addr     = ADDR_UNSET,
3067                 .mpeg           = SAA7134_MPEG_DVB,
3068                 .inputs         = {{
3069                         .name = name_comp1,     /* Composite input */
3070                         .vmux = 3,
3071                         .amux = LINE1,
3072                 },{
3073                         .name = name_svideo,    /* S-Video signal on S-Video input */
3074                         .vmux = 8,
3075                         .amux = LINE1,
3076                 }},
3077         },
3078         [SAA7134_BOARD_PROTEUS_2309] = {
3079                 .name           = "Proteus Pro 2309",
3080                 .audio_clock    = 0x00187de7,
3081                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3082                 .radio_type     = UNSET,
3083                 .tuner_addr     = ADDR_UNSET,
3084                 .radio_addr     = ADDR_UNSET,
3085                 .tda9887_conf   = TDA9887_PRESENT,
3086                 .inputs         = {{
3087                         .name = name_tv,
3088                         .vmux = 1,
3089                         .amux = LINE2,
3090                         .tv   = 1,
3091                 },{
3092                         .name = name_comp1,
3093                         .vmux = 0,
3094                         .amux = LINE2,
3095                 },{
3096                         .name = name_comp2,
3097                         .vmux = 3,
3098                         .amux = LINE2,
3099                 },{
3100                         .name = name_svideo,
3101                         .vmux = 8,
3102                         .amux = LINE2,
3103                 }},
3104                 .mute = {
3105                         .name = name_mute,
3106                         .amux = LINE1,
3107                 },
3108         },
3109         [SAA7134_BOARD_AVERMEDIA_A16AR] = {
3110                 /* Petr Baudis <pasky@ucw.cz> */
3111                 .name           = "AVerMedia TV Hybrid A16AR",
3112                 .audio_clock    = 0x187de7,
3113                 .tuner_type     = TUNER_PHILIPS_TD1316, /* untested */
3114                 .radio_type     = TUNER_TEA5767, /* untested */
3115                 .tuner_addr     = ADDR_UNSET,
3116                 .radio_addr     = 0x60,
3117                 .tda9887_conf   = TDA9887_PRESENT,
3118                 .mpeg           = SAA7134_MPEG_DVB,
3119                 .inputs         = {{
3120                         .name = name_tv,
3121                         .vmux = 1,
3122                         .amux = TV,
3123                         .tv   = 1,
3124                 },{
3125                         .name = name_comp1,
3126                         .vmux = 3,
3127                         .amux = LINE2,
3128                 },{
3129                         .name = name_svideo,
3130                         .vmux = 8,
3131                         .amux = LINE1,
3132                 }},
3133                 .radio = {
3134                         .name = name_radio,
3135                         .amux = LINE1,
3136                 },
3137         },
3138         [SAA7134_BOARD_ASUS_EUROPA2_HYBRID] = {
3139                 .name           = "Asus Europa2 OEM",
3140                 .audio_clock    = 0x00187de7,
3141                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
3142                 .radio_type     = UNSET,
3143                 .tuner_addr     = ADDR_UNSET,
3144                 .radio_addr     = ADDR_UNSET,
3145                 .tda9887_conf   = TDA9887_PRESENT| TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE,
3146                 .mpeg           = SAA7134_MPEG_DVB,
3147                 .inputs = {{
3148                         .name   = name_tv,
3149                         .vmux   = 3,
3150                         .amux   = TV,
3151                         .tv     = 1,
3152                 },{
3153                         .name   = name_comp1,
3154                         .vmux   = 4,
3155                         .amux   = LINE2,
3156                 },{
3157                         .name   = name_svideo,
3158                         .vmux   = 8,
3159                         .amux   = LINE2,
3160                 }},
3161                 .radio = {
3162                         .name   = name_radio,
3163                         .amux   = LINE1,
3164                 },
3165         },
3166         [SAA7134_BOARD_PINNACLE_PCTV_310i] = {
3167                 .name           = "Pinnacle PCTV 310i",
3168                 .audio_clock    = 0x00187de7,
3169                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3170                 .radio_type     = UNSET,
3171                 .tuner_addr     = ADDR_UNSET,
3172                 .radio_addr     = ADDR_UNSET,
3173                 .tuner_config   = 1,
3174                 .mpeg           = SAA7134_MPEG_DVB,
3175                 .gpiomask       = 0x000200000,
3176                 .inputs         = {{
3177                         .name = name_tv,
3178                         .vmux = 4,
3179                         .amux = TV,
3180                         .tv   = 1,
3181                 },{
3182                         .name = name_comp1,
3183                         .vmux = 1,
3184                         .amux = LINE2,
3185                 },{
3186                         .name = name_comp2,
3187                         .vmux = 0,
3188                         .amux = LINE2,
3189                 },{
3190                         .name = name_svideo,
3191                         .vmux = 8,
3192                         .amux = LINE2,
3193                 }},
3194                 .radio = {
3195                         .name = name_radio,
3196                         .amux   = TV,
3197                         .gpio   = 0x0200000,
3198                 },
3199         },
3200         [SAA7134_BOARD_AVERMEDIA_STUDIO_507] = {
3201                 /* Mikhail Fedotov <mo_fedotov@mail.ru> */
3202                 .name           = "Avermedia AVerTV Studio 507",
3203                 .audio_clock    = 0x00187de7,
3204                 .tuner_type     = TUNER_PHILIPS_FM1256_IH3,
3205                 .radio_type     = UNSET,
3206                 .tuner_addr     = ADDR_UNSET,
3207                 .radio_addr     = ADDR_UNSET,
3208                 .tda9887_conf   = TDA9887_PRESENT,
3209                 .gpiomask       = 0x03,
3210                 .inputs         = {{
3211                         .name = name_tv,
3212                         .vmux = 1,
3213                         .amux = TV,
3214                         .tv   = 1,
3215                         .gpio = 0x00,
3216                 },{
3217                         .name = name_comp1,
3218                         .vmux = 0,
3219                         .amux = LINE2,
3220                         .gpio = 0x00,
3221                 },{
3222                         .name = name_comp2,
3223                         .vmux = 3,
3224                         .amux = LINE2,
3225                         .gpio = 0x00,
3226                 },{
3227                         .name = name_svideo,
3228                         .vmux = 8,
3229                         .amux = LINE2,
3230                         .gpio = 0x00,
3231                 }},
3232                 .radio = {
3233                         .name = name_radio,
3234                         .amux = LINE2,
3235                         .gpio = 0x01,
3236                 },
3237                 .mute  = {
3238                         .name = name_mute,
3239                         .amux = LINE1,
3240                         .gpio = 0x00,
3241                 },
3242         },
3243         [SAA7134_BOARD_VIDEOMATE_DVBT_200A] = {
3244                 /* Francis Barber <fedora@barber-family.id.au> */
3245                 .name           = "Compro Videomate DVB-T200A",
3246                 .audio_clock    = 0x00187de7,
3247                 .tuner_type     = TUNER_ABSENT,
3248                 .radio_type     = UNSET,
3249                 .tuner_addr     = ADDR_UNSET,
3250                 .radio_addr     = ADDR_UNSET,
3251                 .tda9887_conf   = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
3252                 .mpeg           = SAA7134_MPEG_DVB,
3253                 .inputs = {{
3254                         .name   = name_tv,
3255                         .vmux   = 3,
3256                         .amux   = TV,
3257                         .tv     = 1,
3258                 },{
3259                         .name   = name_comp1,
3260                         .vmux   = 1,
3261                         .amux   = LINE2,
3262                 },{
3263                         .name   = name_svideo,
3264                         .vmux   = 8,
3265                         .amux   = LINE2,
3266                 }},
3267         },
3268         [SAA7134_BOARD_HAUPPAUGE_HVR1110] = {
3269                 /* Thomas Genty <tomlohave@gmail.com> */
3270                 /* David Bentham <db260179@hotmail.com> */
3271                 .name           = "Hauppauge WinTV-HVR1110 DVB-T/Hybrid",
3272                 .audio_clock    = 0x00187de7,
3273                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3274                 .radio_type     = UNSET,
3275                 .tuner_addr     = ADDR_UNSET,
3276                 .radio_addr     = ADDR_UNSET,
3277                 .tuner_config   = 1,
3278                 .mpeg           = SAA7134_MPEG_DVB,
3279                 .gpiomask       = 0x0200100,
3280                 .inputs         = {{
3281                         .name = name_tv,
3282                         .vmux = 1,
3283                         .amux = TV,
3284                         .tv   = 1,
3285                         .gpio = 0x0000100,
3286                 }, {
3287                         .name = name_comp1,
3288                         .vmux = 3,
3289                         .amux = LINE1,
3290                 }, {
3291                         .name = name_svideo,
3292                         .vmux = 8,
3293                         .amux = LINE1,
3294                 } },
3295                 .radio = {
3296                         .name = name_radio,
3297                         .amux = TV,
3298                         .gpio = 0x0200100,
3299                 },
3300         },
3301         [SAA7134_BOARD_HAUPPAUGE_HVR1120] = {
3302                 .name           = "Hauppauge WinTV-HVR1120 ATSC/QAM-Hybrid",
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   = 3,
3309                 .mpeg           = SAA7134_MPEG_DVB,
3310                 .ts_type        = SAA7134_MPEG_TS_SERIAL,
3311                 .gpiomask       = 0x0800100, /* GPIO 21 is an INPUT */
3312                 .inputs         = {{
3313                         .name = name_tv,
3314                         .vmux = 1,
3315                         .amux = TV,
3316                         .tv   = 1,
3317                         .gpio = 0x0000100,
3318                 }, {
3319                         .name = name_comp1,
3320                         .vmux = 3,
3321                         .amux = LINE1,
3322                 }, {
3323                         .name = name_svideo,
3324                         .vmux = 8,
3325                         .amux = LINE1,
3326                 } },
3327                 .radio = {
3328                         .name = name_radio,
3329                         .amux = TV,
3330                         .gpio = 0x0800100, /* GPIO 23 HI for FM */
3331                 },
3332         },
3333         [SAA7134_BOARD_HAUPPAUGE_HVR1110R3] = {
3334                 .name           = "Hauppauge WinTV-HVR1110r3",
3335                 .audio_clock    = 0x00187de7,
3336                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3337                 .radio_type     = UNSET,
3338                 .tuner_addr     = ADDR_UNSET,
3339                 .radio_addr     = ADDR_UNSET,
3340                 .tuner_config   = 3,
3341                 .gpiomask       = 0x0800100, /* GPIO 21 is an INPUT */
3342                 .inputs         = {{
3343                         .name = name_tv,
3344                         .vmux = 1,
3345                         .amux = TV,
3346                         .tv   = 1,
3347                         .gpio = 0x0000100,
3348                 }, {
3349                         .name = name_comp1,
3350                         .vmux = 3,
3351                         .amux = LINE1,
3352                 }, {
3353                         .name = name_svideo,
3354                         .vmux = 8,
3355                         .amux = LINE1,
3356                 } },
3357                 .radio = {
3358                         .name = name_radio,
3359                         .amux = TV,
3360                         .gpio = 0x0800100, /* GPIO 23 HI for FM */
3361                 },
3362         },
3363         [SAA7134_BOARD_CINERGY_HT_PCMCIA] = {
3364                 .name           = "Terratec Cinergy HT PCMCIA",
3365                 .audio_clock    = 0x00187de7,
3366                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3367                 .radio_type     = UNSET,
3368                 .tuner_addr     = ADDR_UNSET,
3369                 .radio_addr     = ADDR_UNSET,
3370                 .mpeg           = SAA7134_MPEG_DVB,
3371                 .inputs = {{
3372                         .name   = name_tv,
3373                         .vmux   = 1,
3374                         .amux   = TV,
3375                         .tv     = 1,
3376                 },{
3377                         .name   = name_comp1,
3378                         .vmux   = 0,
3379                         .amux   = LINE1,
3380                 },{
3381                         .name   = name_svideo,
3382                         .vmux   = 6,
3383                         .amux   = LINE1,
3384                 }},
3385         },
3386         [SAA7134_BOARD_ENCORE_ENLTV] = {
3387         /* Steven Walter <stevenrwalter@gmail.com>
3388            Juan Pablo Sormani <sorman@gmail.com> */
3389                 .name           = "Encore ENLTV",
3390                 .audio_clock    = 0x00200000,
3391                 .tuner_type     = TUNER_TNF_5335MF,
3392                 .radio_type     = UNSET,
3393                 .tuner_addr     = ADDR_UNSET,
3394                 .radio_addr     = ADDR_UNSET,
3395                 .inputs         = {{
3396                         .name = name_tv,
3397                         .vmux = 1,
3398                         .amux = 3,
3399                         .tv   = 1,
3400                 },{
3401                         .name = name_tv_mono,
3402                         .vmux = 7,
3403                         .amux = 4,
3404                         .tv   = 1,
3405                 },{
3406                         .name = name_comp1,
3407                         .vmux = 3,
3408                         .amux = 2,
3409                 },{
3410                         .name = name_svideo,
3411                         .vmux = 0,
3412                         .amux = 2,
3413                 }},
3414                 .radio = {
3415                         .name = name_radio,
3416                         .amux = LINE2,
3417 /*                      .gpio = 0x00300001,*/
3418                         .gpio = 0x20000,
3419
3420                 },
3421                 .mute = {
3422                         .name = name_mute,
3423                         .amux = 0,
3424                 },
3425         },
3426         [SAA7134_BOARD_ENCORE_ENLTV_FM] = {
3427   /*    Juan Pablo Sormani <sorman@gmail.com> */
3428                 .name           = "Encore ENLTV-FM",
3429                 .audio_clock    = 0x00200000,
3430                 .tuner_type     = TUNER_PHILIPS_FCV1236D,
3431                 .radio_type     = UNSET,
3432                 .tuner_addr     = ADDR_UNSET,
3433                 .radio_addr     = ADDR_UNSET,
3434                 .inputs         = {{
3435                         .name = name_tv,
3436                         .vmux = 1,
3437                         .amux = 3,
3438                         .tv   = 1,
3439                 },{
3440                         .name = name_tv_mono,
3441                         .vmux = 7,
3442                         .amux = 4,
3443                         .tv   = 1,
3444                 },{
3445                         .name = name_comp1,
3446                         .vmux = 3,
3447                         .amux = 2,
3448                 },{
3449                         .name = name_svideo,
3450                         .vmux = 0,
3451                         .amux = 2,
3452                 }},
3453                 .radio = {
3454                         .name = name_radio,
3455                         .amux = LINE2,
3456                         .gpio = 0x20000,
3457
3458                 },
3459                 .mute = {
3460                         .name = name_mute,
3461                         .amux = 0,
3462                 },
3463         },
3464         [SAA7134_BOARD_ENCORE_ENLTV_FM53] = {
3465                 .name           = "Encore ENLTV-FM v5.3",
3466                 .audio_clock    = 0x00200000,
3467                 .tuner_type     = TUNER_TNF_5335MF,
3468                 .radio_type     = UNSET,
3469                 .tuner_addr     = ADDR_UNSET,
3470                 .radio_addr     = ADDR_UNSET,
3471                 .gpiomask       = 0x7000,
3472                 .inputs         = { {
3473                         .name = name_tv,
3474                         .vmux = 1,
3475                         .amux = 1,
3476                         .tv   = 1,
3477                         .gpio = 0x50000,
3478                 }, {
3479                         .name = name_comp1,
3480                         .vmux = 3,
3481                         .amux = 2,
3482                         .gpio = 0x2000,
3483                 }, {
3484                         .name = name_svideo,
3485                         .vmux = 8,
3486                         .amux = 2,
3487                         .gpio = 0x2000,
3488                 } },
3489                 .radio = {
3490                         .name = name_radio,
3491                         .vmux = 1,
3492                         .amux = 1,
3493                 },
3494                 .mute = {
3495                         .name = name_mute,
3496                         .gpio = 0xf000,
3497                         .amux = 0,
3498                 },
3499         },
3500         [SAA7134_BOARD_CINERGY_HT_PCI] = {
3501                 .name           = "Terratec Cinergy HT PCI",
3502                 .audio_clock    = 0x00187de7,
3503                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3504                 .radio_type     = UNSET,
3505                 .tuner_addr     = ADDR_UNSET,
3506                 .radio_addr     = ADDR_UNSET,
3507                 .mpeg           = SAA7134_MPEG_DVB,
3508                 .inputs = {{
3509                         .name   = name_tv,
3510                         .vmux   = 1,
3511                         .amux   = TV,
3512                         .tv     = 1,
3513                 },{
3514                         .name   = name_comp1,
3515                         .vmux   = 0,
3516                         .amux   = LINE1,
3517                 },{
3518                         .name   = name_svideo,
3519                         .vmux   = 6,
3520                         .amux   = LINE1,
3521                 }},
3522         },
3523         [SAA7134_BOARD_PHILIPS_TIGER_S] = {
3524                 .name           = "Philips Tiger - S Reference design",
3525                 .audio_clock    = 0x00187de7,
3526                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3527                 .radio_type     = UNSET,
3528                 .tuner_addr     = ADDR_UNSET,
3529                 .radio_addr     = ADDR_UNSET,
3530                 .tuner_config   = 2,
3531                 .mpeg           = SAA7134_MPEG_DVB,
3532                 .gpiomask       = 0x0200000,
3533                 .inputs = {{
3534                         .name   = name_tv,
3535                         .vmux   = 1,
3536                         .amux   = TV,
3537                         .tv     = 1,
3538                 },{
3539                         .name   = name_comp1,
3540                         .vmux   = 3,
3541                         .amux   = LINE1,
3542                 },{
3543                         .name   = name_svideo,
3544                         .vmux   = 8,
3545                         .amux   = LINE1,
3546                 }},
3547                 .radio = {
3548                         .name   = name_radio,
3549                         .amux   = TV,
3550                         .gpio   = 0x0200000,
3551                 },
3552         },
3553         [SAA7134_BOARD_AVERMEDIA_M102] = {
3554                 .name           = "Avermedia M102",
3555                 .audio_clock    = 0x00187de7,
3556                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3557                 .radio_type     = UNSET,
3558                 .tuner_addr     = ADDR_UNSET,
3559                 .radio_addr     = ADDR_UNSET,
3560                 .gpiomask       = 1<<21,
3561                 .inputs         = {{
3562                         .name = name_tv,
3563                         .vmux = 1,
3564                         .amux = TV,
3565                         .tv   = 1,
3566                 },{
3567                         .name = name_comp1,
3568                         .vmux = 0,
3569                         .amux = LINE2,
3570                 },{
3571                         .name = name_svideo,
3572                         .vmux = 6,
3573                         .amux = LINE2,
3574                 }},
3575         },
3576         [SAA7134_BOARD_ASUS_P7131_4871] = {
3577                 .name           = "ASUS P7131 4871",
3578                 .audio_clock    = 0x00187de7,
3579                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3580                 .radio_type     = UNSET,
3581                 .tuner_addr     = ADDR_UNSET,
3582                 .radio_addr     = ADDR_UNSET,
3583                 .tuner_config   = 2,
3584                 .mpeg           = SAA7134_MPEG_DVB,
3585                 .gpiomask       = 0x0200000,
3586                 .inputs = {{
3587                         .name   = name_tv,
3588                         .vmux   = 1,
3589                         .amux   = TV,
3590                         .tv     = 1,
3591                         .gpio   = 0x0200000,
3592                 }},
3593         },
3594         [SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA] = {
3595                 .name           = "ASUSTeK P7131 Hybrid",
3596                 .audio_clock    = 0x00187de7,
3597                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3598                 .radio_type     = UNSET,
3599                 .tuner_addr     = ADDR_UNSET,
3600                 .radio_addr     = ADDR_UNSET,
3601                 .tuner_config   = 2,
3602                 .gpiomask       = 1 << 21,
3603                 .mpeg           = SAA7134_MPEG_DVB,
3604                 .inputs         = {{
3605                         .name = name_tv,
3606                         .vmux = 1,
3607                         .amux = TV,
3608                         .tv   = 1,
3609                         .gpio = 0x0000000,
3610                 },{
3611                         .name = name_comp1,
3612                         .vmux = 3,
3613                         .amux = LINE2,
3614                         .gpio = 0x0200000,
3615                 },{
3616                         .name = name_comp2,
3617                         .vmux = 0,
3618                         .amux = LINE2,
3619                         .gpio = 0x0200000,
3620                 },{
3621                         .name = name_svideo,
3622                         .vmux = 8,
3623                         .amux = LINE2,
3624                         .gpio = 0x0200000,
3625                 }},
3626                 .radio = {
3627                         .name = name_radio,
3628                         .amux = TV,
3629                         .gpio = 0x0200000,
3630                 },
3631        },
3632        [SAA7134_BOARD_ASUSTeK_P7131_ANALOG] = {
3633                .name           = "ASUSTeK P7131 Analog",
3634                .audio_clock    = 0x00187de7,
3635                .tuner_type     = TUNER_PHILIPS_TDA8290,
3636                .radio_type     = UNSET,
3637                .tuner_addr     = ADDR_UNSET,
3638                .radio_addr     = ADDR_UNSET,
3639                .gpiomask       = 1 << 21,
3640                .inputs         = {{
3641                        .name = name_tv,
3642                        .vmux = 1,
3643                        .amux = TV,
3644                        .tv   = 1,
3645                        .gpio = 0x0000000,
3646                }, {
3647                        .name = name_comp1,
3648                        .vmux = 3,
3649                        .amux = LINE2,
3650                }, {
3651                        .name = name_comp2,
3652                        .vmux = 0,
3653                        .amux = LINE2,
3654                }, {
3655                        .name = name_svideo,
3656                        .vmux = 8,
3657                        .amux = LINE2,
3658                } },
3659                .radio = {
3660                        .name = name_radio,
3661                        .amux = TV,
3662                        .gpio = 0x0200000,
3663                },
3664         },
3665         [SAA7134_BOARD_SABRENT_TV_PCB05] = {
3666                 .name           = "Sabrent PCMCIA TV-PCB05",
3667                 .audio_clock    = 0x00187de7,
3668                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3669                 .radio_type     = UNSET,
3670                 .tuner_addr     = ADDR_UNSET,
3671                 .radio_addr     = ADDR_UNSET,
3672                 .inputs         = {{
3673                         .name = name_tv,
3674                         .vmux = 1,
3675                         .amux = TV,
3676                         .tv   = 1,
3677                 },{
3678                         .name = name_comp1,
3679                         .vmux = 3,
3680                         .amux = LINE1,
3681                 },{
3682                         .name = name_comp2,
3683                         .vmux = 0,
3684                         .amux = LINE1,
3685                 },{
3686                         .name = name_svideo,
3687                         .vmux = 8,
3688                         .amux = LINE1,
3689                 }},
3690                 .mute = {
3691                         .name = name_mute,
3692                         .amux = TV,
3693                 },
3694         },
3695         [SAA7134_BOARD_10MOONSTVMASTER3] = {
3696                 /* Tony Wan <aloha_cn@hotmail.com> */
3697                 .name           = "10MOONS TM300 TV Card",
3698                 .audio_clock    = 0x00200000,
3699                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
3700                 .radio_type     = UNSET,
3701                 .tuner_addr     = ADDR_UNSET,
3702                 .radio_addr     = ADDR_UNSET,
3703                 .gpiomask       = 0x7000,
3704                 .inputs         = {{
3705                         .name = name_tv,
3706                         .vmux = 1,
3707                         .amux = LINE2,
3708                         .gpio = 0x0000,
3709                         .tv   = 1,
3710                 },{
3711                         .name = name_comp1,
3712                         .vmux = 3,
3713                         .amux = LINE1,
3714                         .gpio = 0x2000,
3715                 },{
3716                         .name = name_svideo,
3717                         .vmux = 8,
3718                         .amux = LINE1,
3719                         .gpio = 0x2000,
3720                 }},
3721                 .mute = {
3722                         .name = name_mute,
3723                         .amux = LINE2,
3724                         .gpio = 0x3000,
3725                 },
3726         },
3727         [SAA7134_BOARD_AVERMEDIA_SUPER_007] = {
3728                 .name           = "Avermedia Super 007",
3729                 .audio_clock    = 0x00187de7,
3730                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3731                 .radio_type     = UNSET,
3732                 .tuner_addr     = ADDR_UNSET,
3733                 .radio_addr     = ADDR_UNSET,
3734                 .tuner_config   = 0,
3735                 .mpeg           = SAA7134_MPEG_DVB,
3736                 .inputs = {{
3737                         .name   = name_tv, /* FIXME: analog tv untested */
3738                         .vmux   = 1,
3739                         .amux   = TV,
3740                         .tv     = 1,
3741                 }},
3742         },
3743         [SAA7134_BOARD_AVERMEDIA_M135A] = {
3744                 .name           = "Avermedia PCI pure analog (M135A)",
3745                 .audio_clock    = 0x00187de7,
3746                 .tuner_type     = TUNER_PHILIPS_TDA8290,
3747                 .radio_type     = UNSET,
3748                 .tuner_addr     = ADDR_UNSET,
3749                 .radio_addr     = ADDR_UNSET,
3750                 .tuner_config   = 2,
3751                 .gpiomask       = 0x020200000,
3752                 .inputs         = {{
3753                         .name = name_tv,
3754                         .vmux = 1,
3755                         .amux = TV,
3756                         .tv   = 1,
3757                 }, {
3758                         .name = name_comp1,
3759                         .vmux = 3,
3760                         .amux = LINE1,
3761                 }, {
3762                         .name = name_svideo,
3763                         .vmux = 8,
3764                         .amux = LINE1,
3765                 } },
3766                 .radio = {
3767                         .name = name_radio,
3768                         .amux = TV,
3769                         .gpio = 0x00200000,
3770                 },
3771                 .mute = {
3772                         .name = name_mute,
3773                         .amux = TV,
3774                         .gpio = 0x01,
3775                 },
3776         },
3777         [SAA7134_BOARD_BEHOLD_401] = {
3778                 /*       Beholder Intl. Ltd. 2008      */
3779                 /*Dmitry Belimov <d.belimov@gmail.com> */
3780                 .name           = "Beholder BeholdTV 401",
3781                 .audio_clock    = 0x00187de7,
3782                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
3783                 .radio_type     = UNSET,
3784                 .tuner_addr     = ADDR_UNSET,
3785                 .radio_addr     = ADDR_UNSET,
3786                 .gpiomask       = 0x00008000,
3787                 .inputs         = {{
3788                         .name = name_svideo,
3789                         .vmux = 8,
3790                         .amux = LINE1,
3791                 },{
3792                         .name = name_comp1,
3793                         .vmux = 1,
3794                         .amux = LINE1,
3795                 },{
3796                         .name = name_tv,
3797                         .vmux = 3,
3798                         .amux = LINE2,
3799                         .tv   = 1,
3800                 }},
3801                 .mute = {
3802                         .name = name_mute,
3803                         .amux = LINE1,
3804                 },
3805         },
3806         [SAA7134_BOARD_BEHOLD_403] = {
3807                 /*       Beholder Intl. Ltd. 2008      */
3808                 /*Dmitry Belimov <d.belimov@gmail.com> */
3809                 .name           = "Beholder BeholdTV 403",
3810                 .audio_clock    = 0x00187de7,
3811                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
3812                 .radio_type     = UNSET,
3813                 .tuner_addr     = ADDR_UNSET,
3814                 .radio_addr     = ADDR_UNSET,
3815                 .gpiomask       = 0x00008000,
3816                 .inputs         = {{
3817                         .name = name_svideo,
3818                         .vmux = 8,
3819                         .amux = LINE1,
3820                 },{
3821                         .name   = name_comp1,
3822                         .vmux   = 1,
3823                         .amux   = LINE1,
3824                 },{
3825                         .name = name_tv,
3826                         .vmux = 3,
3827                         .amux = LINE2,
3828                         .tv   = 1,
3829                 }},
3830         },
3831         [SAA7134_BOARD_BEHOLD_403FM] = {
3832                 /*       Beholder Intl. Ltd. 2008      */
3833                 /*Dmitry Belimov <d.belimov@gmail.com> */
3834                 .name           = "Beholder BeholdTV 403 FM",
3835                 .audio_clock    = 0x00187de7,
3836                 .tuner_type     = TUNER_PHILIPS_FQ1216ME,
3837                 .radio_type     = UNSET,
3838                 .tuner_addr     = ADDR_UNSET,
3839                 .radio_addr     = ADDR_UNSET,
3840                 .gpiomask       = 0x00008000,
3841                 .inputs         = {{
3842                         .name = name_svideo,
3843                         .vmux = 8,
3844                         .amux = LINE1,
3845                 },{
3846                         .name   = name_comp1,
3847                         .vmux   = 1,
3848                         .amux   = LINE1,
3849                 },{
3850                         .name = name_tv,
3851                         .vmux = 3,
3852                         .amux = LINE2,
3853                         .tv   = 1,
3854                 }},
3855                 .radio = {
3856                         .name = name_radio,
3857                         .amux = LINE2,
3858                 },
3859         },
3860         [SAA7134_BOARD_BEHOLD_405] = {
3861                 /*       Beholder Intl. Ltd. 2008      */
3862                 /*Dmitry Belimov <d.belimov@gmail.com> */
3863                 .name           = "Beholder BeholdTV 405",
3864                 .audio_clock    = 0x00187de7,
3865                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3866                 .radio_type     = UNSET,
3867                 .tuner_addr     = ADDR_UNSET,
3868                 .radio_addr     = ADDR_UNSET,
3869                 .tda9887_conf   = TDA9887_PRESENT,
3870                 .gpiomask       = 0x00008000,
3871                 .inputs         = {{
3872                         .name = name_svideo,
3873                         .vmux = 8,
3874                         .amux = LINE1,
3875                 },{
3876                         .name = name_comp1,
3877                         .vmux = 3,
3878                         .amux = LINE1,
3879                 },{
3880                         .name = name_tv,
3881                         .vmux = 3,
3882                         .amux = LINE2,
3883                         .tv   = 1,
3884                 }},
3885         },
3886         [SAA7134_BOARD_BEHOLD_405FM] = {
3887                 /* Sergey <skiv@orel.ru> */
3888                 /*       Beholder Intl. Ltd. 2008      */
3889                 /*Dmitry Belimov <d.belimov@gmail.com> */
3890                 .name           = "Beholder BeholdTV 405 FM",
3891                 .audio_clock    = 0x00187de7,
3892                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3893                 .radio_type     = UNSET,
3894                 .tuner_addr     = ADDR_UNSET,
3895                 .radio_addr     = ADDR_UNSET,
3896                 .tda9887_conf   = TDA9887_PRESENT,
3897                 .gpiomask       = 0x00008000,
3898                 .inputs         = {{
3899                         .name = name_svideo,
3900                         .vmux = 8,
3901                         .amux = LINE1,
3902                 },{
3903                         .name = name_comp1,
3904                         .vmux = 3,
3905                         .amux = LINE1,
3906                 },{
3907                         .name = name_tv,
3908                         .vmux = 3,
3909                         .amux = LINE2,
3910                         .tv   = 1,
3911                 }},
3912                 .radio = {
3913                         .name = name_radio,
3914                         .amux = LINE2,
3915                 },
3916         },
3917         [SAA7134_BOARD_BEHOLD_407] = {
3918                 /*       Beholder Intl. Ltd. 2008      */
3919                 /*Dmitry Belimov <d.belimov@gmail.com> */
3920                 .name           = "Beholder BeholdTV 407",
3921                 .audio_clock    = 0x00187de7,
3922                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3923                 .radio_type     = UNSET,
3924                 .tuner_addr     = ADDR_UNSET,
3925                 .radio_addr     = ADDR_UNSET,
3926                 .tda9887_conf   = TDA9887_PRESENT,
3927                 .gpiomask       = 0x00008000,
3928                 .inputs = {{
3929                         .name = name_svideo,
3930                         .vmux = 8,
3931                         .amux = LINE1,
3932                         .gpio = 0xc0c000,
3933                 },{
3934                         .name = name_comp1,
3935                         .vmux = 1,
3936                         .amux = LINE1,
3937                         .gpio = 0xc0c000,
3938                 },{
3939                         .name = name_tv,
3940                         .vmux = 3,
3941                         .amux = TV,
3942                         .tv = 1,
3943                         .gpio = 0xc0c000,
3944                 }},
3945         },
3946         [SAA7134_BOARD_BEHOLD_407FM] = {
3947                 /*       Beholder Intl. Ltd. 2008      */
3948                 /*Dmitry Belimov <d.belimov@gmail.com> */
3949                 .name           = "Beholder BeholdTV 407 FM",
3950                 .audio_clock    = 0x00187de7,
3951                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3952                 .radio_type     = UNSET,
3953                 .tuner_addr     = ADDR_UNSET,
3954                 .radio_addr     = ADDR_UNSET,
3955                 .tda9887_conf   = TDA9887_PRESENT,
3956                 .gpiomask       = 0x00008000,
3957                 .inputs = {{
3958                         .name = name_svideo,
3959                         .vmux = 8,
3960                         .amux = LINE1,
3961                         .gpio = 0xc0c000,
3962                 },{
3963                         .name = name_comp1,
3964                         .vmux = 1,
3965                         .amux = LINE1,
3966                         .gpio = 0xc0c000,
3967                 },{
3968                         .name = name_tv,
3969                         .vmux = 3,
3970                         .amux = TV,
3971                         .tv = 1,
3972                         .gpio = 0xc0c000,
3973                 }},
3974                 .radio = {
3975                         .name = name_radio,
3976                         .amux = LINE2,
3977                         .gpio = 0xc0c000,
3978                 },
3979         },
3980         [SAA7134_BOARD_BEHOLD_409] = {
3981                 /*       Beholder Intl. Ltd. 2008      */
3982                 /*Dmitry Belimov <d.belimov@gmail.com> */
3983                 .name           = "Beholder BeholdTV 409",
3984                 .audio_clock    = 0x00187de7,
3985                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
3986                 .radio_type     = UNSET,
3987                 .tuner_addr     = ADDR_UNSET,
3988                 .radio_addr     = ADDR_UNSET,
3989                 .tda9887_conf   = TDA9887_PRESENT,
3990                 .gpiomask       = 0x00008000,
3991                 .inputs         = {{
3992                         .name = name_tv,
3993                         .vmux = 3,
3994                         .amux = TV,
3995                         .tv   = 1,
3996                 },{
3997                         .name = name_comp1,
3998                         .vmux = 1,
3999                         .amux = LINE1,
4000                 },{
4001                         .name = name_svideo,
4002                         .vmux = 8,
4003                         .amux = LINE1,
4004                 }},
4005         },
4006         [SAA7134_BOARD_BEHOLD_505FM] = {
4007                 /*       Beholder Intl. Ltd. 2008      */
4008                 /*Dmitry Belimov <d.belimov@gmail.com> */
4009                 .name           = "Beholder BeholdTV 505 FM/RDS",
4010                 .audio_clock    = 0x00200000,
4011                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4012                 .radio_type     = UNSET,
4013                 .tuner_addr     = ADDR_UNSET,
4014                 .radio_addr     = ADDR_UNSET,
4015                 .tda9887_conf   = TDA9887_PRESENT,
4016                 .gpiomask       = 0x00008000,
4017                 .inputs         = {{
4018                         .name = name_tv,
4019                         .vmux = 3,
4020                         .amux = LINE2,
4021                         .tv   = 1,
4022                 },{
4023                         .name = name_comp1,
4024                         .vmux = 1,
4025                         .amux = LINE1,
4026                 },{
4027                         .name = name_svideo,
4028                         .vmux = 8,
4029                         .amux = LINE1,
4030                 }},
4031                 .mute = {
4032                         .name = name_mute,
4033                         .amux = LINE1,
4034                 },
4035                 .radio = {
4036                         .name = name_radio,
4037                         .amux = LINE2,
4038                 },
4039         },
4040         [SAA7134_BOARD_BEHOLD_507_9FM] = {
4041                 /*       Beholder Intl. Ltd. 2008      */
4042                 /*Dmitry Belimov <d.belimov@gmail.com> */
4043                 .name           = "Beholder BeholdTV 507 FM/RDS / BeholdTV 509 FM",
4044                 .audio_clock    = 0x00187de7,
4045                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4046                 .radio_type     = UNSET,
4047                 .tuner_addr     = ADDR_UNSET,
4048                 .radio_addr     = ADDR_UNSET,
4049                 .tda9887_conf   = TDA9887_PRESENT,
4050                 .gpiomask       = 0x00008000,
4051                 .inputs         = {{
4052                         .name = name_tv,
4053                         .vmux = 3,
4054                         .amux = TV,
4055                         .tv   = 1,
4056                 },{
4057                         .name = name_comp1,
4058                         .vmux = 1,
4059                         .amux = LINE1,
4060                 },{
4061                         .name = name_svideo,
4062                         .vmux = 8,
4063                         .amux = LINE1,
4064                 }},
4065                         .radio = {
4066                         .name = name_radio,
4067                         .amux = LINE2,
4068                 },
4069         },
4070         [SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM] = {
4071                 /*       Beholder Intl. Ltd. 2008      */
4072                 /*Dmitry Belimov <d.belimov@gmail.com> */
4073                 .name           = "Beholder BeholdTV Columbus TVFM",
4074                 .audio_clock    = 0x00187de7,
4075                 .tuner_type     = TUNER_ALPS_TSBE5_PAL,
4076                 .radio_type     = UNSET,
4077                 .tuner_addr     = ADDR_UNSET,
4078                 .radio_addr     = ADDR_UNSET,
4079                 .tda9887_conf   = TDA9887_PRESENT,
4080                 .gpiomask       = 0x000A8004,
4081                 .inputs         = {{
4082                         .name = name_tv,
4083                         .vmux = 3,
4084                         .amux = TV,
4085                         .tv   = 1,
4086                         .gpio = 0x000A8004,
4087                 }, {
4088                         .name = name_comp1,
4089                         .vmux = 1,
4090                         .amux = LINE1,
4091                         .gpio = 0x000A8000,
4092                 }, {
4093                         .name = name_svideo,
4094                         .vmux = 8,
4095                         .amux = LINE1,
4096                         .gpio = 0x000A8000,
4097                 } },
4098                 .radio = {
4099                         .name = name_radio,
4100                         .amux = LINE2,
4101                         .gpio = 0x000A8000,
4102                 },
4103         },
4104         [SAA7134_BOARD_BEHOLD_607_9FM] = {
4105                 /* Andrey Melnikoff <temnota@kmv.ru> */
4106                 .name           = "Beholder BeholdTV 607 / BeholdTV 609",
4107                 .audio_clock    = 0x00187de7,
4108                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4109                 .radio_type     = UNSET,
4110                 .tuner_addr     = ADDR_UNSET,
4111                 .radio_addr     = ADDR_UNSET,
4112                 .tda9887_conf   = TDA9887_PRESENT,
4113                 .inputs         = {{
4114                         .name = name_tv,
4115                         .vmux = 3,
4116                         .amux = TV,
4117                         .tv   = 1,
4118                 },{
4119                         .name = name_comp1,
4120                         .vmux = 1,
4121                         .amux = LINE1,
4122                 },{
4123                         .name = name_svideo,
4124                         .vmux = 8,
4125                         .amux = LINE1,
4126                 }},
4127                 .radio = {
4128                         .name = name_radio,
4129                         .amux = LINE2,
4130                 },
4131         },
4132         [SAA7134_BOARD_BEHOLD_M6] = {
4133                 /* Igor Kuznetsov <igk@igk.ru> */
4134                 /* Andrey Melnikoff <temnota@kmv.ru> */
4135                 /* Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> */
4136                 .name           = "Beholder BeholdTV M6",
4137                 .audio_clock    = 0x00187de7,
4138                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4139                 .radio_type     = UNSET,
4140                 .tuner_addr     = ADDR_UNSET,
4141                 .radio_addr     = ADDR_UNSET,
4142                 .empress_addr   = 0x20,
4143                 .tda9887_conf   = TDA9887_PRESENT,
4144                 .inputs         = { {
4145                         .name = name_tv,
4146                         .vmux = 3,
4147                         .amux = TV,
4148                         .tv   = 1,
4149                 }, {
4150                         .name = name_comp1,
4151                         .vmux = 1,
4152                         .amux = LINE1,
4153                 }, {
4154                         .name = name_svideo,
4155                         .vmux = 8,
4156                         .amux = LINE1,
4157                 } },
4158                 .radio = {
4159                         .name = name_radio,
4160                         .amux = LINE2,
4161                 },
4162                 .mpeg  = SAA7134_MPEG_EMPRESS,
4163                 .video_out = CCIR656,
4164                 .vid_port_opts  = (SET_T_CODE_POLARITY_NON_INVERTED |
4165                                         SET_CLOCK_NOT_DELAYED |
4166                                         SET_CLOCK_INVERTED |
4167                                         SET_VSYNC_OFF),
4168         },
4169         [SAA7134_BOARD_BEHOLD_M63] = {
4170                 /* Igor Kuznetsov <igk@igk.ru> */
4171                 /* Andrey Melnikoff <temnota@kmv.ru> */
4172                 /* Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> */
4173                 .name           = "Beholder BeholdTV M63",
4174                 .audio_clock    = 0x00187de7,
4175                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4176                 .radio_type     = UNSET,
4177                 .tuner_addr     = ADDR_UNSET,
4178                 .radio_addr     = ADDR_UNSET,
4179                 .empress_addr   = 0x20,
4180                 .tda9887_conf   = TDA9887_PRESENT,
4181                 .inputs         = { {
4182                         .name = name_tv,
4183                         .vmux = 3,
4184                         .amux = TV,
4185                         .tv   = 1,
4186                 }, {
4187                         .name = name_comp1,
4188                         .vmux = 1,
4189                         .amux = LINE1,
4190                 }, {
4191                         .name = name_svideo,
4192                         .vmux = 8,
4193                         .amux = LINE1,
4194                 } },
4195                 .radio = {
4196                         .name = name_radio,
4197                         .amux = LINE2,
4198                 },
4199                 .mpeg  = SAA7134_MPEG_EMPRESS,
4200                 .video_out = CCIR656,
4201                 .vid_port_opts  = (SET_T_CODE_POLARITY_NON_INVERTED |
4202                                         SET_CLOCK_NOT_DELAYED |
4203                                         SET_CLOCK_INVERTED |
4204                                         SET_VSYNC_OFF),
4205         },
4206         [SAA7134_BOARD_BEHOLD_M6_EXTRA] = {
4207                 /* Igor Kuznetsov <igk@igk.ru> */
4208                 /* Andrey Melnikoff <temnota@kmv.ru> */
4209                 /* Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> */
4210                 .name           = "Beholder BeholdTV M6 Extra",
4211                 .audio_clock    = 0x00187de7,
4212                 /* FIXME: Must be PHILIPS_FM1216ME_MK5*/
4213                 .tuner_type     = TUNER_PHILIPS_FM1216ME_MK3,
4214                 .radio_type     = UNSET,
4215                 .tuner_addr     = ADDR_UNSET,
4216                 .radio_addr     = ADDR_UNSET,
4217                 .empress_addr   = 0x20,
4218                 .tda9887_conf   = TDA9887_PRESENT,
4219                 .inputs         = { {
4220                         .name = name_tv,
4221                         .vmux = 3,
4222                         .amux = TV,
4223                         .tv   = 1,
4224                 }, {
4225                         .name = name_comp1,
4226                         .vmux = 1,
4227                         .amux = LINE1,
4228                 }, {
4229                         .name = name_svideo,
4230                         .vmux = 8,
4231                         .amux = LINE1,
4232                 } },
4233                 .radio = {
4234                         .name = name_radio,
4235                         .amux = LINE2,
4236                 },
4237                 .mpeg  = SAA7134_MPEG_EMPRESS,
4238                 .video_out = CCIR656,
4239                 .vid_port_opts  = (SET_T_CODE_POLARITY_NON_INVERTED |
4240                                         SET_CLOCK_NOT_DELAYED |
4241                                         SET_CLOCK_INVERTED |
4242                                         SET_VSYNC_OFF),
4243         },
4244         [SAA7134_BOARD_TWINHAN_DTV_DVB_3056] = {
4245                 .name           = "Twinhan Hybrid DTV-DVB 3056 PCI",
4246                 .audio_clock    = 0x00187de7,
4247                 .tuner_type     = TUNER_PHILIPS_TDA8290,
4248                 .radio_type     = UNSET,
4249                 .tuner_addr     = ADDR_UNSET,
4250                 .radio_addr     = ADDR_UNSET,
4251                 .tuner_config   = 2,
4252                 .mpeg           = SAA7134_MPEG_DVB,
4253                 .gpiomask       = 0x0200000,
4254                 .inputs = {{
4255                         .name   = name_tv,
4256                         .vmux   = 1,
4257                         .amux   = TV,
4258                         .tv     = 1,
4259                 }, {
4260                         .name   = name_comp1,
4261                         .vmux   = 3,
4262                         .amux   = LINE1,
4263                 }, {
4264                         .name   = name_svideo,
4265                         .vmux   = 8,            /* untested */
4266                         .amux   = LINE1,
4267                 } },
4268                 .radio = {
4269                         .name   = name_radio,
4270                         .amux   = TV,
4271                         .gpio   = 0x0200000,
4272                 },
4273         },
4274         [SAA7134_BOARD_GENIUS_TVGO_A11MCE] = {
4275                 /* Adrian Pardini <pardo.bsso@gmail.com> */
4276                 .name           = "Genius TVGO AM11MCE",
4277                 .audio_clock    = 0x00200000,
4278                 .tuner_type     = TUNER_TNF_5335MF,
4279                 .radio_type     = UNSET,
4280                 .tuner_addr     = ADDR_UNSET,
4281                 .radio_addr     = ADDR_UNSET,
4282                 .gpiomask       = 0xf000,
4283                 .inputs         = {{
4284                         .name = name_tv_mono,
4285                         .vmux = 1,
4286                         .amux = LINE2,
4287                         .gpio = 0x0000,
4288                         .tv   = 1,
4289                 }, {
4290                         .name = name_comp1,
4291                         .vmux = 3,
4292                         .amux = LINE1,
4293                         .gpio = 0x2000,
4294                         .tv = 1
4295                 }, {
4296                         .name = name_svideo,
4297                         .vmux = 8,
4298                         .amux = LINE1,
4299                         .gpio = 0x2000,
4300         } },
4301                 .radio = {
4302                         .name = name_radio,
4303                         .amux = LINE2,
4304                         .gpio = 0x1000,
4305                 },
4306                 .mute = {
4307                         .name = name_mute,
4308                         .amux = LINE2,
4309                         .gpio = 0x6000,
4310                 },
4311         },
4312         [SAA7134_BOARD_PHILIPS_SNAKE] = {
4313                 .name           = "NXP Snake DVB-S reference design",
4314                 .audio_clock    = 0x00200000,
4315                 .tuner_type     = TUNER_ABSENT,
4316                 .radio_type     = UNSET,
4317                 .tuner_addr     = ADDR_UNSET,
4318                 .radio_addr     = ADDR_UNSET,
4319                 .mpeg           = SAA7134_MPEG_DVB,
4320                 .inputs = {{
4321                         .name   = name_comp1,
4322                         .vmux   = 3,
4323                         .amux   = LINE1,
4324                 }, {
4325                         .name   = name_svideo,
4326                         .vmux   = 8,
4327                         .amux   = LINE1,
4328                 } },
4329         },
4330         [SAA7134_BOARD_CREATIX_CTX953] = {
4331                 .name         = "Medion/Creatix CTX953 Hybrid",
4332                 .audio_clock  = 0x00187de7,
4333                 .tuner_type   = TUNER_PHILIPS_TDA8290,
4334                 .radio_type   = UNSET,
4335                 .tuner_addr   = ADDR_UNSET,
4336                 .radio_addr   = ADDR_UNSET,
4337                 .tuner_config = 0,
4338                 .mpeg         = SAA7134_MPEG_DVB,
4339                 .inputs       = {{
4340                         .name = name_tv,
4341                         .vmux = 1,
4342                         .amux = TV,
4343                         .tv   = 1,
4344                 }, {
4345                         .name = name_comp1,
4346                         .vmux = 0,
4347                         .amux = LINE1,
4348                 }, {
4349                         .name = name_svideo,
4350                         .vmux = 8,
4351                         .amux = LINE1,
4352                 } },
4353         },
4354         [SAA7134_BOARD_MSI_TVANYWHERE_AD11] = {
4355                 .name           = "MSI TV@nywhere A/D v1.1",
4356                 .audio_clock    = 0x00187de7,
4357                 .tuner_type     = TUNER_PHILIPS_TDA8290,
4358                 .radio_type     = UNSET,
4359                 .tuner_addr     = ADDR_UNSET,
4360                 .radio_addr     = ADDR_UNSET,
4361                 .tuner_config   = 2,
4362                 .mpeg           = SAA7134_MPEG_DVB,
4363                 .gpiomask       = 0x0200000,
4364                 .inputs = { {
4365                         .name   = name_tv,
4366                         .vmux   = 1,
4367                         .amux   = TV,
4368                         .tv     = 1,
4369                 }, {
4370                         .name   = name_comp1,
4371                         .vmux   = 3,
4372                         .amux   = LINE1,
4373                 }, {
4374                         .name   = name_svideo,
4375                         .vmux   = 8,
4376                         .amux   = LINE1,
4377                 } },
4378                 .radio = {
4379                         .name   = name_radio,
4380                         .amux   = TV,
4381                         .gpio   = 0x0200000,
4382                 },
4383         },
4384         [SAA7134_BOARD_AVERMEDIA_CARDBUS_506] = {
4385                 .name           = "AVerMedia Cardbus TV/Radio (E506R)",
4386                 .audio_clock    = 0x187de7,
4387                 .tuner_type     = TUNER_XC2028,
4388                 .radio_type     = UNSET,
4389                 .tuner_addr     = ADDR_UNSET,
4390                 .radio_addr     = ADDR_UNSET,
4391                  .mpeg           = SAA7134_MPEG_DVB,
4392                  .inputs         = {{
4393                          .name = name_tv,
4394                          .vmux = 1,
4395                          .amux = TV,
4396                          .tv   = 1,
4397                  }, {
4398                          .name = name_comp1,
4399                          .vmux = 3,
4400                          .amux = LINE1,
4401                  }, {
4402                          .name = name_svideo,
4403                          .vmux = 8,
4404                          .amux = LINE2,
4405                  } },
4406                  .radio = {
4407                          .name = name_radio,
4408                          .amux = TV,
4409                  },
4410         },
4411         [SAA7134_BOARD_AVERMEDIA_A16D] = {
4412                 .name           = "AVerMedia Hybrid TV/Radio (A16D)",
4413                 .audio_clock    = 0x187de7,
4414                 .tuner_type     = TUNER_XC2028,
4415                 .radio_type     = UNSET,
4416                 .tuner_addr     = ADDR_UNSET,
4417                 .radio_addr     = ADDR_UNSET,
4418                 .mpeg           = SAA7134_MPEG_DVB,
4419                 .inputs         = {{
4420                         .name = name_tv,
4421                         .vmux = 1,
4422                         .amux = TV,
4423                         .tv   = 1,
4424                 }, {
4425                         .name = name_svideo,
4426                         .vmux = 8,
4427                         .amux = LINE1,
4428                 }, {
4429                         .name = name_comp,
4430                         .vmux = 0,
4431                         .amux = LINE1,
4432                 } },
4433                 .radio = {
4434                         .name = name_radio,
4435                         .amux = TV,
4436                 },
4437         },
4438         [SAA7134_BOARD_AVERMEDIA_M115] = {
4439                 .name           = "Avermedia M115",
4440                 .audio_clock    = 0x187de7,
4441                 .tuner_type     = TUNER_XC2028,
4442                 .radio_type     = UNSET,
4443                 .tuner_addr     = ADDR_UNSET,
4444                 .radio_addr     = ADDR_UNSET,
4445                 .inputs         = {{
4446                         .name = name_tv,
4447                         .vmux = 1,
4448                         .amux = TV,
4449                         .tv   = 1,
4450                 }, {
4451                         .name = name_comp1,
4452                         .vmux = 3,
4453                         .amux = LINE1,
4454                 }, {
4455                         .name = name_svideo,
4456                         .vmux = 8,
4457                         .amux = LINE2,
4458                 } },
4459         },
4460         [SAA7134_BOARD_VIDEOMATE_T750] = {
4461                 /* John Newbigin <jn@it.swin.edu.au> */
4462                 .name           = "Compro VideoMate T750",
4463                 .audio_clock    = 0x00187de7,
4464                 .tuner_type     = TUNER_XC2028,
4465                 .radio_type     = UNSET,
4466                 .tuner_addr     = ADDR_UNSET,
4467                 .radio_addr     = ADDR_UNSET,
4468                 .mpeg           = SAA7134_MPEG_DVB,
4469                 .inputs = {{
4470                         .name   = name_tv,
4471                         .vmux   = 3,
4472                         .amux   = TV,
4473                         .tv     = 1,
4474                 }, {
4475                         .name   = name_comp1,
4476                         .vmux   = 1,
4477                         .amux   = LINE2,
4478                 }, {
4479                         .name   = name_svideo,
4480                         .vmux   = 8,
4481                         .amux   = LINE2,
4482                 } },
4483                 .radio = {
4484                         .name = name_radio,
4485                         .amux = TV,
4486                 }
4487         },
4488         [SAA7134_BOARD_AVERMEDIA_A700_PRO] = {
4489                 /* Matthias Schwarzott <zzam@gentoo.org> */
4490                 .name           = "Avermedia DVB-S Pro A700",
4491                 .audio_clock    = 0x00187de7,
4492                 .tuner_type     = TUNER_ABSENT,
4493                 .radio_type     = UNSET,
4494                 .tuner_addr     = ADDR_UNSET,
4495                 .radio_addr     = ADDR_UNSET,
4496                 .mpeg           = SAA7134_MPEG_DVB,
4497                 .inputs         = { {
4498                         .name = name_comp,
4499                         .vmux = 1,
4500                         .amux = LINE1,
4501                 }, {
4502                         .name = name_svideo,
4503                         .vmux = 6,
4504                         .amux = LINE1,
4505                 } },
4506         },
4507         [SAA7134_BOARD_AVERMEDIA_A700_HYBRID] = {
4508                 /* Matthias Schwarzott <zzam@gentoo.org> */
4509                 .name           = "Avermedia DVB-S Hybrid+FM A700",
4510                 .audio_clock    = 0x00187de7,
4511                 .tuner_type     = TUNER_ABSENT, /* TUNER_XC2028 */
4512                 .radio_type     = UNSET,
4513                 .tuner_addr     = ADDR_UNSET,
4514                 .radio_addr     = ADDR_UNSET,
4515                 .mpeg           = SAA7134_MPEG_DVB,
4516                 .inputs         = { {
4517                         .name = name_comp,
4518                         .vmux = 1,
4519                         .amux = LINE1,
4520                 }, {
4521                         .name = name_svideo,
4522                         .vmux = 6,
4523                         .amux = LINE1,
4524                 } },
4525         },
4526         [SAA7134_BOARD_BEHOLD_H6] = {
4527                 /* Igor Kuznetsov <igk@igk.ru> */
4528                 .name           = "Beholder BeholdTV H6",
4529                 .audio_clock    = 0x00187de7,
4530                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
4531                 .radio_type     = UNSET,
4532                 .tuner_addr     = ADDR_UNSET,
4533                 .radio_addr     = ADDR_UNSET,
4534                 .tda9887_conf   = TDA9887_PRESENT,
4535                 .mpeg           = SAA7134_MPEG_DVB,
4536                 .inputs         = {{
4537                         .name = name_tv,
4538                         .vmux = 3,
4539                         .amux = TV,
4540                         .tv   = 1,
4541                 }, {
4542                         .name = name_comp1,
4543                         .vmux = 1,
4544                         .amux = LINE1,
4545                 }, {
4546                         .name = name_svideo,
4547                         .vmux = 8,
4548                         .amux = LINE1,
4549                 } },
4550                 .radio = {
4551                         .name = name_radio,
4552                         .amux = LINE2,
4553                 },
4554         },
4555         [SAA7134_BOARD_ASUSTeK_TIGER_3IN1] = {
4556                 .name           = "Asus Tiger 3in1",
4557                 .audio_clock    = 0x00187de7,
4558                 .tuner_type     = TUNER_PHILIPS_TDA8290,
4559                 .radio_type     = UNSET,
4560                 .tuner_addr     = ADDR_UNSET,
4561                 .radio_addr     = ADDR_UNSET,
4562                 .tuner_config   = 2,
4563                 .gpiomask       = 1 << 21,
4564                 .mpeg           = SAA7134_MPEG_DVB,
4565                 .inputs         = {{
4566                         .name = name_tv,
4567                         .vmux = 1,
4568                         .amux = TV,
4569                         .tv   = 1,
4570                 }, {
4571                         .name = name_comp,
4572                         .vmux = 0,
4573                         .amux = LINE2,
4574                 }, {
4575                         .name = name_svideo,
4576                         .vmux = 8,
4577                         .amux = LINE2,
4578                 } },
4579                 .radio = {
4580                         .name = name_radio,
4581                         .amux = TV,
4582                         .gpio = 0x0200000,
4583                 },
4584         },
4585         [SAA7134_BOARD_REAL_ANGEL_220] = {
4586                 .name           = "Zogis Real Angel 220",
4587                 .audio_clock    = 0x00187de7,
4588                 .tuner_type     = TUNER_TNF_5335MF,
4589                 .radio_type     = UNSET,
4590                 .tuner_addr     = ADDR_UNSET,
4591                 .radio_addr     = ADDR_UNSET,
4592                 .gpiomask       = 0x801a8087,
4593                 .inputs = { {
4594                         .name   = name_tv,
4595                         .vmux   = 3,
4596                         .amux   = LINE2,
4597                         .tv     = 1,
4598                         .gpio   = 0x624000,
4599                 }, {
4600                         .name   = name_comp1,
4601                         .vmux   = 1,
4602                         .amux   = LINE1,
4603                         .gpio   = 0x624000,
4604                 }, {
4605                         .name   = name_svideo,
4606                         .vmux   = 1,
4607                         .amux   = LINE1,
4608                         .gpio   = 0x624000,
4609                 } },
4610                 .radio = {
4611                         .name   = name_radio,
4612                         .amux   = LINE2,
4613                         .gpio   = 0x624001,
4614                 },
4615                 .mute = {
4616                         .name = name_mute,
4617                         .amux = TV,
4618                 },
4619         },
4620         [SAA7134_BOARD_ADS_INSTANT_HDTV_PCI] = {
4621                 .name           = "ADS Tech Instant HDTV",
4622                 .audio_clock    = 0x00187de7,
4623                 .tuner_type     = TUNER_PHILIPS_TUV1236D,
4624                 .radio_type     = UNSET,
4625                 .tuner_addr     = ADDR_UNSET,
4626                 .radio_addr     = ADDR_UNSET,
4627                 .tda9887_conf   = TDA9887_PRESENT,
4628                 .mpeg           = SAA7134_MPEG_DVB,
4629                 .inputs         = { {
4630                         .name = name_tv,
4631                         .vmux = 1,
4632                         .amux = TV,
4633                         .tv   = 1,
4634                 }, {
4635                         .name = name_comp,
4636                         .vmux = 4,
4637                         .amux = LINE1,
4638                 }, {
4639                         .name = name_svideo,
4640                         .vmux = 8,
4641                         .amux = LINE1,
4642                 } },
4643         },
4644         [SAA7134_BOARD_ASUSTeK_TIGER] = {
4645                 .name           = "Asus Tiger Rev:1.00",
4646                 .audio_clock    = 0x00187de7,
4647                 .tuner_type     = TUNER_PHILIPS_TDA8290,
4648                 .radio_type     = UNSET,
4649                 .tuner_addr     = ADDR_UNSET,
4650                 .radio_addr     = ADDR_UNSET,
4651                 .tuner_config   = 0,
4652                 .mpeg           = SAA7134_MPEG_DVB,
4653                 .gpiomask       = 0x0200000,
4654                 .inputs = { {
4655                         .name   = name_tv,
4656                         .vmux   = 1,
4657                         .amux   = TV,
4658                         .tv     = 1,
4659                 }, {
4660                         .name   = name_comp1,
4661                         .vmux   = 3,
4662                         .amux   = LINE2,
4663                 }, {
4664                         .name   = name_comp2,
4665                         .vmux   = 0,
4666                         .amux   = LINE2,
4667                 }, {
4668                         .name   = name_svideo,
4669                         .vmux   = 8,
4670                         .amux   = LINE2,
4671                 } },
4672                 .radio = {
4673                         .name   = name_radio,
4674                         .amux   = TV,
4675                         .gpio   = 0x0200000,
4676                 },
4677         },
4678         [SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG] = {
4679                 .name           = "Kworld Plus TV Analog Lite PCI",
4680                 .audio_clock    = 0x00187de7,
4681                 .tuner_type     = TUNER_YMEC_TVF_5533MF,
4682                 .radio_type     = TUNER_TEA5767,
4683                 .tuner_addr     = ADDR_UNSET,
4684                 .radio_addr     = 0x60,
4685                 .gpiomask       = 0x80000700,
4686                 .inputs = { {
4687                         .name   = name_tv,
4688                         .vmux   = 1,
4689                         .amux   = LINE2,
4690                         .tv     = 1,
4691                         .gpio   = 0x100,
4692                 }, {
4693                         .name   = name_comp1,
4694                         .vmux   = 3,
4695                         .amux   = LINE1,
4696                         .gpio   = 0x200,
4697                 }, {
4698                         .name   = name_svideo,
4699                         .vmux   = 8,
4700                         .amux   = LINE1,
4701                         .gpio   = 0x200,
4702                 } },
4703                 .radio = {
4704                         .name   = name_radio,
4705                         .vmux   = 1,
4706                         .amux   = LINE1,
4707                         .gpio   = 0x100,
4708                 },
4709                 .mute = {
4710                         .name = name_mute,
4711                         .vmux = 8,
4712                         .amux = 2,
4713                 },
4714         },
4715         [SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS] = {
4716                 .name           = "Avermedia AVerTV GO 007 FM Plus",
4717                 .audio_clock    = 0x00187de7,
4718                 .tuner_type     = TUNER_PHILIPS_TDA8290,
4719                 .radio_type     = UNSET,
4720                 .tuner_addr     = ADDR_UNSET,
4721                 .radio_addr     = ADDR_UNSET,
4722                 .gpiomask       = 0x00300003,
4723                 /* .gpiomask       = 0x8c240003, */
4724                 .inputs         = { {
4725                         .name = name_tv,
4726                         .vmux = 1,
4727                         .amux = TV,
4728                         .tv   = 1,
4729                         .gpio = 0x01,
4730                 }, {
4731                         .name = name_svideo,
4732                         .vmux = 6,
4733                         .amux = LINE1,
4734                         .gpio = 0x02,
4735                 } },
4736                 .radio = {
4737                         .name = name_radio,
4738                         .amux = TV,
4739                         .gpio = 0x00300001,
4740                 },
4741                 .mute = {
4742                         .name = name_mute,
4743                         .amux = TV,
4744                         .gpio = 0x01,
4745                 },
4746         },
4747 };
4748
4749 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
4750
4751 /* ------------------------------------------------------------------ */
4752 /* PCI ids + subsystem IDs                                            */
4753
4754 struct pci_device_id saa7134_pci_tbl[] = {
4755         {
4756                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4757                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4758                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4759                 .subdevice    = 0x2001,
4760                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
4761         },{
4762                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4763                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4764                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4765                 .subdevice    = 0x2001,
4766                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
4767         },{
4768                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4769                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4770                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4771                 .subdevice    = 0x6752,
4772                 .driver_data  = SAA7134_BOARD_EMPRESS,
4773         },{
4774                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4775                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4776                 .subvendor    = 0x1131,
4777                 .subdevice    = 0x4e85,
4778                 .driver_data  = SAA7134_BOARD_MONSTERTV,
4779         },{
4780                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4781                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4782                 .subvendor    = 0x153b,
4783                 .subdevice    = 0x1142,
4784                 .driver_data  = SAA7134_BOARD_CINERGY400,
4785         },{
4786                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4787                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4788                 .subvendor    = 0x153b,
4789                 .subdevice    = 0x1143,
4790                 .driver_data  = SAA7134_BOARD_CINERGY600,
4791         },{
4792                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4793                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4794                 .subvendor    = 0x153b,
4795                 .subdevice    = 0x1158,
4796                 .driver_data  = SAA7134_BOARD_CINERGY600_MK3,
4797         },{
4798                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4799                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4800                 .subvendor    = 0x153b,
4801                 .subdevice    = 0x1162,
4802                 .driver_data  = SAA7134_BOARD_CINERGY400_CARDBUS,
4803         },{
4804                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4805                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4806                 .subvendor    = 0x5169,
4807                 .subdevice    = 0x0138,
4808                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000_NTSC,
4809         },{
4810                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4811                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4812                 .subvendor    = 0x5168,
4813                 .subdevice    = 0x0138,
4814                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
4815         },{
4816                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4817                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4818                 .subvendor    = 0x4e42,                         /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
4819                 .subdevice    = 0x0138,
4820                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
4821         },{
4822                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4823                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4824                 .subvendor    = 0x5168,
4825                 .subdevice    = 0x0138,
4826                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
4827         },{
4828                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4829                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4830                 .subvendor    = 0x4e42,         /* Typhoon */
4831                 .subdevice    = 0x0138,         /* LifeView FlyTV Prime30 OEM */
4832                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
4833         },{
4834                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4835                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4836                 .subvendor    = 0x5168,
4837                 .subdevice    = 0x0212, /* minipci, LR212 */
4838                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
4839         },{
4840                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4841                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4842                 .subvendor    = 0x14c0,
4843                 .subdevice    = 0x1212, /* minipci, LR1212 */
4844                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
4845         },{
4846                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4847                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4848                 .subvendor    = 0x4e42,
4849                 .subdevice    = 0x0212, /* OEM minipci, LR212 */
4850                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
4851         },{
4852                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4853                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4854                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
4855                 .subdevice    = 0x0214, /* Standard PCI, LR214 Rev E and earlier (SAA7135) */
4856                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
4857         },{
4858                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4859                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4860                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
4861                 .subdevice    = 0x5214, /* Standard PCI, LR214 Rev F onwards (SAA7131) */
4862                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
4863         },{
4864                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4865                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4866                 .subvendor    = 0x1489, /* KYE */
4867                 .subdevice    = 0x0214, /* Genius VideoWonder ProTV */
4868                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
4869         },{
4870                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4871                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4872                 .subvendor    = 0x16be,
4873                 .subdevice    = 0x0003,
4874                 .driver_data  = SAA7134_BOARD_MD7134,
4875         },{
4876                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4877                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4878                 .subvendor    = 0x16be, /* CTX946 analog TV, HW mpeg, DVB-T */
4879                 .subdevice    = 0x5000, /* only analog TV and DVB-T for now */
4880                 .driver_data  = SAA7134_BOARD_MD7134,
4881         }, {
4882                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4883                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4884                 .subvendor    = 0x1048,
4885                 .subdevice    = 0x226b,
4886                 .driver_data  = SAA7134_BOARD_ELSA,
4887         },{
4888                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4889                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4890                 .subvendor    = 0x1048,
4891                 .subdevice    = 0x226a,
4892                 .driver_data  = SAA7134_BOARD_ELSA_500TV,
4893         },{
4894                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4895                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4896                 .subvendor    = 0x1048,
4897                 .subdevice    = 0x226c,
4898                 .driver_data  = SAA7134_BOARD_ELSA_700TV,
4899         },{
4900                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4901                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4902                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4903                 .subdevice    = 0x4842,
4904                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4905         },{
4906                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4907                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4908                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4909                 .subdevice    = 0x4845,
4910                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7135,
4911         },{
4912                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4913                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4914                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4915                 .subdevice    = 0x4830,
4916                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4917         },{
4918                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4919                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4920                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4921                 .subdevice    = 0x4843,
4922                 .driver_data  = SAA7134_BOARD_ASUSTEK_TVFM7133,
4923         },{
4924                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4925                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4926                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4927                 .subdevice    = 0x4840,
4928                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4929         },{
4930                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4931                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4932                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4933                 .subdevice    = 0xfe01,
4934                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
4935         },{
4936                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4937                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4938                 .subvendor    = 0x1894,
4939                 .subdevice    = 0xfe01,
4940                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
4941         },{
4942                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4943                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4944                 .subvendor    = 0x1894,
4945                 .subdevice    = 0xa006,
4946                 .driver_data  = SAA7134_BOARD_TVSTATION_DVR,
4947         },{
4948                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4949                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4950                 .subvendor    = 0x1131,
4951                 .subdevice    = 0x7133,
4952                 .driver_data  = SAA7134_BOARD_VA1000POWER,
4953         },{
4954                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4955                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4956                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4957                 .subdevice    = 0x2001,
4958                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER,
4959         },{
4960                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4961                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4962                 .subvendor    = 0x185b,
4963                 .subdevice    = 0xc100,
4964                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV,
4965         },{
4966                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4967                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4968                 .subvendor    = 0x185b,
4969                 .subdevice    = 0xc100,
4970                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
4971         },{
4972                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4973                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4974                 .subvendor    = PCI_VENDOR_ID_MATROX,
4975                 .subdevice    = 0x48d0,
4976                 .driver_data  = SAA7134_BOARD_CRONOS_PLUS,
4977         },{
4978                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4979                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4980                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4981                 .subdevice    = 0xa70b,
4982                 .driver_data  = SAA7134_BOARD_MD2819,
4983         },{
4984                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4985                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4986                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4987                 .subdevice    = 0xa7a1,
4988                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A700_PRO,
4989         }, {
4990                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4991                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4992                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4993                 .subdevice    = 0xa7a2,
4994                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A700_HYBRID,
4995         }, {
4996                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4997                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4998                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4999                 .subdevice    = 0x2115,
5000                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
5001         },{
5002                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5003                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5004                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5005                 .subdevice    = 0x2108,
5006                 .driver_data  = SAA7134_BOARD_AVERMEDIA_305,
5007         },{
5008                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5009                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5010                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5011                 .subdevice    = 0x10ff,
5012                 .driver_data  = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
5013         },{
5014                 /* AVerMedia CardBus */
5015                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5016                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5017                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5018                 .subdevice    = 0xd6ee,
5019                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
5020         },{
5021                 /* TransGear 3000TV */
5022                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5023                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5024                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5025                 .subdevice    = 0x050c,
5026                 .driver_data  = SAA7134_BOARD_TG3000TV,
5027         },{
5028                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5029                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5030                 .subvendor    = 0x11bd,
5031                 .subdevice    = 0x002b,
5032                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
5033         },{
5034                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5035                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5036                 .subvendor    = 0x11bd,
5037                 .subdevice    = 0x002d,
5038                 .driver_data  = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
5039         },{
5040                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5041                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5042                 .subvendor    = 0x1019,
5043                 .subdevice    = 0x4cb4,
5044                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP,
5045         },{
5046                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5047                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5048                 .subvendor    = 0x1019,
5049                 .subdevice    = 0x4cb5,
5050                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB5,
5051         },{
5052                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5053                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5054                 .subvendor    = 0x1019,
5055                 .subdevice    = 0x4cb6,
5056                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB6,
5057         },{
5058                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5059                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5060                 .subvendor    = 0x12ab,
5061                 .subdevice    = 0x0800,
5062                 .driver_data  = SAA7134_BOARD_UPMOST_PURPLE_TV,
5063         },{
5064                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5065                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5066                 .subvendor    = 0x153b,
5067                 .subdevice    = 0x1152,
5068                 .driver_data  = SAA7134_BOARD_CINERGY200,
5069         },{
5070                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5071                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5072                 .subvendor    = 0x185b,
5073                 .subdevice    = 0xc100,
5074                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_PVR,
5075         },{
5076                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5077                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5078                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5079                 .subdevice    = 0x9715,
5080                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
5081         },{
5082                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5083                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5084                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5085                 .subdevice    = 0xa70a,
5086                 .driver_data  = SAA7134_BOARD_AVERMEDIA_307,
5087         },{
5088                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5089                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5090                 .subvendor    = 0x185b,
5091                 .subdevice    = 0xc200,
5092                 .driver_data  = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
5093         },{
5094                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5095                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5096                 .subvendor    = 0x1540,
5097                 .subdevice    = 0x9524,
5098                 .driver_data  = SAA7134_BOARD_PROVIDEO_PV952,
5099
5100         },{
5101                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5102                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5103                 .subvendor    = 0x5168,
5104                 .subdevice    = 0x0502,                /* Cardbus version */
5105                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
5106         },{
5107                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5108                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5109                 .subvendor    = 0x5168,
5110                 .subdevice    = 0x0306,                /* PCI version */
5111                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
5112         },{
5113                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5114                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5115                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5116                 .subdevice    = 0xf31f,
5117                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
5118
5119         },{
5120                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5121                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5122                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5123                 .subdevice    = 0xf11d,
5124                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M135A,
5125         }, {
5126                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5127                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5128                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5129                 .subdevice    = 0x2004,
5130                 .driver_data  = SAA7134_BOARD_PHILIPS_TOUGH,
5131         },{
5132                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5133                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5134                 .subvendor    = 0x1421,
5135                 .subdevice    = 0x0350,         /* PCI version */
5136                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
5137         },{
5138                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5139                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5140                 .subvendor    = 0x1421,
5141                 .subdevice    = 0x0351,         /* PCI version, new revision */
5142                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
5143         },{
5144                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5145                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5146                 .subvendor    = 0x1421,
5147                 .subdevice    = 0x0370,         /* cardbus version */
5148                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
5149         },{
5150                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5151                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5152                 .subvendor    = 0x1421,
5153                 .subdevice    = 0x1370,        /* cardbus version */
5154                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
5155
5156         },{
5157                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5158                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5159                 .subvendor    = 0x4e42,         /* Typhoon */
5160                 .subdevice    = 0x0502,         /* LifeView LR502 OEM */
5161                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
5162         },{
5163                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5164                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5165                 .subvendor    = 0x1043,
5166                 .subdevice    = 0x0210,         /* mini pci NTSC version */
5167                 .driver_data  = SAA7134_BOARD_FLYTV_DIGIMATRIX,
5168         },{
5169                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5170                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5171                 .subvendor    = 0x1043,
5172                 .subdevice    = 0x0210,         /* mini pci PAL/SECAM version */
5173                 .driver_data  = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
5174
5175         },{
5176                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5177                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5178                 .subvendor    = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
5179                 .subdevice    = 0x4091,
5180                 .driver_data  = SAA7134_BOARD_BEHOLD_409FM,
5181         },{
5182                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5183                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5184                 .subvendor    = 0x5456, /* GoTView */
5185                 .subdevice    = 0x7135,
5186                 .driver_data  = SAA7134_BOARD_GOTVIEW_7135,
5187         },{
5188                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5189                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5190                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5191                 .subdevice    = 0x2004,
5192                 .driver_data  = SAA7134_BOARD_PHILIPS_EUROPA,
5193         },{
5194                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5195                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5196                 .subvendor    = 0x185b,
5197                 .subdevice    = 0xc900,
5198                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_300,
5199         },{
5200                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5201                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5202                 .subvendor    = 0x185b,
5203                 .subdevice    = 0xc901,
5204                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_200,
5205         },{
5206                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5207                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5208                 .subvendor    = 0x1435,
5209                 .subdevice    = 0x7350,
5210                 .driver_data  = SAA7134_BOARD_RTD_VFG7350,
5211         },{
5212                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5213                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5214                 .subvendor    = 0x1435,
5215                 .subdevice    = 0x7330,
5216                 .driver_data  = SAA7134_BOARD_RTD_VFG7330,
5217         },{
5218                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5219                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5220                 .subvendor    = 0x1461,
5221                 .subdevice    = 0x1044,
5222                 .driver_data  = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
5223         },{
5224                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5225                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5226                 .subvendor    = 0x1131,
5227                 .subdevice    = 0x4ee9,
5228                 .driver_data  = SAA7134_BOARD_MONSTERTV_MOBILE,
5229         },{
5230                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5231                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5232                 .subvendor    = 0x11bd,
5233                 .subdevice    = 0x002e,
5234                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_110i,
5235         },{
5236                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5237                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5238                 .subvendor    = 0x1043,
5239                 .subdevice    = 0x4862,
5240                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
5241         },{
5242                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5243                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5244                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5245                 .subdevice    = 0x2018,
5246                 .driver_data  = SAA7134_BOARD_PHILIPS_TIGER,
5247         },{
5248                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5249                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5250                 .subvendor    = 0x1462,
5251                 .subdevice    = 0x6231, /* tda8275a, ks003 IR */
5252                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
5253         },{
5254                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5255                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5256                 .subvendor    = 0x1462,
5257                 .subdevice    = 0x8624, /* tda8275, ks003 IR */
5258                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
5259         },{
5260                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5261                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5262                 .subvendor    = 0x153b,
5263                 .subdevice    = 0x1160,
5264                 .driver_data  = SAA7134_BOARD_CINERGY250PCI,
5265         },{
5266                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5267                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,  /* SAA 7131E */
5268                 .subvendor    = 0x5168,
5269                 .subdevice    = 0x0319,
5270                 .driver_data  = SAA7134_BOARD_FLYDVB_TRIO,
5271         },{
5272                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5273                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5274                 .subvendor    = 0x1461,
5275                 .subdevice    = 0x2c05,
5276                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
5277         },{
5278                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5279                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5280                 .subvendor    = 0x5168,
5281                 .subdevice    = 0x0301,
5282                 .driver_data  = SAA7134_BOARD_FLYDVBT_LR301,
5283         },{
5284                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5285                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5286                 .subvendor    = 0x0331,
5287                 .subdevice    = 0x1421,
5288                 .driver_data  = SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331,
5289         },{
5290                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5291                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5292                 .subvendor    = 0x17de,
5293                 .subdevice    = 0x7201,
5294                 .driver_data  = SAA7134_BOARD_TEVION_DVBT_220RF,
5295         },{
5296                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5297                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5298                 .subvendor    = 0x17de,
5299                 .subdevice    = 0x7250,
5300                 .driver_data  = SAA7134_BOARD_KWORLD_DVBT_210,
5301         },{
5302                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5303                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
5304                 .subvendor    = 0x17de,
5305                 .subdevice    = 0x7350,
5306                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110,
5307         },{
5308                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5309                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
5310                 .subvendor    = 0x17de,
5311                 .subdevice    = 0x7352,
5312                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110, /* ATSC 115 */
5313         },{
5314                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5315                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5316                 .subvendor    = 0x1461,
5317                 .subdevice    = 0x7360,
5318                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B,
5319         },{
5320                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5321                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5322                 .subvendor    = 0x1461,
5323                 .subdevice    = 0x6360,
5324                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B1,
5325         },{
5326                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5327                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5328                 .subvendor    = 0x16be,
5329                 .subdevice    = 0x0005,
5330                 .driver_data  = SAA7134_BOARD_MD7134_BRIDGE_2,
5331         },{
5332                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5333                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5334                 .subvendor    = 0x5168,
5335                 .subdevice    = 0x0300,
5336                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
5337         },{
5338                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5339                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5340                 .subvendor    = 0x4e42,
5341                 .subdevice    = 0x0300,/* LR300 */
5342                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
5343         },{
5344                 .vendor = PCI_VENDOR_ID_PHILIPS,
5345                 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
5346                 .subvendor = 0x1489,
5347                 .subdevice = 0x0301,
5348                 .driver_data = SAA7134_BOARD_FLYDVBT_LR301,
5349         },{
5350                 .vendor = PCI_VENDOR_ID_PHILIPS,
5351                 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
5352                 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
5353                 .subdevice = 0x0304,
5354                 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
5355         },{
5356                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5357                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5358                 .subvendor    = 0x5168,
5359                 .subdevice    = 0x3306,
5360                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
5361         },{
5362                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5363                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5364                 .subvendor    = 0x5168,
5365                 .subdevice    = 0x3502,  /* whats the difference to 0x3306 ?*/
5366                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
5367         },{
5368                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5369                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5370                 .subvendor    = 0x5168,
5371                 .subdevice    = 0x3307, /* FlyDVB-T Hybrid Mini PCI */
5372                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
5373         }, {
5374                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5375                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5376                 .subvendor    = 0x16be,
5377                 .subdevice    = 0x0007,
5378                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
5379         },{
5380                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5381                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5382                 .subvendor    = 0x16be,
5383                 .subdevice    = 0x0008,
5384                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
5385         },{
5386                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5387                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5388                 .subvendor    = 0x16be,
5389                 .subdevice    = 0x000d, /* triple CTX948_V1.1.1 */
5390                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
5391         }, {
5392                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5393                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5394                 .subvendor    = 0x1461,
5395                 .subdevice    = 0x2c05,
5396                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
5397         },{
5398                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5399                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5400                 .subvendor    = 0x1489,
5401                 .subdevice    = 0x0502,                /* Cardbus version */
5402                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
5403         },{
5404                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5405                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5406                 .subvendor    = 0x0919, /* Philips Proteus PRO 2309 */
5407                 .subdevice    = 0x2003,
5408                 .driver_data  = SAA7134_BOARD_PROTEUS_2309,
5409         },{
5410                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5411                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5412                 .subvendor    = 0x1461,
5413                 .subdevice    = 0x2c00,
5414                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16AR,
5415         },{
5416                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5417                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5418                 .subvendor    = 0x1043,
5419                 .subdevice    = 0x4860,
5420                 .driver_data  = SAA7134_BOARD_ASUS_EUROPA2_HYBRID,
5421         },{
5422                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5423                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5424                 .subvendor    = 0x11bd,
5425                 .subdevice    = 0x002f,
5426                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_310i,
5427         },{
5428                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5429                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5430                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5431                 .subdevice    = 0x9715,
5432                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
5433         },{
5434                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5435                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5436                 .subvendor    = 0x1043,
5437                 .subdevice    = 0x4876,
5438                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA,
5439         },{
5440                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5441                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5442                 .subvendor    = 0x0070,
5443                 .subdevice    = 0x6700,
5444                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5445         },{
5446                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5447                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5448                 .subvendor    = 0x0070,
5449                 .subdevice    = 0x6701,
5450                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5451         },{
5452                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5453                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5454                 .subvendor    = 0x0070,
5455                 .subdevice    = 0x6702,
5456                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5457         },{
5458                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5459                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5460                 .subvendor    = 0x0070,
5461                 .subdevice    = 0x6703,
5462                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5463         },{
5464                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5465                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5466                 .subvendor    = 0x0070,
5467                 .subdevice    = 0x6704,
5468                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5469         },{
5470                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5471                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5472                 .subvendor    = 0x0070,
5473                 .subdevice    = 0x6705,
5474                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
5475         },{
5476                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5477                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5478                 .subvendor    = 0x0070,
5479                 .subdevice    = 0x6706,
5480                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1120,
5481         },{
5482                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5483                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5484                 .subvendor    = 0x0070,
5485                 .subdevice    = 0x6707,
5486                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110R3,
5487         },{
5488                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5489                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5490                 .subvendor    = 0x0070,
5491                 .subdevice    = 0x6708,
5492                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1120,
5493         },{
5494                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5495                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5496                 .subvendor    = 0x0070,
5497                 .subdevice    = 0x6709,
5498                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110R3,
5499         },{
5500                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5501                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5502                 .subvendor    = 0x0070,
5503                 .subdevice    = 0x670a,
5504                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110R3,
5505         },{
5506                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5507                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5508                 .subvendor    = 0x153b,
5509                 .subdevice    = 0x1172,
5510                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCMCIA,
5511         },{
5512                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5513                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5514                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5515                 .subdevice    = 0x2342,
5516                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5517         },{
5518                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5519                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5520                 .subvendor    = 0x1131,
5521                 .subdevice    = 0x2341,
5522                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5523         },{
5524                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5525                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5526                 .subvendor    = 0x3016,
5527                 .subdevice    = 0x2344,
5528                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5529         },{
5530                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5531                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5532                 .subvendor    = 0x1131,
5533                 .subdevice    = 0x230f,
5534                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV_FM,
5535         },{
5536                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5537                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5538                 .subvendor    = 0x1a7f,
5539                 .subdevice    = 0x2008,
5540                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV_FM53,
5541         }, {
5542                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5543                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5544                 .subvendor    = 0x153b,
5545                 .subdevice    = 0x1175,
5546                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCI,
5547         },{
5548                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5549                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5550                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5551                 .subdevice    = 0xf31e,
5552                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M102,
5553         },{
5554                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5555                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5556                 .subvendor    = 0x4E42,         /* MSI */
5557                 .subdevice    = 0x0306,         /* TV@nywhere DUO */
5558                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
5559         },{
5560                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5561                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5562                 .subvendor    = 0x1043,
5563                 .subdevice    = 0x4871,
5564                 .driver_data  = SAA7134_BOARD_ASUS_P7131_4871,
5565         },{
5566                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5567                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5568                 .subvendor    = 0x1043,
5569                 .subdevice    = 0x4857,         /* REV:1.00 */
5570                 .driver_data  = SAA7134_BOARD_ASUSTeK_TIGER,
5571         },{
5572                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5573                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5574                 .subvendor    = 0x0919, /* SinoVideo PCI 2309 Proteus (7134) */
5575                 .subdevice    = 0x2003, /* OEM cardbus */
5576                 .driver_data  = SAA7134_BOARD_SABRENT_TV_PCB05,
5577         },{
5578                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5579                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5580                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5581                 .subdevice    = 0x2304,
5582                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER3,
5583         },{
5584                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5585                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5586                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5587                 .subdevice    = 0xf01d, /* AVerTV DVB-T Super 007 */
5588                 .driver_data  = SAA7134_BOARD_AVERMEDIA_SUPER_007,
5589         },{
5590                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5591                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5592                 .subvendor    = 0x0000,
5593                 .subdevice    = 0x4016,
5594                 .driver_data  = SAA7134_BOARD_BEHOLD_401,
5595         },{
5596                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5597                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5598                 .subvendor    = 0x0000,
5599                 .subdevice    = 0x4036,
5600                 .driver_data  = SAA7134_BOARD_BEHOLD_403,
5601         },{
5602                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5603                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5604                 .subvendor    = 0x0000,
5605                 .subdevice    = 0x4037,
5606                 .driver_data  = SAA7134_BOARD_BEHOLD_403FM,
5607         },{
5608                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5609                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5610                 .subvendor    = 0x0000,
5611                 .subdevice    = 0x4050,
5612                 .driver_data  = SAA7134_BOARD_BEHOLD_405,
5613         },{
5614                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5615                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5616                 .subvendor    = 0x0000,
5617                 .subdevice    = 0x4051,
5618                 .driver_data  = SAA7134_BOARD_BEHOLD_405FM,
5619         },{
5620                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5621                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5622                 .subvendor    = 0x0000,
5623                 .subdevice    = 0x4070,
5624                 .driver_data  = SAA7134_BOARD_BEHOLD_407,
5625         },{
5626                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5627                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5628                 .subvendor    = 0x0000,
5629                 .subdevice    = 0x4071,
5630                 .driver_data  = SAA7134_BOARD_BEHOLD_407FM,
5631         },{
5632                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5633                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5634                 .subvendor    = 0x0000,
5635                 .subdevice    = 0x4090,
5636                 .driver_data  = SAA7134_BOARD_BEHOLD_409,
5637         },{
5638                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5639                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5640                 .subvendor    = 0x0000,
5641                 .subdevice    = 0x5051,
5642                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5643         },{
5644                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5645                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5646                 .subvendor    = 0x0000,
5647                 .subdevice    = 0x505B,
5648                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5649         },{
5650                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5651                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5652                 .subvendor    = 0x5ace,
5653                 .subdevice    = 0x5050,
5654                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5655         },{
5656                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5657                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5658                 .subvendor    = 0x0000,
5659                 .subdevice    = 0x5071,
5660                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5661         },{
5662                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5663                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5664                 .subvendor    = 0x0000,
5665                 .subdevice    = 0x507B,
5666                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5667         },{
5668                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5669                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5670                 .subvendor    = 0x5ace,
5671                 .subdevice    = 0x5070,
5672                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5673         },{
5674                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5675                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5676                 .subvendor    = 0x5ace,
5677                 .subdevice    = 0x5090,
5678                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5679         },{
5680                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5681                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5682                 .subvendor    = 0x0000,
5683                 .subdevice    = 0x5201,
5684                 .driver_data  = SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM,
5685         },{
5686                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5687                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5688                 .subvendor    = 0x5ace,
5689                 .subdevice    = 0x6070,
5690                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5691         },{
5692                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5693                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5694                 .subvendor    = 0x5ace,
5695                 .subdevice    = 0x6071,
5696                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5697         },{
5698                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5699                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5700                 .subvendor    = 0x5ace,
5701                 .subdevice    = 0x6072,
5702                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5703         },{
5704                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5705                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5706                 .subvendor    = 0x5ace,
5707                 .subdevice    = 0x6073,
5708                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5709         },{
5710                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5711                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5712                 .subvendor    = 0x5ace,
5713                 .subdevice    = 0x6090,
5714                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5715         },{
5716                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5717                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5718                 .subvendor    = 0x5ace,
5719                 .subdevice    = 0x6091,
5720                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5721         },{
5722                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5723                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5724                 .subvendor    = 0x5ace,
5725                 .subdevice    = 0x6092,
5726                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5727         },{
5728                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5729                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5730                 .subvendor    = 0x5ace,
5731                 .subdevice    = 0x6093,
5732                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5733         },{
5734                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5735                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5736                 .subvendor    = 0x5ace,
5737                 .subdevice    = 0x6190,
5738                 .driver_data  = SAA7134_BOARD_BEHOLD_M6,
5739         },{
5740                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5741                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5742                 .subvendor    = 0x5ace,
5743                 .subdevice    = 0x6193,
5744                 .driver_data  = SAA7134_BOARD_BEHOLD_M6_EXTRA,
5745         }, {
5746                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5747                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5748                 .subvendor    = 0x5ace,
5749                 .subdevice    = 0x6191,
5750                 .driver_data  = SAA7134_BOARD_BEHOLD_M63,
5751         },{
5752                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5753                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5754                 .subvendor    = 0x4e42,
5755                 .subdevice    = 0x3502,
5756                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
5757         }, {
5758                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5759                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5760                 .subvendor    = 0x1822, /*Twinhan Technology Co. Ltd*/
5761                 .subdevice    = 0x0022,
5762                 .driver_data  = SAA7134_BOARD_TWINHAN_DTV_DVB_3056,
5763         }, {
5764                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5765                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5766                 .subvendor    = 0x16be,
5767                 .subdevice    = 0x0010, /* Medion version CTX953_V.1.4.3 */
5768                 .driver_data  = SAA7134_BOARD_CREATIX_CTX953,
5769         }, {
5770                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5771                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5772                 .subvendor    = 0x1462, /* MSI */
5773                 .subdevice    = 0x8625, /* TV@nywhere A/D v1.1 */
5774                 .driver_data  = SAA7134_BOARD_MSI_TVANYWHERE_AD11,
5775         },{
5776                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5777                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5778                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5779                 .subdevice    = 0xf436,
5780                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS_506,
5781         }, {
5782                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5783                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5784                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5785                 .subdevice    = 0xf936,
5786                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16D,
5787         }, {
5788                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5789                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5790                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5791                 .subdevice    = 0xa836,
5792                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M115,
5793         }, {
5794                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5795                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5796                 .subvendor    = 0x185b,
5797                 .subdevice    = 0xc900,
5798                 .driver_data  = SAA7134_BOARD_VIDEOMATE_T750,
5799         }, {
5800                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5801                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
5802                 .subvendor    = 0x1421,
5803                 .subdevice    = 0x0380,
5804                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_HDTV_PCI,
5805         }, {
5806                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5807                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5808                 .subvendor    = 0x5169,
5809                 .subdevice    = 0x1502,
5810                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
5811         }, {
5812                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5813                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5814                 .subvendor    = 0x5ace,
5815                 .subdevice    = 0x6290,
5816                 .driver_data  = SAA7134_BOARD_BEHOLD_H6,
5817         }, {
5818                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5819                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5820                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5821                 .subdevice    = 0xf636,
5822                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M103,
5823         }, {
5824                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5825                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5826                 .subvendor    = 0x1043,
5827                 .subdevice    = 0x4878, /* REV:1.02G */
5828                 .driver_data  = SAA7134_BOARD_ASUSTeK_TIGER_3IN1,
5829         }, {
5830                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5831                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5832                 .subvendor    = 0x17de,
5833                 .subdevice    = 0x7128,
5834                 .driver_data  = SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG,
5835         }, {
5836                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5837                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5838                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5839                 .subdevice    = 0xf31d,
5840                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS,
5841
5842         }, {
5843                 /* --- boards without eeprom + subsystem ID --- */
5844                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5845                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5846                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5847                 .subdevice    = 0,
5848                 .driver_data  = SAA7134_BOARD_NOAUTO,
5849         },{
5850                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5851                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5852                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5853                 .subdevice    = 0,
5854                 .driver_data  = SAA7134_BOARD_NOAUTO,
5855         },{
5856                 /* --- default catch --- */
5857                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5858                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5859                 .subvendor    = PCI_ANY_ID,
5860                 .subdevice    = PCI_ANY_ID,
5861                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5862         },{
5863                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5864                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5865                 .subvendor    = PCI_ANY_ID,
5866                 .subdevice    = PCI_ANY_ID,
5867                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5868         },{
5869                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5870                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5871                 .subvendor    = PCI_ANY_ID,
5872                 .subdevice    = PCI_ANY_ID,
5873                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5874         },{
5875                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5876                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7135,
5877                 .subvendor    = PCI_ANY_ID,
5878                 .subdevice    = PCI_ANY_ID,
5879                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5880         },{
5881                 /* --- end of list --- */
5882         }
5883 };
5884 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
5885
5886 /* ----------------------------------------------------------- */
5887 /* flyvideo tweaks                                             */
5888
5889
5890 static void board_flyvideo(struct saa7134_dev *dev)
5891 {
5892         printk("%s: there are different flyvideo cards with different tuners\n"
5893                "%s: out there, you might have to use the tuner=<nr> insmod\n"
5894                "%s: option to override the default value.\n",
5895                dev->name, dev->name, dev->name);
5896 }
5897
5898 static int saa7134_xc2028_callback(struct saa7134_dev *dev,
5899                                    int command, int arg)
5900 {
5901         switch (command) {
5902         case XC2028_TUNER_RESET:
5903                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00000000);
5904                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
5905                 switch (dev->board) {
5906                 case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
5907                 case SAA7134_BOARD_AVERMEDIA_M103:
5908                         saa7134_set_gpio(dev, 23, 0);
5909                         msleep(10);
5910                         saa7134_set_gpio(dev, 23, 1);
5911                 break;
5912                 case SAA7134_BOARD_AVERMEDIA_A16D:
5913                         saa7134_set_gpio(dev, 21, 0);
5914                         msleep(10);
5915                         saa7134_set_gpio(dev, 21, 1);
5916                 break;
5917                 }
5918         return 0;
5919         }
5920         return -EINVAL;
5921 }
5922
5923
5924 static int saa7134_tda8290_827x_callback(struct saa7134_dev *dev,
5925                                          int command, int arg)
5926 {
5927         u8 sync_control;
5928
5929         switch (command) {
5930         case 0: /* switch LNA gain through GPIO 22*/
5931                 saa7134_set_gpio(dev, 22, arg) ;
5932                 break;
5933         case 1: /* vsync output at GPIO22. 50 / 60Hz */
5934                 saa_andorb(SAA7134_VIDEO_PORT_CTRL3, 0x80, 0x80);
5935                 saa_andorb(SAA7134_VIDEO_PORT_CTRL6, 0x0f, 0x03);
5936                 if (arg == 1)
5937                         sync_control = 11;
5938                 else
5939                         sync_control = 17;
5940                 saa_writeb(SAA7134_VGATE_START, sync_control);
5941                 saa_writeb(SAA7134_VGATE_STOP, sync_control + 1);
5942                 saa_andorb(SAA7134_MISC_VGATE_MSB, 0x03, 0x00);
5943                 break;
5944         default:
5945                 return -EINVAL;
5946         }
5947
5948         return 0;
5949 }
5950
5951 static inline int saa7134_tda18271_hvr11x0_toggle_agc(struct saa7134_dev *dev,
5952                                                       enum tda18271_mode mode)
5953 {
5954         /* toggle AGC switch through GPIO 26 */
5955         switch (mode) {
5956         case TDA18271_ANALOG:
5957                 saa7134_set_gpio(dev, 26, 0);
5958                 break;
5959         case TDA18271_DIGITAL:
5960                 saa7134_set_gpio(dev, 26, 1);
5961                 break;
5962         default:
5963                 return -EINVAL;
5964         }
5965         return 0;
5966 }
5967
5968 static int saa7134_tda8290_18271_callback(struct saa7134_dev *dev,
5969                                           int command, int arg)
5970 {
5971         int ret = 0;
5972
5973         switch (command) {
5974         case TDA18271_CALLBACK_CMD_AGC_ENABLE: /* 0 */
5975                 switch (dev->board) {
5976                 case SAA7134_BOARD_HAUPPAUGE_HVR1120:
5977                 case SAA7134_BOARD_HAUPPAUGE_HVR1110R3:
5978                         ret = saa7134_tda18271_hvr11x0_toggle_agc(dev, arg);
5979                         break;
5980                 default:
5981                         break;
5982                 }
5983                 break;
5984         default:
5985                 ret = -EINVAL;
5986                 break;
5987         }
5988         return ret;
5989 }
5990
5991 static int saa7134_tda8290_callback(struct saa7134_dev *dev,
5992                                     int command, int arg)
5993 {
5994         int ret;
5995
5996         switch (dev->board) {
5997         case SAA7134_BOARD_HAUPPAUGE_HVR1120:
5998         case SAA7134_BOARD_HAUPPAUGE_HVR1110R3:
5999                 /* tda8290 + tda18271 */
6000                 ret = saa7134_tda8290_18271_callback(dev, command, arg);
6001                 break;
6002         default:
6003                 /* tda8290 + tda827x */
6004                 ret = saa7134_tda8290_827x_callback(dev, command, arg);
6005                 break;
6006         }
6007         return ret;
6008 }
6009
6010 int saa7134_tuner_callback(void *priv, int component, int command, int arg)
6011 {
6012         struct saa7134_dev *dev = priv;
6013         if (dev != NULL) {
6014                 switch (dev->tuner_type) {
6015                 case TUNER_PHILIPS_TDA8290:
6016                         return saa7134_tda8290_callback(dev, command, arg);
6017                 case TUNER_XC2028:
6018                         return saa7134_xc2028_callback(dev, command, arg);
6019                 }
6020         } else {
6021                 printk(KERN_ERR "saa7134: Error - device struct undefined.\n");
6022                 return -EINVAL;
6023         }
6024         return -EINVAL;
6025 }
6026 EXPORT_SYMBOL(saa7134_tuner_callback);
6027
6028 /* ----------------------------------------------------------- */
6029
6030 static void hauppauge_eeprom(struct saa7134_dev *dev, u8 *eeprom_data)
6031 {
6032         struct tveeprom tv;
6033
6034         tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data);
6035
6036         /* Make sure we support the board model */
6037         switch (tv.model) {
6038         case 67019: /* WinTV-HVR1110 (Retail, IR Blaster, hybrid, FM, SVid/Comp, 3.5mm audio in) */
6039         case 67109: /* WinTV-HVR1000 (Retail, IR Receive, analog, no FM, SVid/Comp, 3.5mm audio in) */
6040         case 67201: /* WinTV-HVR1120 (Retail, IR Receive, hybrid, FM, SVid/Comp, 3.5mm audio in) */
6041         case 67301: /* WinTV-HVR1000 (Retail, IR Receive, analog, no FM, SVid/Comp, 3.5mm audio in) */
6042         case 67209: /* WinTV-HVR1110 (Retail, IR Receive, hybrid, FM, SVid/Comp, 3.5mm audio in) */
6043         case 67559: /* WinTV-HVR1110 (OEM, no IR, hybrid, FM, SVid/Comp, RCA aud) */
6044         case 67569: /* WinTV-HVR1110 (OEM, no IR, hybrid, FM) */
6045         case 67579: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM) */
6046         case 67589: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM, SVid/Comp, RCA aud) */
6047         case 67599: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM, SVid/Comp, RCA aud) */
6048         case 67651: /* WinTV-HVR1120 (OEM, no IR, hybrid, FM, SVid/Comp, RCA aud) */
6049         case 67659: /* WinTV-HVR1110 (OEM, no IR, hybrid, FM, SVid/Comp, RCA aud) */
6050                 break;
6051         default:
6052                 printk(KERN_WARNING "%s: warning: "
6053                        "unknown hauppauge model #%d\n", dev->name, tv.model);
6054                 break;
6055         }
6056
6057         printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
6058                dev->name, tv.model);
6059 }
6060
6061 /* ----------------------------------------------------------- */
6062
6063 int saa7134_board_init1(struct saa7134_dev *dev)
6064 {
6065         /* Always print gpio, often manufacturers encode tuner type and other info. */
6066         saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
6067         dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
6068         printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
6069
6070         switch (dev->board) {
6071         case SAA7134_BOARD_FLYVIDEO2000:
6072         case SAA7134_BOARD_FLYVIDEO3000:
6073         case SAA7134_BOARD_FLYVIDEO3000_NTSC:
6074                 dev->has_remote = SAA7134_REMOTE_GPIO;
6075                 board_flyvideo(dev);
6076                 break;
6077         case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
6078         case SAA7134_BOARD_FLYTVPLATINUM_FM:
6079         case SAA7134_BOARD_CINERGY400:
6080         case SAA7134_BOARD_CINERGY600:
6081         case SAA7134_BOARD_CINERGY600_MK3:
6082         case SAA7134_BOARD_ECS_TVP3XP:
6083         case SAA7134_BOARD_ECS_TVP3XP_4CB5:
6084         case SAA7134_BOARD_ECS_TVP3XP_4CB6:
6085         case SAA7134_BOARD_MD2819:
6086         case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
6087         case SAA7134_BOARD_KWORLD_XPERT:
6088         case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
6089         case SAA7134_BOARD_AVERMEDIA_305:
6090         case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
6091         case SAA7134_BOARD_AVERMEDIA_307:
6092         case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
6093         case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
6094         case SAA7134_BOARD_AVERMEDIA_777:
6095         case SAA7134_BOARD_AVERMEDIA_M135A:
6096 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
6097         case SAA7134_BOARD_VIDEOMATE_TV_PVR:
6098         case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
6099         case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
6100         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
6101         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
6102         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
6103         case SAA7134_BOARD_VIDEOMATE_T750:
6104         case SAA7134_BOARD_MANLI_MTV001:
6105         case SAA7134_BOARD_MANLI_MTV002:
6106         case SAA7134_BOARD_BEHOLD_409FM:
6107         case SAA7134_BOARD_AVACSSMARTTV:
6108         case SAA7134_BOARD_GOTVIEW_7135:
6109         case SAA7134_BOARD_KWORLD_TERMINATOR:
6110         case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
6111         case SAA7134_BOARD_FLYDVBT_LR301:
6112         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
6113         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
6114        case SAA7134_BOARD_ASUSTeK_P7131_ANALOG:
6115         case SAA7134_BOARD_FLYDVBTDUO:
6116         case SAA7134_BOARD_PROTEUS_2309:
6117         case SAA7134_BOARD_AVERMEDIA_A16AR:
6118         case SAA7134_BOARD_ENCORE_ENLTV:
6119         case SAA7134_BOARD_ENCORE_ENLTV_FM:
6120         case SAA7134_BOARD_ENCORE_ENLTV_FM53:
6121         case SAA7134_BOARD_10MOONSTVMASTER3:
6122         case SAA7134_BOARD_BEHOLD_401:
6123         case SAA7134_BOARD_BEHOLD_403:
6124         case SAA7134_BOARD_BEHOLD_403FM:
6125         case SAA7134_BOARD_BEHOLD_405:
6126         case SAA7134_BOARD_BEHOLD_405FM:
6127         case SAA7134_BOARD_BEHOLD_407:
6128         case SAA7134_BOARD_BEHOLD_407FM:
6129         case SAA7134_BOARD_BEHOLD_409:
6130         case SAA7134_BOARD_BEHOLD_505FM:
6131         case SAA7134_BOARD_BEHOLD_507_9FM:
6132         case SAA7134_BOARD_GENIUS_TVGO_A11MCE:
6133         case SAA7134_BOARD_REAL_ANGEL_220:
6134         case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG:
6135         case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS:
6136                 dev->has_remote = SAA7134_REMOTE_GPIO;
6137                 break;
6138         case SAA7134_BOARD_FLYDVBS_LR300:
6139                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x80);
6140                 saa_writeb(SAA7134_GPIO_GPSTATUS2, 0x40);
6141                 dev->has_remote = SAA7134_REMOTE_GPIO;
6142                 break;
6143         case SAA7134_BOARD_MD5044:
6144                 printk("%s: seems there are two different versions of the MD5044\n"
6145                        "%s: (with the same ID) out there.  If sound doesn't work for\n"
6146                        "%s: you try the audio_clock_override=0x200000 insmod option.\n",
6147                        dev->name,dev->name,dev->name);
6148                 break;
6149         case SAA7134_BOARD_CINERGY400_CARDBUS:
6150                 /* power-up tuner chip */
6151                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
6152                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
6153                 break;
6154         case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
6155                 /* this turns the remote control chip off to work around a bug in it */
6156                 saa_writeb(SAA7134_GPIO_GPMODE1, 0x80);
6157                 saa_writeb(SAA7134_GPIO_GPSTATUS1, 0x80);
6158                 break;
6159         case SAA7134_BOARD_MONSTERTV_MOBILE:
6160                 /* power-up tuner chip */
6161                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
6162                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
6163                 break;
6164         case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
6165                 /* turn the fan on */
6166                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
6167                 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
6168                 break;
6169         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
6170         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
6171                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x08000000, 0x08000000);
6172                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08000000, 0x00000000);
6173                 break;
6174         case SAA7134_BOARD_AVERMEDIA_CARDBUS:
6175         case SAA7134_BOARD_AVERMEDIA_M115:
6176                 /* power-down tuner chip */
6177                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0);
6178                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0);
6179                 msleep(10);
6180                 /* power-up tuner chip */
6181                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0xffffffff);
6182                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
6183                 msleep(10);
6184                 break;
6185         case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
6186                 saa7134_set_gpio(dev, 23, 0);
6187                 msleep(10);
6188                 saa7134_set_gpio(dev, 23, 1);
6189                 dev->has_remote = SAA7134_REMOTE_I2C;
6190                 break;
6191         case SAA7134_BOARD_AVERMEDIA_M103:
6192                 saa7134_set_gpio(dev, 23, 0);
6193                 msleep(10);
6194                 saa7134_set_gpio(dev, 23, 1);
6195                 break;
6196         case SAA7134_BOARD_AVERMEDIA_A16D:
6197                 saa7134_set_gpio(dev, 21, 0);
6198                 msleep(10);
6199                 saa7134_set_gpio(dev, 21, 1);
6200                 msleep(1);
6201                 dev->has_remote = SAA7134_REMOTE_GPIO;
6202                 break;
6203         case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
6204                 /* power-down tuner chip */
6205                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x000A8004, 0x000A8004);
6206                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x000A8004, 0);
6207                 msleep(10);
6208                 /* power-up tuner chip */
6209                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x000A8004, 0x000A8004);
6210                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x000A8004, 0x000A8004);
6211                 msleep(10);
6212                 /* remote via GPIO */
6213                 dev->has_remote = SAA7134_REMOTE_GPIO;
6214                 break;
6215         case SAA7134_BOARD_RTD_VFG7350:
6216
6217                 /*
6218                  * Make sure Production Test Register at offset 0x1D1 is cleared
6219                  * to take chip out of test mode.  Clearing bit 4 (TST_EN_AOUT)
6220                  * prevents pin 105 from remaining low; keeping pin 105 low
6221                  * continually resets the SAA6752 chip.
6222                  */
6223
6224                 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
6225                 break;
6226         case SAA7134_BOARD_HAUPPAUGE_HVR1120:
6227         case SAA7134_BOARD_HAUPPAUGE_HVR1110R3:
6228                 /* GPIO 26 high for digital, low for analog */
6229                 saa7134_set_gpio(dev, 26, 0);
6230                 msleep(1);
6231
6232                 saa7134_set_gpio(dev, 22, 0);
6233                 msleep(10);
6234                 saa7134_set_gpio(dev, 22, 1);
6235                 break;
6236         /* i2c remotes */
6237         case SAA7134_BOARD_PINNACLE_PCTV_110i:
6238         case SAA7134_BOARD_PINNACLE_PCTV_310i:
6239         case SAA7134_BOARD_UPMOST_PURPLE_TV:
6240         case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS:
6241         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
6242         case SAA7134_BOARD_BEHOLD_607_9FM:
6243         case SAA7134_BOARD_BEHOLD_M6:
6244         case SAA7134_BOARD_BEHOLD_M63:
6245         case SAA7134_BOARD_BEHOLD_M6_EXTRA:
6246         case SAA7134_BOARD_BEHOLD_H6:
6247                 dev->has_remote = SAA7134_REMOTE_I2C;
6248                 break;
6249         case SAA7134_BOARD_AVERMEDIA_A169_B:
6250                 printk("%s: %s: dual saa713x broadcast decoders\n"
6251                        "%s: Sorry, none of the inputs to this chip are supported yet.\n"
6252                        "%s: Dual decoder functionality is disabled for now, use the other chip.\n",
6253                        dev->name,card(dev).name,dev->name,dev->name);
6254                 break;
6255         case SAA7134_BOARD_AVERMEDIA_M102:
6256                 /* enable tuner */
6257                dev->has_remote = SAA7134_REMOTE_GPIO;
6258                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8c040007, 0x8c040007);
6259                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
6260                 break;
6261         case SAA7134_BOARD_AVERMEDIA_A700_HYBRID:
6262                 printk("%s: %s: hybrid analog/dvb card\n"
6263                        "%s: Sorry, of the analog inputs, only analog s-video and composite "
6264                        "are supported for now.\n",
6265                         dev->name, card(dev).name, dev->name);
6266         case SAA7134_BOARD_AVERMEDIA_A700_PRO:
6267                 /* write windows gpio values */
6268                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x80040100, 0x80040100);
6269                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x80040100, 0x00040100);
6270                 break;
6271         }
6272         return 0;
6273 }
6274
6275 static void saa7134_tuner_setup(struct saa7134_dev *dev)
6276 {
6277         struct tuner_setup tun_setup;
6278         unsigned int mode_mask = T_RADIO     |
6279                                  T_ANALOG_TV |
6280                                  T_DIGITAL_TV;
6281
6282         memset(&tun_setup, 0, sizeof(tun_setup));
6283         tun_setup.tuner_callback = saa7134_tuner_callback;
6284
6285         if (saa7134_boards[dev->board].radio_type != UNSET) {
6286                 tun_setup.type = saa7134_boards[dev->board].radio_type;
6287                 tun_setup.addr = saa7134_boards[dev->board].radio_addr;
6288
6289                 tun_setup.mode_mask = T_RADIO;
6290
6291                 saa_call_all(dev, tuner, s_type_addr, &tun_setup);
6292                 mode_mask &= ~T_RADIO;
6293         }
6294
6295         if ((dev->tuner_type != TUNER_ABSENT) && (dev->tuner_type != UNSET)) {
6296                 tun_setup.type = dev->tuner_type;
6297                 tun_setup.addr = dev->tuner_addr;
6298                 tun_setup.config = saa7134_boards[dev->board].tuner_config;
6299                 tun_setup.tuner_callback = saa7134_tuner_callback;
6300
6301                 tun_setup.mode_mask = mode_mask;
6302
6303                 saa_call_all(dev, tuner, s_type_addr, &tun_setup);
6304         }
6305
6306         if (dev->tda9887_conf) {
6307                 struct v4l2_priv_tun_config tda9887_cfg;
6308
6309                 tda9887_cfg.tuner = TUNER_TDA9887;
6310                 tda9887_cfg.priv = &dev->tda9887_conf;
6311
6312                 saa_call_all(dev, tuner, s_config, &tda9887_cfg);
6313         }
6314
6315         if (dev->tuner_type == TUNER_XC2028) {
6316                 struct v4l2_priv_tun_config  xc2028_cfg;
6317                 struct xc2028_ctrl           ctl;
6318
6319                 memset(&xc2028_cfg, 0, sizeof(xc2028_cfg));
6320                 memset(&ctl, 0, sizeof(ctl));
6321
6322                 ctl.fname   = XC2028_DEFAULT_FIRMWARE;
6323                 ctl.max_len = 64;
6324
6325                 switch (dev->board) {
6326                 case SAA7134_BOARD_AVERMEDIA_A16D:
6327                 case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
6328                 case SAA7134_BOARD_AVERMEDIA_M103:
6329                         ctl.demod = XC3028_FE_ZARLINK456;
6330                         break;
6331                 default:
6332                         ctl.demod = XC3028_FE_OREN538;
6333                         ctl.mts = 1;
6334                 }
6335
6336                 xc2028_cfg.tuner = TUNER_XC2028;
6337                 xc2028_cfg.priv  = &ctl;
6338
6339                 saa_call_all(dev, tuner, s_config, &xc2028_cfg);
6340         }
6341 }
6342
6343 /* stuff which needs working i2c */
6344 int saa7134_board_init2(struct saa7134_dev *dev)
6345 {
6346         unsigned char buf;
6347         int board;
6348
6349         /* Put here the code that enables the chips that are needed
6350            for analog mode and doesn't depend on the tuner attachment.
6351            It is also a good idea to get tuner type from eeprom, etc before
6352            initializing tuner, since we can avoid loading tuner driver
6353            on devices that has TUNER_ABSENT
6354          */
6355         switch (dev->board) {
6356         case SAA7134_BOARD_BMK_MPEX_NOTUNER:
6357         case SAA7134_BOARD_BMK_MPEX_TUNER:
6358                 /* Checks if the device has a tuner at 0x60 addr
6359                    If the device doesn't have a tuner, TUNER_ABSENT
6360                    will be used at tuner_type, avoiding loading tuner
6361                    without needing it
6362                  */
6363                 dev->i2c_client.addr = 0x60;
6364                 board = (i2c_master_recv(&dev->i2c_client, &buf, 0) < 0)
6365                         ? SAA7134_BOARD_BMK_MPEX_NOTUNER
6366                         : SAA7134_BOARD_BMK_MPEX_TUNER;
6367                 if (board == dev->board)
6368                         break;
6369                 dev->board = board;
6370                 printk("%s: board type fixup: %s\n", dev->name,
6371                 saa7134_boards[dev->board].name);
6372                 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
6373
6374                 break;
6375         case SAA7134_BOARD_MD7134:
6376         {
6377                 u8 subaddr;
6378                 u8 data[3];
6379                 int ret, tuner_t;
6380                 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
6381                                         {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
6382
6383                 subaddr= 0x14;
6384                 tuner_t = 0;
6385
6386                 /* Retrieve device data from eeprom, checking for the
6387                    proper tuner_type.
6388                  */
6389                 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
6390                 if (ret != 2) {
6391                         printk(KERN_ERR "EEPROM read failure\n");
6392                 } else if ((data[0] != 0) && (data[0] != 0xff)) {
6393                         /* old config structure */
6394                         subaddr = data[0] + 2;
6395                         msg[1].len = 2;
6396                         i2c_transfer(&dev->i2c_adap, msg, 2);
6397                         tuner_t = (data[0] << 8) + data[1];
6398                         switch (tuner_t){
6399                         case 0x0103:
6400                                 dev->tuner_type = TUNER_PHILIPS_PAL;
6401                                 break;
6402                         case 0x010C:
6403                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
6404                                 break;
6405                         default:
6406                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
6407                         }
6408                 } else if ((data[1] != 0) && (data[1] != 0xff)) {
6409                         /* new config structure */
6410                         subaddr = data[1] + 1;
6411                         msg[1].len = 1;
6412                         i2c_transfer(&dev->i2c_adap, msg, 2);
6413                         subaddr = data[0] + 1;
6414                         msg[1].len = 2;
6415                         i2c_transfer(&dev->i2c_adap, msg, 2);
6416                         tuner_t = (data[1] << 8) + data[0];
6417                         switch (tuner_t) {
6418                         case 0x0005:
6419                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
6420                                 break;
6421                         case 0x001d:
6422                                 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
6423                                         printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
6424                                 break;
6425                         default:
6426                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
6427                         }
6428                 } else {
6429                         printk(KERN_ERR "%s unexpected config structure\n", dev->name);
6430                 }
6431
6432                 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
6433                 break;
6434         }
6435         case SAA7134_BOARD_PHILIPS_EUROPA:
6436                 if (dev->autodetected && (dev->eedata[0x41] == 0x1c)) {
6437                         /* Reconfigure board as Snake reference design */
6438                         dev->board = SAA7134_BOARD_PHILIPS_SNAKE;
6439                         dev->tuner_type = saa7134_boards[dev->board].tuner_type;
6440                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
6441                                 dev->name, saa7134_boards[dev->board].name);
6442                         break;
6443                 }
6444                 /* break intentionally omitted */
6445         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
6446         case SAA7134_BOARD_ASUS_EUROPA2_HYBRID:
6447         {
6448
6449                 /* The Philips EUROPA based hybrid boards have the tuner
6450                    connected through the channel decoder. We have to make it
6451                    transparent to find it
6452                  */
6453                 u8 data[] = { 0x07, 0x02};
6454                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
6455                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6456
6457                 break;
6458         }
6459         case SAA7134_BOARD_PHILIPS_TIGER:
6460         case SAA7134_BOARD_PHILIPS_TIGER_S:
6461         {
6462                 u8 data[] = { 0x3c, 0x33, 0x60};
6463                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
6464                 if (dev->autodetected && (dev->eedata[0x49] == 0x50)) {
6465                         dev->board = SAA7134_BOARD_PHILIPS_TIGER_S;
6466                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
6467                                 dev->name, saa7134_boards[dev->board].name);
6468                 }
6469                 if (dev->board == SAA7134_BOARD_PHILIPS_TIGER_S) {
6470                         dev->tuner_type = TUNER_PHILIPS_TDA8290;
6471
6472                         data[2] = 0x68;
6473                         i2c_transfer(&dev->i2c_adap, &msg, 1);
6474                         break;
6475                 }
6476                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6477                 break;
6478         }
6479         case SAA7134_BOARD_ASUSTeK_TVFM7135:
6480         /* The card below is detected as card=53, but is different */
6481                if (dev->autodetected && (dev->eedata[0x27] == 0x03)) {
6482                        dev->board = SAA7134_BOARD_ASUSTeK_P7131_ANALOG;
6483                        printk(KERN_INFO "%s: P7131 analog only, using "
6484                                                        "entry of %s\n",
6485                        dev->name, saa7134_boards[dev->board].name);
6486                }
6487                break;
6488         case SAA7134_BOARD_HAUPPAUGE_HVR1120:
6489         case SAA7134_BOARD_HAUPPAUGE_HVR1110R3:
6490                 hauppauge_eeprom(dev, dev->eedata+0x80);
6491                 break;
6492         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
6493                 hauppauge_eeprom(dev, dev->eedata+0x80);
6494                 /* break intentionally omitted */
6495         case SAA7134_BOARD_PINNACLE_PCTV_310i:
6496         case SAA7134_BOARD_KWORLD_DVBT_210:
6497         case SAA7134_BOARD_TEVION_DVBT_220RF:
6498         case SAA7134_BOARD_ASUSTeK_TIGER:
6499         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
6500         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
6501         case SAA7134_BOARD_MEDION_MD8800_QUADRO:
6502         case SAA7134_BOARD_AVERMEDIA_SUPER_007:
6503         case SAA7134_BOARD_TWINHAN_DTV_DVB_3056:
6504         case SAA7134_BOARD_CREATIX_CTX953:
6505         {
6506                 /* this is a hybrid board, initialize to analog mode
6507                  * and configure firmware eeprom address
6508                  */
6509                 u8 data[] = { 0x3c, 0x33, 0x60};
6510                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
6511                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6512                 break;
6513         }
6514         case SAA7134_BOARD_ASUSTeK_TIGER_3IN1:
6515         {
6516                 u8 data[] = { 0x3c, 0x33, 0x60};
6517                 struct i2c_msg msg = {.addr = 0x0b, .flags = 0, .buf = data,
6518                                                         .len = sizeof(data)};
6519                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6520                 break;
6521         }
6522         case SAA7134_BOARD_FLYDVB_TRIO:
6523         {
6524                 u8 data[] = { 0x3c, 0x33, 0x62};
6525                 struct i2c_msg msg = {.addr=0x09, .flags=0, .buf=data, .len = sizeof(data)};
6526                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6527                 break;
6528         }
6529         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
6530         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
6531         {
6532                 /* initialize analog mode  */
6533                 u8 data[] = { 0x3c, 0x33, 0x6a};
6534                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
6535                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6536                 break;
6537         }
6538         case SAA7134_BOARD_CINERGY_HT_PCMCIA:
6539         case SAA7134_BOARD_CINERGY_HT_PCI:
6540         {
6541                 /* initialize analog mode */
6542                 u8 data[] = { 0x3c, 0x33, 0x68};
6543                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
6544                 i2c_transfer(&dev->i2c_adap, &msg, 1);
6545                 break;
6546         }
6547         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
6548         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
6549                 /* The T200 and the T200A share the same pci id.  Consequently,
6550                  * we are going to query eeprom to try to find out which one we
6551                  * are actually looking at. */
6552
6553                 /* Don't do this if the board was specifically selected with an
6554                  * insmod option or if we have the default configuration T200*/
6555                 if (!dev->autodetected || (dev->eedata[0x41] == 0xd0))
6556                         break;
6557                 if (dev->eedata[0x41] == 0x02) {
6558                         /* Reconfigure board  as T200A */
6559                         dev->board = SAA7134_BOARD_VIDEOMATE_DVBT_200A;
6560                         dev->tuner_type   = saa7134_boards[dev->board].tuner_type;
6561                         dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
6562                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
6563                                 dev->name, saa7134_boards[dev->board].name);
6564                 } else {
6565                         printk(KERN_WARNING "%s: Unexpected tuner type info: %x in eeprom\n",
6566                                 dev->name, dev->eedata[0x41]);
6567                         break;
6568                 }
6569                 break;
6570         case SAA7134_BOARD_ADS_INSTANT_HDTV_PCI:
6571         case SAA7134_BOARD_KWORLD_ATSC110:
6572         {
6573                 struct i2c_msg msg = { .addr = 0x0a, .flags = 0 };
6574                 int i;
6575                 static u8 buffer[][2] = {
6576                         { 0x10, 0x12 },
6577                         { 0x13, 0x04 },
6578                         { 0x16, 0x00 },
6579                         { 0x14, 0x04 },
6580                         { 0x17, 0x00 },
6581                 };
6582
6583                 for (i = 0; i < ARRAY_SIZE(buffer); i++) {
6584                         msg.buf = &buffer[i][0];
6585                         msg.len = ARRAY_SIZE(buffer[0]);
6586                         if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1)
6587                                 printk(KERN_WARNING
6588                                        "%s: Unable to enable tuner(%i).\n",
6589                                        dev->name, i);
6590                 }
6591                 break;
6592         }
6593         } /* switch() */
6594
6595         /* initialize tuner */
6596         if (TUNER_ABSENT != dev->tuner_type) {
6597                 int has_demod = (dev->tda9887_conf & TDA9887_PRESENT);
6598
6599                 /* Note: radio tuner address is always filled in,
6600                    so we do not need to probe for a radio tuner device. */
6601                 if (dev->radio_type != UNSET)
6602                         v4l2_i2c_new_subdev(&dev->i2c_adap,
6603                                 "tuner", "tuner", dev->radio_addr);
6604                 if (has_demod)
6605                         v4l2_i2c_new_probed_subdev(&dev->i2c_adap, "tuner",
6606                                 "tuner", v4l2_i2c_tuner_addrs(ADDRS_DEMOD));
6607                 if (dev->tuner_addr == ADDR_UNSET) {
6608                         enum v4l2_i2c_tuner_type type =
6609                                 has_demod ? ADDRS_TV_WITH_DEMOD : ADDRS_TV;
6610
6611                         v4l2_i2c_new_probed_subdev(&dev->i2c_adap, "tuner",
6612                                 "tuner", v4l2_i2c_tuner_addrs(type));
6613                 } else {
6614                         v4l2_i2c_new_subdev(&dev->i2c_adap,
6615                                 "tuner", "tuner", dev->tuner_addr);
6616                 }
6617         }
6618
6619         saa7134_tuner_setup(dev);
6620
6621         switch (dev->board) {
6622         case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
6623         {
6624                 struct v4l2_priv_tun_config tea5767_cfg;
6625                 struct tea5767_ctrl ctl;
6626
6627                 dev->i2c_client.addr = 0xC0;
6628                 /* set TEA5767(analog FM) defines */
6629                 memset(&ctl, 0, sizeof(ctl));
6630                 ctl.xtal_freq = TEA5767_HIGH_LO_13MHz;
6631                 tea5767_cfg.tuner = TUNER_TEA5767;
6632                 tea5767_cfg.priv  = &ctl;
6633                 saa_call_all(dev, tuner, s_config, &tea5767_cfg);
6634                 break;
6635         }
6636         } /* switch() */
6637
6638         return 0;
6639 }