]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/video/bttv-cards.c
[PATCH] v4l: 691: set if of tda8275 according to tv norm
[mirror_ubuntu-artful-kernel.git] / drivers / media / video / bttv-cards.c
CommitLineData
1da177e4 1/*
1da177e4
LT
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/config.h>
29#include <linux/delay.h>
30#include <linux/module.h>
31#include <linux/moduleparam.h>
32#include <linux/kmod.h>
33#include <linux/init.h>
34#include <linux/pci.h>
35#include <linux/vmalloc.h>
36#include <linux/firmware.h>
37
38#include <asm/io.h>
39
40#include "bttvp.h"
1da177e4
LT
41
42/* fwd decl */
43static void boot_msp34xx(struct bttv *btv, int pin);
44static void boot_bt832(struct bttv *btv);
45static void hauppauge_eeprom(struct bttv *btv);
46static void avermedia_eeprom(struct bttv *btv);
47static void osprey_eeprom(struct bttv *btv);
48static void modtec_eeprom(struct bttv *btv);
49static void init_PXC200(struct bttv *btv);
93b43f13 50static void init_RTV24(struct bttv *btv);
1da177e4
LT
51
52static void winview_audio(struct bttv *btv, struct video_audio *v, int set);
53static void lt9415_audio(struct bttv *btv, struct video_audio *v, int set);
54static void avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v,
55 int set);
56static void avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v,
57 int set);
58static void terratv_audio(struct bttv *btv, struct video_audio *v, int set);
59static void gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set);
60static void gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set);
61static void winfast2000_audio(struct bttv *btv, struct video_audio *v, int set);
62static void pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set);
63static void fv2000s_audio(struct bttv *btv, struct video_audio *v, int set);
64static void windvr_audio(struct bttv *btv, struct video_audio *v, int set);
65static void adtvk503_audio(struct bttv *btv, struct video_audio *v, int set);
66static void rv605_muxsel(struct bttv *btv, unsigned int input);
67static void eagle_muxsel(struct bttv *btv, unsigned int input);
68static void xguard_muxsel(struct bttv *btv, unsigned int input);
69static void ivc120_muxsel(struct bttv *btv, unsigned int input);
70static void gvc1100_muxsel(struct bttv *btv, unsigned int input);
71
72static void PXC200_muxsel(struct bttv *btv, unsigned int input);
73
74static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input);
75static void picolo_tetra_init(struct bttv *btv);
76
77static void tibetCS16_muxsel(struct bttv *btv, unsigned int input);
78static void tibetCS16_init(struct bttv *btv);
79
80static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input);
81static void kodicom4400r_init(struct bttv *btv);
82
83static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input);
84static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input);
85
86static int terratec_active_radio_upgrade(struct bttv *btv);
87static int tea5757_read(struct bttv *btv);
88static int tea5757_write(struct bttv *btv, int value);
89static void identify_by_eeprom(struct bttv *btv,
90 unsigned char eeprom_data[256]);
91static int __devinit pvr_boot(struct bttv *btv);
92
93/* config variables */
94static unsigned int triton1=0;
95static unsigned int vsfx=0;
96static unsigned int latency = UNSET;
4dcef524 97int no_overlay=-1;
1da177e4
LT
98
99static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
100static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
101static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
102static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
103static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET };
104static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL };
105#ifdef MODULE
106static unsigned int autoload = 1;
107#else
108static unsigned int autoload = 0;
109#endif
110static unsigned int gpiomask = UNSET;
111static unsigned int audioall = UNSET;
112static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET };
113
114/* insmod options */
115module_param(triton1, int, 0444);
116module_param(vsfx, int, 0444);
117module_param(no_overlay, int, 0444);
118module_param(latency, int, 0444);
119module_param(gpiomask, int, 0444);
120module_param(audioall, int, 0444);
121module_param(autoload, int, 0444);
122
123module_param_array(card, int, NULL, 0444);
124module_param_array(pll, int, NULL, 0444);
125module_param_array(tuner, int, NULL, 0444);
126module_param_array(svhs, int, NULL, 0444);
127module_param_array(remote, int, NULL, 0444);
128module_param_array(audiomux, int, NULL, 0444);
129
130MODULE_PARM_DESC(triton1,"set ETBF pci config bit "
131 "[enable bug compatibility for triton1 + others]");
132MODULE_PARM_DESC(vsfx,"set VSFX pci config bit "
133 "[yet another chipset flaw workaround]");
134MODULE_PARM_DESC(latency,"pci latency timer");
135MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list");
136MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)");
137MODULE_PARM_DESC(tuner,"specify installed tuner type");
138MODULE_PARM_DESC(autoload,"automatically load i2c modules like tuner.o, default is 1 (yes)");
139
140/* ----------------------------------------------------------------------- */
141/* list of card IDs for bt878+ cards */
142
143static struct CARD {
144 unsigned id;
145 int cardnr;
146 char *name;
147} cards[] __devinitdata = {
148 { 0x13eb0070, BTTV_HAUPPAUGE878, "Hauppauge WinTV" },
149 { 0x39000070, BTTV_HAUPPAUGE878, "Hauppauge WinTV-D" },
150 { 0x45000070, BTTV_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" },
151 { 0xff000070, BTTV_OSPREY1x0, "Osprey-100" },
152 { 0xff010070, BTTV_OSPREY2x0_SVID,"Osprey-200" },
153 { 0xff020070, BTTV_OSPREY500, "Osprey-500" },
154 { 0xff030070, BTTV_OSPREY2000, "Osprey-2000" },
155 { 0xff040070, BTTV_OSPREY540, "Osprey-540" },
156
157 { 0x00011002, BTTV_ATI_TVWONDER, "ATI TV Wonder" },
158 { 0x00031002, BTTV_ATI_TVWONDERVE,"ATI TV Wonder/VE" },
159
160 { 0x6606107d, BTTV_WINFAST2000, "Leadtek WinFast TV 2000" },
161 { 0x6607107d, BTTV_WINFASTVC100, "Leadtek WinFast VC 100" },
162 { 0x6609107d, BTTV_WINFAST2000, "Leadtek TV 2000 XP" },
163 { 0x263610b4, BTTV_STB2, "STB TV PCI FM, Gateway P/N 6000704" },
164 { 0x264510b4, BTTV_STB2, "STB TV PCI FM, Gateway P/N 6000704" },
165 { 0x402010fc, BTTV_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" },
166 { 0x405010fc, BTTV_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" },
167 { 0x407010fc, BTTV_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" },
168 { 0xd01810fc, BTTV_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" },
169
170 { 0x001211bd, BTTV_PINNACLE, "Pinnacle PCTV" },
24a70fdc 171 /* some cards ship with byteswapped IDs ... */
1da177e4
LT
172 { 0x1200bd11, BTTV_PINNACLE, "Pinnacle PCTV [bswap]" },
173 { 0xff00bd11, BTTV_PINNACLE, "Pinnacle PCTV [bswap]" },
24a70fdc 174 /* this seems to happen as well ... */
1da177e4
LT
175 { 0xff1211bd, BTTV_PINNACLE, "Pinnacle PCTV" },
176
177 { 0x3000121a, BTTV_VOODOOTV_FM, "3Dfx VoodooTV FM/ VoodooTV 200" },
178 { 0x263710b4, BTTV_VOODOOTV_FM, "3Dfx VoodooTV FM/ VoodooTV 200" },
179 { 0x3060121a, BTTV_STB2, "3Dfx VoodooTV 100/ STB OEM" },
180
181 { 0x3000144f, BTTV_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" },
182 { 0xa005144f, BTTV_MAGICTVIEW063, "CPH06X TView99-Card" },
183 { 0x3002144f, BTTV_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" },
184 { 0x3005144f, BTTV_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" },
185 { 0x5000144f, BTTV_MAGICTVIEW061, "Askey CPH050" },
186 { 0x300014ff, BTTV_MAGICTVIEW061, "TView 99 (CPH061)" },
187 { 0x300214ff, BTTV_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" },
188
189 { 0x00011461, BTTV_AVPHONE98, "AVerMedia TVPhone98" },
190 { 0x00021461, BTTV_AVERMEDIA98, "AVermedia TVCapture 98" },
191 { 0x00031461, BTTV_AVPHONE98, "AVerMedia TVPhone98" },
192 { 0x00041461, BTTV_AVERMEDIA98, "AVerMedia TVCapture 98" },
193 { 0x03001461, BTTV_AVERMEDIA98, "VDOMATE TV TUNER CARD" },
194
195 { 0x1117153b, BTTV_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" },
196 { 0x1118153b, BTTV_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" },
197 { 0x1119153b, BTTV_TERRATVALUE, "Terratec TValue (Philips PAL I)" },
198 { 0x111a153b, BTTV_TERRATVALUE, "Terratec TValue (Temic PAL I)" },
199
200 { 0x1123153b, BTTV_TERRATVRADIO, "Terratec TV Radio+" },
201 { 0x1127153b, BTTV_TERRATV, "Terratec TV+ (V1.05)" },
24a70fdc
MCC
202 /* clashes with FlyVideo
203 *{ 0x18521852, BTTV_TERRATV, "Terratec TV+ (V1.10)" }, */
1da177e4 204 { 0x1134153b, BTTV_TERRATVALUE, "Terratec TValue (LR102)" },
24a70fdc
MCC
205 { 0x1135153b, BTTV_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */
206 { 0x5018153b, BTTV_TERRATVALUE, "Terratec TValue" }, /* ?? */
207 { 0xff3b153b, BTTV_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */
1da177e4
LT
208
209 { 0x400015b0, BTTV_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
210 { 0x400a15b0, BTTV_ZOLTRIX_GENIE, "Zoltrix Genie TV" },
211 { 0x400d15b0, BTTV_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
212 { 0x401015b0, BTTV_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
213 { 0x401615b0, BTTV_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" },
214
215 { 0x1430aa00, BTTV_PV143, "Provideo PV143A" },
216 { 0x1431aa00, BTTV_PV143, "Provideo PV143B" },
217 { 0x1432aa00, BTTV_PV143, "Provideo PV143C" },
218 { 0x1433aa00, BTTV_PV143, "Provideo PV143D" },
219 { 0x1433aa03, BTTV_PV143, "Security Eyes" },
220
221 { 0x1460aa00, BTTV_PV150, "Provideo PV150A-1" },
222 { 0x1461aa01, BTTV_PV150, "Provideo PV150A-2" },
223 { 0x1462aa02, BTTV_PV150, "Provideo PV150A-3" },
224 { 0x1463aa03, BTTV_PV150, "Provideo PV150A-4" },
225
226 { 0x1464aa04, BTTV_PV150, "Provideo PV150B-1" },
227 { 0x1465aa05, BTTV_PV150, "Provideo PV150B-2" },
228 { 0x1466aa06, BTTV_PV150, "Provideo PV150B-3" },
229 { 0x1467aa07, BTTV_PV150, "Provideo PV150B-4" },
230
231 { 0xa132ff00, BTTV_IVC100, "IVC-100" },
232 { 0xa1550000, BTTV_IVC200, "IVC-200" },
233 { 0xa1550001, BTTV_IVC200, "IVC-200" },
234 { 0xa1550002, BTTV_IVC200, "IVC-200" },
235 { 0xa1550003, BTTV_IVC200, "IVC-200" },
236 { 0xa1550100, BTTV_IVC200, "IVC-200G" },
237 { 0xa1550101, BTTV_IVC200, "IVC-200G" },
238 { 0xa1550102, BTTV_IVC200, "IVC-200G" },
239 { 0xa1550103, BTTV_IVC200, "IVC-200G" },
240 { 0xa182ff00, BTTV_IVC120, "IVC-120G" },
241 { 0xa182ff01, BTTV_IVC120, "IVC-120G" },
242 { 0xa182ff02, BTTV_IVC120, "IVC-120G" },
243 { 0xa182ff03, BTTV_IVC120, "IVC-120G" },
244 { 0xa182ff04, BTTV_IVC120, "IVC-120G" },
245 { 0xa182ff05, BTTV_IVC120, "IVC-120G" },
246 { 0xa182ff06, BTTV_IVC120, "IVC-120G" },
247 { 0xa182ff07, BTTV_IVC120, "IVC-120G" },
248 { 0xa182ff08, BTTV_IVC120, "IVC-120G" },
249 { 0xa182ff09, BTTV_IVC120, "IVC-120G" },
250 { 0xa182ff0a, BTTV_IVC120, "IVC-120G" },
251 { 0xa182ff0b, BTTV_IVC120, "IVC-120G" },
252 { 0xa182ff0c, BTTV_IVC120, "IVC-120G" },
253 { 0xa182ff0d, BTTV_IVC120, "IVC-120G" },
254 { 0xa182ff0e, BTTV_IVC120, "IVC-120G" },
255 { 0xa182ff0f, BTTV_IVC120, "IVC-120G" },
256
257 { 0x41424344, BTTV_GRANDTEC, "GrandTec Multi Capture" },
258 { 0x01020304, BTTV_XGUARD, "Grandtec Grand X-Guard" },
259
260 { 0x18501851, BTTV_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
261 { 0xa0501851, BTTV_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" },
262 { 0x18511851, BTTV_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" },
263 { 0x18521852, BTTV_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" },
264 { 0x41a0a051, BTTV_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" },
265 { 0x18501f7f, BTTV_FLYVIDEO_98, "Lifeview Flyvideo 98" },
266
267 { 0x010115cb, BTTV_GMV1, "AG GMV1" },
268 { 0x010114c7, BTTV_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" },
269
270 { 0x10b42636, BTTV_HAUPPAUGE878, "STB ???" },
271 { 0x217d6606, BTTV_WINFAST2000, "Leadtek WinFast TV 2000" },
272 { 0xfff6f6ff, BTTV_WINFAST2000, "Leadtek WinFast TV 2000" },
273 { 0x03116000, BTTV_SENSORAY311, "Sensoray 311" },
274 { 0x00790e11, BTTV_WINDVR, "Canopus WinDVR PCI" },
275 { 0xa0fca1a0, BTTV_ZOLTRIX, "Face to Face Tvmax" },
276 { 0x20007063, BTTV_PC_HDTV, "pcHDTV HD-2000 TV"},
277 { 0x82b2aa6a, BTTV_SIMUS_GVC1100, "SIMUS GVC1100" },
278 { 0x146caa0c, BTTV_PV951, "ituner spectra8" },
279 { 0x200a1295, BTTV_PXC200, "ImageNation PXC200A" },
280
281 { 0x40111554, BTTV_PV_BT878P_9B, "Prolink Pixelview PV-BT" },
282 { 0x17de0a01, BTTV_KWORLD, "Mecer TV/FM/Video Tuner" },
283
284 { 0x01051805, BTTV_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" },
285 { 0x01061805, BTTV_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" },
286 { 0x01071805, BTTV_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" },
287 { 0x01081805, BTTV_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" },
288
24a70fdc 289 { 0x15409511, BTTV_ACORP_Y878F, "Acorp Y878F" },
1da177e4 290
24a70fdc
MCC
291 /* likely broken, vendor id doesn't match the other magic views ...
292 * { 0xa0fca04f, BTTV_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */
293
294 /* DVB cards (using pci function .1 for mpeg data xfer) */
1da177e4
LT
295 { 0x01010071, BTTV_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
296 { 0x07611461, BTTV_AVDVBT_761, "AverMedia AverTV DVB-T 761" },
297 { 0x001c11bd, BTTV_PINNACLESAT, "Pinnacle PCTV Sat" },
298 { 0x002611bd, BTTV_TWINHAN_DST, "Pinnacle PCTV SAT CI" },
299 { 0x00011822, BTTV_TWINHAN_DST, "Twinhan VisionPlus DVB" },
300 { 0xfc00270f, BTTV_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" },
301 { 0x07711461, BTTV_AVDVBT_771, "AVermedia AverTV DVB-T 771" },
33ac6b52
MCC
302 { 0xdb1018ac, BTTV_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" },
303 { 0xd50018ac, BTTV_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" },
1da177e4
LT
304
305 { 0, -1, NULL }
306};
307
308/* ----------------------------------------------------------------------- */
309/* array with description for bt848 / bt878 tv/grabber cards */
310
311struct tvcard bttv_tvcards[] = {
312{
313/* ---- card 0x00 ---------------------------------- */
314 .name = " *** UNKNOWN/GENERIC *** ",
315 .video_inputs = 4,
316 .audio_inputs = 1,
317 .tuner = 0,
318 .svhs = 2,
319 .muxsel = { 2, 3, 1, 0},
320 .tuner_type = -1,
24a70fdc 321 .tuner_addr = ADDR_UNSET,
1da177e4
LT
322},{
323 .name = "MIRO PCTV",
324 .video_inputs = 4,
325 .audio_inputs = 1,
326 .tuner = 0,
327 .svhs = 2,
328 .gpiomask = 15,
329 .muxsel = { 2, 3, 1, 1},
330 .audiomux = { 2, 0, 0, 0, 10},
331 .needs_tvaudio = 1,
332 .tuner_type = -1,
24a70fdc 333 .tuner_addr = ADDR_UNSET,
1da177e4
LT
334},{
335 .name = "Hauppauge (bt848)",
336 .video_inputs = 4,
337 .audio_inputs = 1,
338 .tuner = 0,
339 .svhs = 2,
340 .gpiomask = 7,
341 .muxsel = { 2, 3, 1, 1},
342 .audiomux = { 0, 1, 2, 3, 4},
343 .needs_tvaudio = 1,
344 .tuner_type = -1,
24a70fdc 345 .tuner_addr = ADDR_UNSET,
1da177e4
LT
346},{
347 .name = "STB, Gateway P/N 6000699 (bt848)",
348 .video_inputs = 3,
349 .audio_inputs = 1,
350 .tuner = 0,
351 .svhs = 2,
352 .gpiomask = 7,
353 .muxsel = { 2, 3, 1, 1},
354 .audiomux = { 4, 0, 2, 3, 1},
355 .no_msp34xx = 1,
356 .needs_tvaudio = 1,
357 .tuner_type = TUNER_PHILIPS_NTSC,
24a70fdc 358 .tuner_addr = ADDR_UNSET,
1da177e4
LT
359 .pll = PLL_28,
360 .has_radio = 1,
361},{
362
363/* ---- card 0x04 ---------------------------------- */
364 .name = "Intel Create and Share PCI/ Smart Video Recorder III",
365 .video_inputs = 4,
366 .audio_inputs = 0,
367 .tuner = -1,
368 .svhs = 2,
369 .gpiomask = 0,
370 .muxsel = { 2, 3, 1, 1},
371 .audiomux = { 0 },
372 .needs_tvaudio = 0,
373 .tuner_type = 4,
24a70fdc 374 .tuner_addr = ADDR_UNSET,
1da177e4
LT
375},{
376 .name = "Diamond DTV2000",
377 .video_inputs = 4,
378 .audio_inputs = 1,
379 .tuner = 0,
380 .svhs = 2,
381 .gpiomask = 3,
382 .muxsel = { 2, 3, 1, 0},
383 .audiomux = { 0, 1, 0, 1, 3},
384 .needs_tvaudio = 1,
385 .tuner_type = -1,
24a70fdc 386 .tuner_addr = ADDR_UNSET,
1da177e4
LT
387},{
388 .name = "AVerMedia TVPhone",
389 .video_inputs = 3,
390 .audio_inputs = 1,
391 .tuner = 0,
392 .svhs = 3,
393 .muxsel = { 2, 3, 1, 1},
394 .gpiomask = 0x0f,
395 .audiomux = { 0x0c, 0x04, 0x08, 0x04, 0},
396 /* 0x04 for some cards ?? */
397 .needs_tvaudio = 1,
398 .tuner_type = -1,
24a70fdc 399 .tuner_addr = ADDR_UNSET,
1da177e4
LT
400 .audio_hook = avermedia_tvphone_audio,
401 .has_remote = 1,
402},{
403 .name = "MATRIX-Vision MV-Delta",
404 .video_inputs = 5,
405 .audio_inputs = 1,
406 .tuner = -1,
407 .svhs = 3,
408 .gpiomask = 0,
409 .muxsel = { 2, 3, 1, 0, 0},
410 .audiomux = {0 },
411 .needs_tvaudio = 1,
412 .tuner_type = -1,
24a70fdc 413 .tuner_addr = ADDR_UNSET,
1da177e4
LT
414},{
415
416/* ---- card 0x08 ---------------------------------- */
417 .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26",
418 .video_inputs = 4,
419 .audio_inputs = 1,
420 .tuner = 0,
421 .svhs = 2,
422 .gpiomask = 0xc00,
423 .muxsel = { 2, 3, 1, 1},
424 .audiomux = { 0, 0xc00, 0x800, 0x400, 0xc00, 0},
425 .needs_tvaudio = 1,
426 .pll = PLL_28,
427 .tuner_type = -1,
24a70fdc 428 .tuner_addr = ADDR_UNSET,
1da177e4
LT
429},{
430 .name = "IMS/IXmicro TurboTV",
431 .video_inputs = 3,
432 .audio_inputs = 1,
433 .tuner = 0,
434 .svhs = 2,
435 .gpiomask = 3,
436 .muxsel = { 2, 3, 1, 1},
437 .audiomux = { 1, 1, 2, 3, 0},
438 .needs_tvaudio = 0,
439 .pll = PLL_28,
440 .tuner_type = TUNER_TEMIC_PAL,
24a70fdc 441 .tuner_addr = ADDR_UNSET,
1da177e4
LT
442},{
443 .name = "Hauppauge (bt878)",
444 .video_inputs = 4,
445 .audio_inputs = 1,
446 .tuner = 0,
447 .svhs = 2,
448 .gpiomask = 0x0f, /* old: 7 */
449 .muxsel = { 2, 0, 1, 1},
450 .audiomux = { 0, 1, 2, 3, 4},
451 .needs_tvaudio = 1,
452 .pll = PLL_28,
453 .tuner_type = -1,
24a70fdc 454 .tuner_addr = ADDR_UNSET,
1da177e4
LT
455},{
456 .name = "MIRO PCTV pro",
457 .video_inputs = 3,
458 .audio_inputs = 1,
459 .tuner = 0,
460 .svhs = 2,
461 .gpiomask = 0x3014f,
462 .muxsel = { 2, 3, 1, 1},
463 .audiomux = { 0x20001,0x10001, 0, 0,10},
464 .needs_tvaudio = 1,
465 .tuner_type = -1,
24a70fdc 466 .tuner_addr = ADDR_UNSET,
1da177e4
LT
467},{
468
469/* ---- card 0x0c ---------------------------------- */
470 .name = "ADS Technologies Channel Surfer TV (bt848)",
471 .video_inputs = 3,
472 .audio_inputs = 1,
473 .tuner = 0,
474 .svhs = 2,
475 .gpiomask = 15,
476 .muxsel = { 2, 3, 1, 1},
477 .audiomux = { 13, 14, 11, 7, 0, 0},
478 .needs_tvaudio = 1,
479 .tuner_type = -1,
24a70fdc 480 .tuner_addr = ADDR_UNSET,
1da177e4
LT
481},{
482 .name = "AVerMedia TVCapture 98",
483 .video_inputs = 3,
484 .audio_inputs = 4,
485 .tuner = 0,
486 .svhs = 2,
487 .gpiomask = 15,
488 .muxsel = { 2, 3, 1, 1},
489 .audiomux = { 13, 14, 11, 7, 0, 0},
490 .needs_tvaudio = 1,
491 .msp34xx_alt = 1,
492 .pll = PLL_28,
493 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 494 .tuner_addr = ADDR_UNSET,
1da177e4
LT
495 .audio_hook = avermedia_tv_stereo_audio,
496},{
497 .name = "Aimslab Video Highway Xtreme (VHX)",
498 .video_inputs = 3,
499 .audio_inputs = 1,
500 .tuner = 0,
501 .svhs = 2,
502 .gpiomask = 7,
503 .muxsel = { 2, 3, 1, 1},
504 .audiomux = { 0, 2, 1, 3, 4}, /* old: { 0, 1, 2, 3, 4} */
505 .needs_tvaudio = 1,
506 .pll = PLL_28,
507 .tuner_type = -1,
24a70fdc 508 .tuner_addr = ADDR_UNSET,
1da177e4
LT
509},{
510 .name = "Zoltrix TV-Max",
511 .video_inputs = 3,
512 .audio_inputs = 1,
513 .tuner = 0,
514 .svhs = 2,
515 .gpiomask = 15,
516 .muxsel = { 2, 3, 1, 1},
517 .audiomux = {0 , 0, 1 , 0, 10},
518 .needs_tvaudio = 1,
519 .tuner_type = -1,
24a70fdc 520 .tuner_addr = ADDR_UNSET,
1da177e4
LT
521},{
522
523/* ---- card 0x10 ---------------------------------- */
524 .name = "Prolink Pixelview PlayTV (bt878)",
525 .video_inputs = 3,
526 .audio_inputs = 1,
527 .tuner = 0,
528 .svhs = 2,
529 .gpiomask = 0x01fe00,
530 .muxsel = { 2, 3, 1, 1},
24a70fdc 531 /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */
1da177e4 532 .audiomux = { 0x001e00, 0, 0x018000, 0x014000, 0x002000, 0 },
1da177e4
LT
533 .needs_tvaudio = 1,
534 .pll = PLL_28,
535 .tuner_type = -1,
536},{
537 .name = "Leadtek WinView 601",
538 .video_inputs = 3,
539 .audio_inputs = 1,
540 .tuner = 0,
541 .svhs = 2,
542 .gpiomask = 0x8300f8,
543 .muxsel = { 2, 3, 1, 1,0},
544 .audiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007,0xcfa007,0xcfa007},
545 .needs_tvaudio = 1,
546 .tuner_type = -1,
24a70fdc 547 .tuner_addr = ADDR_UNSET,
1da177e4
LT
548 .audio_hook = winview_audio,
549 .has_radio = 1,
550},{
551 .name = "AVEC Intercapture",
552 .video_inputs = 3,
553 .audio_inputs = 2,
554 .tuner = 0,
555 .svhs = 2,
556 .gpiomask = 0,
557 .muxsel = {2, 3, 1, 1},
558 .audiomux = {1, 0, 0, 0, 0},
559 .needs_tvaudio = 1,
560 .tuner_type = -1,
24a70fdc 561 .tuner_addr = ADDR_UNSET,
1da177e4
LT
562},{
563 .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)",
564 .video_inputs = 4,
565 .audio_inputs = 1,
566 .tuner = -1,
567 .svhs = -1,
568 .gpiomask = 0x8dff00,
569 .muxsel = { 2, 3, 1, 1},
570 .audiomux = { 0 },
571 .no_msp34xx = 1,
572 .tuner_type = -1,
24a70fdc 573 .tuner_addr = ADDR_UNSET,
1da177e4
LT
574},{
575
576/* ---- card 0x14 ---------------------------------- */
577 .name = "CEI Raffles Card",
578 .video_inputs = 3,
579 .audio_inputs = 3,
580 .tuner = 0,
581 .svhs = 2,
582 .muxsel = {2, 3, 1, 1},
583 .tuner_type = -1,
24a70fdc 584 .tuner_addr = ADDR_UNSET,
1da177e4
LT
585},{
586 .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50",
587 .video_inputs = 4,
24a70fdc 588 .audio_inputs = 2, /* tuner, line in */
1da177e4
LT
589 .tuner = 0,
590 .svhs = 2,
591 .gpiomask = 0x1800,
592 .muxsel = { 2, 3, 1, 1},
593 .audiomux = { 0, 0x800, 0x1000, 0x1000, 0x1800},
594 .pll = PLL_28,
595 .tuner_type = TUNER_PHILIPS_PAL_I,
24a70fdc 596 .tuner_addr = ADDR_UNSET,
1da177e4
LT
597},{
598 .name = "Askey CPH050/ Phoebe Tv Master + FM",
599 .video_inputs = 3,
600 .audio_inputs = 1,
601 .tuner = 0,
602 .svhs = 2,
603 .gpiomask = 0xc00,
604 .muxsel = { 2, 3, 1, 1},
605 .audiomux = {0, 1, 0x800, 0x400, 0xc00, 0},
606 .needs_tvaudio = 1,
607 .pll = PLL_28,
608 .tuner_type = -1,
24a70fdc 609 .tuner_addr = ADDR_UNSET,
1da177e4
LT
610},{
611 .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878",
612 .video_inputs = 3,
613 .audio_inputs = 1,
614 .tuner = 0,
615 .svhs = -1,
616 .gpiomask = 7,
617 .muxsel = { 2, 3, -1 },
24a70fdc 618 .digital_mode = DIGITAL_MODE_CAMERA,
1da177e4
LT
619 .audiomux = { 0, 0, 0, 0, 0 },
620 .no_msp34xx = 1,
621 .pll = PLL_28,
622 .tuner_type = TUNER_ALPS_TSBB5_PAL_I,
24a70fdc 623 .tuner_addr = ADDR_UNSET,
1da177e4
LT
624},{
625
626/* ---- card 0x18 ---------------------------------- */
627 .name = "Askey CPH05X/06X (bt878) [many vendors]",
628 .video_inputs = 3,
629 .audio_inputs = 1,
630 .tuner = 0,
631 .svhs = 2,
632 .gpiomask = 0xe00,
633 .muxsel = { 2, 3, 1, 1},
634 .audiomux = {0x400, 0x400, 0x400, 0x400, 0xc00},
635 .needs_tvaudio = 1,
636 .pll = PLL_28,
637 .tuner_type = -1,
24a70fdc 638 .tuner_addr = ADDR_UNSET,
1da177e4
LT
639 .has_remote = 1,
640},{
641 .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar",
642 .video_inputs = 3,
643 .audio_inputs = 1,
644 .tuner = 0,
645 .svhs = 2,
646 .gpiomask = 0x1f0fff,
647 .muxsel = { 2, 3, 1, 1},
648 .audiomux = { 0x20000, 0x30000, 0x10000, 0, 0x40000},
649 .needs_tvaudio = 0,
650 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 651 .tuner_addr = ADDR_UNSET,
1da177e4
LT
652 .audio_hook = terratv_audio,
653},{
654 .name = "Hauppauge WinCam newer (bt878)",
655 .video_inputs = 4,
656 .audio_inputs = 1,
657 .tuner = 0,
658 .svhs = 3,
659 .gpiomask = 7,
660 .muxsel = { 2, 0, 1, 1},
661 .audiomux = { 0, 1, 2, 3, 4},
662 .needs_tvaudio = 1,
663 .tuner_type = -1,
24a70fdc 664 .tuner_addr = ADDR_UNSET,
1da177e4
LT
665},{
666 .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50",
667 .video_inputs = 4,
668 .audio_inputs = 2,
669 .tuner = 0,
670 .svhs = 2,
671 .gpiomask = 0x1800,
672 .muxsel = { 2, 3, 1, 1},
673 .audiomux = { 0, 0x800, 0x1000, 0x1000, 0x1800},
674 .pll = PLL_28,
675 .tuner_type = TUNER_PHILIPS_SECAM,
24a70fdc 676 .tuner_addr = ADDR_UNSET,
1da177e4
LT
677},{
678
679/* ---- card 0x1c ---------------------------------- */
680 .name = "Terratec TerraTV+ Version 1.1 (bt878)",
681 .video_inputs = 3,
682 .audio_inputs = 1,
683 .tuner = 0,
684 .svhs = 2,
685 .gpiomask = 0x1f0fff,
686 .muxsel = { 2, 3, 1, 1},
687 .audiomux = { 0x20000, 0x30000, 0x10000, 0x00000, 0x40000},
688 .needs_tvaudio = 0,
689 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 690 .tuner_addr = ADDR_UNSET,
1da177e4
LT
691 .audio_hook = terratv_audio,
692 /* GPIO wiring:
24a70fdc
MCC
693 External 20 pin connector (for Active Radio Upgrade board)
694 gpio00: i2c-sda
695 gpio01: i2c-scl
696 gpio02: om5610-data
697 gpio03: om5610-clk
698 gpio04: om5610-wre
699 gpio05: om5610-stereo
700 gpio06: rds6588-davn
701 gpio07: Pin 7 n.c.
702 gpio08: nIOW
703 gpio09+10: nIOR, nSEL ?? (bt878)
704 gpio09: nIOR (bt848)
705 gpio10: nSEL (bt848)
706 Sound Routing:
707 gpio16: u2-A0 (1st 4052bt)
708 gpio17: u2-A1
709 gpio18: u2-nEN
710 gpio19: u4-A0 (2nd 4052)
711 gpio20: u4-A1
712 u4-nEN - GND
713 Btspy:
714 00000 : Cdrom (internal audio input)
1da177e4
LT
715 10000 : ext. Video audio input
716 20000 : TV Mono
717 a0000 : TV Mono/2
24a70fdc 718 1a0000 : TV Stereo
1da177e4
LT
719 30000 : Radio
720 40000 : Mute
24a70fdc 721*/
1da177e4
LT
722
723},{
724 /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */
725 .name = "Imagenation PXC200",
726 .video_inputs = 5,
727 .audio_inputs = 1,
728 .tuner = -1,
729 .svhs = 1, /* was: 4 */
730 .gpiomask = 0,
731 .muxsel = { 2, 3, 1, 0, 0},
732 .audiomux = { 0 },
733 .needs_tvaudio = 1,
734 .tuner_type = -1,
24a70fdc 735 .tuner_addr = ADDR_UNSET,
1da177e4
LT
736 .muxsel_hook = PXC200_muxsel,
737
738},{
739 .name = "Lifeview FlyVideo 98 LR50",
740 .video_inputs = 4,
741 .audio_inputs = 1,
742 .tuner = 0,
743 .svhs = 2,
24a70fdc 744 .gpiomask = 0x1800, /* 0x8dfe00 */
1da177e4
LT
745 .muxsel = { 2, 3, 1, 1},
746 .audiomux = { 0, 0x0800, 0x1000, 0x1000, 0x1800, 0 },
747 .pll = PLL_28,
748 .tuner_type = -1,
24a70fdc 749 .tuner_addr = ADDR_UNSET,
1da177e4
LT
750},{
751 .name = "Formac iProTV, Formac ProTV I (bt848)",
752 .video_inputs = 4,
753 .audio_inputs = 1,
754 .tuner = 0,
755 .svhs = 3,
756 .gpiomask = 1,
757 .muxsel = { 2, 3, 1, 1},
758 .audiomux = { 1, 0, 0, 0, 0 },
759 .pll = PLL_28,
760 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 761 .tuner_addr = ADDR_UNSET,
1da177e4
LT
762},{
763
764/* ---- card 0x20 ---------------------------------- */
765 .name = "Intel Create and Share PCI/ Smart Video Recorder III",
766 .video_inputs = 4,
767 .audio_inputs = 0,
768 .tuner = -1,
769 .svhs = 2,
770 .gpiomask = 0,
771 .muxsel = { 2, 3, 1, 1},
772 .audiomux = { 0 },
773 .needs_tvaudio = 0,
774 .tuner_type = 4,
24a70fdc 775 .tuner_addr = ADDR_UNSET,
1da177e4
LT
776},{
777 .name = "Terratec TerraTValue Version Bt878",
778 .video_inputs = 3,
779 .audio_inputs = 1,
780 .tuner = 0,
781 .svhs = 2,
782 .gpiomask = 0xffff00,
783 .muxsel = { 2, 3, 1, 1},
784 .audiomux = { 0x500, 0, 0x300, 0x900, 0x900},
785 .needs_tvaudio = 1,
786 .pll = PLL_28,
787 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 788 .tuner_addr = ADDR_UNSET,
1da177e4
LT
789},{
790 .name = "Leadtek WinFast 2000/ WinFast 2000 XP",
791 .video_inputs = 4,
792 .audio_inputs = 1,
793 .tuner = 0,
794 .svhs = 2,
24a70fdc 795 .muxsel = { 2, 3, 1, 1, 0}, /* TV, CVid, SVid, CVid over SVid connector */
1da177e4
LT
796 /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */
797 .gpiomask = 0xb33000,
798 .audiomux = { 0x122000,0x1000,0x0000,0x620000,0x800000 },
1da177e4
LT
799 /* Audio Routing for "WinFast 2000 XP" (no tv stereo !)
800 gpio23 -- hef4052:nEnable (0x800000)
801 gpio12 -- hef4052:A1
24a70fdc
MCC
802 gpio13 -- hef4052:A0
803 0x0000: external audio
804 0x1000: FM
805 0x2000: TV
806 0x3000: n.c.
807 Note: There exists another variant "Winfast 2000" with tv stereo !?
808 Note: eeprom only contains FF and pci subsystem id 107d:6606
809 */
1da177e4
LT
810 .needs_tvaudio = 0,
811 .pll = PLL_28,
812 .has_radio = 1,
24a70fdc
MCC
813 .tuner_type = 5, /* default for now, gpio reads BFFF06 for Pal bg+dk */
814 .tuner_addr = ADDR_UNSET,
1da177e4
LT
815 .audio_hook = winfast2000_audio,
816 .has_remote = 1,
817},{
818 .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II",
819 .video_inputs = 4,
820 .audio_inputs = 3,
821 .tuner = 0,
822 .svhs = 2,
823 .gpiomask = 0x1800,
824 .muxsel = { 2, 3, 1, 1},
825 .audiomux = { 0, 0x800, 0x1000, 0x1000, 0x1800},
826 .pll = PLL_28,
827 .tuner_type = -1,
24a70fdc 828 .tuner_addr = ADDR_UNSET,
1da177e4
LT
829},{
830
831/* ---- card 0x24 ---------------------------------- */
832 .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner",
833 .video_inputs = 4,
834 .audio_inputs = 3,
835 .tuner = 0,
836 .svhs = 2,
837 .gpiomask = 0x1800,
838 .muxsel = { 2, 3, 1, 1},
839 .audiomux = { 0, 0x800, 0x1000, 0x1000, 0x1800, 0 },
840 .pll = PLL_28,
841 .tuner_type = -1,
24a70fdc 842 .tuner_addr = ADDR_UNSET,
1da177e4
LT
843 .has_radio = 1,
844},{
845 .name = "Prolink PixelView PlayTV pro",
846 .video_inputs = 3,
847 .audio_inputs = 1,
848 .tuner = 0,
849 .svhs = 2,
850 .gpiomask = 0xff,
851 .muxsel = { 2, 3, 1, 1 },
852 .audiomux = { 0x21, 0x20, 0x24, 0x2c, 0x29, 0x29 },
853 .no_msp34xx = 1,
854 .pll = PLL_28,
855 .tuner_type = -1,
24a70fdc 856 .tuner_addr = ADDR_UNSET,
1da177e4
LT
857},{
858 .name = "Askey CPH06X TView99",
859 .video_inputs = 4,
860 .audio_inputs = 1,
861 .tuner = 0,
862 .svhs = 2,
863 .gpiomask = 0x551e00,
864 .muxsel = { 2, 3, 1, 0},
865 .audiomux = { 0x551400, 0x551200, 0, 0, 0x551c00, 0x551200 },
866 .needs_tvaudio = 1,
867 .pll = PLL_28,
868 .tuner_type = 1,
24a70fdc 869 .tuner_addr = ADDR_UNSET,
1da177e4
LT
870 .has_remote = 1,
871},{
872 .name = "Pinnacle PCTV Studio/Rave",
873 .video_inputs = 3,
874 .audio_inputs = 1,
875 .tuner = 0,
876 .svhs = 2,
877 .gpiomask = 0x03000F,
878 .muxsel = { 2, 3, 1, 1},
879 .audiomux = { 2, 0xd0001, 0, 0, 1},
880 .needs_tvaudio = 0,
881 .pll = PLL_28,
882 .tuner_type = -1,
24a70fdc 883 .tuner_addr = ADDR_UNSET,
1da177e4
LT
884},{
885
886/* ---- card 0x28 ---------------------------------- */
887 .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100",
888 .video_inputs = 3,
889 .audio_inputs = 1,
890 .tuner = 0,
891 .svhs = 2,
892 .gpiomask = 7,
893 .muxsel = { 2, 3, 1, 1},
894 .audiomux = { 4, 0, 2, 3, 1},
895 .no_msp34xx = 1,
896 .needs_tvaudio = 1,
897 .tuner_type = TUNER_PHILIPS_NTSC,
24a70fdc 898 .tuner_addr = ADDR_UNSET,
1da177e4
LT
899 .pll = PLL_28,
900 .has_radio = 1,
901},{
902 .name = "AVerMedia TVPhone 98",
903 .video_inputs = 3,
904 .audio_inputs = 4,
905 .tuner = 0,
906 .svhs = 2,
907 .gpiomask = 15,
908 .muxsel = { 2, 3, 1, 1},
909 .audiomux = { 13, 4, 11, 7, 0, 0},
910 .needs_tvaudio = 1,
911 .pll = PLL_28,
912 .tuner_type = -1,
24a70fdc 913 .tuner_addr = ADDR_UNSET,
1da177e4
LT
914 .has_radio = 1,
915 .audio_hook = avermedia_tvphone_audio,
916},{
917 .name = "ProVideo PV951", /* pic16c54 */
918 .video_inputs = 3,
919 .audio_inputs = 1,
920 .tuner = 0,
921 .svhs = 2,
922 .gpiomask = 0,
923 .muxsel = { 2, 3, 1, 1},
924 .audiomux = { 0, 0, 0, 0, 0},
925 .needs_tvaudio = 1,
926 .no_msp34xx = 1,
927 .pll = PLL_28,
928 .tuner_type = 1,
24a70fdc 929 .tuner_addr = ADDR_UNSET,
1da177e4
LT
930},{
931 .name = "Little OnAir TV",
932 .video_inputs = 3,
933 .audio_inputs = 1,
934 .tuner = 0,
935 .svhs = 2,
936 .gpiomask = 0xe00b,
937 .muxsel = {2, 3, 1, 1},
938 .audiomux = {0xff9ff6, 0xff9ff6, 0xff1ff7, 0, 0xff3ffc},
939 .no_msp34xx = 1,
940 .tuner_type = -1,
24a70fdc 941 .tuner_addr = ADDR_UNSET,
1da177e4
LT
942},{
943
944/* ---- card 0x2c ---------------------------------- */
945 .name = "Sigma TVII-FM",
946 .video_inputs = 2,
947 .audio_inputs = 1,
948 .tuner = 0,
949 .svhs = -1,
950 .gpiomask = 3,
951 .muxsel = {2, 3, 1, 1},
952 .audiomux = {1, 1, 0, 2, 3},
953 .no_msp34xx = 1,
954 .pll = PLL_NONE,
955 .tuner_type = -1,
24a70fdc 956 .tuner_addr = ADDR_UNSET,
1da177e4
LT
957},{
958 .name = "MATRIX-Vision MV-Delta 2",
959 .video_inputs = 5,
960 .audio_inputs = 1,
961 .tuner = -1,
962 .svhs = 3,
963 .gpiomask = 0,
964 .muxsel = { 2, 3, 1, 0, 0},
965 .audiomux = {0 },
966 .no_msp34xx = 1,
967 .pll = PLL_28,
968 .tuner_type = -1,
24a70fdc 969 .tuner_addr = ADDR_UNSET,
1da177e4
LT
970},{
971 .name = "Zoltrix Genie TV/FM",
972 .video_inputs = 3,
973 .audio_inputs = 1,
974 .tuner = 0,
975 .svhs = 2,
976 .gpiomask = 0xbcf03f,
977 .muxsel = { 2, 3, 1, 1},
978 .audiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0, 0xbcb03f},
979 .no_msp34xx = 1,
980 .pll = PLL_28,
981 .tuner_type = 21,
24a70fdc 982 .tuner_addr = ADDR_UNSET,
1da177e4
LT
983},{
984 .name = "Terratec TV/Radio+",
985 .video_inputs = 3,
986 .audio_inputs = 1,
987 .tuner = 0,
988 .svhs = 2,
989 .gpiomask = 0x70000,
990 .muxsel = { 2, 3, 1, 1},
991 .audiomux = { 0x20000, 0x30000, 0x10000, 0, 0x40000, 0x20000 },
992 .needs_tvaudio = 1,
993 .no_msp34xx = 1,
994 .pll = PLL_35,
995 .tuner_type = 1,
24a70fdc 996 .tuner_addr = ADDR_UNSET,
1da177e4
LT
997 .has_radio = 1,
998},{
999
1000/* ---- card 0x30 ---------------------------------- */
1001 .name = "Askey CPH03x/ Dynalink Magic TView",
1002 .video_inputs = 3,
1003 .audio_inputs = 1,
1004 .tuner = 0,
1005 .svhs = 2,
1006 .gpiomask = 15,
1007 .muxsel = { 2, 3, 1, 1},
1008 .audiomux = {2,0,0,0,1},
1009 .needs_tvaudio = 1,
1010 .pll = PLL_28,
1011 .tuner_type = -1,
24a70fdc 1012 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1013},{
1014 .name = "IODATA GV-BCTV3/PCI",
1015 .video_inputs = 3,
1016 .audio_inputs = 1,
1017 .tuner = 0,
1018 .svhs = 2,
1019 .gpiomask = 0x010f00,
1020 .muxsel = {2, 3, 0, 0},
1021 .audiomux = {0x10000, 0, 0x10000, 0, 0, 0},
1022 .no_msp34xx = 1,
1023 .pll = PLL_28,
1024 .tuner_type = TUNER_ALPS_TSHC6_NTSC,
24a70fdc 1025 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1026 .audio_hook = gvbctv3pci_audio,
1027},{
1028 .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP",
1029 .video_inputs = 5,
1030 .audio_inputs = 1,
1031 .tuner = 0,
1032 .svhs = 3,
1033 .gpiomask = 0xAA0000,
1034 .muxsel = { 2,3,1,1,-1 },
1035 .digital_mode = DIGITAL_MODE_CAMERA,
1036 .audiomux = { 0x20000, 0, 0x80000, 0x80000, 0xa8000, 0x46000 },
1037 .no_msp34xx = 1,
1038 .pll = PLL_28,
1039 .tuner_type = TUNER_PHILIPS_PAL_I,
24a70fdc 1040 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1041 .has_remote = 1,
1042 /* GPIO wiring: (different from Rev.4C !)
1043 GPIO17: U4.A0 (first hef4052bt)
1044 GPIO19: U4.A1
1045 GPIO20: U5.A1 (second hef4052bt)
1046 GPIO21: U4.nEN
1047 GPIO22: BT832 Reset Line
1048 GPIO23: A5,A0, U5,nEN
24a70fdc
MCC
1049 Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22
1050 */
1da177e4
LT
1051},{
1052 .name = "Eagle Wireless Capricorn2 (bt878A)",
1053 .video_inputs = 4,
1054 .audio_inputs = 1,
1055 .tuner = 0,
1056 .svhs = 2,
1057 .gpiomask = 7,
1058 .muxsel = { 2, 0, 1, 1},
1059 .audiomux = { 0, 1, 2, 3, 4},
1060 .pll = PLL_28,
1061 .tuner_type = -1 /* TUNER_ALPS_TMDH2_NTSC */,
24a70fdc 1062 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1063},{
1064
1065/* ---- card 0x34 ---------------------------------- */
93e960ff 1066 /* David Härdeman <david@2gen.com> */
1da177e4
LT
1067 .name = "Pinnacle PCTV Studio Pro",
1068 .video_inputs = 4,
1069 .audio_inputs = 1,
1070 .tuner = 0,
1071 .svhs = 3,
1072 .gpiomask = 0x03000F,
1073 .muxsel = { 2, 3, 1, 1},
1074 .audiomux = { 1, 0xd0001, 0, 0, 10},
1075 /* sound path (5 sources):
24a70fdc 1076 MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable)
1da177e4
LT
1077 0= ext. Audio IN
1078 1= from MUX2
1079 2= Mono TV sound from Tuner
1080 3= not connected
24a70fdc 1081 MUX2 (mask 0x30000):
1da177e4
LT
1082 0,2,3= from MSP34xx
1083 1= FM stereo Radio from Tuner */
1084 .needs_tvaudio = 0,
1085 .pll = PLL_28,
1086 .tuner_type = -1,
24a70fdc 1087 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1088},{
1089 /* Claas Langbehn <claas@bigfoot.com>,
24a70fdc 1090 Sven Grothklags <sven@upb.de> */
1da177e4
LT
1091 .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS",
1092 .video_inputs = 4,
1093 .audio_inputs = 3,
1094 .tuner = 0,
1095 .svhs = 2,
1096 .gpiomask = 0x1c,
1097 .muxsel = { 2, 3, 1, 1},
1098 .audiomux = { 0, 0, 0x10, 8, 4 },
1099 .needs_tvaudio = 1,
1100 .pll = PLL_28,
1101 .tuner_type = TUNER_PHILIPS_PAL,
24a70fdc 1102 .tuner_addr = ADDR_UNSET,
1da177e4
LT
1103 .has_radio = 1,
1104},{
1105