Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
[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                  /*
4118                     TODO:
4119                  .mpeg           = SAA7134_MPEG_DVB,
4120                  */
4121
4122                  .inputs         = {{
4123                          .name = name_tv,
4124                          .vmux = 1,
4125                          .amux = TV,
4126                          .tv   = 1,
4127                  }, {
4128                          .name = name_comp1,
4129                          .vmux = 3,
4130                          .amux = LINE2,
4131                  }, {
4132                          .name = name_svideo,
4133                          .vmux = 8,
4134                          .amux = LINE1,
4135                  } },
4136                  .radio = {
4137                          .name = name_radio,
4138                          .amux = TV,
4139                  },
4140         },
4141         [SAA7134_BOARD_AVERMEDIA_A16D] = {
4142                 .name           = "AVerMedia Hybrid TV/Radio (A16D)",
4143                 .audio_clock    = 0x187de7,
4144                 .tuner_type     = TUNER_XC2028,
4145                 .radio_type     = UNSET,
4146                 .tuner_addr     = ADDR_UNSET,
4147                 .radio_addr     = ADDR_UNSET,
4148                 .inputs         = {{
4149                         .name = name_tv,
4150                         .vmux = 1,
4151                         .amux = TV,
4152                         .tv   = 1,
4153                 }, {
4154                         .name = name_svideo,
4155                         .vmux = 8,
4156                         .amux = LINE1,
4157                 } },
4158                 .radio = {
4159                         .name = name_radio,
4160                         .amux = LINE1,
4161                 },
4162         },
4163         [SAA7134_BOARD_AVERMEDIA_M115] = {
4164                 .name           = "Avermedia M115",
4165                 .audio_clock    = 0x187de7,
4166                 .tuner_type     = TUNER_XC2028,
4167                 .radio_type     = UNSET,
4168                 .tuner_addr     = ADDR_UNSET,
4169                 .radio_addr     = ADDR_UNSET,
4170                 .inputs         = {{
4171                         .name = name_tv,
4172                         .vmux = 1,
4173                         .amux = TV,
4174                         .tv   = 1,
4175                 }, {
4176                         .name = name_comp1,
4177                         .vmux = 3,
4178                         .amux = LINE1,
4179                 }, {
4180                         .name = name_svideo,
4181                         .vmux = 8,
4182                         .amux = LINE2,
4183                 } },
4184         },
4185         [SAA7134_BOARD_VIDEOMATE_T750] = {
4186                 /* John Newbigin <jn@it.swin.edu.au> */
4187                 .name           = "Compro VideoMate T750",
4188                 .audio_clock    = 0x00187de7,
4189                 .tuner_type     = TUNER_XC2028,
4190                 .radio_type     = UNSET,
4191                 .tuner_addr     = ADDR_UNSET,
4192                 .radio_addr     = ADDR_UNSET,
4193                 .mpeg           = SAA7134_MPEG_DVB,
4194                 .inputs = {{
4195                         .name   = name_tv,
4196                         .vmux   = 3,
4197                         .amux   = TV,
4198                         .tv     = 1,
4199                 }, {
4200                         .name   = name_comp1,
4201                         .vmux   = 1,
4202                         .amux   = LINE2,
4203                 }, {
4204                         .name   = name_svideo,
4205                         .vmux   = 8,
4206                         .amux   = LINE2,
4207                 } },
4208                 .radio = {
4209                         .name = name_radio,
4210                         .amux = TV,
4211                 }
4212         },
4213         [SAA7134_BOARD_AVERMEDIA_A700_PRO] = {
4214                 /* Matthias Schwarzott <zzam@gentoo.org> */
4215                 .name           = "Avermedia DVB-S Pro A700",
4216                 .audio_clock    = 0x00187de7,
4217                 .tuner_type     = TUNER_ABSENT,
4218                 .radio_type     = UNSET,
4219                 .tuner_addr     = ADDR_UNSET,
4220                 .radio_addr     = ADDR_UNSET,
4221                 /* no DVB support for now */
4222                 /* .mpeg           = SAA7134_MPEG_DVB, */
4223                 .inputs         = { {
4224                         .name = name_comp,
4225                         .vmux = 1,
4226                         .amux = LINE1,
4227                 }, {
4228                         .name = name_svideo,
4229                         .vmux = 6,
4230                         .amux = LINE1,
4231                 } },
4232         },
4233         [SAA7134_BOARD_AVERMEDIA_A700_HYBRID] = {
4234                 /* Matthias Schwarzott <zzam@gentoo.org> */
4235                 .name           = "Avermedia DVB-S Hybrid+FM A700",
4236                 .audio_clock    = 0x00187de7,
4237                 .tuner_type     = TUNER_ABSENT, /* TUNER_XC2028 */
4238                 .radio_type     = UNSET,
4239                 .tuner_addr     = ADDR_UNSET,
4240                 .radio_addr     = ADDR_UNSET,
4241                 /* no DVB support for now */
4242                 /* .mpeg           = SAA7134_MPEG_DVB, */
4243                 .inputs         = { {
4244                         .name = name_comp,
4245                         .vmux = 1,
4246                         .amux = LINE1,
4247                 }, {
4248                         .name = name_svideo,
4249                         .vmux = 6,
4250                         .amux = LINE1,
4251                 } },
4252         },
4253         [SAA7134_BOARD_BEHOLD_H6] = {
4254                 /* Igor Kuznetsov <igk@igk.ru> */
4255                 .name           = "Beholder BeholdTV H6",
4256                 .audio_clock    = 0x00187de7,
4257                 .tuner_type     = TUNER_PHILIPS_FMD1216ME_MK3,
4258                 .radio_type     = UNSET,
4259                 .tuner_addr     = ADDR_UNSET,
4260                 .radio_addr     = ADDR_UNSET,
4261                 .tda9887_conf   = TDA9887_PRESENT,
4262                 .inputs         = {{
4263                         .name = name_tv,
4264                         .vmux = 3,
4265                         .amux = TV,
4266                         .tv   = 1,
4267                 }, {
4268                         .name = name_comp1,
4269                         .vmux = 1,
4270                         .amux = LINE1,
4271                 }, {
4272                         .name = name_svideo,
4273                         .vmux = 8,
4274                         .amux = LINE1,
4275                 } },
4276                 .radio = {
4277                         .name = name_radio,
4278                         .amux = LINE2,
4279                 },
4280                 /* no DVB support for now */
4281                 /* .mpeg           = SAA7134_MPEG_DVB, */
4282         },
4283 };
4284
4285 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
4286
4287 /* ------------------------------------------------------------------ */
4288 /* PCI ids + subsystem IDs                                            */
4289
4290 struct pci_device_id saa7134_pci_tbl[] = {
4291         {
4292                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4293                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4294                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4295                 .subdevice    = 0x2001,
4296                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
4297         },{
4298                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4299                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4300                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4301                 .subdevice    = 0x2001,
4302                 .driver_data  = SAA7134_BOARD_PROTEUS_PRO,
4303         },{
4304                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4305                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4306                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4307                 .subdevice    = 0x6752,
4308                 .driver_data  = SAA7134_BOARD_EMPRESS,
4309         },{
4310                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4311                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4312                 .subvendor    = 0x1131,
4313                 .subdevice    = 0x4e85,
4314                 .driver_data  = SAA7134_BOARD_MONSTERTV,
4315         },{
4316                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4317                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4318                 .subvendor    = 0x153b,
4319                 .subdevice    = 0x1142,
4320                 .driver_data  = SAA7134_BOARD_CINERGY400,
4321         },{
4322                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4323                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4324                 .subvendor    = 0x153b,
4325                 .subdevice    = 0x1143,
4326                 .driver_data  = SAA7134_BOARD_CINERGY600,
4327         },{
4328                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4329                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4330                 .subvendor    = 0x153b,
4331                 .subdevice    = 0x1158,
4332                 .driver_data  = SAA7134_BOARD_CINERGY600_MK3,
4333         },{
4334                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4335                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4336                 .subvendor    = 0x153b,
4337                 .subdevice    = 0x1162,
4338                 .driver_data  = SAA7134_BOARD_CINERGY400_CARDBUS,
4339         },{
4340                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4341                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4342                 .subvendor    = 0x5169,
4343                 .subdevice    = 0x0138,
4344                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000_NTSC,
4345         },{
4346                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4347                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4348                 .subvendor    = 0x5168,
4349                 .subdevice    = 0x0138,
4350                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
4351         },{
4352                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4353                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4354                 .subvendor    = 0x4e42,                         /* "Typhoon PCI Capture TV Card" Art.No. 50673 */
4355                 .subdevice    = 0x0138,
4356                 .driver_data  = SAA7134_BOARD_FLYVIDEO3000,
4357         },{
4358                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4359                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4360                 .subvendor    = 0x5168,
4361                 .subdevice    = 0x0138,
4362                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
4363         },{
4364                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4365                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4366                 .subvendor    = 0x4e42,         /* Typhoon */
4367                 .subdevice    = 0x0138,         /* LifeView FlyTV Prime30 OEM */
4368                 .driver_data  = SAA7134_BOARD_FLYVIDEO2000,
4369         },{
4370                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4371                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4372                 .subvendor    = 0x5168,
4373                 .subdevice    = 0x0212, /* minipci, LR212 */
4374                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
4375         },{
4376                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4377                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4378                 .subvendor    = 0x14c0,
4379                 .subdevice    = 0x1212, /* minipci, LR1212 */
4380                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI2,
4381         },{
4382                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4383                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4384                 .subvendor    = 0x4e42,
4385                 .subdevice    = 0x0212, /* OEM minipci, LR212 */
4386                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_MINI,
4387         },{
4388                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4389                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4390                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
4391                 .subdevice    = 0x0214, /* Standard PCI, LR214 Rev E and earlier (SAA7135) */
4392                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
4393         },{
4394                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4395                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4396                 .subvendor    = 0x5168, /* Animation Technologies (LifeView) */
4397                 .subdevice    = 0x5214, /* Standard PCI, LR214 Rev F onwards (SAA7131) */
4398                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM,
4399         },{
4400                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4401                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4402                 .subvendor    = 0x1489, /* KYE */
4403                 .subdevice    = 0x0214, /* Genius VideoWonder ProTV */
4404                 .driver_data  = SAA7134_BOARD_FLYTVPLATINUM_FM, /* is an LR214WF actually */
4405         },{
4406                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4407                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4408                 .subvendor    = 0x16be,
4409                 .subdevice    = 0x0003,
4410                 .driver_data  = SAA7134_BOARD_MD7134,
4411         },{
4412                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4413                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4414                 .subvendor    = 0x1048,
4415                 .subdevice    = 0x226b,
4416                 .driver_data  = SAA7134_BOARD_ELSA,
4417         },{
4418                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4419                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4420                 .subvendor    = 0x1048,
4421                 .subdevice    = 0x226a,
4422                 .driver_data  = SAA7134_BOARD_ELSA_500TV,
4423         },{
4424                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4425                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4426                 .subvendor    = 0x1048,
4427                 .subdevice    = 0x226c,
4428                 .driver_data  = SAA7134_BOARD_ELSA_700TV,
4429         },{
4430                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4431                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4432                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4433                 .subdevice    = 0x4842,
4434                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4435         },{
4436                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4437                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4438                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4439                 .subdevice    = 0x4845,
4440                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7135,
4441         },{
4442                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4443                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4444                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4445                 .subdevice    = 0x4830,
4446                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4447         },{
4448                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4449                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4450                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4451                 .subdevice    = 0x4843,
4452                 .driver_data  = SAA7134_BOARD_ASUSTEK_TVFM7133,
4453         },{
4454                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4455                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4456                 .subvendor    = PCI_VENDOR_ID_ASUSTEK,
4457                 .subdevice    = 0x4840,
4458                 .driver_data  = SAA7134_BOARD_ASUSTeK_TVFM7134,
4459         },{
4460                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4461                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4462                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4463                 .subdevice    = 0xfe01,
4464                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
4465         },{
4466                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4467                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4468                 .subvendor    = 0x1894,
4469                 .subdevice    = 0xfe01,
4470                 .driver_data  = SAA7134_BOARD_TVSTATION_RDS,
4471         },{
4472                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4473                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4474                 .subvendor    = 0x1894,
4475                 .subdevice    = 0xa006,
4476                 .driver_data  = SAA7134_BOARD_TVSTATION_DVR,
4477         },{
4478                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4479                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4480                 .subvendor    = 0x1131,
4481                 .subdevice    = 0x7133,
4482                 .driver_data  = SAA7134_BOARD_VA1000POWER,
4483         },{
4484                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4485                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4486                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4487                 .subdevice    = 0x2001,
4488                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER,
4489         },{
4490                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4491                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4492                 .subvendor    = 0x185b,
4493                 .subdevice    = 0xc100,
4494                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV,
4495         },{
4496                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4497                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4498                 .subvendor    = 0x185b,
4499                 .subdevice    = 0xc100,
4500                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUS,
4501         },{
4502                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4503                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4504                 .subvendor    = PCI_VENDOR_ID_MATROX,
4505                 .subdevice    = 0x48d0,
4506                 .driver_data  = SAA7134_BOARD_CRONOS_PLUS,
4507         },{
4508                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4509                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4510                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4511                 .subdevice    = 0xa70b,
4512                 .driver_data  = SAA7134_BOARD_MD2819,
4513         },{
4514                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4515                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4516                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4517                 .subdevice    = 0xa7a1,
4518                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A700_PRO,
4519         }, {
4520                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4521                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4522                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4523                 .subdevice    = 0xa7a2,
4524                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A700_HYBRID,
4525         }, {
4526                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4527                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4528                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4529                 .subdevice    = 0x2115,
4530                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_305,
4531         },{
4532                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4533                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4534                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4535                 .subdevice    = 0x2108,
4536                 .driver_data  = SAA7134_BOARD_AVERMEDIA_305,
4537         },{
4538                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4539                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4540                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4541                 .subdevice    = 0x10ff,
4542                 .driver_data  = SAA7134_BOARD_AVERMEDIA_DVD_EZMAKER,
4543         },{
4544                 /* AVerMedia CardBus */
4545                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4546                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4547                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4548                 .subdevice    = 0xd6ee,
4549                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
4550         },{
4551                 /* TransGear 3000TV */
4552                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4553                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4554                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4555                 .subdevice    = 0x050c,
4556                 .driver_data  = SAA7134_BOARD_TG3000TV,
4557         },{
4558                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4559                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4560                 .subvendor    = 0x11bd,
4561                 .subdevice    = 0x002b,
4562                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_STEREO,
4563         },{
4564                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4565                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4566                 .subvendor    = 0x11bd,
4567                 .subdevice    = 0x002d,
4568                 .driver_data  = SAA7134_BOARD_PINNACLE_300I_DVBT_PAL,
4569         },{
4570                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4571                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4572                 .subvendor    = 0x1019,
4573                 .subdevice    = 0x4cb4,
4574                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP,
4575         },{
4576                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4577                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4578                 .subvendor    = 0x1019,
4579                 .subdevice    = 0x4cb5,
4580                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB5,
4581         },{
4582                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4583                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4584                 .subvendor    = 0x1019,
4585                 .subdevice    = 0x4cb6,
4586                 .driver_data  = SAA7134_BOARD_ECS_TVP3XP_4CB6,
4587         },{
4588                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4589                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4590                 .subvendor    = 0x12ab,
4591                 .subdevice    = 0x0800,
4592                 .driver_data  = SAA7134_BOARD_UPMOST_PURPLE_TV,
4593         },{
4594                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4595                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4596                 .subvendor    = 0x153b,
4597                 .subdevice    = 0x1152,
4598                 .driver_data  = SAA7134_BOARD_CINERGY200,
4599         },{
4600                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4601                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4602                 .subvendor    = 0x185b,
4603                 .subdevice    = 0xc100,
4604                 .driver_data  = SAA7134_BOARD_VIDEOMATE_TV_PVR,
4605         },{
4606                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4607                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4608                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4609                 .subdevice    = 0x9715,
4610                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_307,
4611         },{
4612                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4613                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4614                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4615                 .subdevice    = 0xa70a,
4616                 .driver_data  = SAA7134_BOARD_AVERMEDIA_307,
4617         },{
4618                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4619                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4620                 .subvendor    = 0x185b,
4621                 .subdevice    = 0xc200,
4622                 .driver_data  = SAA7134_BOARD_VIDEOMATE_GOLD_PLUS,
4623         },{
4624                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4625                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4626                 .subvendor    = 0x1540,
4627                 .subdevice    = 0x9524,
4628                 .driver_data  = SAA7134_BOARD_PROVIDEO_PV952,
4629
4630         },{
4631                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4632                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4633                 .subvendor    = 0x5168,
4634                 .subdevice    = 0x0502,                /* Cardbus version */
4635                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
4636         },{
4637                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4638                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4639                 .subvendor    = 0x5168,
4640                 .subdevice    = 0x0306,                /* PCI version */
4641                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
4642         },{
4643                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4644                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4645                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4646                 .subdevice    = 0xf31f,
4647                 .driver_data  = SAA7134_BOARD_AVERMEDIA_GO_007_FM,
4648
4649         },{
4650                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4651                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4652                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4653                 .subdevice    = 0x2004,
4654                 .driver_data  = SAA7134_BOARD_PHILIPS_TOUGH,
4655         },{
4656                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4657                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4658                 .subvendor    = 0x1421,
4659                 .subdevice    = 0x0350,         /* PCI version */
4660                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
4661         },{
4662                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4663                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4664                 .subvendor    = 0x1421,
4665                 .subdevice    = 0x0351,         /* PCI version, new revision */
4666                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
4667         },{
4668                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4669                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4670                 .subvendor    = 0x1421,
4671                 .subdevice    = 0x0370,         /* cardbus version */
4672                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
4673         },{
4674                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4675                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4676                 .subvendor    = 0x1421,
4677                 .subdevice    = 0x1370,        /* cardbus version */
4678                 .driver_data  = SAA7134_BOARD_ADS_INSTANT_TV,
4679
4680         },{
4681                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4682                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4683                 .subvendor    = 0x4e42,         /* Typhoon */
4684                 .subdevice    = 0x0502,         /* LifeView LR502 OEM */
4685                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
4686         },{
4687                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4688                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4689                 .subvendor    = 0x1043,
4690                 .subdevice    = 0x0210,         /* mini pci NTSC version */
4691                 .driver_data  = SAA7134_BOARD_FLYTV_DIGIMATRIX,
4692         },{
4693                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4694                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4695                 .subvendor    = 0x1043,
4696                 .subdevice    = 0x0210,         /* mini pci PAL/SECAM version */
4697                 .driver_data  = SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV,
4698
4699         },{
4700                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4701                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4702                 .subvendor    = 0x0000, /* It shouldn't break anything, since subdevice id seems unique */
4703                 .subdevice    = 0x4091,
4704                 .driver_data  = SAA7134_BOARD_BEHOLD_409FM,
4705         },{
4706                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4707                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4708                 .subvendor    = 0x5456, /* GoTView */
4709                 .subdevice    = 0x7135,
4710                 .driver_data  = SAA7134_BOARD_GOTVIEW_7135,
4711         },{
4712                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4713                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4714                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4715                 .subdevice    = 0x2004,
4716                 .driver_data  = SAA7134_BOARD_PHILIPS_EUROPA,
4717         },{
4718                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4719                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4720                 .subvendor    = 0x185b,
4721                 .subdevice    = 0xc900,
4722                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_300,
4723         },{
4724                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4725                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4726                 .subvendor    = 0x185b,
4727                 .subdevice    = 0xc901,
4728                 .driver_data  = SAA7134_BOARD_VIDEOMATE_DVBT_200,
4729         },{
4730                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4731                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4732                 .subvendor    = 0x1435,
4733                 .subdevice    = 0x7350,
4734                 .driver_data  = SAA7134_BOARD_RTD_VFG7350,
4735         },{
4736                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4737                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4738                 .subvendor    = 0x1435,
4739                 .subdevice    = 0x7330,
4740                 .driver_data  = SAA7134_BOARD_RTD_VFG7330,
4741         },{
4742                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4743                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4744                 .subvendor    = 0x1461,
4745                 .subdevice    = 0x1044,
4746                 .driver_data  = SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180,
4747         },{
4748                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4749                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4750                 .subvendor    = 0x1131,
4751                 .subdevice    = 0x4ee9,
4752                 .driver_data  = SAA7134_BOARD_MONSTERTV_MOBILE,
4753         },{
4754                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4755                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4756                 .subvendor    = 0x11bd,
4757                 .subdevice    = 0x002e,
4758                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_110i,
4759         },{
4760                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4761                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4762                 .subvendor    = 0x1043,
4763                 .subdevice    = 0x4862,
4764                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
4765         },{
4766                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4767                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4768                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
4769                 .subdevice    = 0x2018,
4770                 .driver_data  = SAA7134_BOARD_PHILIPS_TIGER,
4771         },{
4772                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4773                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4774                 .subvendor    = 0x1462,
4775                 .subdevice    = 0x6231, /* tda8275a, ks003 IR */
4776                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
4777         },{
4778                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4779                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4780                 .subvendor    = 0x1462,
4781                 .subdevice    = 0x8624, /* tda8275, ks003 IR */
4782                 .driver_data  = SAA7134_BOARD_MSI_TVATANYWHERE_PLUS,
4783         },{
4784                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4785                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4786                 .subvendor    = 0x153b,
4787                 .subdevice    = 0x1160,
4788                 .driver_data  = SAA7134_BOARD_CINERGY250PCI,
4789         },{
4790                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4791                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,  /* SAA 7131E */
4792                 .subvendor    = 0x5168,
4793                 .subdevice    = 0x0319,
4794                 .driver_data  = SAA7134_BOARD_FLYDVB_TRIO,
4795         },{
4796                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4797                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4798                 .subvendor    = 0x1461,
4799                 .subdevice    = 0x2c05,
4800                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
4801         },{
4802                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4803                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4804                 .subvendor    = 0x5168,
4805                 .subdevice    = 0x0301,
4806                 .driver_data  = SAA7134_BOARD_FLYDVBT_LR301,
4807         },{
4808                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4809                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4810                 .subvendor    = 0x0331,
4811                 .subdevice    = 0x1421,
4812                 .driver_data  = SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331,
4813         },{
4814                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4815                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4816                 .subvendor    = 0x17de,
4817                 .subdevice    = 0x7201,
4818                 .driver_data  = SAA7134_BOARD_TEVION_DVBT_220RF,
4819         },{
4820                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4821                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4822                 .subvendor    = 0x17de,
4823                 .subdevice    = 0x7250,
4824                 .driver_data  = SAA7134_BOARD_KWORLD_DVBT_210,
4825         },{
4826                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4827                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
4828                 .subvendor    = 0x17de,
4829                 .subdevice    = 0x7350,
4830                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110,
4831         },{
4832                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4833                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133, /* SAA7135HL */
4834                 .subvendor    = 0x17de,
4835                 .subdevice    = 0x7352,
4836                 .driver_data  = SAA7134_BOARD_KWORLD_ATSC110, /* ATSC 115 */
4837         },{
4838                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4839                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4840                 .subvendor    = 0x1461,
4841                 .subdevice    = 0x7360,
4842                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B,
4843         },{
4844                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4845                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4846                 .subvendor    = 0x1461,
4847                 .subdevice    = 0x6360,
4848                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A169_B1,
4849         },{
4850                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4851                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4852                 .subvendor    = 0x16be,
4853                 .subdevice    = 0x0005,
4854                 .driver_data  = SAA7134_BOARD_MD7134_BRIDGE_2,
4855         },{
4856                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4857                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4858                 .subvendor    = 0x5168,
4859                 .subdevice    = 0x0300,
4860                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
4861         },{
4862                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4863                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4864                 .subvendor    = 0x4e42,
4865                 .subdevice    = 0x0300,/* LR300 */
4866                 .driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
4867         },{
4868                 .vendor = PCI_VENDOR_ID_PHILIPS,
4869                 .device = PCI_DEVICE_ID_PHILIPS_SAA7134,
4870                 .subvendor = 0x1489,
4871                 .subdevice = 0x0301,
4872                 .driver_data = SAA7134_BOARD_FLYDVBT_LR301,
4873         },{
4874                 .vendor = PCI_VENDOR_ID_PHILIPS,
4875                 .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
4876                 .subvendor = 0x5168, /* Animation Technologies (LifeView) */
4877                 .subdevice = 0x0304,
4878                 .driver_data = SAA7134_BOARD_FLYTVPLATINUM_FM,
4879         },{
4880                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4881                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4882                 .subvendor    = 0x5168,
4883                 .subdevice    = 0x3306,
4884                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
4885         },{
4886                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4887                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4888                 .subvendor    = 0x5168,
4889                 .subdevice    = 0x3502,  /* whats the difference to 0x3306 ?*/
4890                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
4891         },{
4892                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4893                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4894                 .subvendor    = 0x5168,
4895                 .subdevice    = 0x3307, /* FlyDVB-T Hybrid Mini PCI */
4896                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
4897         }, {
4898                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4899                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4900                 .subvendor    = 0x16be,
4901                 .subdevice    = 0x0007,
4902                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
4903         },{
4904                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4905                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4906                 .subvendor    = 0x16be,
4907                 .subdevice    = 0x0008,
4908                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
4909         },{
4910                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4911                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4912                 .subvendor    = 0x16be,
4913                 .subdevice    = 0x000d, /* triple CTX948_V1.1.1 */
4914                 .driver_data  = SAA7134_BOARD_MEDION_MD8800_QUADRO,
4915         }, {
4916                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4917                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4918                 .subvendor    = 0x1461,
4919                 .subdevice    = 0x2c05,
4920                 .driver_data  = SAA7134_BOARD_AVERMEDIA_777,
4921         },{
4922                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4923                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4924                 .subvendor    = 0x1489,
4925                 .subdevice    = 0x0502,                /* Cardbus version */
4926                 .driver_data  = SAA7134_BOARD_FLYDVBT_DUO_CARDBUS,
4927         },{
4928                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4929                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
4930                 .subvendor    = 0x0919, /* Philips Proteus PRO 2309 */
4931                 .subdevice    = 0x2003,
4932                 .driver_data  = SAA7134_BOARD_PROTEUS_2309,
4933         },{
4934                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4935                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4936                 .subvendor    = 0x1461,
4937                 .subdevice    = 0x2c00,
4938                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16AR,
4939         },{
4940                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4941                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
4942                 .subvendor    = 0x1043,
4943                 .subdevice    = 0x4860,
4944                 .driver_data  = SAA7134_BOARD_ASUS_EUROPA2_HYBRID,
4945         },{
4946                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4947                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4948                 .subvendor    = 0x11bd,
4949                 .subdevice    = 0x002f,
4950                 .driver_data  = SAA7134_BOARD_PINNACLE_PCTV_310i,
4951         },{
4952                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4953                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4954                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
4955                 .subdevice    = 0x9715,
4956                 .driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
4957         },{
4958                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4959                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4960                 .subvendor    = 0x1043,
4961                 .subdevice    = 0x4876,
4962                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA,
4963         },{
4964                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4965                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4966                 .subvendor    = 0x0070,
4967                 .subdevice    = 0x6700,
4968                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4969         },{
4970                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4971                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4972                 .subvendor    = 0x0070,
4973                 .subdevice    = 0x6701,
4974                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4975         },{
4976                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4977                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4978                 .subvendor    = 0x0070,
4979                 .subdevice    = 0x6702,
4980                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4981         },{
4982                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4983                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4984                 .subvendor    = 0x0070,
4985                 .subdevice    = 0x6703,
4986                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4987         },{
4988                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4989                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4990                 .subvendor    = 0x0070,
4991                 .subdevice    = 0x6704,
4992                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4993         },{
4994                 .vendor       = PCI_VENDOR_ID_PHILIPS,
4995                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
4996                 .subvendor    = 0x0070,
4997                 .subdevice    = 0x6705,
4998                 .driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
4999         },{
5000                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5001                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5002                 .subvendor    = 0x153b,
5003                 .subdevice    = 0x1172,
5004                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCMCIA,
5005         },{
5006                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5007                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5008                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5009                 .subdevice    = 0x2342,
5010                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5011         },{
5012                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5013                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5014                 .subvendor    = 0x1131,
5015                 .subdevice    = 0x2341,
5016                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5017         },{
5018                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5019                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5020                 .subvendor    = 0x3016,
5021                 .subdevice    = 0x2344,
5022                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV,
5023         },{
5024                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5025                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5026                 .subvendor    = 0x1131,
5027                 .subdevice    = 0x230f,
5028                 .driver_data  = SAA7134_BOARD_ENCORE_ENLTV_FM,
5029         },{
5030                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5031                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5032                 .subvendor    = 0x153b,
5033                 .subdevice    = 0x1175,
5034                 .driver_data  = SAA7134_BOARD_CINERGY_HT_PCI,
5035         },{
5036                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5037                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5038                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5039                 .subdevice    = 0xf31e,
5040                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M102,
5041         },{
5042                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5043                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5044                 .subvendor    = 0x4E42,         /* MSI */
5045                 .subdevice    = 0x0306,         /* TV@nywhere DUO */
5046                 .driver_data  = SAA7134_BOARD_FLYDVBTDUO,
5047         },{
5048                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5049                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5050                 .subvendor    = 0x1043,
5051                 .subdevice    = 0x4871,
5052                 .driver_data  = SAA7134_BOARD_ASUS_P7131_4871,
5053         },{
5054                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5055                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5056                 .subvendor    = 0x1043,
5057                 .subdevice    = 0x4857,
5058                 .driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
5059         },{
5060                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5061                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5062                 .subvendor    = 0x0919, /* SinoVideo PCI 2309 Proteus (7134) */
5063                 .subdevice    = 0x2003, /* OEM cardbus */
5064                 .driver_data  = SAA7134_BOARD_SABRENT_TV_PCB05,
5065         },{
5066                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5067                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5068                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5069                 .subdevice    = 0x2304,
5070                 .driver_data  = SAA7134_BOARD_10MOONSTVMASTER3,
5071         },{
5072                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5073                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5074                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5075                 .subdevice    = 0xf01d, /* AVerTV DVB-T Super 007 */
5076                 .driver_data  = SAA7134_BOARD_AVERMEDIA_SUPER_007,
5077         },{
5078                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5079                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5080                 .subvendor    = 0x0000,
5081                 .subdevice    = 0x4016,
5082                 .driver_data  = SAA7134_BOARD_BEHOLD_401,
5083         },{
5084                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5085                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5086                 .subvendor    = 0x0000,
5087                 .subdevice    = 0x4036,
5088                 .driver_data  = SAA7134_BOARD_BEHOLD_403,
5089         },{
5090                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5091                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5092                 .subvendor    = 0x0000,
5093                 .subdevice    = 0x4037,
5094                 .driver_data  = SAA7134_BOARD_BEHOLD_403FM,
5095         },{
5096                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5097                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5098                 .subvendor    = 0x0000,
5099                 .subdevice    = 0x4050,
5100                 .driver_data  = SAA7134_BOARD_BEHOLD_405,
5101         },{
5102                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5103                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5104                 .subvendor    = 0x0000,
5105                 .subdevice    = 0x4051,
5106                 .driver_data  = SAA7134_BOARD_BEHOLD_405FM,
5107         },{
5108                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5109                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5110                 .subvendor    = 0x0000,
5111                 .subdevice    = 0x4070,
5112                 .driver_data  = SAA7134_BOARD_BEHOLD_407,
5113         },{
5114                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5115                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5116                 .subvendor    = 0x0000,
5117                 .subdevice    = 0x4071,
5118                 .driver_data  = SAA7134_BOARD_BEHOLD_407FM,
5119         },{
5120                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5121                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5122                 .subvendor    = 0x0000,
5123                 .subdevice    = 0x4090,
5124                 .driver_data  = SAA7134_BOARD_BEHOLD_409,
5125         },{
5126                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5127                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5128                 .subvendor    = 0x0000,
5129                 .subdevice    = 0x5051,
5130                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5131         },{
5132                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5133                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5134                 .subvendor    = 0x0000,
5135                 .subdevice    = 0x505B,
5136                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5137         },{
5138                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5139                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5140                 .subvendor    = 0x5ace,
5141                 .subdevice    = 0x5050,
5142                 .driver_data  = SAA7134_BOARD_BEHOLD_505FM,
5143         },{
5144                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5145                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5146                 .subvendor    = 0x0000,
5147                 .subdevice    = 0x5071,
5148                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5149         },{
5150                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5151                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5152                 .subvendor    = 0x0000,
5153                 .subdevice    = 0x507B,
5154                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5155         },{
5156                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5157                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5158                 .subvendor    = 0x5ace,
5159                 .subdevice    = 0x5070,
5160                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5161         },{
5162                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5163                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5164                 .subvendor    = 0x5ace,
5165                 .subdevice    = 0x5090,
5166                 .driver_data  = SAA7134_BOARD_BEHOLD_507_9FM,
5167         },{
5168                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5169                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5170                 .subvendor    = 0x0000,
5171                 .subdevice    = 0x5201,
5172                 .driver_data  = SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM,
5173         },{
5174                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5175                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5176                 .subvendor    = 0x5ace,
5177                 .subdevice    = 0x6070,
5178                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5179         },{
5180                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5181                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5182                 .subvendor    = 0x5ace,
5183                 .subdevice    = 0x6071,
5184                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5185         },{
5186                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5187                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5188                 .subvendor    = 0x5ace,
5189                 .subdevice    = 0x6072,
5190                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5191         },{
5192                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5193                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5194                 .subvendor    = 0x5ace,
5195                 .subdevice    = 0x6073,
5196                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5197         },{
5198                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5199                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5200                 .subvendor    = 0x5ace,
5201                 .subdevice    = 0x6090,
5202                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5203         },{
5204                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5205                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5206                 .subvendor    = 0x5ace,
5207                 .subdevice    = 0x6091,
5208                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5209         },{
5210                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5211                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5212                 .subvendor    = 0x5ace,
5213                 .subdevice    = 0x6092,
5214                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5215         },{
5216                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5217                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5218                 .subvendor    = 0x5ace,
5219                 .subdevice    = 0x6093,
5220                 .driver_data  = SAA7134_BOARD_BEHOLD_607_9FM,
5221         },{
5222                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5223                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5224                 .subvendor    = 0x5ace,
5225                 .subdevice    = 0x6190,
5226                 .driver_data  = SAA7134_BOARD_BEHOLD_M6,
5227         },{
5228                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5229                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5230                 .subvendor    = 0x5ace,
5231                 .subdevice    = 0x6193,
5232                 .driver_data  = SAA7134_BOARD_BEHOLD_M6,
5233         }, {
5234                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5235                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5236                 .subvendor    = 0x5ace,
5237                 .subdevice    = 0x6191,
5238                 .driver_data  = SAA7134_BOARD_BEHOLD_M6,
5239         },{
5240                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5241                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5242                 .subvendor    = 0x4e42,
5243                 .subdevice    = 0x3502,
5244                 .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
5245         }, {
5246                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5247                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5248                 .subvendor    = 0x1822, /*Twinhan Technology Co. Ltd*/
5249                 .subdevice    = 0x0022,
5250                 .driver_data  = SAA7134_BOARD_TWINHAN_DTV_DVB_3056,
5251         }, {
5252                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5253                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5254                 .subvendor    = 0x16be,
5255                 .subdevice    = 0x0010, /* Medion version CTX953_V.1.4.3 */
5256                 .driver_data  = SAA7134_BOARD_CREATIX_CTX953,
5257         }, {
5258                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5259                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5260                 .subvendor    = 0x1462, /* MSI */
5261                 .subdevice    = 0x8625, /* TV@nywhere A/D v1.1 */
5262                 .driver_data  = SAA7134_BOARD_MSI_TVANYWHERE_AD11,
5263         },{
5264                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5265                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5266                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5267                 .subdevice    = 0xf436,
5268                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS_506,
5269         }, {
5270                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5271                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5272                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5273                 .subdevice    = 0xf936,
5274                 .driver_data  = SAA7134_BOARD_AVERMEDIA_A16D,
5275         }, {
5276                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5277                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5278                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
5279                 .subdevice    = 0xa836,
5280                 .driver_data  = SAA7134_BOARD_AVERMEDIA_M115,
5281         }, {
5282                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5283                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5284                 .subvendor    = 0x185b,
5285                 .subdevice    = 0xc900,
5286                 .driver_data  = SAA7134_BOARD_VIDEOMATE_T750,
5287         }, {
5288                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5289                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5290                 .subvendor    = 0x5ace,
5291                 .subdevice    = 0x6290,
5292                 .driver_data  = SAA7134_BOARD_BEHOLD_H6,
5293         }, {
5294                 /* --- boards without eeprom + subsystem ID --- */
5295                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5296                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5297                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5298                 .subdevice    = 0,
5299                 .driver_data  = SAA7134_BOARD_NOAUTO,
5300         },{
5301                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5302                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5303                 .subvendor    = PCI_VENDOR_ID_PHILIPS,
5304                 .subdevice    = 0,
5305                 .driver_data  = SAA7134_BOARD_NOAUTO,
5306         },{
5307                 /* --- default catch --- */
5308                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5309                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
5310                 .subvendor    = PCI_ANY_ID,
5311                 .subdevice    = PCI_ANY_ID,
5312                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5313         },{
5314                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5315                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
5316                 .subvendor    = PCI_ANY_ID,
5317                 .subdevice    = PCI_ANY_ID,
5318                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5319         },{
5320                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5321                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
5322                 .subvendor    = PCI_ANY_ID,
5323                 .subdevice    = PCI_ANY_ID,
5324                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5325         },{
5326                 .vendor       = PCI_VENDOR_ID_PHILIPS,
5327                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7135,
5328                 .subvendor    = PCI_ANY_ID,
5329                 .subdevice    = PCI_ANY_ID,
5330                 .driver_data  = SAA7134_BOARD_UNKNOWN,
5331         },{
5332                 /* --- end of list --- */
5333         }
5334 };
5335 MODULE_DEVICE_TABLE(pci, saa7134_pci_tbl);
5336
5337 /* ----------------------------------------------------------- */
5338 /* flyvideo tweaks                                             */
5339
5340
5341 static void board_flyvideo(struct saa7134_dev *dev)
5342 {
5343         printk("%s: there are different flyvideo cards with different tuners\n"
5344                "%s: out there, you might have to use the tuner=<nr> insmod\n"
5345                "%s: option to override the default value.\n",
5346                dev->name, dev->name, dev->name);
5347 }
5348
5349 static int saa7134_xc2028_callback(struct saa7134_dev *dev,
5350                                    int command, int arg)
5351 {
5352         switch (command) {
5353         case XC2028_TUNER_RESET:
5354                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
5355                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
5356                 mdelay(250);
5357                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0);
5358                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0);
5359                 mdelay(250);
5360                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
5361                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
5362                 mdelay(250);
5363                 saa_andorl(SAA7133_ANALOG_IO_SELECT >> 2, 0x02, 0x02);
5364                 saa_andorl(SAA7134_ANALOG_IN_CTRL1 >> 2, 0x81, 0x81);
5365                 saa_andorl(SAA7134_AUDIO_CLOCK0 >> 2, 0x03187de7, 0x03187de7);
5366                 saa_andorl(SAA7134_AUDIO_PLL_CTRL >> 2, 0x03, 0x03);
5367                 saa_andorl(SAA7134_AUDIO_CLOCKS_PER_FIELD0 >> 2,
5368                            0x0001e000, 0x0001e000);
5369                 return 0;
5370         }
5371         return -EINVAL;
5372 }
5373
5374
5375 static int saa7134_tda8290_callback(struct saa7134_dev *dev,
5376                                     int command, int arg)
5377 {
5378         u8 sync_control;
5379
5380         switch (command) {
5381         case 0: /* switch LNA gain through GPIO 22*/
5382                 saa7134_set_gpio(dev, 22, arg) ;
5383                 break;
5384         case 1: /* vsync output at GPIO22. 50 / 60Hz */
5385                 saa_andorb(SAA7134_VIDEO_PORT_CTRL3, 0x80, 0x80);
5386                 saa_andorb(SAA7134_VIDEO_PORT_CTRL6, 0x0f, 0x03);
5387                 if (arg == 1)
5388                         sync_control = 11;
5389                 else
5390                         sync_control = 17;
5391                 saa_writeb(SAA7134_VGATE_START, sync_control);
5392                 saa_writeb(SAA7134_VGATE_STOP, sync_control + 1);
5393                 saa_andorb(SAA7134_MISC_VGATE_MSB, 0x03, 0x00);
5394                 break;
5395         default:
5396                 return -EINVAL;
5397         }
5398
5399         return 0;
5400 }
5401
5402 int saa7134_tuner_callback(void *priv, int command, int arg)
5403 {
5404         struct saa7134_dev *dev = priv;
5405         if (dev != NULL) {
5406                 switch (dev->tuner_type) {
5407                 case TUNER_PHILIPS_TDA8290:
5408                         return saa7134_tda8290_callback(dev, command, arg);
5409                 case TUNER_XC2028:
5410                         return saa7134_xc2028_callback(dev, command, arg);
5411                 }
5412         } else {
5413                 printk(KERN_ERR "saa7134: Error - device struct undefined.\n");
5414                 return -EINVAL;
5415         }
5416         return -EINVAL;
5417 }
5418 EXPORT_SYMBOL(saa7134_tuner_callback);
5419
5420 /* ----------------------------------------------------------- */
5421
5422 static void hauppauge_eeprom(struct saa7134_dev *dev, u8 *eeprom_data)
5423 {
5424         struct tveeprom tv;
5425
5426         tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data);
5427
5428         /* Make sure we support the board model */
5429         switch (tv.model) {
5430         case 67019: /* WinTV-HVR1110 (Retail, IR Blaster, hybrid, FM, SVid/Comp, 3.5mm audio in) */
5431         case 67109: /* WinTV-HVR1000 (Retail, IR Receive, analog, no FM, SVid/Comp, 3.5mm audio in) */
5432         case 67559: /* WinTV-HVR1110 (OEM, no IR, hybrid, FM, SVid/Comp, RCA aud) */
5433         case 67569: /* WinTV-HVR1110 (OEM, no IR, hybrid, FM) */
5434         case 67579: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM) */
5435         case 67589: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM, SVid/Comp, RCA aud) */
5436         case 67599: /* WinTV-HVR1110 (OEM, no IR, hybrid, no FM, SVid/Comp, RCA aud) */
5437                 break;
5438         default:
5439                 printk(KERN_WARNING "%s: warning: "
5440                        "unknown hauppauge model #%d\n", dev->name, tv.model);
5441                 break;
5442         }
5443
5444         printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
5445                dev->name, tv.model);
5446 }
5447
5448 /* ----------------------------------------------------------- */
5449
5450 int saa7134_board_init1(struct saa7134_dev *dev)
5451 {
5452         /* Always print gpio, often manufacturers encode tuner type and other info. */
5453         saa_writel(SAA7134_GPIO_GPMODE0 >> 2, 0);
5454         dev->gpio_value = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
5455         printk(KERN_INFO "%s: board init: gpio is %x\n", dev->name, dev->gpio_value);
5456
5457         switch (dev->board) {
5458         case SAA7134_BOARD_FLYVIDEO2000:
5459         case SAA7134_BOARD_FLYVIDEO3000:
5460         case SAA7134_BOARD_FLYVIDEO3000_NTSC:
5461                 dev->has_remote = SAA7134_REMOTE_GPIO;
5462                 board_flyvideo(dev);
5463                 break;
5464         case SAA7134_BOARD_FLYTVPLATINUM_MINI2:
5465         case SAA7134_BOARD_FLYTVPLATINUM_FM:
5466         case SAA7134_BOARD_CINERGY400:
5467         case SAA7134_BOARD_CINERGY600:
5468         case SAA7134_BOARD_CINERGY600_MK3:
5469         case SAA7134_BOARD_ECS_TVP3XP:
5470         case SAA7134_BOARD_ECS_TVP3XP_4CB5:
5471         case SAA7134_BOARD_ECS_TVP3XP_4CB6:
5472         case SAA7134_BOARD_MD2819:
5473         case SAA7134_BOARD_KWORLD_VSTREAM_XPERT:
5474         case SAA7134_BOARD_KWORLD_XPERT:
5475         case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
5476         case SAA7134_BOARD_AVERMEDIA_305:
5477         case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
5478         case SAA7134_BOARD_AVERMEDIA_307:
5479         case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
5480         case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
5481         case SAA7134_BOARD_AVERMEDIA_777:
5482 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
5483         case SAA7134_BOARD_VIDEOMATE_TV_PVR:
5484         case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
5485         case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
5486         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
5487         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
5488         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
5489         case SAA7134_BOARD_VIDEOMATE_T750:
5490         case SAA7134_BOARD_MANLI_MTV001:
5491         case SAA7134_BOARD_MANLI_MTV002:
5492         case SAA7134_BOARD_BEHOLD_409FM:
5493         case SAA7134_BOARD_AVACSSMARTTV:
5494         case SAA7134_BOARD_GOTVIEW_7135:
5495         case SAA7134_BOARD_KWORLD_TERMINATOR:
5496         case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
5497         case SAA7134_BOARD_FLYDVBT_LR301:
5498         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
5499         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
5500         case SAA7134_BOARD_FLYDVBTDUO:
5501         case SAA7134_BOARD_PROTEUS_2309:
5502         case SAA7134_BOARD_AVERMEDIA_A16AR:
5503         case SAA7134_BOARD_ENCORE_ENLTV:
5504         case SAA7134_BOARD_ENCORE_ENLTV_FM:
5505         case SAA7134_BOARD_10MOONSTVMASTER3:
5506         case SAA7134_BOARD_BEHOLD_401:
5507         case SAA7134_BOARD_BEHOLD_403:
5508         case SAA7134_BOARD_BEHOLD_403FM:
5509         case SAA7134_BOARD_BEHOLD_405:
5510         case SAA7134_BOARD_BEHOLD_405FM:
5511         case SAA7134_BOARD_BEHOLD_407:
5512         case SAA7134_BOARD_BEHOLD_407FM:
5513         case SAA7134_BOARD_BEHOLD_409:
5514         case SAA7134_BOARD_BEHOLD_505FM:
5515         case SAA7134_BOARD_BEHOLD_507_9FM:
5516         case SAA7134_BOARD_GENIUS_TVGO_A11MCE:
5517                 dev->has_remote = SAA7134_REMOTE_GPIO;
5518                 break;
5519         case SAA7134_BOARD_FLYDVBS_LR300:
5520                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x80);
5521                 saa_writeb(SAA7134_GPIO_GPSTATUS2, 0x40);
5522                 dev->has_remote = SAA7134_REMOTE_GPIO;
5523                 break;
5524         case SAA7134_BOARD_MD5044:
5525                 printk("%s: seems there are two different versions of the MD5044\n"
5526                        "%s: (with the same ID) out there.  If sound doesn't work for\n"
5527                        "%s: you try the audio_clock_override=0x200000 insmod option.\n",
5528                        dev->name,dev->name,dev->name);
5529                 break;
5530         case SAA7134_BOARD_CINERGY400_CARDBUS:
5531                 /* power-up tuner chip */
5532                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
5533                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
5534                 break;
5535         case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
5536                 /* this turns the remote control chip off to work around a bug in it */
5537                 saa_writeb(SAA7134_GPIO_GPMODE1, 0x80);
5538                 saa_writeb(SAA7134_GPIO_GPSTATUS1, 0x80);
5539                 break;
5540         case SAA7134_BOARD_MONSTERTV_MOBILE:
5541                 /* power-up tuner chip */
5542                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
5543                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000004);
5544                 break;
5545         case SAA7134_BOARD_FLYDVBT_DUO_CARDBUS:
5546                 /* turn the fan on */
5547                 saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
5548                 saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x06);
5549                 break;
5550         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
5551         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
5552                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x08000000, 0x08000000);
5553                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08000000, 0x00000000);
5554                 break;
5555         case SAA7134_BOARD_AVERMEDIA_CARDBUS:
5556         case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:
5557         case SAA7134_BOARD_AVERMEDIA_M115:
5558         case SAA7134_BOARD_AVERMEDIA_A16D:
5559                 /* power-down tuner chip */
5560                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0);
5561                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0);
5562                 msleep(10);
5563                 /* power-up tuner chip */
5564                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0xffffffff, 0xffffffff);
5565                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0xffffffff, 0xffffffff);
5566                 msleep(10);
5567                 break;
5568         case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
5569                 /* power-down tuner chip */
5570                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x000A8004, 0x000A8004);
5571                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x000A8004, 0);
5572                 msleep(10);
5573                 /* power-up tuner chip */
5574                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x000A8004, 0x000A8004);
5575                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x000A8004, 0x000A8004);
5576                 msleep(10);
5577                 /* remote via GPIO */
5578                 dev->has_remote = SAA7134_REMOTE_GPIO;
5579                 break;
5580         case SAA7134_BOARD_RTD_VFG7350:
5581
5582                 /*
5583                  * Make sure Production Test Register at offset 0x1D1 is cleared
5584                  * to take chip out of test mode.  Clearing bit 4 (TST_EN_AOUT)
5585                  * prevents pin 105 from remaining low; keeping pin 105 low
5586                  * continually resets the SAA6752 chip.
5587                  */
5588
5589                 saa_writeb (SAA7134_PRODUCTION_TEST_MODE, 0x00);
5590                 break;
5591         /* i2c remotes */
5592         case SAA7134_BOARD_PINNACLE_PCTV_110i:
5593         case SAA7134_BOARD_PINNACLE_PCTV_310i:
5594         case SAA7134_BOARD_UPMOST_PURPLE_TV:
5595         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
5596         case SAA7134_BOARD_BEHOLD_607_9FM:
5597         case SAA7134_BOARD_BEHOLD_M6:
5598                 dev->has_remote = SAA7134_REMOTE_I2C;
5599                 break;
5600         case SAA7134_BOARD_AVERMEDIA_A169_B:
5601                 printk("%s: %s: dual saa713x broadcast decoders\n"
5602                        "%s: Sorry, none of the inputs to this chip are supported yet.\n"
5603                        "%s: Dual decoder functionality is disabled for now, use the other chip.\n",
5604                        dev->name,card(dev).name,dev->name,dev->name);
5605                 break;
5606         case SAA7134_BOARD_AVERMEDIA_M102:
5607                 /* enable tuner */
5608                dev->has_remote = SAA7134_REMOTE_GPIO;
5609                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8c040007, 0x8c040007);
5610                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
5611                 break;
5612         case SAA7134_BOARD_AVERMEDIA_A700_PRO:
5613         case SAA7134_BOARD_AVERMEDIA_A700_HYBRID:
5614                 /* write windows gpio values */
5615                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x80040100, 0x80040100);
5616                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x80040100, 0x00040100);
5617                 printk("%s: %s: hybrid analog/dvb card\n"
5618                        "%s: Sorry, only the analog inputs are supported for now.\n",
5619                         dev->name, card(dev).name, dev->name);
5620                 break;
5621         }
5622         return 0;
5623 }
5624
5625 static void saa7134_tuner_setup(struct saa7134_dev *dev)
5626 {
5627         struct tuner_setup tun_setup;
5628         unsigned int mode_mask = T_RADIO     |
5629                                  T_ANALOG_TV |
5630                                  T_DIGITAL_TV;
5631
5632         memset(&tun_setup, 0, sizeof(tun_setup));
5633         tun_setup.tuner_callback = saa7134_tuner_callback;
5634
5635         if (saa7134_boards[dev->board].radio_type != UNSET) {
5636                 tun_setup.type = saa7134_boards[dev->board].radio_type;
5637                 tun_setup.addr = saa7134_boards[dev->board].radio_addr;
5638
5639                 tun_setup.mode_mask = T_RADIO;
5640
5641                 saa7134_i2c_call_clients(dev, TUNER_SET_TYPE_ADDR, &tun_setup);
5642                 mode_mask &= ~T_RADIO;
5643         }
5644
5645         if ((dev->tuner_type != TUNER_ABSENT) && (dev->tuner_type != UNSET)) {
5646                 tun_setup.type = dev->tuner_type;
5647                 tun_setup.addr = dev->tuner_addr;
5648                 tun_setup.config = saa7134_boards[dev->board].tuner_config;
5649                 tun_setup.tuner_callback = saa7134_tuner_callback;
5650
5651                 tun_setup.mode_mask = mode_mask;
5652
5653                 saa7134_i2c_call_clients(dev, TUNER_SET_TYPE_ADDR, &tun_setup);
5654         }
5655
5656         if (dev->tda9887_conf) {
5657                 struct v4l2_priv_tun_config tda9887_cfg;
5658
5659                 tda9887_cfg.tuner = TUNER_TDA9887;
5660                 tda9887_cfg.priv = &dev->tda9887_conf;
5661
5662                 saa7134_i2c_call_clients(dev, TUNER_SET_CONFIG,
5663                                          &tda9887_cfg);
5664         }
5665
5666         if (dev->tuner_type == TUNER_XC2028) {
5667                 struct v4l2_priv_tun_config  xc2028_cfg;
5668                 struct xc2028_ctrl           ctl;
5669
5670                 memset(&xc2028_cfg, 0, sizeof(ctl));
5671                 memset(&ctl, 0, sizeof(ctl));
5672
5673                 ctl.fname   = XC2028_DEFAULT_FIRMWARE;
5674                 ctl.max_len = 64;
5675
5676                 switch (dev->board) {
5677                 case SAA7134_BOARD_AVERMEDIA_A16D:
5678                         ctl.demod = XC3028_FE_ZARLINK456;
5679                         break;
5680                 default:
5681                         ctl.demod = XC3028_FE_OREN538;
5682                         ctl.mts = 1;
5683                 }
5684
5685                 xc2028_cfg.tuner = TUNER_XC2028;
5686                 xc2028_cfg.priv  = &ctl;
5687
5688                 saa7134_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg);
5689         }
5690 }
5691
5692 /* stuff which needs working i2c */
5693 int saa7134_board_init2(struct saa7134_dev *dev)
5694 {
5695         unsigned char buf;
5696         int board;
5697
5698         dev->tuner_type = saa7134_boards[dev->board].tuner_type;
5699         dev->tuner_addr = saa7134_boards[dev->board].tuner_addr;
5700
5701         switch (dev->board) {
5702         case SAA7134_BOARD_BMK_MPEX_NOTUNER:
5703         case SAA7134_BOARD_BMK_MPEX_TUNER:
5704                 dev->i2c_client.addr = 0x60;
5705                 board = (i2c_master_recv(&dev->i2c_client, &buf, 0) < 0)
5706                         ? SAA7134_BOARD_BMK_MPEX_NOTUNER
5707                         : SAA7134_BOARD_BMK_MPEX_TUNER;
5708                 if (board == dev->board)
5709                         break;
5710                 dev->board = board;
5711                 printk("%s: board type fixup: %s\n", dev->name,
5712                 saa7134_boards[dev->board].name);
5713                 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
5714
5715                 break;
5716         case SAA7134_BOARD_MD7134:
5717         {
5718                 u8 subaddr;
5719                 u8 data[3];
5720                 int ret, tuner_t;
5721
5722                 struct i2c_msg msg[] = {{.addr=0x50, .flags=0, .buf=&subaddr, .len = 1},
5723                                         {.addr=0x50, .flags=I2C_M_RD, .buf=data, .len = 3}};
5724                 subaddr= 0x14;
5725                 tuner_t = 0;
5726                 ret = i2c_transfer(&dev->i2c_adap, msg, 2);
5727                 if (ret != 2) {
5728                         printk(KERN_ERR "EEPROM read failure\n");
5729                 } else if ((data[0] != 0) && (data[0] != 0xff)) {
5730                         /* old config structure */
5731                         subaddr = data[0] + 2;
5732                         msg[1].len = 2;
5733                         i2c_transfer(&dev->i2c_adap, msg, 2);
5734                         tuner_t = (data[0] << 8) + data[1];
5735                         switch (tuner_t){
5736                         case 0x0103:
5737                                 dev->tuner_type = TUNER_PHILIPS_PAL;
5738                                 break;
5739                         case 0x010C:
5740                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
5741                                 break;
5742                         default:
5743                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
5744                         }
5745                 } else if ((data[1] != 0) && (data[1] != 0xff)) {
5746                         /* new config structure */
5747                         subaddr = data[1] + 1;
5748                         msg[1].len = 1;
5749                         i2c_transfer(&dev->i2c_adap, msg, 2);
5750                         subaddr = data[0] + 1;
5751                         msg[1].len = 2;
5752                         i2c_transfer(&dev->i2c_adap, msg, 2);
5753                         tuner_t = (data[1] << 8) + data[0];
5754                         switch (tuner_t) {
5755                         case 0x0005:
5756                                 dev->tuner_type = TUNER_PHILIPS_FM1216ME_MK3;
5757                                 break;
5758                         case 0x001d:
5759                                 dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
5760                                         printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
5761                                 break;
5762                         default:
5763                                 printk(KERN_ERR "%s Cant determine tuner type %x from EEPROM\n", dev->name, tuner_t);
5764                         }
5765                 } else {
5766                         printk(KERN_ERR "%s unexpected config structure\n", dev->name);
5767                 }
5768
5769                 printk(KERN_INFO "%s Tuner type is %d\n", dev->name, dev->tuner_type);
5770                 break;
5771         }
5772         case SAA7134_BOARD_PHILIPS_EUROPA:
5773                 if (dev->autodetected && (dev->eedata[0x41] == 0x1c)) {
5774                         /* Reconfigure board as Snake reference design */
5775                         dev->board = SAA7134_BOARD_PHILIPS_SNAKE;
5776                         dev->tuner_type = saa7134_boards[dev->board].tuner_type;
5777                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
5778                                 dev->name, saa7134_boards[dev->board].name);
5779                         break;
5780                 }
5781         case SAA7134_BOARD_VIDEOMATE_DVBT_300:
5782         case SAA7134_BOARD_ASUS_EUROPA2_HYBRID:
5783         {
5784
5785                 /* The Philips EUROPA based hybrid boards have the tuner connected through
5786                  * the channel decoder. We have to make it transparent to find it
5787                  */
5788                 u8 data[] = { 0x07, 0x02};
5789                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
5790                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5791
5792                 break;
5793         }
5794         case SAA7134_BOARD_PHILIPS_TIGER:
5795         case SAA7134_BOARD_PHILIPS_TIGER_S:
5796         {
5797                 u8 data[] = { 0x3c, 0x33, 0x60};
5798                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
5799                 if (dev->autodetected && (dev->eedata[0x49] == 0x50)) {
5800                         dev->board = SAA7134_BOARD_PHILIPS_TIGER_S;
5801                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
5802                                 dev->name, saa7134_boards[dev->board].name);
5803                 }
5804                 if (dev->board == SAA7134_BOARD_PHILIPS_TIGER_S) {
5805                         dev->tuner_type = TUNER_PHILIPS_TDA8290;
5806
5807                         saa7134_tuner_setup(dev);
5808
5809                         data[2] = 0x68;
5810                         i2c_transfer(&dev->i2c_adap, &msg, 1);
5811
5812                         /* Tuner setup is handled before I2C transfer.
5813                            Due to that, there's no need to do it later
5814                          */
5815                         return 0;
5816                 }
5817                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5818                 break;
5819         }
5820         case SAA7134_BOARD_HAUPPAUGE_HVR1110:
5821                 hauppauge_eeprom(dev, dev->eedata+0x80);
5822                 /* break intentionally omitted */
5823         case SAA7134_BOARD_PINNACLE_PCTV_310i:
5824         case SAA7134_BOARD_KWORLD_DVBT_210:
5825         case SAA7134_BOARD_TEVION_DVBT_220RF:
5826         case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
5827         case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
5828         case SAA7134_BOARD_MEDION_MD8800_QUADRO:
5829         case SAA7134_BOARD_AVERMEDIA_SUPER_007:
5830         case SAA7134_BOARD_TWINHAN_DTV_DVB_3056:
5831         case SAA7134_BOARD_CREATIX_CTX953:
5832         {
5833                 /* this is a hybrid board, initialize to analog mode
5834                  * and configure firmware eeprom address
5835                  */
5836                 u8 data[] = { 0x3c, 0x33, 0x60};
5837                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
5838                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5839                 break;
5840         }
5841         case SAA7134_BOARD_FLYDVB_TRIO:
5842         {
5843                 u8 data[] = { 0x3c, 0x33, 0x62};
5844                 struct i2c_msg msg = {.addr=0x09, .flags=0, .buf=data, .len = sizeof(data)};
5845                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5846                 break;
5847         }
5848         case SAA7134_BOARD_ADS_DUO_CARDBUS_PTV331:
5849         case SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS:
5850         {
5851                 /* initialize analog mode  */
5852                 u8 data[] = { 0x3c, 0x33, 0x6a};
5853                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
5854                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5855                 break;
5856         }
5857         case SAA7134_BOARD_CINERGY_HT_PCMCIA:
5858         case SAA7134_BOARD_CINERGY_HT_PCI:
5859         {
5860                 /* initialize analog mode */
5861                 u8 data[] = { 0x3c, 0x33, 0x68};
5862                 struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)};
5863                 i2c_transfer(&dev->i2c_adap, &msg, 1);
5864                 break;
5865         }
5866         case SAA7134_BOARD_KWORLD_ATSC110:
5867         {
5868                 /* enable tuner */
5869                 int i;
5870                 static const u8 buffer [] = { 0x10, 0x12, 0x13, 0x04, 0x16,
5871                                               0x00, 0x14, 0x04, 0x17, 0x00 };
5872                 dev->i2c_client.addr = 0x0a;
5873                 for (i = 0; i < 5; i++)
5874                         if (2 != i2c_master_send(&dev->i2c_client,
5875                                                  &buffer[i*2], 2))
5876                                 printk(KERN_WARNING
5877                                        "%s: Unable to enable tuner(%i).\n",
5878                                        dev->name, i);
5879                 break;
5880         }
5881         case SAA7134_BOARD_VIDEOMATE_DVBT_200:
5882         case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
5883                 /* The T200 and the T200A share the same pci id.  Consequently,
5884                  * we are going to query eeprom to try to find out which one we
5885                  * are actually looking at. */
5886
5887                 /* Don't do this if the board was specifically selected with an
5888                  * insmod option or if we have the default configuration T200*/
5889                 if(!dev->autodetected || (dev->eedata[0x41] == 0xd0))
5890                         break;
5891                 if(dev->eedata[0x41] == 0x02) {
5892                         /* Reconfigure board  as T200A */
5893                         dev->board = SAA7134_BOARD_VIDEOMATE_DVBT_200A;
5894                         dev->tuner_type   = saa7134_boards[dev->board].tuner_type;
5895                         dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
5896                         printk(KERN_INFO "%s: Reconfigured board as %s\n",
5897                                 dev->name, saa7134_boards[dev->board].name);
5898                 } else {
5899                         printk(KERN_WARNING "%s: Unexpected tuner type info: %x in eeprom\n",
5900                                 dev->name, dev->eedata[0x41]);
5901                         break;
5902                 }
5903                 break;
5904         case SAA7134_BOARD_BEHOLD_COLUMBUS_TVFM:
5905         {
5906                 struct v4l2_priv_tun_config tea5767_cfg;
5907                 struct tea5767_ctrl ctl;
5908
5909                 dev->i2c_client.addr = 0xC0;
5910                 /* set TEA5767(analog FM) defines */
5911                 memset(&ctl, 0, sizeof(ctl));
5912                 ctl.xtal_freq = TEA5767_HIGH_LO_13MHz;
5913                 tea5767_cfg.tuner = TUNER_TEA5767;
5914                 tea5767_cfg.priv  = &ctl;
5915                 saa7134_i2c_call_clients(dev, TUNER_SET_CONFIG, &tea5767_cfg);
5916                 break;
5917         }
5918         } /* switch() */
5919
5920         saa7134_tuner_setup(dev);
5921
5922         return 0;
5923 }