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