Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
[sfrench/cifs-2.6.git] / drivers / media / video / bt8xx / bttv-cards.c
1 /*
2
3     bttv-cards.c
4
5     this file has configuration informations - card-specific stuff
6     like the big tvcards array for the most part
7
8     Copyright (C) 1996,97,98 Ralph  Metzler (rjkm@thp.uni-koeln.de)
9                            & Marcus Metzler (mocm@thp.uni-koeln.de)
10     (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de>
11
12     This program is free software; you can redistribute it and/or modify
13     it under the terms of the GNU General Public License as published by
14     the Free Software Foundation; either version 2 of the License, or
15     (at your option) any later version.
16
17     This program is distributed in the hope that it will be useful,
18     but WITHOUT ANY WARRANTY; without even the implied warranty of
19     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20     GNU General Public License for more details.
21
22     You should have received a copy of the GNU General Public License
23     along with this program; if not, write to the Free Software
24     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25
26 */
27
28 #include <linux/delay.h>
29 #include <linux/module.h>
30 #include <linux/moduleparam.h>
31 #include <linux/kmod.h>
32 #include <linux/init.h>
33 #include <linux/pci.h>
34 #include <linux/vmalloc.h>
35 #include <linux/firmware.h>
36
37 #include <asm/io.h>
38
39 #include "bttvp.h"
40 #include <media/v4l2-common.h>
41 #include <media/tvaudio.h>
42
43 /* fwd decl */
44 static void boot_msp34xx(struct bttv *btv, int pin);
45 static void boot_bt832(struct bttv *btv);
46 static void hauppauge_eeprom(struct bttv *btv);
47 static void avermedia_eeprom(struct bttv *btv);
48 static void osprey_eeprom(struct bttv *btv);
49 static void modtec_eeprom(struct bttv *btv);
50 static void init_PXC200(struct bttv *btv);
51 static void init_RTV24(struct bttv *btv);
52
53 static void winview_audio(struct bttv *btv, struct video_audio *v, int set);
54 static void lt9415_audio(struct bttv *btv, struct video_audio *v, int set);
55 static void avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v,
56                                     int set);
57 static void avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v,
58                                       int set);
59 static void terratv_audio(struct bttv *btv, struct video_audio *v, int set);
60 static void gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set);
61 static void gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set);
62 static void winfast2000_audio(struct bttv *btv, struct video_audio *v, int set);
63 static void pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set);
64 static void fv2000s_audio(struct bttv *btv, struct video_audio *v, int set);
65 static void windvr_audio(struct bttv *btv, struct video_audio *v, int set);
66 static void adtvk503_audio(struct bttv *btv, struct video_audio *v, int set);
67 static void rv605_muxsel(struct bttv *btv, unsigned int input);
68 static void eagle_muxsel(struct bttv *btv, unsigned int input);
69 static void xguard_muxsel(struct bttv *btv, unsigned int input);
70 static void ivc120_muxsel(struct bttv *btv, unsigned int input);
71 static void gvc1100_muxsel(struct bttv *btv, unsigned int input);
72
73 static void PXC200_muxsel(struct bttv *btv, unsigned int input);
74
75 static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input);
76 static void picolo_tetra_init(struct bttv *btv);
77
78 static void tibetCS16_muxsel(struct bttv *btv, unsigned int input);
79 static void tibetCS16_init(struct bttv *btv);
80
81 static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input);
82 static void kodicom4400r_init(struct bttv *btv);
83
84 static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input);
85 static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input);
86
87 static int terratec_active_radio_upgrade(struct bttv *btv);
88 static int tea5757_read(struct bttv *btv);
89 static int tea5757_write(struct bttv *btv, int value);
90 static void identify_by_eeprom(struct bttv *btv,
91                                unsigned char eeprom_data[256]);
92 static int __devinit pvr_boot(struct bttv *btv);
93
94 /* config variables */
95 static unsigned int triton1;
96 static unsigned int vsfx;
97 static unsigned int latency = UNSET;
98 int no_overlay=-1;
99
100 static unsigned int card[BTTV_MAX]   = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
101 static unsigned int pll[BTTV_MAX]    = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
102 static unsigned int tuner[BTTV_MAX]  = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
103 static unsigned int svhs[BTTV_MAX]   = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
104 static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
105 static struct bttv  *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL };
106 #ifdef MODULE
107 static unsigned int autoload = 1;
108 #else
109 static unsigned int autoload;
110 #endif
111 static unsigned int gpiomask = UNSET;
112 static unsigned int audioall = UNSET;
113 static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET };
114
115 /* insmod options */
116 module_param(triton1,    int, 0444);
117 module_param(vsfx,       int, 0444);
118 module_param(no_overlay, int, 0444);
119 module_param(latency,    int, 0444);
120 module_param(gpiomask,   int, 0444);
121 module_param(audioall,   int, 0444);
122 module_param(autoload,   int, 0444);
123
124 module_param_array(card,     int, NULL, 0444);
125 module_param_array(pll,      int, NULL, 0444);
126 module_param_array(tuner,    int, NULL, 0444);
127 module_param_array(svhs,     int, NULL, 0444);
128 module_param_array(remote,   int, NULL, 0444);
129 module_param_array(audiomux, int, NULL, 0444);
130
131 MODULE_PARM_DESC(triton1,"set ETBF pci config bit "
132                  "[enable bug compatibility for triton1 + others]");
133 MODULE_PARM_DESC(vsfx,"set VSFX pci config bit "
134                  "[yet another chipset flaw workaround]");
135 MODULE_PARM_DESC(latency,"pci latency timer");
136 MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list");
137 MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)");
138 MODULE_PARM_DESC(tuner,"specify installed tuner type");
139 MODULE_PARM_DESC(autoload,"automatically load i2c modules like tuner.o, default is 1 (yes)");
140 MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)"
141                 " [some VIA/SIS chipsets are known to have problem with overlay]");
142
143 /* ----------------------------------------------------------------------- */
144 /* list of card IDs for bt878+ cards                                       */
145
146 static struct CARD {
147         unsigned id;
148         int cardnr;
149         char *name;
150 } cards[] __devinitdata = {
151         { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878,  "Hauppauge WinTV" },
152         { 0x39000070, BTTV_BOARD_HAUPPAUGE878,  "Hauppauge WinTV-D" },
153         { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR,  "Hauppauge WinTV/PVR" },
154         { 0xff000070, BTTV_BOARD_OSPREY1x0,     "Osprey-100" },
155         { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" },
156         { 0xff020070, BTTV_BOARD_OSPREY500,     "Osprey-500" },
157         { 0xff030070, BTTV_BOARD_OSPREY2000,    "Osprey-2000" },
158         { 0xff040070, BTTV_BOARD_OSPREY540,     "Osprey-540" },
159         { 0xff070070, BTTV_BOARD_OSPREY440,     "Osprey-440" },
160
161         { 0x00011002, BTTV_BOARD_ATI_TVWONDER,  "ATI TV Wonder" },
162         { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" },
163
164         { 0x6606107d, BTTV_BOARD_WINFAST2000,   "Leadtek WinFast TV 2000" },
165         { 0x6607107d, BTTV_BOARD_WINFASTVC100,  "Leadtek WinFast VC 100" },
166         { 0x6609107d, BTTV_BOARD_WINFAST2000,   "Leadtek TV 2000 XP" },
167         { 0x263610b4, BTTV_BOARD_STB2,          "STB TV PCI FM, Gateway P/N 6000704" },
168         { 0x264510b4, BTTV_BOARD_STB2,          "STB TV PCI FM, Gateway P/N 6000704" },
169         { 0x402010fc, BTTV_BOARD_GVBCTV3PCI,    "I-O Data Co. GV-BCTV3/PCI" },
170         { 0x405010fc, BTTV_BOARD_GVBCTV4PCI,    "I-O Data Co. GV-BCTV4/PCI" },
171         { 0x407010fc, BTTV_BOARD_GVBCTV5PCI,    "I-O Data Co. GV-BCTV5/PCI" },
172         { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI,    "I-O Data Co. GV-BCTV5/PCI" },
173
174         { 0x001211bd, BTTV_BOARD_PINNACLE,      "Pinnacle PCTV" },
175         /* some cards ship with byteswapped IDs ... */
176         { 0x1200bd11, BTTV_BOARD_PINNACLE,      "Pinnacle PCTV [bswap]" },
177         { 0xff00bd11, BTTV_BOARD_PINNACLE,      "Pinnacle PCTV [bswap]" },
178         /* this seems to happen as well ... */
179         { 0xff1211bd, BTTV_BOARD_PINNACLE,      "Pinnacle PCTV" },
180
181         { 0x3000121a, BTTV_BOARD_VOODOOTV_FM,   "3Dfx VoodooTV FM/ VoodooTV 200" },
182         { 0x263710b4, BTTV_BOARD_VOODOOTV_FM,   "3Dfx VoodooTV FM/ VoodooTV 200" },
183         { 0x3060121a, BTTV_BOARD_STB2,    "3Dfx VoodooTV 100/ STB OEM" },
184
185         { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" },
186         { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" },
187         { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" },
188         { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" },
189         { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" },
190         { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" },
191         { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS,  "Phoebe TV Master (CPH060)" },
192
193         { 0x00011461, BTTV_BOARD_AVPHONE98,     "AVerMedia TVPhone98" },
194         { 0x00021461, BTTV_BOARD_AVERMEDIA98,   "AVermedia TVCapture 98" },
195         { 0x00031461, BTTV_BOARD_AVPHONE98,     "AVerMedia TVPhone98" },
196         { 0x00041461, BTTV_BOARD_AVERMEDIA98,   "AVerMedia TVCapture 98" },
197         { 0x03001461, BTTV_BOARD_AVERMEDIA98,   "VDOMATE TV TUNER CARD" },
198
199         { 0x1117153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue (Philips PAL B/G)" },
200         { 0x1118153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue (Temic PAL B/G)" },
201         { 0x1119153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue (Philips PAL I)" },
202         { 0x111a153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue (Temic PAL I)" },
203
204         { 0x1123153b, BTTV_BOARD_TERRATVRADIO,  "Terratec TV Radio+" },
205         { 0x1127153b, BTTV_BOARD_TERRATV,       "Terratec TV+ (V1.05)"    },
206         /* clashes with FlyVideo
207          *{ 0x18521852, BTTV_BOARD_TERRATV,     "Terratec TV+ (V1.10)"    }, */
208         { 0x1134153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue (LR102)" },
209         { 0x1135153b, BTTV_BOARD_TERRATVALUER,  "Terratec TValue Radio" }, /* LR102 */
210         { 0x5018153b, BTTV_BOARD_TERRATVALUE,   "Terratec TValue" },       /* ?? */
211         { 0xff3b153b, BTTV_BOARD_TERRATVALUER,  "Terratec TValue Radio" }, /* ?? */
212
213         { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
214         { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
215         { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
216         { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
217         { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
218
219         { 0x1430aa00, BTTV_BOARD_PV143,         "Provideo PV143A" },
220         { 0x1431aa00, BTTV_BOARD_PV143,         "Provideo PV143B" },
221         { 0x1432aa00, BTTV_BOARD_PV143,         "Provideo PV143C" },
222         { 0x1433aa00, BTTV_BOARD_PV143,         "Provideo PV143D" },
223         { 0x1433aa03, BTTV_BOARD_PV143,         "Security Eyes" },
224
225         { 0x1460aa00, BTTV_BOARD_PV150,         "Provideo PV150A-1" },
226         { 0x1461aa01, BTTV_BOARD_PV150,         "Provideo PV150A-2" },
227         { 0x1462aa02, BTTV_BOARD_PV150,         "Provideo PV150A-3" },
228         { 0x1463aa03, BTTV_BOARD_PV150,         "Provideo PV150A-4" },
229
230         { 0x1464aa04, BTTV_BOARD_PV150,         "Provideo PV150B-1" },
231         { 0x1465aa05, BTTV_BOARD_PV150,         "Provideo PV150B-2" },
232         { 0x1466aa06, BTTV_BOARD_PV150,         "Provideo PV150B-3" },
233         { 0x1467aa07, BTTV_BOARD_PV150,         "Provideo PV150B-4" },
234
235         { 0xa132ff00, BTTV_BOARD_IVC100,        "IVC-100"  },
236         { 0xa1550000, BTTV_BOARD_IVC200,        "IVC-200"  },
237         { 0xa1550001, BTTV_BOARD_IVC200,        "IVC-200"  },
238         { 0xa1550002, BTTV_BOARD_IVC200,        "IVC-200"  },
239         { 0xa1550003, BTTV_BOARD_IVC200,        "IVC-200"  },
240         { 0xa1550100, BTTV_BOARD_IVC200,        "IVC-200G" },
241         { 0xa1550101, BTTV_BOARD_IVC200,        "IVC-200G" },
242         { 0xa1550102, BTTV_BOARD_IVC200,        "IVC-200G" },
243         { 0xa1550103, BTTV_BOARD_IVC200,        "IVC-200G" },
244         { 0xa182ff00, BTTV_BOARD_IVC120,        "IVC-120G" },
245         { 0xa182ff01, BTTV_BOARD_IVC120,        "IVC-120G" },
246         { 0xa182ff02, BTTV_BOARD_IVC120,        "IVC-120G" },
247         { 0xa182ff03, BTTV_BOARD_IVC120,        "IVC-120G" },
248         { 0xa182ff04, BTTV_BOARD_IVC120,        "IVC-120G" },
249         { 0xa182ff05, BTTV_BOARD_IVC120,        "IVC-120G" },
250         { 0xa182ff06, BTTV_BOARD_IVC120,        "IVC-120G" },
251         { 0xa182ff07, BTTV_BOARD_IVC120,        "IVC-120G" },
252         { 0xa182ff08, BTTV_BOARD_IVC120,        "IVC-120G" },
253         { 0xa182ff09, BTTV_BOARD_IVC120,        "IVC-120G" },
254         { 0xa182ff0a, BTTV_BOARD_IVC120,        "IVC-120G" },
255         { 0xa182ff0b, BTTV_BOARD_IVC120,        "IVC-120G" },
256         { 0xa182ff0c, BTTV_BOARD_IVC120,        "IVC-120G" },
257         { 0xa182ff0d, BTTV_BOARD_IVC120,        "IVC-120G" },
258         { 0xa182ff0e, BTTV_BOARD_IVC120,        "IVC-120G" },
259         { 0xa182ff0f, BTTV_BOARD_IVC120,        "IVC-120G" },
260
261         { 0x41424344, BTTV_BOARD_GRANDTEC,      "GrandTec Multi Capture" },
262         { 0x01020304, BTTV_BOARD_XGUARD,        "Grandtec Grand X-Guard" },
263
264         { 0x18501851, BTTV_BOARD_CHRONOS_VS2,   "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
265         { 0xa0501851, BTTV_BOARD_CHRONOS_VS2,   "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
266         { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ,  "FlyVideo 98EZ (LR51)/ CyberMail AV" },
267         { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" },
268         { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" },
269         { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98,   "Lifeview Flyvideo 98" },
270
271         { 0x010115cb, BTTV_BOARD_GMV1,          "AG GMV1" },
272         { 0x010114c7, BTTV_BOARD_MODTEC_205,    "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" },
273
274         { 0x10b42636, BTTV_BOARD_HAUPPAUGE878,  "STB ???" },
275         { 0x217d6606, BTTV_BOARD_WINFAST2000,   "Leadtek WinFast TV 2000" },
276         { 0xfff6f6ff, BTTV_BOARD_WINFAST2000,   "Leadtek WinFast TV 2000" },
277         { 0x03116000, BTTV_BOARD_SENSORAY311,   "Sensoray 311" },
278         { 0x00790e11, BTTV_BOARD_WINDVR,        "Canopus WinDVR PCI" },
279         { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX,       "Face to Face Tvmax" },
280         { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" },
281         { 0x146caa0c, BTTV_BOARD_PV951,         "ituner spectra8" },
282         { 0x200a1295, BTTV_BOARD_PXC200,        "ImageNation PXC200A" },
283
284         { 0x40111554, BTTV_BOARD_PV_BT878P_9B,  "Prolink Pixelview PV-BT" },
285         { 0x17de0a01, BTTV_BOARD_KWORLD,        "Mecer TV/FM/Video Tuner" },
286
287         { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" },
288         { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" },
289         { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" },
290         { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" },
291
292         { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" },
293
294         /* likely broken, vendor id doesn't match the other magic views ...
295          * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */
296
297         /* Duplicate PCI ID, reconfigure for this board during the eeprom read.
298         * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB,  "Hauppauge ImpactVCB" }, */
299
300         /* DVB cards (using pci function .1 for mpeg data xfer) */
301         { 0x001c11bd, BTTV_BOARD_PINNACLESAT,   "Pinnacle PCTV Sat" },
302         { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
303         { 0x20007063, BTTV_BOARD_PC_HDTV,       "pcHDTV HD-2000 TV"},
304         { 0x002611bd, BTTV_BOARD_TWINHAN_DST,   "Pinnacle PCTV SAT CI" },
305         { 0x00011822, BTTV_BOARD_TWINHAN_DST,   "Twinhan VisionPlus DVB" },
306         { 0xfc00270f, BTTV_BOARD_TWINHAN_DST,   "ChainTech digitop DST-1000 DVB-S" },
307         { 0x07711461, BTTV_BOARD_AVDVBT_771,    "AVermedia AverTV DVB-T 771" },
308         { 0x07611461, BTTV_BOARD_AVDVBT_761,    "AverMedia AverTV DVB-T 761" },
309         { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE,    "DViCO FusionHDTV DVB-T Lite" },
310         { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE,    "DViCO FusionHDTV 5 Lite" },
311         { 0x00261822, BTTV_BOARD_TWINHAN_DST,   "DNTV Live! Mini "},
312
313         { 0, -1, NULL }
314 };
315
316 /* ----------------------------------------------------------------------- */
317 /* array with description for bt848 / bt878 tv/grabber cards               */
318
319 struct tvcard bttv_tvcards[] = {
320         /* ---- card 0x00 ---------------------------------- */
321         [BTTV_BOARD_UNKNOWN] = {
322                 .name           = " *** UNKNOWN/GENERIC *** ",
323                 .video_inputs   = 4,
324                 .audio_inputs   = 1,
325                 .tuner          = 0,
326                 .svhs           = 2,
327                 .muxsel         = { 2, 3, 1, 0 },
328                 .tuner_type     = -1,
329                 .tuner_addr     = ADDR_UNSET,
330                 .radio_addr     = ADDR_UNSET,
331         },
332         [BTTV_BOARD_MIRO] = {
333                 .name           = "MIRO PCTV",
334                 .video_inputs   = 4,
335                 .audio_inputs   = 1,
336                 .tuner          = 0,
337                 .svhs           = 2,
338                 .gpiomask       = 15,
339                 .muxsel         = { 2, 3, 1, 1 },
340                 .gpiomux        = { 2, 0, 0, 0 },
341                 .gpiomute       = 10,
342                 .needs_tvaudio  = 1,
343                 .tuner_type     = -1,
344                 .tuner_addr     = ADDR_UNSET,
345                 .radio_addr     = ADDR_UNSET,
346         },
347         [BTTV_BOARD_HAUPPAUGE] = {
348                 .name           = "Hauppauge (bt848)",
349                 .video_inputs   = 4,
350                 .audio_inputs   = 1,
351                 .tuner          = 0,
352                 .svhs           = 2,
353                 .gpiomask       = 7,
354                 .muxsel         = { 2, 3, 1, 1 },
355                 .gpiomux        = { 0, 1, 2, 3 },
356                 .gpiomute       = 4,
357                 .needs_tvaudio  = 1,
358                 .tuner_type     = -1,
359                 .tuner_addr     = ADDR_UNSET,
360                 .radio_addr     = ADDR_UNSET,
361         },
362         [BTTV_BOARD_STB] = {
363                 .name           = "STB, Gateway P/N 6000699 (bt848)",
364                 .video_inputs   = 3,
365                 .audio_inputs   = 1,
366                 .tuner          = 0,
367                 .svhs           = 2,
368                 .gpiomask       = 7,
369                 .muxsel         = { 2, 3, 1, 1 },
370                 .gpiomux        = { 4, 0, 2, 3 },
371                 .gpiomute       = 1,
372                 .no_msp34xx     = 1,
373                 .needs_tvaudio  = 1,
374                 .tuner_type     = TUNER_PHILIPS_NTSC,
375                 .tuner_addr     = ADDR_UNSET,
376                 .radio_addr     = ADDR_UNSET,
377                 .pll            = PLL_28,
378                 .has_radio      = 1,
379         },
380
381         /* ---- card 0x04 ---------------------------------- */
382         [BTTV_BOARD_INTEL] = {
383                 .name           = "Intel Create and Share PCI/ Smart Video Recorder III",
384                 .video_inputs   = 4,
385                 .audio_inputs   = 0,
386                 .tuner          = -1,
387                 .svhs           = 2,
388                 .gpiomask       = 0,
389                 .muxsel         = { 2, 3, 1, 1 },
390                 .gpiomux        = { 0 },
391                 .needs_tvaudio  = 0,
392                 .tuner_type     = 4,
393                 .tuner_addr     = ADDR_UNSET,
394                 .radio_addr     = ADDR_UNSET,
395         },
396         [BTTV_BOARD_DIAMOND] = {
397                 .name           = "Diamond DTV2000",
398                 .video_inputs   = 4,
399                 .audio_inputs   = 1,
400                 .tuner          = 0,
401                 .svhs           = 2,
402                 .gpiomask       = 3,
403                 .muxsel         = { 2, 3, 1, 0 },
404                 .gpiomux        = { 0, 1, 0, 1 },
405                 .gpiomute       = 3,
406                 .needs_tvaudio  = 1,
407                 .tuner_type     = -1,
408                 .tuner_addr     = ADDR_UNSET,
409                 .radio_addr     = ADDR_UNSET,
410         },
411         [BTTV_BOARD_AVERMEDIA] = {
412                 .name           = "AVerMedia TVPhone",
413                 .video_inputs   = 3,
414                 .audio_inputs   = 1,
415                 .tuner          = 0,
416                 .svhs           = 3,
417                 .muxsel         = { 2, 3, 1, 1 },
418                 .gpiomask       = 0x0f,
419                 .gpiomux        = { 0x0c, 0x04, 0x08, 0x04 },
420                 /*                0x04 for some cards ?? */
421                 .needs_tvaudio  = 1,
422                 .tuner_type     = -1,
423                 .tuner_addr     = ADDR_UNSET,
424                 .radio_addr     = ADDR_UNSET,
425                 .audio_hook     = avermedia_tvphone_audio,
426                 .has_remote     = 1,
427         },
428         [BTTV_BOARD_MATRIX_VISION] = {
429                 .name           = "MATRIX-Vision MV-Delta",
430                 .video_inputs   = 5,
431                 .audio_inputs   = 1,
432                 .tuner          = -1,
433                 .svhs           = 3,
434                 .gpiomask       = 0,
435                 .muxsel         = { 2, 3, 1, 0, 0 },
436                 .gpiomux        = { 0 },
437                 .needs_tvaudio  = 1,
438                 .tuner_type     = -1,
439                 .tuner_addr     = ADDR_UNSET,
440                 .radio_addr     = ADDR_UNSET,
441         },
442
443         /* ---- card 0x08 ---------------------------------- */
444         [BTTV_BOARD_FLYVIDEO] = {
445                 .name           = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26",
446                 .video_inputs   = 4,
447                 .audio_inputs   = 1,
448                 .tuner          = 0,
449                 .svhs           = 2,
450                 .gpiomask       = 0xc00,
451                 .muxsel         = { 2, 3, 1, 1 },
452                 .gpiomux        = { 0, 0xc00, 0x800, 0x400 },
453                 .gpiomute       = 0xc00,
454                 .needs_tvaudio  = 1,
455                 .pll            = PLL_28,
456                 .tuner_type     = -1,
457                 .tuner_addr     = ADDR_UNSET,
458                 .radio_addr     = ADDR_UNSET,
459         },
460         [BTTV_BOARD_TURBOTV] = {
461                 .name           = "IMS/IXmicro TurboTV",
462                 .video_inputs   = 3,
463                 .audio_inputs   = 1,
464                 .tuner          = 0,
465                 .svhs           = 2,
466                 .gpiomask       = 3,
467                 .muxsel         = { 2, 3, 1, 1 },
468                 .gpiomux        = { 1, 1, 2, 3 },
469                 .needs_tvaudio  = 0,
470                 .pll            = PLL_28,
471                 .tuner_type     = TUNER_TEMIC_PAL,
472                 .tuner_addr     = ADDR_UNSET,
473                 .radio_addr     = ADDR_UNSET,
474         },
475         [BTTV_BOARD_HAUPPAUGE878] = {
476                 .name           = "Hauppauge (bt878)",
477                 .video_inputs   = 4,
478                 .audio_inputs   = 1,
479                 .tuner          = 0,
480                 .svhs           = 2,
481                 .gpiomask       = 0x0f, /* old: 7 */
482                 .muxsel         = { 2, 0, 1, 1 },
483                 .gpiomux        = { 0, 1, 2, 3 },
484                 .gpiomute       = 4,
485                 .needs_tvaudio  = 1,
486                 .pll            = PLL_28,
487                 .tuner_type     = -1,
488                 .tuner_addr     = ADDR_UNSET,
489                 .radio_addr     = ADDR_UNSET,
490         },
491         [BTTV_BOARD_MIROPRO] = {
492                 .name           = "MIRO PCTV pro",
493                 .video_inputs   = 3,
494                 .audio_inputs   = 1,
495                 .tuner          = 0,
496                 .svhs           = 2,
497                 .gpiomask       = 0x3014f,
498                 .muxsel         = { 2, 3, 1, 1 },
499                 .gpiomux        = { 0x20001,0x10001, 0, 0 },
500                 .gpiomute       = 10,
501                 .needs_tvaudio  = 1,
502                 .tuner_type     = -1,
503                 .tuner_addr     = ADDR_UNSET,
504                 .radio_addr     = ADDR_UNSET,
505         },
506
507         /* ---- card 0x0c ---------------------------------- */
508         [BTTV_BOARD_ADSTECH_TV] = {
509                 .name           = "ADS Technologies Channel Surfer TV (bt848)",
510                 .video_inputs   = 3,
511                 .audio_inputs   = 1,
512                 .tuner          = 0,
513                 .svhs           = 2,
514                 .gpiomask       = 15,
515                 .muxsel         = { 2, 3, 1, 1 },
516                 .gpiomux        = { 13, 14, 11, 7 },
517                 .needs_tvaudio  = 1,
518                 .tuner_type     = -1,
519                 .tuner_addr     = ADDR_UNSET,
520                 .radio_addr     = ADDR_UNSET,
521         },
522         [BTTV_BOARD_AVERMEDIA98] = {
523                 .name           = "AVerMedia TVCapture 98",
524                 .video_inputs   = 3,
525                 .audio_inputs   = 4,
526                 .tuner          = 0,
527                 .svhs           = 2,
528                 .gpiomask       = 15,
529                 .muxsel         = { 2, 3, 1, 1 },
530                 .gpiomux        = { 13, 14, 11, 7 },
531                 .needs_tvaudio  = 1,
532                 .msp34xx_alt    = 1,
533                 .pll            = PLL_28,
534                 .tuner_type     = TUNER_PHILIPS_PAL,
535                 .tuner_addr     = ADDR_UNSET,
536                 .radio_addr     = ADDR_UNSET,
537                 .audio_hook     = avermedia_tv_stereo_audio,
538                 .no_gpioirq     = 1,
539         },
540         [BTTV_BOARD_VHX] = {
541                 .name           = "Aimslab Video Highway Xtreme (VHX)",
542                 .video_inputs   = 3,
543                 .audio_inputs   = 1,
544                 .tuner          = 0,
545                 .svhs           = 2,
546                 .gpiomask       = 7,
547                 .muxsel         = { 2, 3, 1, 1 },
548                 .gpiomux        = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */
549                 .gpiomute       = 4,
550                 .needs_tvaudio  = 1,
551                 .pll            = PLL_28,
552                 .tuner_type     = -1,
553                 .tuner_addr     = ADDR_UNSET,
554                 .radio_addr     = ADDR_UNSET,
555         },
556         [BTTV_BOARD_ZOLTRIX] = {
557                 .name           = "Zoltrix TV-Max",
558                 .video_inputs   = 3,
559                 .audio_inputs   = 1,
560                 .tuner          = 0,
561                 .svhs           = 2,
562                 .gpiomask       = 15,
563                 .muxsel         = { 2, 3, 1, 1 },
564                 .gpiomux        = { 0, 0, 1, 0 },
565                 .gpiomute       = 10,
566                 .needs_tvaudio  = 1,
567                 .tuner_type     = -1,
568                 .tuner_addr     = ADDR_UNSET,
569                 .radio_addr     = ADDR_UNSET,
570         },
571
572         /* ---- card 0x10 ---------------------------------- */
573         [BTTV_BOARD_PIXVIEWPLAYTV] = {
574                 .name           = "Prolink Pixelview PlayTV (bt878)",
575                 .video_inputs   = 3,
576                 .audio_inputs   = 1,
577                 .tuner          = 0,
578                 .svhs           = 2,
579                 .gpiomask       = 0x01fe00,
580                 .muxsel         = { 2, 3, 1, 1 },
581         #if 0
582                 /* old */
583                 .gpiomux        = { 0x01c000, 0, 0x018000, 0x014000, 0x002000 },
584         #else
585                 /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */
586                 .gpiomux        = { 0x001e00, 0, 0x018000, 0x014000 },
587                 .gpiomute       = 0x002000,
588         #endif
589                 .needs_tvaudio  = 1,
590                 .pll            = PLL_28,
591                 .tuner_type     = -1,
592         },
593         [BTTV_BOARD_WINVIEW_601] = {
594                 .name           = "Leadtek WinView 601",
595                 .video_inputs   = 3,
596                 .audio_inputs   = 1,
597                 .tuner          = 0,
598                 .svhs           = 2,
599                 .gpiomask       = 0x8300f8,
600                 .muxsel         = { 2, 3, 1, 1,0 },
601                 .gpiomux        = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 },
602                 .gpiomute       = 0xcfa007,
603                 .needs_tvaudio  = 1,
604                 .tuner_type     = -1,
605                 .tuner_addr     = ADDR_UNSET,
606                 .radio_addr     = ADDR_UNSET,
607                 .audio_hook     = winview_audio,
608                 .has_radio      = 1,
609         },
610         [BTTV_BOARD_AVEC_INTERCAP] = {
611                 .name           = "AVEC Intercapture",
612                 .video_inputs   = 3,
613                 .audio_inputs   = 2,
614                 .tuner          = 0,
615                 .svhs           = 2,
616                 .gpiomask       = 0,
617                 .muxsel         = { 2, 3, 1, 1 },
618                 .gpiomux        = { 1, 0, 0, 0 },
619                 .needs_tvaudio  = 1,
620                 .tuner_type     = -1,
621                 .tuner_addr     = ADDR_UNSET,
622                 .radio_addr     = ADDR_UNSET,
623         },
624         [BTTV_BOARD_LIFE_FLYKIT] = {
625                 .name           = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)",
626                 .video_inputs   = 4,
627                 .audio_inputs   = 1,
628                 .tuner          = -1,
629                 .svhs           = -1,
630                 .gpiomask       = 0x8dff00,
631                 .muxsel         = { 2, 3, 1, 1 },
632                 .gpiomux        = { 0 },
633                 .no_msp34xx     = 1,
634                 .tuner_type     = -1,
635                 .tuner_addr     = ADDR_UNSET,
636                 .radio_addr     = ADDR_UNSET,
637         },
638
639         /* ---- card 0x14 ---------------------------------- */
640         [BTTV_BOARD_CEI_RAFFLES] = {
641                 .name           = "CEI Raffles Card",
642                 .video_inputs   = 3,
643                 .audio_inputs   = 3,
644                 .tuner          = 0,
645                 .svhs           = 2,
646                 .muxsel         = { 2, 3, 1, 1 },
647                 .tuner_type     = -1,
648                 .tuner_addr     = ADDR_UNSET,
649                 .radio_addr     = ADDR_UNSET,
650         },
651         [BTTV_BOARD_CONFERENCETV] = {
652                 .name           = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50",
653                 .video_inputs   = 4,
654                 .audio_inputs   = 2,  /* tuner, line in */
655                 .tuner          = 0,
656                 .svhs           = 2,
657                 .gpiomask       = 0x1800,
658                 .muxsel         = { 2, 3, 1, 1 },
659                 .gpiomux        = { 0, 0x800, 0x1000, 0x1000 },
660                 .gpiomute       = 0x1800,
661                 .pll            = PLL_28,
662                 .tuner_type     = TUNER_PHILIPS_PAL_I,
663                 .tuner_addr     = ADDR_UNSET,
664                 .radio_addr     = ADDR_UNSET,
665         },
666         [BTTV_BOARD_PHOEBE_TVMAS] = {
667                 .name           = "Askey CPH050/ Phoebe Tv Master + FM",
668                 .video_inputs   = 3,
669                 .audio_inputs   = 1,
670                 .tuner          = 0,
671                 .svhs           = 2,
672                 .gpiomask       = 0xc00,
673                 .muxsel         = { 2, 3, 1, 1 },
674                 .gpiomux        = { 0, 1, 0x800, 0x400 },
675                 .gpiomute       = 0xc00,
676                 .needs_tvaudio  = 1,
677                 .pll            = PLL_28,
678                 .tuner_type     = -1,
679                 .tuner_addr     = ADDR_UNSET,
680                 .radio_addr     = ADDR_UNSET,
681         },
682         [BTTV_BOARD_MODTEC_205] = {
683                 .name           = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878",
684                 .video_inputs   = 3,
685                 .audio_inputs   = 1,
686                 .tuner          = 0,
687                 .svhs           = -1,
688                 .gpiomask       = 7,
689                 .muxsel         = { 2, 3, -1 },
690                 .digital_mode   = DIGITAL_MODE_CAMERA,
691                 .gpiomux        = { 0, 0, 0, 0 },
692                 .no_msp34xx     = 1,
693                 .pll            = PLL_28,
694                 .tuner_type     = TUNER_ALPS_TSBB5_PAL_I,
695                 .tuner_addr     = ADDR_UNSET,
696                 .radio_addr     = ADDR_UNSET,
697         },
698
699         /* ---- card 0x18 ---------------------------------- */
700         [BTTV_BOARD_MAGICTVIEW061] = {
701                 .name           = "Askey CPH05X/06X (bt878) [many vendors]",
702                 .video_inputs   = 3,
703                 .audio_inputs   = 1,
704                 .tuner          = 0,
705                 .svhs           = 2,
706                 .gpiomask       = 0xe00,
707                 .muxsel         = { 2, 3, 1, 1 },
708                 .gpiomux        = {0x400, 0x400, 0x400, 0x400 },
709                 .gpiomute       = 0xc00,
710                 .needs_tvaudio  = 1,
711                 .pll            = PLL_28,
712                 .tuner_type     = -1,
713                 .tuner_addr     = ADDR_UNSET,
714                 .radio_addr     = ADDR_UNSET,
715                 .has_remote     = 1,
716         },
717         [BTTV_BOARD_VOBIS_BOOSTAR] = {
718                 .name           = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar",
719                 .video_inputs   = 3,
720                 .audio_inputs   = 1,
721                 .tuner          = 0,
722                 .svhs           = 2,
723                 .gpiomask       = 0x1f0fff,
724                 .muxsel         = { 2, 3, 1, 1 },
725                 .gpiomux        = { 0x20000, 0x30000, 0x10000, 0 },
726                 .gpiomute       = 0x40000,
727                 .needs_tvaudio  = 0,
728                 .tuner_type     = TUNER_PHILIPS_PAL,
729                 .tuner_addr     = ADDR_UNSET,
730                 .radio_addr     = ADDR_UNSET,
731                 .audio_hook     = terratv_audio,
732         },
733         [BTTV_BOARD_HAUPPAUG_WCAM] = {
734                 .name           = "Hauppauge WinCam newer (bt878)",
735                 .video_inputs   = 4,
736                 .audio_inputs   = 1,
737                 .tuner          = 0,
738                 .svhs           = 3,
739                 .gpiomask       = 7,
740                 .muxsel         = { 2, 0, 1, 1 },
741                 .gpiomux        = { 0, 1, 2, 3 },
742                 .gpiomute       = 4,
743                 .needs_tvaudio  = 1,
744                 .tuner_type     = -1,
745                 .tuner_addr     = ADDR_UNSET,
746                 .radio_addr     = ADDR_UNSET,
747         },
748         [BTTV_BOARD_MAXI] = {
749                 .name           = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50",
750                 .video_inputs   = 4,
751                 .audio_inputs   = 2,
752                 .tuner          = 0,
753                 .svhs           = 2,
754                 .gpiomask       = 0x1800,
755                 .muxsel         = { 2, 3, 1, 1 },
756                 .gpiomux        = { 0, 0x800, 0x1000, 0x1000 },
757                 .gpiomute       = 0x1800,
758                 .pll            = PLL_28,
759                 .tuner_type     = TUNER_PHILIPS_SECAM,
760                 .tuner_addr     = ADDR_UNSET,
761                 .radio_addr     = ADDR_UNSET,
762         },
763
764         /* ---- card 0x1c ---------------------------------- */
765         [BTTV_BOARD_TERRATV] = {
766                 .name           = "Terratec TerraTV+ Version 1.1 (bt878)",
767                 .video_inputs   = 3,
768                 .audio_inputs   = 1,
769                 .tuner          = 0,
770                 .svhs           = 2,
771                 .gpiomask       = 0x1f0fff,
772                 .muxsel         = { 2, 3, 1, 1 },
773                 .gpiomux        = { 0x20000, 0x30000, 0x10000, 0x00000 },
774                 .gpiomute       = 0x40000,
775                 .needs_tvaudio  = 0,
776                 .tuner_type     = TUNER_PHILIPS_PAL,
777                 .tuner_addr     = ADDR_UNSET,
778                 .radio_addr     = ADDR_UNSET,
779                 .audio_hook     = terratv_audio,
780                 /* GPIO wiring:
781                 External 20 pin connector (for Active Radio Upgrade board)
782                 gpio00: i2c-sda
783                 gpio01: i2c-scl
784                 gpio02: om5610-data
785                 gpio03: om5610-clk
786                 gpio04: om5610-wre
787                 gpio05: om5610-stereo
788                 gpio06: rds6588-davn
789                 gpio07: Pin 7 n.c.
790                 gpio08: nIOW
791                 gpio09+10: nIOR, nSEL ?? (bt878)
792                         gpio09: nIOR (bt848)
793                         gpio10: nSEL (bt848)
794                 Sound Routing:
795                 gpio16: u2-A0 (1st 4052bt)
796                 gpio17: u2-A1
797                 gpio18: u2-nEN
798                 gpio19: u4-A0 (2nd 4052)
799                 gpio20: u4-A1
800                         u4-nEN - GND
801                 Btspy:
802                         00000 : Cdrom (internal audio input)
803                         10000 : ext. Video audio input
804                         20000 : TV Mono
805                         a0000 : TV Mono/2
806                 1a0000 : TV Stereo
807                         30000 : Radio
808                         40000 : Mute
809         */
810
811         },
812         [BTTV_BOARD_PXC200] = {
813                 /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */
814                 .name           = "Imagenation PXC200",
815                 .video_inputs   = 5,
816                 .audio_inputs   = 1,
817                 .tuner          = -1,
818                 .svhs           = 1, /* was: 4 */
819                 .gpiomask       = 0,
820                 .muxsel         = { 2, 3, 1, 0, 0},
821                 .gpiomux        = { 0 },
822                 .needs_tvaudio  = 1,
823                 .tuner_type     = -1,
824                 .tuner_addr     = ADDR_UNSET,
825                 .radio_addr     = ADDR_UNSET,
826                 .muxsel_hook    = PXC200_muxsel,
827
828         },
829         [BTTV_BOARD_FLYVIDEO_98] = {
830                 .name           = "Lifeview FlyVideo 98 LR50",
831                 .video_inputs   = 4,
832                 .audio_inputs   = 1,
833                 .tuner          = 0,
834                 .svhs           = 2,
835                 .gpiomask       = 0x1800,  /* 0x8dfe00 */
836                 .muxsel         = { 2, 3, 1, 1 },
837                 .gpiomux        = { 0, 0x0800, 0x1000, 0x1000 },
838                 .gpiomute       = 0x1800,
839                 .pll            = PLL_28,
840                 .tuner_type     = -1,
841                 .tuner_addr     = ADDR_UNSET,
842                 .radio_addr     = ADDR_UNSET,
843         },
844         [BTTV_BOARD_IPROTV] = {
845                 .name           = "Formac iProTV, Formac ProTV I (bt848)",
846                 .video_inputs   = 4,
847                 .audio_inputs   = 1,
848                 .tuner          = 0,
849                 .svhs           = 3,
850                 .gpiomask       = 1,
851                 .muxsel         = { 2, 3, 1, 1 },
852                 .gpiomux        = { 1, 0, 0, 0 },
853                 .pll            = PLL_28,
854                 .tuner_type     = TUNER_PHILIPS_PAL,
855                 .tuner_addr     = ADDR_UNSET,
856                 .radio_addr     = ADDR_UNSET,
857         },
858
859         /* ---- card 0x20 ---------------------------------- */
860         [BTTV_BOARD_INTEL_C_S_PCI] = {
861                 .name           = "Intel Create and Share PCI/ Smart Video Recorder III",
862                 .video_inputs   = 4,
863                 .audio_inputs   = 0,
864                 .tuner          = -1,
865                 .svhs           = 2,
866                 .gpiomask       = 0,
867                 .muxsel         = { 2, 3, 1, 1 },
868                 .gpiomux        = { 0 },
869                 .needs_tvaudio  = 0,
870                 .tuner_type     = 4,
871                 .tuner_addr     = ADDR_UNSET,
872                 .radio_addr     = ADDR_UNSET,
873         },
874         [BTTV_BOARD_TERRATVALUE] = {
875                 .name           = "Terratec TerraTValue Version Bt878",
876                 .video_inputs   = 3,
877                 .audio_inputs   = 1,
878                 .tuner          = 0,
879                 .svhs           = 2,
880                 .gpiomask       = 0xffff00,
881                 .muxsel         = { 2, 3, 1, 1 },
882                 .gpiomux        = { 0x500, 0, 0x300, 0x900 },
883                 .gpiomute       = 0x900,
884                 .needs_tvaudio  = 1,
885                 .pll            = PLL_28,
886                 .tuner_type     = TUNER_PHILIPS_PAL,
887                 .tuner_addr     = ADDR_UNSET,
888                 .radio_addr     = ADDR_UNSET,
889         },
890         [BTTV_BOARD_WINFAST2000] = {
891                 .name           = "Leadtek WinFast 2000/ WinFast 2000 XP",
892                 .video_inputs   = 4,
893                 .audio_inputs   = 1,
894                 .tuner          = 0,
895                 .svhs           = 2,
896                 .muxsel         = { 2, 3, 1, 1, 0 }, /* TV, CVid, SVid, CVid over SVid connector */
897         #if 0
898                 .gpiomask       = 0xc33000,
899                 .gpiomux        = { 0x422000,0x1000,0x0000,0x620000,0x800000 },
900         #else
901                 /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */
902                 .gpiomask       = 0xb33000,
903                 .gpiomux        = { 0x122000,0x1000,0x0000,0x620000 },
904                 .gpiomute       = 0x800000,
905         #endif
906                 /* Audio Routing for "WinFast 2000 XP" (no tv stereo !)
907                         gpio23 -- hef4052:nEnable (0x800000)
908                         gpio12 -- hef4052:A1
909                         gpio13 -- hef4052:A0
910                 0x0000: external audio
911                 0x1000: FM
912                 0x2000: TV
913                 0x3000: n.c.
914                 Note: There exists another variant "Winfast 2000" with tv stereo !?
915                 Note: eeprom only contains FF and pci subsystem id 107d:6606
916                 */
917                 .needs_tvaudio  = 0,
918                 .pll            = PLL_28,
919                 .has_radio      = 1,
920                 .tuner_type     = 5, /* default for now, gpio reads BFFF06 for Pal bg+dk */
921                 .tuner_addr     = ADDR_UNSET,
922                 .radio_addr     = ADDR_UNSET,
923                 .audio_hook     = winfast2000_audio,
924                 .has_remote     = 1,
925         },
926         [BTTV_BOARD_CHRONOS_VS2] = {
927                 .name           = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II",
928                 .video_inputs   = 4,
929                 .audio_inputs   = 3,
930                 .tuner          = 0,
931                 .svhs           = 2,
932                 .gpiomask       = 0x1800,
933                 .muxsel         = { 2, 3, 1, 1 },
934                 .gpiomux        = { 0, 0x800, 0x1000, 0x1000 },
935                 .gpiomute       = 0x1800,
936                 .pll            = PLL_28,
937                 .tuner_type     = -1,
938                 .tuner_addr     = ADDR_UNSET,
939                 .radio_addr     = ADDR_UNSET,
940         },
941
942         /* ---- card 0x24 ---------------------------------- */
943         [BTTV_BOARD_TYPHOON_TVIEW] = {
944                 .name           = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner",
945                 .video_inputs   = 4,
946                 .audio_inputs   = 3,
947                 .tuner          = 0,
948                 .svhs           = 2,
949                 .gpiomask       = 0x1800,
950                 .muxsel         = { 2, 3, 1, 1 },
951                 .gpiomux        = { 0, 0x800, 0x1000, 0x1000 },
952                 .gpiomute       = 0x1800,
953                 .pll            = PLL_28,
954                 .tuner_type     = -1,
955                 .tuner_addr     = ADDR_UNSET,
956                 .radio_addr     = ADDR_UNSET,
957                 .has_radio      = 1,
958         },
959         [BTTV_BOARD_PXELVWPLTVPRO] = {
960                 .name           = "Prolink PixelView PlayTV pro",
961                 .video_inputs   = 3,
962                 .audio_inputs   = 1,
963                 .tuner          = 0,
964                 .svhs           = 2,
965                 .gpiomask       = 0xff,
966                 .muxsel         = { 2, 3, 1, 1 },
967                 .gpiomux        = { 0x21, 0x20, 0x24, 0x2c },
968                 .gpiomute       = 0x29,
969                 .no_msp34xx     = 1,
970                 .pll            = PLL_28,
971                 .tuner_type     = -1,
972                 .tuner_addr     = ADDR_UNSET,
973                 .radio_addr     = ADDR_UNSET,
974         },
975         [BTTV_BOARD_MAGICTVIEW063] = {
976                 .name           = "Askey CPH06X TView99",
977                 .video_inputs   = 4,
978                 .audio_inputs   = 1,
979                 .tuner          = 0,
980                 .svhs           = 2,
981                 .gpiomask       = 0x551e00,
982                 .muxsel         = { 2, 3, 1, 0 },
983                 .gpiomux        = { 0x551400, 0x551200, 0, 0 },
984                 .gpiomute       = 0x551c00,
985                 .needs_tvaudio  = 1,
986                 .pll            = PLL_28,
987                 .tuner_type     = 1,
988                 .tuner_addr     = ADDR_UNSET,
989                 .radio_addr     = ADDR_UNSET,
990                 .has_remote     = 1,
991         },
992         [BTTV_BOARD_PINNACLE] = {
993                 .name           = "Pinnacle PCTV Studio/Rave",
994                 .video_inputs   = 3,
995                 .audio_inputs   = 1,
996                 .tuner          = 0,
997                 .svhs           = 2,
998                 .gpiomask       = 0x03000F,
999                 .muxsel         = { 2, 3, 1, 1 },
1000                 .gpiomux        = { 2, 0xd0001, 0, 0 },
1001                 .gpiomute       = 1,
1002                 .needs_tvaudio  = 0,
1003                 .pll            = PLL_28,
1004                 .tuner_type     = -1,
1005                 .tuner_addr     = ADDR_UNSET,
1006                 .radio_addr     = ADDR_UNSET,
1007         },
1008
1009         /* ---- card 0x28 ---------------------------------- */
1010         [BTTV_BOARD_STB2] = {
1011                 .name           = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100",
1012                 .video_inputs   = 3,
1013                 .audio_inputs   = 1,
1014                 .tuner          = 0,
1015                 .svhs           = 2,
1016                 .gpiomask       = 7,
1017                 .muxsel         = { 2, 3, 1, 1 },
1018                 .gpiomux        = { 4, 0, 2, 3 },
1019                 .gpiomute       = 1,
1020                 .no_msp34xx     = 1,
1021                 .needs_tvaudio  = 1,
1022                 .tuner_type     = TUNER_PHILIPS_NTSC,
1023                 .tuner_addr     = ADDR_UNSET,
1024                 .radio_addr     = ADDR_UNSET,
1025                 .pll            = PLL_28,
1026                 .has_radio      = 1,
1027         },
1028         [BTTV_BOARD_AVPHONE98] = {
1029                 .name           = "AVerMedia TVPhone 98",
1030                 .video_inputs   = 3,
1031                 .audio_inputs   = 4,
1032                 .tuner          = 0,
1033                 .svhs           = 2,
1034                 .gpiomask       = 15,
1035                 .muxsel         = { 2, 3, 1, 1 },
1036                 .gpiomux        = { 13, 4, 11, 7 },
1037                 .needs_tvaudio  = 1,
1038                 .pll            = PLL_28,
1039                 .tuner_type     = -1,
1040                 .tuner_addr     = ADDR_UNSET,
1041                 .radio_addr     = ADDR_UNSET,
1042                 .has_radio      = 1,
1043                 .audio_hook     = avermedia_tvphone_audio,
1044         },
1045         [BTTV_BOARD_PV951] = {
1046                 .name           = "ProVideo PV951", /* pic16c54 */
1047                 .video_inputs   = 3,
1048                 .audio_inputs   = 1,
1049                 .tuner          = 0,
1050                 .svhs           = 2,
1051                 .gpiomask       = 0,
1052                 .muxsel         = { 2, 3, 1, 1},
1053                 .gpiomux        = { 0, 0, 0, 0},
1054                 .needs_tvaudio  = 1,
1055                 .no_msp34xx     = 1,
1056                 .pll            = PLL_28,
1057                 .tuner_type     = 1,
1058                 .tuner_addr     = ADDR_UNSET,
1059                 .radio_addr     = ADDR_UNSET,
1060         },
1061         [BTTV_BOARD_ONAIR_TV] = {
1062                 .name           = "Little OnAir TV",
1063                 .video_inputs   = 3,
1064                 .audio_inputs   = 1,
1065                 .tuner          = 0,
1066                 .svhs           = 2,
1067                 .gpiomask       = 0xe00b,
1068                 .muxsel         = { 2, 3, 1, 1 },
1069                 .gpiomux        = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 },
1070                 .gpiomute       = 0xff3ffc,
1071                 .no_msp34xx     = 1,
1072                 .tuner_type     = -1,
1073                 .tuner_addr     = ADDR_UNSET,
1074                 .radio_addr     = ADDR_UNSET,
1075         },
1076
1077         /* ---- card 0x2c ---------------------------------- */
1078         [BTTV_BOARD_SIGMA_TVII_FM] = {
1079                 .name           = "Sigma TVII-FM",
1080                 .video_inputs   = 2,
1081                 .audio_inputs   = 1,
1082                 .tuner          = 0,
1083                 .svhs           = -1,
1084                 .gpiomask       = 3,
1085                 .muxsel         = { 2, 3, 1, 1 },
1086                 .gpiomux        = { 1, 1, 0, 2 },
1087                 .gpiomute       = 3,
1088                 .no_msp34xx     = 1,
1089                 .pll            = PLL_NONE,
1090                 .tuner_type     = -1,
1091                 .tuner_addr     = ADDR_UNSET,
1092                 .radio_addr     = ADDR_UNSET,
1093         },
1094         [BTTV_BOARD_MATRIX_VISION2] = {
1095                 .name           = "MATRIX-Vision MV-Delta 2",
1096                 .video_inputs   = 5,
1097                 .audio_inputs   = 1,
1098                 .tuner          = -1,
1099                 .svhs           = 3,
1100                 .gpiomask       = 0,
1101                 .muxsel         = { 2, 3, 1, 0, 0 },
1102                 .gpiomux        = { 0 },
1103                 .no_msp34xx     = 1,
1104                 .pll            = PLL_28,
1105                 .tuner_type     = -1,
1106                 .tuner_addr     = ADDR_UNSET,
1107                 .radio_addr     = ADDR_UNSET,
1108         },
1109         [BTTV_BOARD_ZOLTRIX_GENIE] = {
1110                 .name           = "Zoltrix Genie TV/FM",
1111                 .video_inputs   = 3,
1112                 .audio_inputs   = 1,
1113                 .tuner          = 0,
1114                 .svhs           = 2,
1115                 .gpiomask       = 0xbcf03f,
1116                 .muxsel         = { 2, 3, 1, 1 },
1117                 .gpiomux        = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 },
1118                 .gpiomute       = 0xbcb03f,
1119                 .no_msp34xx     = 1,
1120                 .pll            = PLL_28,
1121                 .tuner_type     = 21,
1122                 .tuner_addr     = ADDR_UNSET,
1123                 .radio_addr     = ADDR_UNSET,
1124         },
1125         [BTTV_BOARD_TERRATVRADIO] = {
1126                 .name           = "Terratec TV/Radio+",
1127                 .video_inputs   = 3,
1128                 .audio_inputs   = 1,
1129                 .tuner          = 0,
1130                 .svhs           = 2,
1131                 .gpiomask       = 0x70000,
1132                 .muxsel         = { 2, 3, 1, 1 },
1133                 .gpiomux        = { 0x20000, 0x30000, 0x10000, 0 },
1134                 .gpiomute       = 0x40000,
1135                 .needs_tvaudio  = 1,
1136                 .no_msp34xx     = 1,
1137                 .pll            = PLL_35,
1138                 .tuner_type     = 1,
1139                 .tuner_addr     = ADDR_UNSET,
1140                 .radio_addr     = ADDR_UNSET,
1141                 .has_radio      = 1,
1142         },
1143
1144         /* ---- card 0x30 ---------------------------------- */
1145         [BTTV_BOARD_DYNALINK] = {
1146                 .name           = "Askey CPH03x/ Dynalink Magic TView",
1147                 .video_inputs   = 3,
1148                 .audio_inputs   = 1,
1149                 .tuner          = 0,
1150                 .svhs           = 2,
1151                 .gpiomask       = 15,
1152                 .muxsel         = { 2, 3, 1, 1 },
1153                 .gpiomux        = {2,0,0,0 },
1154                 .gpiomute       = 1,
1155                 .needs_tvaudio  = 1,
1156                 .pll            = PLL_28,
1157                 .tuner_type     = -1,
1158                 .tuner_addr     = ADDR_UNSET,
1159                 .radio_addr     = ADDR_UNSET,
1160         },
1161         [BTTV_BOARD_GVBCTV3PCI] = {
1162                 .name           = "IODATA GV-BCTV3/PCI",
1163                 .video_inputs   = 3,
1164                 .audio_inputs   = 1,
1165                 .tuner          = 0,
1166                 .svhs           = 2,
1167                 .gpiomask       = 0x010f00,
1168                 .muxsel         = {2, 3, 0, 0 },
1169                 .gpiomux        = {0x10000, 0, 0x10000, 0 },
1170                 .no_msp34xx     = 1,
1171                 .pll            = PLL_28,
1172                 .tuner_type     = TUNER_ALPS_TSHC6_NTSC,
1173                 .tuner_addr     = ADDR_UNSET,
1174                 .radio_addr     = ADDR_UNSET,
1175                 .audio_hook     = gvbctv3pci_audio,
1176         },
1177         [BTTV_BOARD_PXELVWPLTVPAK] = {
1178                 .name           = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP",
1179                 .video_inputs   = 5,
1180                 .audio_inputs   = 1,
1181                 .tuner          = 0,
1182                 .svhs           = 3,
1183                 .gpiomask       = 0xAA0000,
1184                 .muxsel         = { 2,3,1,1,-1 },
1185                 .digital_mode   = DIGITAL_MODE_CAMERA,
1186                 .gpiomux        = { 0x20000, 0, 0x80000, 0x80000 },
1187                 .gpiomute       = 0xa8000,
1188                 .no_msp34xx     = 1,
1189                 .pll            = PLL_28,
1190                 .tuner_type     = TUNER_PHILIPS_PAL_I,
1191                 .tuner_addr     = ADDR_UNSET,
1192                 .radio_addr     = ADDR_UNSET,
1193                 .has_remote     = 1,
1194                 /* GPIO wiring: (different from Rev.4C !)
1195                         GPIO17: U4.A0 (first hef4052bt)
1196                         GPIO19: U4.A1
1197                         GPIO20: U5.A1 (second hef4052bt)
1198                         GPIO21: U4.nEN
1199                         GPIO22: BT832 Reset Line
1200                         GPIO23: A5,A0, U5,nEN
1201                 Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22
1202                 */
1203         },
1204         [BTTV_BOARD_EAGLE] = {
1205                 .name           = "Eagle Wireless Capricorn2 (bt878A)",
1206                 .video_inputs   = 4,
1207                 .audio_inputs   = 1,
1208                 .tuner          = 0,
1209                 .svhs           = 2,
1210                 .gpiomask       = 7,
1211                 .muxsel         = { 2, 0, 1, 1 },
1212                 .gpiomux        = { 0, 1, 2, 3 },
1213                 .gpiomute       = 4,
1214                 .pll            = PLL_28,
1215                 .tuner_type     = -1 /* TUNER_ALPS_TMDH2_NTSC */,
1216                 .tuner_addr     = ADDR_UNSET,
1217                 .radio_addr     = ADDR_UNSET,
1218         },
1219
1220         /* ---- card 0x34 ---------------------------------- */
1221         [BTTV_BOARD_PINNACLEPRO] = {
1222                 /* David Härdeman <david@2gen.com> */
1223                 .name           = "Pinnacle PCTV Studio Pro",
1224                 .video_inputs   = 4,
1225                 .audio_inputs   = 1,
1226                 .tuner          = 0,
1227                 .svhs           = 3,
1228                 .gpiomask       = 0x03000F,
1229                 .muxsel         = { 2, 3, 1, 1 },
1230                 .gpiomux        = { 1, 0xd0001, 0, 0 },
1231                 .gpiomute       = 10,
1232                                 /* sound path (5 sources):
1233                                 MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable)
1234                                         0= ext. Audio IN
1235                                         1= from MUX2
1236                                         2= Mono TV sound from Tuner
1237                                         3= not connected
1238                                 MUX2 (mask 0x30000):
1239                                         0,2,3= from MSP34xx
1240                                         1= FM stereo Radio from Tuner */
1241                 .needs_tvaudio  = 0,
1242                 .pll            = PLL_28,
1243                 .tuner_type     = -1,
1244                 .tuner_addr     = ADDR_UNSET,
1245                 .radio_addr     = ADDR_UNSET,
1246         },
1247         [BTTV_BOARD_TVIEW_RDS_FM] = {
1248                 /* Claas Langbehn <claas@bigfoot.com>,
1249                 Sven Grothklags <sven@upb.de> */
1250                 .name           = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS",
1251                 .video_inputs   = 4,
1252                 .audio_inputs   = 3,
1253                 .tuner          = 0,
1254                 .svhs           = 2,
1255                 .gpiomask       = 0x1c,
1256                 .muxsel         = { 2, 3, 1, 1 },
1257                 .gpiomux        = { 0, 0, 0x10, 8 },
1258                 .gpiomute       = 4,
1259                 .needs_tvaudio  = 1,
1260                 .pll            = PLL_28,
1261                 .tuner_type     = TUNER_PHILIPS_PAL,
1262                 .tuner_addr     = ADDR_UNSET,
1263                 .radio_addr     = ADDR_UNSET,
1264                 .has_radio      = 1,
1265         },
1266         [BTTV_BOARD_LIFETEC_9415] = {
1267                 /* Tim Röstermundt <rosterm@uni-muenster.de>
1268                 in de.comp.os.unix.linux.hardware:
1269                         options bttv card=0 pll=1 radio=1 gpiomask=0x18e0
1270                         gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff
1271                         options tuner type=5 */
1272                 .name           = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]",
1273                 .video_inputs   = 4,
1274                 .audio_inputs   = 1,
1275                 .tuner          = 0,
1276                 .svhs           = 2,
1277                 .gpiomask       = 0x18e0,
1278                 .muxsel         = { 2, 3, 1, 1 },
1279                 .gpiomux        = { 0x0000,0x0800,0x1000,0x1000 },
1280                 .gpiomute       = 0x18e0,
1281                         /* For cards with tda9820/tda9821:
1282                                 0x0000: Tuner normal stereo
1283                                 0x0080: Tuner A2 SAP (second audio program = Zweikanalton)
1284                                 0x0880: Tuner A2 stereo */
1285                 .pll            = PLL_28,
1286                 .tuner_type     = -1,
1287                 .tuner_addr     = ADDR_UNSET,
1288                 .radio_addr     = ADDR_UNSET,
1289         },
1290         [BTTV_BOARD_BESTBUY_EASYTV] = {
1291                 /* Miguel Angel Alvarez <maacruz@navegalia.com>
1292                 old Easy TV BT848 version (model CPH031) */
1293                 .name           = "Askey CPH031/ BESTBUY Easy TV",
1294                 .video_inputs   = 4,
1295                 .audio_inputs   = 1,
1296                 .tuner          = 0,
1297                 .svhs           = 2,
1298                 .gpiomask       = 0xF,
1299                 .muxsel         = { 2, 3, 1, 0 },
1300                 .gpiomux        = { 2, 0, 0, 0 },
1301                 .gpiomute       = 10,
1302                 .needs_tvaudio  = 0,
1303                 .pll            = PLL_28,
1304                 .tuner_type     = TUNER_TEMIC_PAL,
1305                 .tuner_addr     = ADDR_UNSET,
1306                 .radio_addr     = ADDR_UNSET,
1307         },
1308
1309         /* ---- card 0x38 ---------------------------------- */
1310         [BTTV_BOARD_FLYVIDEO_98FM] = {
1311                 /* Gordon Heydon <gjheydon@bigfoot.com ('98) */
1312                 .name           = "Lifeview FlyVideo 98FM LR50",
1313                 .video_inputs   = 4,
1314                 .audio_inputs   = 3,
1315                 .tuner          = 0,
1316                 .svhs           = 2,
1317                 .gpiomask       = 0x1800,
1318                 .muxsel         = { 2, 3, 1, 1 },
1319                 .gpiomux        = { 0, 0x800, 0x1000, 0x1000 },
1320                 .gpiomute       = 0x1800,
1321                 .pll            = PLL_28,
1322                 .tuner_type     = 5,
1323                 .tuner_addr     = ADDR_UNSET,
1324                 .radio_addr     = ADDR_UNSET,
1325         },
1326                 /* This is the ultimate cheapo capture card
1327                 * just a BT848A on a small PCB!
1328                 * Steve Hosgood <steve@equiinet.com> */
1329         [BTTV_BOARD_GRANDTEC] = {
1330                 .name           = "GrandTec 'Grand Video Capture' (Bt848)",
1331                 .video_inputs   = 2,
1332                 .audio_inputs   = 0,
1333                 .tuner          = -1,
1334                 .svhs           = 1,
1335                 .gpiomask       = 0,
1336                 .muxsel         = { 3, 1 },
1337                 .gpiomux        = { 0 },
1338                 .needs_tvaudio  = 0,
1339                 .no_msp34xx     = 1,
1340                 .pll            = PLL_35,
1341                 .tuner_type     = -1,
1342                 .tuner_addr     = ADDR_UNSET,
1343                 .radio_addr     = ADDR_UNSET,
1344         },
1345         [BTTV_BOARD_ASKEY_CPH060] = {
1346                 /* Daniel Herrington <daniel.herrington@home.com> */
1347                 .name           = "Askey CPH060/ Phoebe TV Master Only (No FM)",
1348                 .video_inputs   = 3,
1349                 .audio_inputs   = 1,
1350                 .tuner          = 0,
1351                 .svhs           = 2,
1352                 .gpiomask       = 0xe00,
1353                 .muxsel         = { 2, 3, 1, 1},
1354                 .gpiomux        = { 0x400, 0x400, 0x400, 0x400 },
1355                 .gpiomute       = 0x800,
1356                 .needs_tvaudio  = 1,
1357                 .pll            = PLL_28,
1358                 .tuner_type     = TUNER_TEMIC_4036FY5_NTSC,
1359                 .tuner_addr     = ADDR_UNSET,
1360                 .radio_addr     = ADDR_UNSET,
1361         },
1362         [BTTV_BOARD_ASKEY_CPH03X] = {
1363                 /* Matti Mottus <mottus@physic.ut.ee> */
1364                 .name           = "Askey CPH03x TV Capturer",
1365                 .video_inputs   = 4,
1366                 .audio_inputs   = 1,
1367                 .tuner          = 0,
1368                 .svhs           = 2,
1369                 .gpiomask       = 0x03000F,
1370                 .muxsel         = { 2, 3, 1, 0 },
1371                 .gpiomux        = { 2, 0, 0, 0 },
1372                 .gpiomute       = 1,
1373                 .pll            = PLL_28,
1374                 .tuner_type     = 0,
1375                 .tuner_addr     = ADDR_UNSET,
1376                 .radio_addr     = ADDR_UNSET,
1377         },
1378
1379         /* ---- card 0x3c ---------------------------------- */
1380         [BTTV_BOARD_MM100PCTV] = {
1381                 /* Philip Blundell <philb@gnu.org> */
1382                 .name           = "Modular Technology MM100PCTV",
1383                 .video_inputs   = 2,
1384                 .audio_inputs   = 2,
1385                 .tuner          = 0,
1386                 .svhs           = -1,
1387                 .gpiomask       = 11,
1388                 .muxsel         = { 2, 3, 1, 1 },
1389                 .gpiomux        = { 2, 0, 0, 1 },
1390                 .gpiomute       = 8,
1391                 .pll            = PLL_35,
1392                 .tuner_type     = TUNER_TEMIC_PAL,
1393                 .tuner_addr     = ADDR_UNSET,
1394                 .radio_addr     = ADDR_UNSET,
1395         },
1396         [BTTV_BOARD_GMV1] = {
1397                 /* Adrian Cox <adrian@humboldt.co.uk */
1398                 .name           = "AG Electronics GMV1",
1399                 .video_inputs   = 2,
1400                 .audio_inputs   = 0,
1401                 .tuner          = -1,
1402                 .svhs           = 1,
1403                 .gpiomask       = 0xF,
1404                 .muxsel         = { 2, 2 },
1405                 .gpiomux        = { },
1406                 .no_msp34xx     = 1,
1407                 .needs_tvaudio  = 0,
1408                 .pll            = PLL_28,
1409                 .tuner_type     = -1,
1410                 .tuner_addr     = ADDR_UNSET,
1411                 .radio_addr     = ADDR_UNSET,
1412         },
1413         [BTTV_BOARD_BESTBUY_EASYTV2] = {
1414                 /* Miguel Angel Alvarez <maacruz@navegalia.com>
1415                 new Easy TV BT878 version (model CPH061)
1416                 special thanks to Informatica Mieres for providing the card */
1417                 .name           = "Askey CPH061/ BESTBUY Easy TV (bt878)",
1418                 .video_inputs   = 3,
1419                 .audio_inputs   = 2,
1420                 .tuner          = 0,
1421                 .svhs           = 2,
1422                 .gpiomask       = 0xFF,
1423                 .muxsel         = { 2, 3, 1, 0 },
1424                 .gpiomux        = { 1, 0, 4, 4 },
1425                 .gpiomute       = 9,
1426                 .needs_tvaudio  = 0,
1427                 .pll            = PLL_28,
1428                 .tuner_type     = TUNER_PHILIPS_PAL,
1429                 .tuner_addr     = ADDR_UNSET,
1430                 .radio_addr     = ADDR_UNSET,
1431         },
1432         [BTTV_BOARD_ATI_TVWONDER] = {
1433                 /* Lukas Gebauer <geby@volny.cz> */
1434                 .name           = "ATI TV-Wonder",
1435                 .video_inputs   = 3,
1436                 .audio_inputs   = 1,
1437                 .tuner          = 0,
1438                 .svhs           = 2,
1439                 .gpiomask       = 0xf03f,
1440                 .muxsel         = { 2, 3, 1, 0 },
1441                 .gpiomux        = { 0xbffe, 0, 0xbfff, 0 },
1442                 .gpiomute       = 0xbffe,
1443                 .pll            = PLL_28,
1444                 .tuner_type     = TUNER_TEMIC_4006FN5_MULTI_PAL,
1445                 .tuner_addr     = ADDR_UNSET,
1446                 .radio_addr     = ADDR_UNSET,
1447         },
1448
1449         /* ---- card 0x40 ---------------------------------- */
1450         [BTTV_BOARD_ATI_TVWONDERVE] = {
1451                 /* Lukas Gebauer <geby@volny.cz> */
1452                 .name           = "ATI TV-Wonder VE",
1453                 .video_inputs   = 2,
1454                 .audio_inputs   = 1,
1455                 .tuner          = 0,
1456                 .svhs           = -1,
1457                 .gpiomask       = 1,
1458                 .muxsel         = { 2, 3, 0, 1 },
1459                 .gpiomux        = { 0, 0, 1, 0 },
1460                 .no_msp34xx     = 1,
1461                 .pll            = PLL_28,
1462                 .tuner_type     = TUNER_TEMIC_4006FN5_MULTI_PAL,
1463                 .tuner_addr     = ADDR_UNSET,
1464                 .radio_addr     = ADDR_UNSET,
1465         },
1466         [BTTV_BOARD_FLYVIDEO2000] = {
1467                 /* DeeJay <deejay@westel900.net (2000S) */
1468                 .name           = "Lifeview FlyVideo 2000S LR90",
1469                 .video_inputs   = 3,
1470                 .audio_inputs   = 3,
1471                 .tuner          = 0,
1472                 .svhs           = 2,
1473                 .gpiomask       = 0x18e0,
1474                 .muxsel         = { 2, 3, 0, 1 },
1475                                 /* Radio changed from 1e80 to 0x800 to make
1476                                 FlyVideo2000S in .hu happy (gm)*/
1477                                 /* -dk-???: set mute=0x1800 for tda9874h daughterboard */
1478                 .gpiomux        = { 0x0000,0x0800,0x1000,0x1000 },
1479                 .gpiomute       = 0x1800,
1480                 .audio_hook     = fv2000s_audio,
1481                 .no_msp34xx     = 1,
1482                 .no_tda9875     = 1,
1483                 .needs_tvaudio  = 1,
1484                 .pll            = PLL_28,
1485                 .tuner_type     = 5,
1486                 .tuner_addr     = ADDR_UNSET,
1487                 .radio_addr     = ADDR_UNSET,
1488         },
1489         [BTTV_BOARD_TERRATVALUER] = {
1490                 .name           = "Terratec TValueRadio",
1491                 .video_inputs   = 3,
1492                 .audio_inputs   = 1,
1493                 .tuner          = 0,
1494                 .svhs           = 2,
1495                 .gpiomask       = 0xffff00,
1496                 .muxsel         = { 2, 3, 1, 1 },
1497                 .gpiomux        = { 0x500, 0x500, 0x300, 0x900 },
1498                 .gpiomute       = 0x900,
1499                 .needs_tvaudio  = 1,
1500                 .pll            = PLL_28,
1501                 .tuner_type     = TUNER_PHILIPS_PAL,
1502                 .tuner_addr     = ADDR_UNSET,
1503                 .radio_addr     = ADDR_UNSET,
1504                 .has_radio      = 1,
1505         },
1506         [BTTV_BOARD_GVBCTV4PCI] = {
1507                 /* TANAKA Kei <peg00625@nifty.com> */
1508                 .name           = "IODATA GV-BCTV4/PCI",
1509                 .video_inputs   = 3,
1510                 .audio_inputs   = 1,
1511                 .tuner          = 0,
1512                 .svhs           = 2,
1513                 .gpiomask       = 0x010f00,
1514                 .muxsel         = {2, 3, 0, 0 },
1515                 .gpiomux        = {0x10000, 0, 0x10000, 0 },
1516                 .no_msp34xx     = 1,
1517                 .pll            = PLL_28,
1518                 .tuner_type     = TUNER_SHARP_2U5JF5540_NTSC,
1519                 .tuner_addr     = ADDR_UNSET,
1520                 .radio_addr     = ADDR_UNSET,
1521                 .audio_hook     = gvbctv3pci_audio,
1522         },
1523
1524         /* ---- card 0x44 ---------------------------------- */
1525         [BTTV_BOARD_VOODOOTV_FM] = {
1526                 .name           = "3Dfx VoodooTV FM (Euro), VoodooTV 200 (USA)",
1527                 /* try "insmod msp3400 simple=0" if you have
1528                 * sound problems with this card. */
1529                 .video_inputs   = 4,
1530                 .audio_inputs   = 1,
1531                 .tuner          = 0,
1532                 .svhs           = -1,
1533                 .gpiomask       = 0x4f8a00,
1534                 /* 0x100000: 1=MSP enabled (0=disable again)
1535                 * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */
1536                 .gpiomux        = {0x947fff, 0x987fff,0x947fff,0x947fff },
1537                 .gpiomute       = 0x947fff,
1538                 /* tvtuner, radio,   external,internal, mute,  stereo
1539                 * tuner, Composit, SVid, Composit-on-Svid-adapter */
1540                 .muxsel         = { 2, 3 ,0 ,1 },
1541                 .tuner_type     = TUNER_MT2032,
1542                 .tuner_addr     = ADDR_UNSET,
1543                 .radio_addr     = ADDR_UNSET,
1544                 .pll            = PLL_28,
1545                 .has_radio      = 1,
1546         },
1547         [BTTV_BOARD_AIMMS] = {
1548                 /* Philip Blundell <pb@nexus.co.uk> */
1549                 .name           = "Active Imaging AIMMS",
1550                 .video_inputs   = 1,
1551                 .audio_inputs   = 0,
1552                 .tuner          = -1,
1553                 .tuner_type     = -1,
1554                 .tuner_addr     = ADDR_UNSET,
1555                 .radio_addr     = ADDR_UNSET,
1556                 .pll            = PLL_28,
1557                 .muxsel         = { 2 },
1558                 .gpiomask       = 0
1559         },
1560         [BTTV_BOARD_PV_BT878P_PLUS] = {
1561                 /* Tomasz Pyra <hellfire@sedez.iq.pl> */
1562                 .name           = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)",
1563                 .video_inputs   = 3,
1564                 .audio_inputs   = 4,
1565                 .tuner          = 0,
1566                 .svhs           = 2,
1567                 .gpiomask       = 15,
1568                 .muxsel         = { 2, 3, 1, 1 },
1569                 .gpiomux        = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */
1570                 .gpiomute       = 13,
1571                 .needs_tvaudio  = 1,
1572                 .pll            = PLL_28,
1573                 .tuner_type     = 25,
1574                 .tuner_addr     = ADDR_UNSET,
1575                 .radio_addr     = ADDR_UNSET,
1576                 .has_remote     = 1,
1577                 /* GPIO wiring:
1578                         GPIO0: U4.A0 (hef4052bt)
1579                         GPIO1: U4.A1
1580                         GPIO2: U4.A1 (second hef4052bt)
1581                         GPIO3: U4.nEN, U5.A0, A5.nEN
1582                         GPIO8-15: vrd866b ?
1583                 */
1584         },
1585         [BTTV_BOARD_FLYVIDEO98EZ] = {
1586                 .name           = "Lifeview FlyVideo 98EZ (capture only) LR51",
1587                 .video_inputs   = 4,
1588                 .audio_inputs   = 0,
1589                 .tuner          = -1,
1590                 .svhs           = 2,
1591                 .muxsel         = { 2, 3, 1, 1 }, /* AV1, AV2, SVHS, CVid adapter on SVHS */
1592                 .pll            = PLL_28,
1593                 .no_msp34xx     = 1,
1594                 .tuner_type     = UNSET,
1595                 .tuner_addr     = ADDR_UNSET,
1596                 .radio_addr     = ADDR_UNSET,
1597         },
1598
1599         /* ---- card 0x48 ---------------------------------- */
1600         [BTTV_BOARD_PV_BT878P_9B] = {
1601                 /* Dariusz Kowalewski <darekk@automex.pl> */
1602                 .name           = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)",
1603                 .video_inputs   = 4,
1604                 .audio_inputs   = 1,
1605                 .tuner          = 0,
1606                 .svhs           = 2,
1607                 .gpiomask       = 0x3f,
1608                 .muxsel         = { 2, 3, 1, 1 },
1609                 .gpiomux        = { 0x01, 0x00, 0x03, 0x03 },
1610                 .gpiomute       = 0x09,
1611                 .needs_tvaudio  = 1,
1612                 .no_msp34xx     = 1,
1613                 .no_tda9875     = 1,
1614                 .pll            = PLL_28,
1615                 .tuner_type     = 5,
1616                 .tuner_addr     = ADDR_UNSET,
1617                 .radio_addr     = ADDR_UNSET,
1618                 .audio_hook     = pvbt878p9b_audio, /* Note: not all cards have stereo */
1619                 .has_radio      = 1,  /* Note: not all cards have radio */
1620                 .has_remote     = 1,
1621                 /* GPIO wiring:
1622                         GPIO0: A0 hef4052
1623                         GPIO1: A1 hef4052
1624                         GPIO3: nEN hef4052
1625                         GPIO8-15: vrd866b
1626                         GPIO20,22,23: R30,R29,R28
1627                 */
1628         },
1629         [BTTV_BOARD_SENSORAY311] = {
1630                 /* Clay Kunz <ckunz@mail.arc.nasa.gov> */
1631                 /* you must jumper JP5 for the card to work */
1632                 .name           = "Sensoray 311",
1633                 .video_inputs   = 5,
1634                 .audio_inputs   = 0,
1635                 .tuner          = -1,
1636                 .svhs           = 4,
1637                 .gpiomask       = 0,
1638                 .muxsel         = { 2, 3, 1, 0, 0 },
1639                 .gpiomux        = { 0 },
1640                 .needs_tvaudio  = 0,
1641                 .tuner_type     = -1,
1642                 .tuner_addr     = ADDR_UNSET,
1643                 .radio_addr     = ADDR_UNSET,
1644         },
1645         [BTTV_BOARD_RV605] = {
1646                 /* Miguel Freitas <miguel@cetuc.puc-rio.br> */
1647                 .name           = "RemoteVision MX (RV605)",
1648                 .video_inputs   = 16,
1649                 .audio_inputs   = 0,
1650                 .tuner          = -1,
1651                 .svhs           = -1,
1652                 .gpiomask       = 0x00,
1653                 .gpiomask2      = 0x07ff,
1654                 .muxsel         = { 0x33, 0x13, 0x23, 0x43, 0xf3, 0x73, 0xe3, 0x03,
1655                                 0xd3, 0xb3, 0xc3, 0x63, 0x93, 0x53, 0x83, 0xa3 },
1656                 .no_msp34xx     = 1,
1657                 .no_tda9875     = 1,
1658                 .tuner_type     = -1,
1659                 .tuner_addr     = ADDR_UNSET,
1660                 .radio_addr     = ADDR_UNSET,
1661                 .muxsel_hook    = rv605_muxsel,
1662         },
1663         [BTTV_BOARD_POWERCLR_MTV878] = {
1664                 .name           = "Powercolor MTV878/ MTV878R/ MTV878F",
1665                 .video_inputs   = 3,
1666                 .audio_inputs   = 2,
1667                 .tuner          = 0,
1668                 .svhs           = 2,
1669                 .gpiomask       = 0x1C800F,  /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */
1670                 .muxsel         = { 2, 1, 1, },
1671                 .gpiomux        = { 0, 1, 2, 2 },
1672                 .gpiomute       = 4,
1673                 .needs_tvaudio  = 0,
1674                 .tuner_type     = TUNER_PHILIPS_PAL,
1675                 .tuner_addr     = ADDR_UNSET,
1676                 .radio_addr     = ADDR_UNSET,
1677                 .pll            = PLL_28,
1678                 .has_radio      = 1,
1679         },
1680
1681         /* ---- card 0x4c ---------------------------------- */
1682         [BTTV_BOARD_WINDVR] = {
1683                 /* Masaki Suzuki <masaki@btree.org> */
1684                 .name           = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)",
1685                 .video_inputs   = 3,
1686                 .audio_inputs   = 1,
1687                 .tuner          = 0,
1688                 .svhs           = 2,
1689                 .gpiomask       = 0x140007,
1690                 .muxsel         = { 2, 3, 1, 1 },
1691                 .gpiomux        = { 0, 1, 2, 3 },
1692                 .gpiomute       = 4,
1693                 .tuner_type     = TUNER_PHILIPS_NTSC,
1694                 .tuner_addr     = ADDR_UNSET,
1695                 .radio_addr     = ADDR_UNSET,
1696                 .audio_hook     = windvr_audio,
1697         },
1698         [BTTV_BOARD_GRANDTEC_MULTI] = {
1699                 .name           = "GrandTec Multi Capture Card (Bt878)",
1700                 .video_inputs   = 4,
1701                 .audio_inputs   = 0,
1702                 .tuner          = -1,
1703                 .svhs           = -1,
1704                 .gpiomask       = 0,
1705                 .muxsel         = { 2, 3, 1, 0 },
1706                 .gpiomux        = { 0 },
1707                 .needs_tvaudio  = 0,
1708                 .no_msp34xx     = 1,
1709                 .pll            = PLL_28,
1710                 .tuner_type     = -1,
1711                 .tuner_addr     = ADDR_UNSET,
1712                 .radio_addr     = ADDR_UNSET,
1713         },
1714         [BTTV_BOARD_KWORLD] = {
1715                 .name           = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF",
1716                 .video_inputs   = 4,
1717                 .audio_inputs   = 3,
1718                 .tuner          = 0,
1719                 .svhs           = 2,
1720                 .gpiomask       = 7,
1721                 .muxsel         = { 2, 3, 1, 1 },   /* Tuner, SVid, SVHS, SVid to SVHS connector */
1722                 .gpiomux        = { 0, 0, 4, 4 },/* Yes, this tuner uses the same audio output for TV and FM radio!
1723                                                 * This card lacks external Audio In, so we mute it on Ext. & Int.
1724                                                 * The PCB can take a sbx1637/sbx1673, wiring unknown.
1725                                                 * This card lacks PCI subsystem ID, sigh.
1726                                                 * gpiomux =1: lower volume, 2+3: mute
1727                                                 * btwincap uses 0x80000/0x80003
1728                                                 */
1729                 .gpiomute       = 4,
1730                 .needs_tvaudio  = 0,
1731                 .no_msp34xx     = 1,
1732                 .pll            = PLL_28,
1733                 .tuner_type     = 5,
1734                 .tuner_addr     = ADDR_UNSET,
1735                 .radio_addr     = ADDR_UNSET,
1736                 /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and
1737                 radio signal strength indicators work fine. */
1738                 .has_radio      = 1,
1739                 /* GPIO Info:
1740                         GPIO0,1:   HEF4052 A0,A1
1741                         GPIO2:     HEF4052 nENABLE
1742                         GPIO3-7:   n.c.
1743                         GPIO8-13:  IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card]
1744                         GPIO14,15: ??
1745                         GPIO16-21: n.c.
1746                         GPIO22,23: ??
1747                         ??       : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/
1748         },
1749         [BTTV_BOARD_DSP_TCVIDEO] = {
1750                 /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */
1751                 .name           = "DSP Design TCVIDEO",
1752                 .video_inputs   = 4,
1753                 .svhs           = -1,
1754                 .muxsel         = { 2, 3, 1, 0 },
1755                 .pll            = PLL_28,
1756                 .tuner_type     = -1,
1757                 .tuner_addr     = ADDR_UNSET,
1758                 .radio_addr     = ADDR_UNSET,
1759         },
1760
1761                 /* ---- card 0x50 ---------------------------------- */
1762         [BTTV_BOARD_HAUPPAUGEPVR] = {
1763                 .name           = "Hauppauge WinTV PVR",
1764                 .video_inputs   = 4,
1765                 .audio_inputs   = 1,
1766                 .tuner          = 0,
1767                 .svhs           = 2,
1768                 .muxsel         = { 2, 0, 1, 1 },
1769                 .needs_tvaudio  = 1,
1770                 .pll            = PLL_28,
1771                 .tuner_type     = -1,
1772                 .tuner_addr     = ADDR_UNSET,
1773                 .radio_addr     = ADDR_UNSET,
1774
1775                 .gpiomask       = 7,
1776                 .gpiomux        = {7},
1777         },
1778         [BTTV_BOARD_GVBCTV5PCI] = {
1779                 .name           = "IODATA GV-BCTV5/PCI",
1780                 .video_inputs   = 3,
1781                 .audio_inputs   = 1,
1782                 .tuner          = 0,
1783                 .svhs           = 2,
1784                 .gpiomask       = 0x0f0f80,
1785                 .muxsel         = {2, 3, 1, 0 },
1786                 .gpiomux        = {0x030000, 0x010000, 0, 0 },
1787                 .gpiomute       = 0x020000,
1788                 .no_msp34xx     = 1,
1789                 .pll            = PLL_28,
1790                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
1791                 .tuner_addr     = ADDR_UNSET,
1792                 .radio_addr     = ADDR_UNSET,
1793                 .audio_hook     = gvbctv5pci_audio,
1794                 .has_radio      = 1,
1795         },
1796         [BTTV_BOARD_OSPREY1x0] = {
1797                 .name           = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */
1798                 .video_inputs   = 4,                  /* id-inputs-clock */
1799                 .audio_inputs   = 0,
1800                 .tuner          = -1,
1801                 .svhs           = 3,
1802                 .muxsel         = { 3, 2, 0, 1 },
1803                 .pll            = PLL_28,
1804                 .tuner_type     = -1,
1805                 .tuner_addr     = ADDR_UNSET,
1806                 .radio_addr     = ADDR_UNSET,
1807                 .no_msp34xx     = 1,
1808                 .no_tda9875     = 1,
1809                 .no_tda7432     = 1,
1810         },
1811         [BTTV_BOARD_OSPREY1x0_848] = {
1812                 .name           = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */
1813                 .video_inputs   = 3,
1814                 .audio_inputs   = 0,
1815                 .tuner          = -1,
1816                 .svhs           = 2,
1817                 .muxsel         = { 2, 3, 1 },
1818                 .pll            = PLL_28,
1819                 .tuner_type     = -1,
1820                 .tuner_addr     = ADDR_UNSET,
1821                 .radio_addr     = ADDR_UNSET,
1822                 .no_msp34xx     = 1,
1823                 .no_tda9875     = 1,
1824                 .no_tda7432     = 1,
1825         },
1826
1827                 /* ---- card 0x54 ---------------------------------- */
1828         [BTTV_BOARD_OSPREY101_848] = {
1829                 .name           = "Osprey 101 (848)", /* 0x05-40C0-C1 */
1830                 .video_inputs   = 2,
1831                 .audio_inputs   = 0,
1832                 .tuner          = -1,
1833                 .svhs           = 1,
1834                 .muxsel         = { 3, 1 },
1835                 .pll            = PLL_28,
1836                 .tuner_type     = -1,
1837                 .tuner_addr     = ADDR_UNSET,
1838                 .radio_addr     = ADDR_UNSET,
1839                 .no_msp34xx     = 1,
1840                 .no_tda9875     = 1,
1841                 .no_tda7432     = 1,
1842         },
1843         [BTTV_BOARD_OSPREY1x1] = {
1844                 .name           = "Osprey 101/151",       /* 0x1(4|5)-0004-C4 */
1845                 .video_inputs   = 1,
1846                 .audio_inputs   = 0,
1847                 .tuner          = -1,
1848                 .svhs           = -1,
1849                 .muxsel         = { 0 },
1850                 .pll            = PLL_28,
1851                 .tuner_type     = -1,
1852                 .tuner_addr     = ADDR_UNSET,
1853                 .radio_addr     = ADDR_UNSET,
1854                 .no_msp34xx     = 1,
1855                 .no_tda9875     = 1,
1856                 .no_tda7432     = 1,
1857         },
1858         [BTTV_BOARD_OSPREY1x1_SVID] = {
1859                 .name           = "Osprey 101/151 w/ svid",  /* 0x(16|17|20)-00C4-C1 */
1860                 .video_inputs   = 2,
1861                 .audio_inputs   = 0,
1862                 .tuner          = -1,
1863                 .svhs           = 1,
1864                 .muxsel         = { 0, 1 },
1865                 .pll            = PLL_28,
1866                 .tuner_type     = -1,
1867                 .tuner_addr     = ADDR_UNSET,
1868                 .radio_addr     = ADDR_UNSET,
1869                 .no_msp34xx     = 1,
1870                 .no_tda9875     = 1,
1871                 .no_tda7432     = 1,
1872         },
1873         [BTTV_BOARD_OSPREY2xx] = {
1874                 .name           = "Osprey 200/201/250/251",  /* 0x1(8|9|E|F)-0004-C4 */
1875                 .video_inputs   = 1,
1876                 .audio_inputs   = 1,
1877                 .tuner          = -1,
1878                 .svhs           = -1,
1879                 .muxsel         = { 0 },
1880                 .pll            = PLL_28,
1881                 .tuner_type     = UNSET,
1882                 .tuner_addr     = ADDR_UNSET,
1883                 .radio_addr     = ADDR_UNSET,
1884                 .no_msp34xx     = 1,
1885                 .no_tda9875     = 1,
1886                 .no_tda7432     = 1,
1887         },
1888
1889                 /* ---- card 0x58 ---------------------------------- */
1890         [BTTV_BOARD_OSPREY2x0_SVID] = {
1891                 .name           = "Osprey 200/250",   /* 0x1(A|B)-00C4-C1 */
1892                 .video_inputs   = 2,
1893                 .audio_inputs   = 1,
1894                 .tuner          = -1,
1895                 .svhs           = 1,
1896                 .muxsel         = { 0, 1 },
1897                 .pll            = PLL_28,
1898                 .tuner_type     = UNSET,
1899                 .tuner_addr     = ADDR_UNSET,
1900                 .radio_addr     = ADDR_UNSET,
1901                 .no_msp34xx     = 1,
1902                 .no_tda9875     = 1,
1903                 .no_tda7432     = 1,
1904         },
1905         [BTTV_BOARD_OSPREY2x0] = {
1906                 .name           = "Osprey 210/220/230",   /* 0x1(A|B)-04C0-C1 */
1907                 .video_inputs   = 2,
1908                 .audio_inputs   = 1,
1909                 .tuner          = -1,
1910                 .svhs           = 1,
1911                 .muxsel         = { 2, 3 },
1912                 .pll            = PLL_28,
1913                 .tuner_type     = UNSET,
1914                 .tuner_addr     = ADDR_UNSET,
1915                 .radio_addr     = ADDR_UNSET,
1916                 .no_msp34xx     = 1,
1917                 .no_tda9875     = 1,
1918                 .no_tda7432     = 1,
1919         },
1920         [BTTV_BOARD_OSPREY500] = {
1921                 .name           = "Osprey 500",   /* 500 */
1922                 .video_inputs   = 2,
1923                 .audio_inputs   = 1,
1924                 .tuner          = -1,
1925                 .svhs           = 1,
1926                 .muxsel         = { 2, 3 },
1927                 .pll            = PLL_28,
1928                 .tuner_type     = -1,
1929                 .tuner_addr     = ADDR_UNSET,
1930                 .radio_addr     = ADDR_UNSET,
1931                 .no_msp34xx     = 1,
1932                 .no_tda9875     = 1,
1933                 .no_tda7432     = 1,
1934         },
1935         [BTTV_BOARD_OSPREY540] = {
1936                 .name           = "Osprey 540",   /* 540 */
1937                 .video_inputs   = 4,
1938                 .audio_inputs   = 1,
1939                 .tuner          = -1,
1940         #if 0 /* TODO ... */
1941                 .svhs           = OSPREY540_SVID_ANALOG,
1942                 .muxsel         = {       [OSPREY540_COMP_ANALOG] = 2,
1943                                         [OSPREY540_SVID_ANALOG] = 3, },
1944         #endif
1945                 .pll            = PLL_28,
1946                 .tuner_type     = -1,
1947                 .tuner_addr     = ADDR_UNSET,
1948                 .radio_addr     = ADDR_UNSET,
1949                 .no_msp34xx     = 1,
1950                 .no_tda9875     = 1,
1951                 .no_tda7432     = 1,
1952         #if 0 /* TODO ... */
1953                 .muxsel_hook    = osprey_540_muxsel,
1954                 .picture_hook   = osprey_540_set_picture,
1955         #endif
1956         },
1957
1958                 /* ---- card 0x5C ---------------------------------- */
1959         [BTTV_BOARD_OSPREY2000] = {
1960                 .name           = "Osprey 2000",  /* 2000 */
1961                 .video_inputs   = 2,
1962                 .audio_inputs   = 1,
1963                 .tuner          = -1,
1964                 .svhs           = 1,
1965                 .muxsel         = { 2, 3 },
1966                 .pll            = PLL_28,
1967                 .tuner_type     = UNSET,
1968                 .tuner_addr     = ADDR_UNSET,
1969                 .radio_addr     = ADDR_UNSET,
1970                 .no_msp34xx     = 1,
1971                 .no_tda9875     = 1,
1972                 .no_tda7432     = 1,      /* must avoid, conflicts with the bt860 */
1973         },
1974         [BTTV_BOARD_IDS_EAGLE] = {
1975                 /* M G Berberich <berberic@forwiss.uni-passau.de> */
1976                 .name           = "IDS Eagle",
1977                 .video_inputs   = 4,
1978                 .audio_inputs   = 0,
1979                 .tuner          = -1,
1980                 .tuner_type     = -1,
1981                 .tuner_addr     = ADDR_UNSET,
1982                 .radio_addr     = ADDR_UNSET,
1983                 .svhs           = -1,
1984                 .gpiomask       = 0,
1985                 .muxsel         = { 0, 1, 2, 3 },
1986                 .muxsel_hook    = eagle_muxsel,
1987                 .no_msp34xx     = 1,
1988                 .no_tda9875     = 1,
1989                 .pll            = PLL_28,
1990         },
1991         [BTTV_BOARD_PINNACLESAT] = {
1992                 .name           = "Pinnacle PCTV Sat",
1993                 .video_inputs   = 2,
1994                 .audio_inputs   = 0,
1995                 .svhs           = 1,
1996                 .tuner          = -1,
1997                 .tuner_type     = -1,
1998                 .tuner_addr     = ADDR_UNSET,
1999                 .radio_addr     = ADDR_UNSET,
2000                 .no_msp34xx     = 1,
2001                 .no_tda9875     = 1,
2002                 .no_tda7432     = 1,
2003                 .muxsel         = { 3, 0, 1, 2 },
2004                 .pll            = PLL_28,
2005                 .no_gpioirq     = 1,
2006                 .has_dvb        = 1,
2007         },
2008         [BTTV_BOARD_FORMAC_PROTV] = {
2009                 .name           = "Formac ProTV II (bt878)",
2010                 .video_inputs   = 4,
2011                 .audio_inputs   = 1,
2012                 .tuner          = 0,
2013                 .svhs           = 3,
2014                 .gpiomask       = 2,
2015                 /* TV, Comp1, Composite over SVID con, SVID */
2016                 .muxsel         = { 2, 3, 1, 1 },
2017                 .gpiomux        = { 2, 2, 0, 0 },
2018                 .pll            = PLL_28,
2019                 .has_radio      = 1,
2020                 .tuner_type     = TUNER_PHILIPS_PAL,
2021                 .tuner_addr     = ADDR_UNSET,
2022                 .radio_addr     = ADDR_UNSET,
2023         /* sound routing:
2024                 GPIO=0x00,0x01,0x03: mute (?)
2025                 0x02: both TV and radio (tuner: FM1216/I)
2026                 The card has onboard audio connectors labeled "cdrom" and "board",
2027                 not soldered here, though unknown wiring.
2028                 Card lacks: external audio in, pci subsystem id.
2029         */
2030         },
2031
2032                 /* ---- card 0x60 ---------------------------------- */
2033         [BTTV_BOARD_MACHTV] = {
2034                 .name           = "MachTV",
2035                 .video_inputs   = 3,
2036                 .audio_inputs   = 1,
2037                 .tuner          = 0,
2038                 .svhs           = -1,
2039                 .gpiomask       = 7,
2040                 .muxsel         = { 2, 3, 1, 1},
2041                 .gpiomux        = { 0, 1, 2, 3},
2042                 .gpiomute       = 4,
2043                 .needs_tvaudio  = 1,
2044                 .tuner_type     = 5,
2045                 .tuner_addr     = ADDR_UNSET,
2046                 .radio_addr     = ADDR_UNSET,
2047                 .pll            = PLL_28,
2048         },
2049         [BTTV_BOARD_EURESYS_PICOLO] = {
2050                 .name           = "Euresys Picolo",
2051                 .video_inputs   = 3,
2052                 .audio_inputs   = 0,
2053                 .tuner          = -1,
2054                 .svhs           = 2,
2055                 .gpiomask       = 0,
2056                 .no_msp34xx     = 1,
2057                 .no_tda9875     = 1,
2058                 .no_tda7432     = 1,
2059                 .muxsel         = { 2, 0, 1},
2060                 .pll            = PLL_28,
2061                 .tuner_type     = UNSET,
2062                 .tuner_addr     = ADDR_UNSET,
2063                 .radio_addr     = ADDR_UNSET,
2064         },
2065         [BTTV_BOARD_PV150] = {
2066                 /* Luc Van Hoeylandt <luc@e-magic.be> */
2067                 .name           = "ProVideo PV150", /* 0x4f */
2068                 .video_inputs   = 2,
2069                 .audio_inputs   = 0,
2070                 .tuner          = -1,
2071                 .svhs           = -1,
2072                 .gpiomask       = 0,
2073                 .muxsel         = { 2, 3 },
2074                 .gpiomux        = { 0 },
2075                 .needs_tvaudio  = 0,
2076                 .no_msp34xx     = 1,
2077                 .pll            = PLL_28,
2078                 .tuner_type     = UNSET,
2079                 .tuner_addr     = ADDR_UNSET,
2080                 .radio_addr     = ADDR_UNSET,
2081         },
2082         [BTTV_BOARD_AD_TVK503] = {
2083                 /* Hiroshi Takekawa <sian@big.or.jp> */
2084                 /* This card lacks subsystem ID */
2085                 .name           = "AD-TVK503", /* 0x63 */
2086                 .video_inputs   = 4,
2087                 .audio_inputs   = 1,
2088                 .tuner          = 0,
2089                 .svhs           = 2,
2090                 .gpiomask       = 0x001e8007,
2091                 .muxsel         = { 2, 3, 1, 0 },
2092                 /*                  Tuner, Radio, external, internal, off,  on */
2093                 .gpiomux        = { 0x08,  0x0f,  0x0a,     0x08 },
2094                 .gpiomute       = 0x0f,
2095                 .needs_tvaudio  = 0,
2096                 .no_msp34xx     = 1,
2097                 .pll            = PLL_28,
2098                 .tuner_type     = 2,
2099                 .tuner_addr     = ADDR_UNSET,
2100                 .radio_addr     = ADDR_UNSET,
2101                 .audio_hook     = adtvk503_audio,
2102         },
2103
2104                 /* ---- card 0x64 ---------------------------------- */
2105         [BTTV_BOARD_HERCULES_SM_TV] = {
2106                 .name           = "Hercules Smart TV Stereo",
2107                 .video_inputs   = 4,
2108                 .audio_inputs   = 1,
2109                 .tuner          = 0,
2110                 .svhs           = 2,
2111                 .gpiomask       = 0x00,
2112                 .muxsel         = { 2, 3, 1, 1 },
2113                 .needs_tvaudio  = 1,
2114                 .no_msp34xx     = 1,
2115                 .pll            = PLL_28,
2116                 .tuner_type     = 5,
2117                 .tuner_addr     = ADDR_UNSET,
2118                 .radio_addr     = ADDR_UNSET,
2119                 /* Notes:
2120                 - card lacks subsystem ID
2121                 - stereo variant w/ daughter board with tda9874a @0xb0
2122                 - Audio Routing:
2123                         always from tda9874 independent of GPIO (?)
2124                         external line in: unknown
2125                 - Other chips: em78p156elp @ 0x96 (probably IR remote control)
2126                         hef4053 (instead 4052) for unknown function
2127                 */
2128         },
2129         [BTTV_BOARD_PACETV] = {
2130                 .name           = "Pace TV & Radio Card",
2131                 .video_inputs   = 4,
2132                 .audio_inputs   = 1,
2133                 .tuner          = 0,
2134                 .svhs           = 2,
2135                 .muxsel         = { 2, 3, 1, 1 }, /* Tuner, CVid, SVid, CVid over SVid connector */
2136                 .gpiomask       = 0,
2137                 .no_tda9875     = 1,
2138                 .no_tda7432     = 1,
2139                 .tuner_type     = 1,
2140                 .tuner_addr     = ADDR_UNSET,
2141                 .radio_addr     = ADDR_UNSET,
2142                 .has_radio      = 1,
2143                 .pll            = PLL_28,
2144                 /* Bt878, Bt832, FI1246 tuner; no pci subsystem id
2145                 only internal line out: (4pin header) RGGL
2146                 Radio must be decoded by msp3410d (not routed through)*/
2147                 /*
2148                 .digital_mode   = DIGITAL_MODE_CAMERA,  todo!
2149                 */
2150         },
2151         [BTTV_BOARD_IVC200] = {
2152                 /* Chris Willing <chris@vislab.usyd.edu.au> */
2153                 .name           = "IVC-200",
2154                 .video_inputs   = 1,
2155                 .audio_inputs   = 0,
2156                 .tuner          = -1,
2157                 .tuner_type     = -1,
2158                 .tuner_addr     = ADDR_UNSET,
2159                 .radio_addr     = ADDR_UNSET,
2160                 .svhs           = -1,
2161                 .gpiomask       = 0xdf,
2162                 .muxsel         = { 2 },
2163                 .pll            = PLL_28,
2164         },
2165         [BTTV_BOARD_XGUARD] = {
2166                 .name           = "Grand X-Guard / Trust 814PCI",
2167                 .video_inputs   = 16,
2168                 .audio_inputs   = 0,
2169                 .tuner          = -1,
2170                 .svhs           = -1,
2171                 .tuner_type     = 4,
2172                 .tuner_addr     = ADDR_UNSET,
2173                 .radio_addr     = ADDR_UNSET,
2174                 .gpiomask2      = 0xff,
2175                 .muxsel         = { 2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0 },
2176                 .muxsel_hook    = xguard_muxsel,
2177                 .no_msp34xx     = 1,
2178                 .no_tda9875     = 1,
2179                 .no_tda7432     = 1,
2180                 .pll            = PLL_28,
2181         },
2182
2183                 /* ---- card 0x68 ---------------------------------- */
2184         [BTTV_BOARD_NEBULA_DIGITV] = {
2185                 .name           = "Nebula Electronics DigiTV",
2186                 .video_inputs   = 1,
2187                 .tuner          = -1,
2188                 .svhs           = -1,
2189                 .muxsel         = { 2, 3, 1, 0 },
2190                 .no_msp34xx     = 1,
2191                 .no_tda9875     = 1,
2192                 .no_tda7432     = 1,
2193                 .pll            = PLL_28,
2194                 .tuner_type     = -1,
2195                 .tuner_addr     = ADDR_UNSET,
2196                 .radio_addr     = ADDR_UNSET,
2197                 .has_dvb        = 1,
2198                 .has_remote     = 1,
2199                 .gpiomask       = 0x1b,
2200                 .no_gpioirq     = 1,
2201         },
2202         [BTTV_BOARD_PV143] = {
2203                 /* Jorge Boncompte - DTI2 <jorge@dti2.net> */
2204                 .name           = "ProVideo PV143",
2205                 .video_inputs   = 4,
2206                 .audio_inputs   = 0,
2207                 .tuner          = -1,
2208                 .svhs           = -1,
2209                 .gpiomask       = 0,
2210                 .muxsel         = { 2, 3, 1, 0 },
2211                 .gpiomux        = { 0 },
2212                 .needs_tvaudio  = 0,
2213                 .no_msp34xx     = 1,
2214                 .pll            = PLL_28,
2215                 .tuner_type     = -1,
2216                 .tuner_addr     = ADDR_UNSET,
2217                 .radio_addr     = ADDR_UNSET,
2218         },
2219         [BTTV_BOARD_VD009X1_MINIDIN] = {
2220                 /* M.Klahr@phytec.de */
2221                 .name           = "PHYTEC VD-009-X1 MiniDIN (bt878)",
2222                 .video_inputs   = 4,
2223                 .audio_inputs   = 0,
2224                 .tuner          = -1, /* card has no tuner */
2225                 .svhs           = 3,
2226                 .gpiomask       = 0x00,
2227                 .muxsel         = { 2, 3, 1, 0 },
2228                 .gpiomux        = { 0, 0, 0, 0 }, /* card has no audio */
2229                 .needs_tvaudio  = 1,
2230                 .pll            = PLL_28,
2231                 .tuner_type     = -1,
2232                 .tuner_addr     = ADDR_UNSET,
2233                 .radio_addr     = ADDR_UNSET,
2234         },
2235         [BTTV_BOARD_VD009X1_COMBI] = {
2236                 .name           = "PHYTEC VD-009-X1 Combi (bt878)",
2237                 .video_inputs   = 4,
2238                 .audio_inputs   = 0,
2239                 .tuner          = -1, /* card has no tuner */
2240                 .svhs           = 3,
2241                 .gpiomask       = 0x00,
2242                 .muxsel         = { 2, 3, 1, 1 },
2243                 .gpiomux        = { 0, 0, 0, 0 }, /* card has no audio */
2244                 .needs_tvaudio  = 1,
2245                 .pll            = PLL_28,
2246                 .tuner_type     = -1,
2247                 .tuner_addr     = ADDR_UNSET,
2248                 .radio_addr     = ADDR_UNSET,
2249         },
2250
2251                 /* ---- card 0x6c ---------------------------------- */
2252         [BTTV_BOARD_VD009_MINIDIN] = {
2253                 .name           = "PHYTEC VD-009 MiniDIN (bt878)",
2254                 .video_inputs   = 10,
2255                 .audio_inputs   = 0,
2256                 .tuner          = -1, /* card has no tuner */
2257                 .svhs           = 9,
2258                 .gpiomask       = 0x00,
2259                 .gpiomask2      = 0x03, /* gpiomask2 defines the bits used to switch audio
2260                                         via the upper nibble of muxsel. here: used for
2261                                         xternal video-mux */
2262                 .muxsel         = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x00 },
2263                 .gpiomux        = { 0, 0, 0, 0 }, /* card has no audio */
2264                 .needs_tvaudio  = 1,
2265                 .pll            = PLL_28,
2266                 .tuner_type     = -1,
2267                 .tuner_addr     = ADDR_UNSET,
2268                 .radio_addr     = ADDR_UNSET,
2269         },
2270         [BTTV_BOARD_VD009_COMBI] = {
2271                 .name           = "PHYTEC VD-009 Combi (bt878)",
2272                 .video_inputs   = 10,
2273                 .audio_inputs   = 0,
2274                 .tuner          = -1, /* card has no tuner */
2275                 .svhs           = 9,
2276                 .gpiomask       = 0x00,
2277                 .gpiomask2      = 0x03, /* gpiomask2 defines the bits used to switch audio
2278                                         via the upper nibble of muxsel. here: used for
2279                                         xternal video-mux */
2280                 .muxsel         = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x01 },
2281                 .gpiomux        = { 0, 0, 0, 0 }, /* card has no audio */
2282                 .needs_tvaudio  = 1,
2283                 .pll            = PLL_28,
2284                 .tuner_type     = -1,
2285                 .tuner_addr     = ADDR_UNSET,
2286                 .radio_addr     = ADDR_UNSET,
2287         },
2288         [BTTV_BOARD_IVC100] = {
2289                 .name           = "IVC-100",
2290                 .video_inputs   = 4,
2291                 .audio_inputs   = 0,
2292                 .tuner          = -1,
2293                 .tuner_type     = -1,
2294                 .tuner_addr     = ADDR_UNSET,
2295                 .radio_addr     = ADDR_UNSET,
2296                 .svhs           = -1,
2297                 .gpiomask       = 0xdf,
2298                 .muxsel         = { 2, 3, 1, 0 },
2299                 .pll            = PLL_28,
2300         },
2301         [BTTV_BOARD_IVC120] = {
2302                 /* IVC-120G - Alan Garfield <alan@fromorbit.com> */
2303                 .name           = "IVC-120G",
2304                 .video_inputs   = 16,
2305                 .audio_inputs   = 0,    /* card has no audio */
2306                 .tuner          = -1,   /* card has no tuner */
2307                 .tuner_type     = -1,
2308                 .tuner_addr     = ADDR_UNSET,
2309                 .radio_addr     = ADDR_UNSET,
2310                 .svhs           = -1,   /* card has no svhs */
2311                 .needs_tvaudio  = 0,
2312                 .no_msp34xx     = 1,
2313                 .no_tda9875     = 1,
2314                 .no_tda7432     = 1,
2315                 .gpiomask       = 0x00,
2316                 .muxsel         = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
2317                                 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10 },
2318                 .muxsel_hook    = ivc120_muxsel,
2319                 .pll            = PLL_28,
2320         },
2321
2322                 /* ---- card 0x70 ---------------------------------- */
2323         [BTTV_BOARD_PC_HDTV] = {
2324                 .name           = "pcHDTV HD-2000 TV",
2325                 .video_inputs   = 4,
2326                 .audio_inputs   = 1,
2327                 .tuner          = 0,
2328                 .svhs           = 2,
2329                 .muxsel         = { 2, 3, 1, 0 },
2330                 .tuner_type     = TUNER_PHILIPS_ATSC,
2331                 .tuner_addr     = ADDR_UNSET,
2332                 .radio_addr     = ADDR_UNSET,
2333                 .has_dvb        = 1,
2334         },
2335         [BTTV_BOARD_TWINHAN_DST] = {
2336                 .name           = "Twinhan DST + clones",
2337                 .no_msp34xx     = 1,
2338                 .no_tda9875     = 1,
2339                 .no_tda7432     = 1,
2340                 .tuner_type     = TUNER_ABSENT,
2341                 .tuner_addr     = ADDR_UNSET,
2342                 .radio_addr     = ADDR_UNSET,
2343                 .no_video       = 1,
2344                 .has_dvb        = 1,
2345         },
2346         [BTTV_BOARD_WINFASTVC100] = {
2347                 .name           = "Winfast VC100",
2348                 .video_inputs   = 3,
2349                 .audio_inputs   = 0,
2350                 .svhs           = 1,
2351                 .tuner          = -1,
2352                 .muxsel         = { 3, 1, 1, 3 }, /* Vid In, SVid In, Vid over SVid in connector */
2353                 .no_msp34xx     = 1,
2354                 .no_tda9875     = 1,
2355                 .no_tda7432     = 1,
2356                 .tuner_type     = TUNER_ABSENT,
2357                 .tuner_addr     = ADDR_UNSET,
2358                 .radio_addr     = ADDR_UNSET,
2359                 .pll            = PLL_28,
2360         },
2361         [BTTV_BOARD_TEV560] = {
2362                 .name           = "Teppro TEV-560/InterVision IV-560",
2363                 .video_inputs   = 3,
2364                 .audio_inputs   = 1,
2365                 .tuner          = 0,
2366                 .svhs           = 2,
2367                 .gpiomask       = 3,
2368                 .muxsel         = { 2, 3, 1, 1 },
2369                 .gpiomux        = { 1, 1, 1, 1 },
2370                 .needs_tvaudio  = 1,
2371                 .tuner_type     = TUNER_PHILIPS_PAL,
2372                 .tuner_addr     = ADDR_UNSET,
2373                 .radio_addr     = ADDR_UNSET,
2374                 .pll            = PLL_35,
2375         },
2376
2377                 /* ---- card 0x74 ---------------------------------- */
2378         [BTTV_BOARD_SIMUS_GVC1100] = {
2379                 .name           = "SIMUS GVC1100",
2380                 .video_inputs   = 4,
2381                 .audio_inputs   = 0,
2382                 .tuner          = -1,
2383                 .svhs           = -1,
2384                 .tuner_type     = -1,
2385                 .tuner_addr     = ADDR_UNSET,
2386                 .radio_addr     = ADDR_UNSET,
2387                 .pll            = PLL_28,
2388                 .muxsel         = { 2, 2, 2, 2 },
2389                 .gpiomask       = 0x3F,
2390                 .muxsel_hook    = gvc1100_muxsel,
2391         },
2392         [BTTV_BOARD_NGSTV_PLUS] = {
2393                 /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */
2394                 .name           = "NGS NGSTV+",
2395                 .video_inputs   = 3,
2396                 .tuner          = 0,
2397                 .svhs           = 2,
2398                 .gpiomask       = 0x008007,
2399                 .muxsel         = { 2, 3, 0, 0 },
2400                 .gpiomux        = { 0, 0, 0, 0 },
2401                 .gpiomute       = 0x000003,
2402                 .pll            = PLL_28,
2403                 .tuner_type     = TUNER_PHILIPS_PAL,
2404                 .tuner_addr     = ADDR_UNSET,
2405                 .radio_addr     = ADDR_UNSET,
2406                 .has_remote     = 1,
2407         },
2408         [BTTV_BOARD_LMLBT4] = {
2409                 /* http://linuxmedialabs.com */
2410                 .name           = "LMLBT4",
2411                 .video_inputs   = 4, /* IN1,IN2,IN3,IN4 */
2412                 .audio_inputs   = 0,
2413                 .tuner          = -1,
2414                 .svhs           = -1,
2415                 .muxsel         = { 2, 3, 1, 0 },
2416                 .no_msp34xx     = 1,
2417                 .no_tda9875     = 1,
2418                 .no_tda7432     = 1,
2419                 .needs_tvaudio  = 0,
2420                 .tuner_type     = -1,
2421                 .tuner_addr     = ADDR_UNSET,
2422                 .radio_addr     = ADDR_UNSET,
2423         },
2424         [BTTV_BOARD_TEKRAM_M205] = {
2425                 /* Helmroos Harri <harri.helmroos@pp.inet.fi> */
2426                 .name           = "Tekram M205 PRO",
2427                 .video_inputs   = 3,
2428                 .audio_inputs   = 1,
2429                 .tuner          = 0,
2430                 .tuner_type     = TUNER_PHILIPS_PAL,
2431                 .tuner_addr     = ADDR_UNSET,
2432                 .radio_addr     = ADDR_UNSET,
2433                 .svhs           = 2,
2434                 .needs_tvaudio  = 0,
2435                 .gpiomask       = 0x68,
2436                 .muxsel         = { 2, 3, 1 },
2437                 .gpiomux        = { 0x68, 0x68, 0x61, 0x61 },
2438                 .pll            = PLL_28,
2439         },
2440
2441                 /* ---- card 0x78 ---------------------------------- */
2442         [BTTV_BOARD_CONTVFMI] = {
2443                 /* Javier Cendan Ares <jcendan@lycos.es> */
2444                 /* bt878 TV + FM without subsystem ID */
2445                 .name           = "Conceptronic CONTVFMi",
2446                 .video_inputs   = 3,
2447                 .audio_inputs   = 1,
2448                 .tuner          = 0,
2449                 .svhs           = 2,
2450                 .gpiomask       = 0x008007,
2451                 .muxsel         = { 2, 3, 1, 1 },
2452                 .gpiomux        = { 0, 1, 2, 2 },
2453                 .gpiomute       = 3,
2454                 .needs_tvaudio  = 0,
2455                 .pll            = PLL_28,
2456                 .tuner_type     = TUNER_PHILIPS_PAL,
2457                 .tuner_addr     = ADDR_UNSET,
2458                 .radio_addr     = ADDR_UNSET,
2459                 .has_remote     = 1,
2460                 .has_radio      = 1,
2461         },
2462         [BTTV_BOARD_PICOLO_TETRA_CHIP] = {
2463                 /*Eric DEBIEF <debief@telemsa.com>*/
2464                 /*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controled*/
2465                 /* adds picolo_tetra_muxsel(), picolo_tetra_init(), the folowing declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/
2466                 /*0x79 in bttv.h*/
2467                 .name           = "Euresys Picolo Tetra",
2468                 .video_inputs   = 4,
2469                 .audio_inputs   = 0,
2470                 .tuner          = -1,
2471                 .svhs           = -1,
2472                 .gpiomask       = 0,
2473                 .gpiomask2      = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/
2474                 .no_msp34xx     = 1,
2475                 .no_tda9875     = 1,
2476                 .no_tda7432     = 1,
2477                 .muxsel         = {2,2,2,2},/*878A input is always MUX0, see above.*/
2478                 .gpiomux        = { 0, 0, 0, 0 }, /* card has no audio */
2479                 .pll            = PLL_28,
2480                 .needs_tvaudio  = 0,
2481                 .muxsel_hook    = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/
2482                 .tuner_type     = -1,
2483                 .tuner_addr     = ADDR_UNSET,
2484                 .radio_addr     = ADDR_UNSET,
2485         },
2486         [BTTV_BOARD_SPIRIT_TV] = {
2487                 /* Spirit TV Tuner from http://spiritmodems.com.au */
2488                 /* Stafford Goodsell <surge@goliath.homeunix.org> */
2489                 .name           = "Spirit TV Tuner",
2490                 .video_inputs   = 3,
2491                 .audio_inputs   = 1,
2492                 .tuner          = 0,
2493                 .svhs           = 2,
2494                 .gpiomask       = 0x0000000f,
2495                 .muxsel         = { 2, 1, 1 },
2496                 .gpiomux        = { 0x02, 0x00, 0x00, 0x00 },
2497                 .tuner_type     = TUNER_TEMIC_PAL,
2498                 .tuner_addr     = ADDR_UNSET,
2499                 .radio_addr     = ADDR_UNSET,
2500                 .no_msp34xx     = 1,
2501                 .no_tda9875     = 1,
2502         },
2503         [BTTV_BOARD_AVDVBT_771] = {
2504                 /* Wolfram Joost <wojo@frokaschwei.de> */
2505                 .name           = "AVerMedia AVerTV DVB-T 771",
2506                 .video_inputs   = 2,
2507                 .svhs           = 1,
2508                 .tuner          = -1,
2509                 .tuner_type     = TUNER_ABSENT,
2510                 .tuner_addr     = ADDR_UNSET,
2511                 .radio_addr     = ADDR_UNSET,
2512                 .muxsel         = { 3 , 3 },
2513                 .no_msp34xx     = 1,
2514                 .no_tda9875     = 1,
2515                 .no_tda7432     = 1,
2516                 .pll            = PLL_28,
2517                 .has_dvb        = 1,
2518                 .no_gpioirq     = 1,
2519                 .has_remote     = 1,
2520         },
2521                 /* ---- card 0x7c ---------------------------------- */
2522         [BTTV_BOARD_AVDVBT_761] = {
2523                 /* Matt Jesson <dvb@jesson.eclipse.co.uk> */
2524                 /* Based on the Nebula card data - added remote and new card number - BTTV_BOARD_AVDVBT_761, see also ir-kbd-gpio.c */
2525                 .name           = "AverMedia AverTV DVB-T 761",
2526                 .video_inputs   = 2,
2527                 .tuner          = -1,
2528                 .svhs           = 1,
2529                 .muxsel         = { 3, 1, 2, 0 }, /* Comp0, S-Video, ?, ? */
2530                 .no_msp34xx     = 1,
2531                 .no_tda9875     = 1,
2532                 .no_tda7432     = 1,
2533                 .pll            = PLL_28,
2534                 .tuner_type     = -1,
2535                 .tuner_addr     = ADDR_UNSET,
2536                 .radio_addr     = ADDR_UNSET,
2537                 .has_dvb        = 1,
2538                 .no_gpioirq     = 1,
2539                 .has_remote     = 1,
2540         },
2541         [BTTV_BOARD_MATRIX_VISIONSQ] = {
2542                 /* andre.schwarz@matrix-vision.de */
2543                 .name             = "MATRIX Vision Sigma-SQ",
2544                 .video_inputs     = 16,
2545                 .audio_inputs     = 0,
2546                 .tuner            = -1,
2547                 .svhs             = -1,
2548                 .gpiomask         = 0x0,
2549                 .muxsel           = { 2, 2, 2, 2, 2, 2, 2, 2,
2550                                 3, 3, 3, 3, 3, 3, 3, 3 },
2551                 .muxsel_hook      = sigmaSQ_muxsel,
2552                 .gpiomux          = { 0 },
2553                 .no_msp34xx       = 1,
2554                 .pll              = PLL_28,
2555                 .tuner_type       = -1,
2556                 .tuner_addr       = ADDR_UNSET,
2557                 .radio_addr     = ADDR_UNSET,
2558         },
2559         [BTTV_BOARD_MATRIX_VISIONSLC] = {
2560                 /* andre.schwarz@matrix-vision.de */
2561                 .name             = "MATRIX Vision Sigma-SLC",
2562                 .video_inputs     = 4,
2563                 .audio_inputs     = 0,
2564                 .tuner            = -1,
2565                 .svhs             = -1,
2566                 .gpiomask         = 0x0,
2567                 .muxsel           = { 2, 2, 2, 2 },
2568                 .muxsel_hook      = sigmaSLC_muxsel,
2569                 .gpiomux          = { 0 },
2570                 .no_msp34xx       = 1,
2571                 .pll              = PLL_28,
2572                 .tuner_type       = -1,
2573                 .tuner_addr       = ADDR_UNSET,
2574                 .radio_addr     = ADDR_UNSET,
2575         },
2576                 /* BTTV_BOARD_APAC_VIEWCOMP */
2577         [BTTV_BOARD_APAC_VIEWCOMP] = {
2578                 /* Attila Kondoros <attila.kondoros@chello.hu> */
2579                 /* bt878 TV + FM 0x00000000 subsystem ID */
2580                 .name           = "APAC Viewcomp 878(AMAX)",
2581                 .video_inputs   = 2,
2582                 .audio_inputs   = 1,
2583                 .tuner          = 0,
2584                 .svhs           = -1,
2585                 .gpiomask       = 0xFF,
2586                 .muxsel         = { 2, 3, 1, 1 },
2587                 .gpiomux        = { 2, 0, 0, 0 },
2588                 .gpiomute       = 10,
2589                 .needs_tvaudio  = 0,
2590                 .pll            = PLL_28,
2591                 .tuner_type     = TUNER_PHILIPS_PAL,
2592                 .tuner_addr     = ADDR_UNSET,
2593                 .radio_addr     = ADDR_UNSET,
2594                 .has_remote     = 1,   /* miniremote works, see ir-kbd-gpio.c */
2595                 .has_radio      = 1,   /* not every card has radio */
2596         },
2597
2598                 /* ---- card 0x80 ---------------------------------- */
2599         [BTTV_BOARD_DVICO_DVBT_LITE] = {
2600                 /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */
2601                 .name           = "DViCO FusionHDTV DVB-T Lite",
2602                 .tuner          = -1,
2603                 .no_msp34xx     = 1,
2604                 .no_tda9875     = 1,
2605                 .no_tda7432     = 1,
2606                 .pll            = PLL_28,
2607                 .no_video       = 1,
2608                 .has_dvb        = 1,
2609                 .tuner_type     = -1,
2610                 .tuner_addr     = ADDR_UNSET,
2611                 .radio_addr     = ADDR_UNSET,
2612         },
2613         [BTTV_BOARD_VGEAR_MYVCD] = {
2614                 /* Steven <photon38@pchome.com.tw> */
2615                 .name           = "V-Gear MyVCD",
2616                 .video_inputs   = 3,
2617                 .audio_inputs   = 1,
2618                 .tuner          = 0,
2619                 .svhs           = 2,
2620                 .gpiomask       = 0x3f,
2621                 .muxsel         = {2, 3, 1, 0 },
2622                 .gpiomux        = {0x31, 0x31, 0x31, 0x31 },
2623                 .gpiomute       = 0x31,
2624                 .no_msp34xx     = 1,
2625                 .pll            = PLL_28,
2626                 .tuner_type     = TUNER_PHILIPS_NTSC_M,
2627                 .tuner_addr     = ADDR_UNSET,
2628                 .radio_addr     = ADDR_UNSET,
2629                 .has_radio      = 0,
2630         #if 0
2631                 .has_remote     = 1,
2632         #endif
2633         },
2634         [BTTV_BOARD_SUPER_TV] = {
2635                 /* Rick C <cryptdragoon@gmail.com> */
2636                 .name           = "Super TV Tuner",
2637                 .video_inputs   = 4,
2638                 .audio_inputs   = 1,
2639                 .tuner          = 0,
2640                 .svhs           = 2,
2641                 .muxsel         = { 2, 3, 1, 0 },
2642                 .tuner_type     = TUNER_PHILIPS_NTSC,
2643                 .tuner_addr     = ADDR_UNSET,
2644                 .radio_addr     = ADDR_UNSET,
2645                 .gpiomask       = 0x008007,