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