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