Merge branches 'stable/balloon.cleanup' and 'stable/general.cleanup' of git://git...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / media / video / pvrusb2 / pvrusb2-devattr.c
CommitLineData
989eb154
MI
1/*
2 *
989eb154
MI
3 *
4 * Copyright (C) 2007 Mike Isely <isely@pobox.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20
21/*
22
23This source file should encompass ALL per-device type information for the
24driver. To define a new device, add elements to the pvr2_device_table and
25pvr2_device_desc structures.
26
27*/
28
29#include "pvrusb2-devattr.h"
30#include <linux/usb.h>
6a540254 31/* This is needed in order to pull in tuner type ids... */
9e2e3aeb 32#include <linux/i2c.h>
9e2e3aeb 33#include <media/tuner.h>
906a4957
MK
34#ifdef CONFIG_VIDEO_PVRUSB2_DVB
35#include "pvrusb2-hdw-internal.h"
36#include "lgdt330x.h"
087886eb 37#include "s5h1409.h"
4aef8fdd 38#include "s5h1411.h"
95814bc2 39#include "tda10048.h"
087886eb
MK
40#include "tda18271.h"
41#include "tda8290.h"
906a4957
MK
42#include "tuner-simple.h"
43#endif
4542783c 44
989eb154 45
d130fa8a
MI
46/*------------------------------------------------------------------------*/
47/* Hauppauge PVR-USB2 Model 29xxx */
989eb154 48
dd5f322f
MI
49static const struct pvr2_device_client_desc pvr2_cli_29xxx[] = {
50 { .module_id = PVR2_CLIENT_ID_SAA7115 },
51 { .module_id = PVR2_CLIENT_ID_MSP3400 },
52 { .module_id = PVR2_CLIENT_ID_TUNER },
bb65242a 53 { .module_id = PVR2_CLIENT_ID_DEMOD },
989eb154
MI
54};
55
989eb154
MI
56static const char *pvr2_fw1_names_29xxx[] = {
57 "v4l-pvrusb2-29xxx-01.fw",
58};
59
d130fa8a 60static const struct pvr2_device_desc pvr2_device_29xxx = {
1d70c7fd 61 .description = "WinTV PVR USB2 Model 29xxx",
989eb154 62 .shortname = "29xxx",
dd5f322f
MI
63 .client_table.lst = pvr2_cli_29xxx,
64 .client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx),
989eb154
MI
65 .fx2_firmware.lst = pvr2_fw1_names_29xxx,
66 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
aaf7884d 67 .flag_has_hauppauge_rom = !0,
1aaac60f 68 .flag_has_analogtuner = !0,
d068c6ee 69 .flag_has_fmradio = !0,
1aaac60f
MI
70 .flag_has_composite = !0,
71 .flag_has_svideo = !0,
f5174af2 72 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
40381cb0 73 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
27eab384 74 .ir_scheme = PVR2_IR_SCHEME_29XXX,
d130fa8a
MI
75};
76
77
78
79/*------------------------------------------------------------------------*/
80/* Hauppauge PVR-USB2 Model 24xxx */
81
dd5f322f
MI
82static const struct pvr2_device_client_desc pvr2_cli_24xxx[] = {
83 { .module_id = PVR2_CLIENT_ID_CX25840 },
84 { .module_id = PVR2_CLIENT_ID_TUNER },
85 { .module_id = PVR2_CLIENT_ID_WM8775 },
bb65242a 86 { .module_id = PVR2_CLIENT_ID_DEMOD },
d130fa8a
MI
87};
88
89static const char *pvr2_fw1_names_24xxx[] = {
90 "v4l-pvrusb2-24xxx-01.fw",
91};
92
93static const struct pvr2_device_desc pvr2_device_24xxx = {
1d70c7fd 94 .description = "WinTV PVR USB2 Model 24xxx",
989eb154 95 .shortname = "24xxx",
dd5f322f
MI
96 .client_table.lst = pvr2_cli_24xxx,
97 .client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx),
989eb154
MI
98 .fx2_firmware.lst = pvr2_fw1_names_24xxx,
99 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
100 .flag_has_cx25840 = !0,
101 .flag_has_wm8775 = !0,
aaf7884d 102 .flag_has_hauppauge_rom = !0,
1aaac60f 103 .flag_has_analogtuner = !0,
d068c6ee 104 .flag_has_fmradio = !0,
1aaac60f
MI
105 .flag_has_composite = !0,
106 .flag_has_svideo = !0,
f5174af2 107 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
40381cb0 108 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
31335b13 109 .ir_scheme = PVR2_IR_SCHEME_24XXX,
d130fa8a
MI
110};
111
112
113
114/*------------------------------------------------------------------------*/
115/* GOTVIEW USB2.0 DVD2 */
116
dd5f322f
MI
117static const struct pvr2_device_client_desc pvr2_cli_gotview_2[] = {
118 { .module_id = PVR2_CLIENT_ID_CX25840 },
119 { .module_id = PVR2_CLIENT_ID_TUNER },
c641a189 120 { .module_id = PVR2_CLIENT_ID_DEMOD },
d130fa8a
MI
121};
122
123static const struct pvr2_device_desc pvr2_device_gotview_2 = {
9e2e3aeb
MI
124 .description = "Gotview USB 2.0 DVD 2",
125 .shortname = "gv2",
dd5f322f
MI
126 .client_table.lst = pvr2_cli_gotview_2,
127 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
787f5abb 128 .flag_has_cx25840 = !0,
9e2e3aeb 129 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1aaac60f 130 .flag_has_analogtuner = !0,
1df59f0b 131 .flag_has_fmradio = !0,
1aaac60f
MI
132 .flag_has_composite = !0,
133 .flag_has_svideo = !0,
9e2e3aeb 134 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
d130fa8a
MI
135};
136
137
138
fd1da789
MI
139/*------------------------------------------------------------------------*/
140/* GOTVIEW USB2.0 DVD Deluxe */
141
142/* (same module list as gotview_2) */
143
144static const struct pvr2_device_desc pvr2_device_gotview_2d = {
145 .description = "Gotview USB 2.0 DVD Deluxe",
146 .shortname = "gv2d",
dd5f322f
MI
147 .client_table.lst = pvr2_cli_gotview_2,
148 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
fd1da789
MI
149 .flag_has_cx25840 = !0,
150 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
151 .flag_has_analogtuner = !0,
152 .flag_has_composite = !0,
153 .flag_has_svideo = !0,
154 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
155};
156
157
158
43823c02
MI
159/*------------------------------------------------------------------------*/
160/* Terratec Grabster AV400 */
161
162static const struct pvr2_device_client_desc pvr2_cli_av400[] = {
163 { .module_id = PVR2_CLIENT_ID_CX25840 },
164};
165
166static const struct pvr2_device_desc pvr2_device_av400 = {
167 .description = "Terratec Grabster AV400",
168 .shortname = "av400",
169 .flag_is_experimental = 1,
170 .client_table.lst = pvr2_cli_av400,
171 .client_table.cnt = ARRAY_SIZE(pvr2_cli_av400),
172 .flag_has_cx25840 = !0,
173 .flag_has_analogtuner = 0,
174 .flag_has_composite = !0,
175 .flag_has_svideo = !0,
176 .signal_routing_scheme = PVR2_ROUTING_SCHEME_AV400,
177};
178
179
180
d130fa8a
MI
181/*------------------------------------------------------------------------*/
182/* OnAir Creator */
183
906a4957
MK
184#ifdef CONFIG_VIDEO_PVRUSB2_DVB
185static struct lgdt330x_config pvr2_lgdt3303_config = {
186 .demod_address = 0x0e,
187 .demod_chip = LGDT3303,
188 .clock_polarity_flip = 1,
189};
190
191static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap)
192{
193 adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config,
194 &adap->channel.hdw->i2c_adap);
195 if (adap->fe)
196 return 0;
197
198 return -EIO;
199}
200
201static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap)
202{
203 dvb_attach(simple_tuner_attach, adap->fe,
204 &adap->channel.hdw->i2c_adap, 0x61,
205 TUNER_LG_TDVS_H06XF);
206
207 return 0;
208}
209
69ea3c1c 210static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = {
906a4957
MK
211 .frontend_attach = pvr2_lgdt3303_attach,
212 .tuner_attach = pvr2_lgh06xf_attach,
213};
214#endif
215
dd5f322f
MI
216static const struct pvr2_device_client_desc pvr2_cli_onair_creator[] = {
217 { .module_id = PVR2_CLIENT_ID_SAA7115 },
218 { .module_id = PVR2_CLIENT_ID_CS53L32A },
219 { .module_id = PVR2_CLIENT_ID_TUNER },
d130fa8a
MI
220};
221
222static const struct pvr2_device_desc pvr2_device_onair_creator = {
4542783c
MI
223 .description = "OnAir Creator Hybrid USB tuner",
224 .shortname = "oac",
dd5f322f
MI
225 .client_table.lst = pvr2_cli_onair_creator,
226 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator),
4542783c 227 .default_tuner_type = TUNER_LG_TDVS_H06XF,
1aaac60f
MI
228 .flag_has_analogtuner = !0,
229 .flag_has_composite = !0,
230 .flag_has_svideo = !0,
72998b71 231 .flag_digital_requires_cx23416 = !0,
2a6b627f 232 .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR,
e8f5bacf 233 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
f0910c74 234 .default_std_mask = V4L2_STD_NTSC_M,
906a4957
MK
235#ifdef CONFIG_VIDEO_PVRUSB2_DVB
236 .dvb_props = &pvr2_onair_creator_fe_props,
237#endif
d130fa8a 238};
d130fa8a
MI
239
240
241
d130fa8a
MI
242/*------------------------------------------------------------------------*/
243/* OnAir USB 2.0 */
244
906a4957
MK
245#ifdef CONFIG_VIDEO_PVRUSB2_DVB
246static struct lgdt330x_config pvr2_lgdt3302_config = {
247 .demod_address = 0x0e,
248 .demod_chip = LGDT3302,
249};
250
251static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap)
252{
253 adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config,
254 &adap->channel.hdw->i2c_adap);
255 if (adap->fe)
256 return 0;
257
258 return -EIO;
259}
260
261static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap)
262{
263 dvb_attach(simple_tuner_attach, adap->fe,
264 &adap->channel.hdw->i2c_adap, 0x61,
265 TUNER_PHILIPS_FCV1236D);
266
267 return 0;
268}
269
69ea3c1c 270static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = {
906a4957
MK
271 .frontend_attach = pvr2_lgdt3302_attach,
272 .tuner_attach = pvr2_fcv1236d_attach,
273};
274#endif
275
dd5f322f
MI
276static const struct pvr2_device_client_desc pvr2_cli_onair_usb2[] = {
277 { .module_id = PVR2_CLIENT_ID_SAA7115 },
278 { .module_id = PVR2_CLIENT_ID_CS53L32A },
279 { .module_id = PVR2_CLIENT_ID_TUNER },
d130fa8a
MI
280};
281
282static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
4542783c
MI
283 .description = "OnAir USB2 Hybrid USB tuner",
284 .shortname = "oa2",
dd5f322f
MI
285 .client_table.lst = pvr2_cli_onair_usb2,
286 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2),
ab8b870e 287 .default_tuner_type = TUNER_PHILIPS_FCV1236D,
1aaac60f
MI
288 .flag_has_analogtuner = !0,
289 .flag_has_composite = !0,
290 .flag_has_svideo = !0,
72998b71 291 .flag_digital_requires_cx23416 = !0,
2a6b627f 292 .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR,
e8f5bacf 293 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
f0910c74 294 .default_std_mask = V4L2_STD_NTSC_M,
906a4957
MK
295#ifdef CONFIG_VIDEO_PVRUSB2_DVB
296 .dvb_props = &pvr2_onair_usb2_fe_props,
297#endif
989eb154 298};
d130fa8a
MI
299
300
989eb154 301
92c9d075
MK
302/*------------------------------------------------------------------------*/
303/* Hauppauge PVR-USB2 Model 73xxx */
304
95814bc2
MK
305#ifdef CONFIG_VIDEO_PVRUSB2_DVB
306static struct tda10048_config hauppauge_tda10048_config = {
307 .demod_address = 0x10 >> 1,
308 .output_mode = TDA10048_PARALLEL_OUTPUT,
309 .fwbulkwritelen = TDA10048_BULKWRITE_50,
310 .inversion = TDA10048_INVERSION_ON,
08b83583
ST
311 .dtv6_if_freq_khz = TDA10048_IF_3300,
312 .dtv7_if_freq_khz = TDA10048_IF_3800,
313 .dtv8_if_freq_khz = TDA10048_IF_4300,
c7470206 314 .clk_freq_khz = TDA10048_CLK_16000,
507a34f4 315 .disable_gate_access = 1,
95814bc2
MK
316};
317
318static struct tda829x_config tda829x_no_probe = {
319 .probe_tuner = TDA829X_DONT_PROBE,
320};
321
322static struct tda18271_config hauppauge_tda18271_dvb_config = {
323 .gate = TDA18271_GATE_ANALOG,
a18eaf02 324 .output_opt = TDA18271_OUTPUT_LT_OFF,
95814bc2
MK
325};
326
327static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap)
328{
329 adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config,
330 &adap->channel.hdw->i2c_adap);
331 if (adap->fe)
332 return 0;
333
334 return -EIO;
335}
336
337static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
338{
339 dvb_attach(tda829x_attach, adap->fe,
340 &adap->channel.hdw->i2c_adap, 0x42,
341 &tda829x_no_probe);
342 dvb_attach(tda18271_attach, adap->fe, 0x60,
343 &adap->channel.hdw->i2c_adap,
344 &hauppauge_tda18271_dvb_config);
345
346 return 0;
347}
348
69ea3c1c 349static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = {
95814bc2
MK
350 .frontend_attach = pvr2_tda10048_attach,
351 .tuner_attach = pvr2_73xxx_tda18271_8295_attach,
352};
353#endif
354
dd5f322f
MI
355static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = {
356 { .module_id = PVR2_CLIENT_ID_CX25840 },
357 { .module_id = PVR2_CLIENT_ID_TUNER,
358 .i2c_address_list = "\x42"},
92c9d075
MK
359};
360
361static const char *pvr2_fw1_names_73xxx[] = {
362 "v4l-pvrusb2-73xxx-01.fw",
363};
364
365static const struct pvr2_device_desc pvr2_device_73xxx = {
1d70c7fd 366 .description = "WinTV HVR-1900 Model 73xxx",
92c9d075 367 .shortname = "73xxx",
dd5f322f
MI
368 .client_table.lst = pvr2_cli_73xxx,
369 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
92c9d075
MK
370 .fx2_firmware.lst = pvr2_fw1_names_73xxx,
371 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
372 .flag_has_cx25840 = !0,
373 .flag_has_hauppauge_rom = !0,
374 .flag_has_analogtuner = !0,
375 .flag_has_composite = !0,
376 .flag_has_svideo = !0,
75727460 377 .flag_fx2_16kb = !0,
92c9d075
MK
378 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
379 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
380 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
31335b13 381 .ir_scheme = PVR2_IR_SCHEME_ZILOG,
95814bc2
MK
382#ifdef CONFIG_VIDEO_PVRUSB2_DVB
383 .dvb_props = &pvr2_73xxx_dvb_props,
384#endif
92c9d075
MK
385};
386
387
388
11fcd470
MK
389/*------------------------------------------------------------------------*/
390/* Hauppauge PVR-USB2 Model 75xxx */
391
087886eb
MK
392#ifdef CONFIG_VIDEO_PVRUSB2_DVB
393static struct s5h1409_config pvr2_s5h1409_config = {
394 .demod_address = 0x32 >> 1,
395 .output_mode = S5H1409_PARALLEL_OUTPUT,
396 .gpio = S5H1409_GPIO_OFF,
397 .qam_if = 4000,
398 .inversion = S5H1409_INVERSION_ON,
399 .status_mode = S5H1409_DEMODLOCKING,
400};
401
4aef8fdd
MK
402static struct s5h1411_config pvr2_s5h1411_config = {
403 .output_mode = S5H1411_PARALLEL_OUTPUT,
404 .gpio = S5H1411_GPIO_OFF,
405 .vsb_if = S5H1411_IF_44000,
406 .qam_if = S5H1411_IF_4000,
407 .inversion = S5H1411_INVERSION_ON,
408 .status_mode = S5H1411_DEMODLOCKING,
409};
410
087886eb
MK
411static struct tda18271_std_map hauppauge_tda18271_std_map = {
412 .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3,
413 .if_lvl = 6, .rfagc_top = 0x37, },
414 .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
415 .if_lvl = 6, .rfagc_top = 0x37, },
416};
417
418static struct tda18271_config hauppauge_tda18271_config = {
419 .std_map = &hauppauge_tda18271_std_map,
420 .gate = TDA18271_GATE_ANALOG,
a18eaf02 421 .output_opt = TDA18271_OUTPUT_LT_OFF,
087886eb
MK
422};
423
424static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap)
425{
426 adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config,
427 &adap->channel.hdw->i2c_adap);
428 if (adap->fe)
429 return 0;
430
431 return -EIO;
432}
433
4aef8fdd
MK
434static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap)
435{
436 adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config,
437 &adap->channel.hdw->i2c_adap);
438 if (adap->fe)
439 return 0;
440
441 return -EIO;
442}
443
087886eb
MK
444static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
445{
446 dvb_attach(tda829x_attach, adap->fe,
447 &adap->channel.hdw->i2c_adap, 0x42,
448 &tda829x_no_probe);
449 dvb_attach(tda18271_attach, adap->fe, 0x60,
450 &adap->channel.hdw->i2c_adap,
451 &hauppauge_tda18271_config);
452
453 return 0;
454}
455
69ea3c1c 456static const struct pvr2_dvb_props pvr2_750xx_dvb_props = {
087886eb
MK
457 .frontend_attach = pvr2_s5h1409_attach,
458 .tuner_attach = pvr2_tda18271_8295_attach,
459};
4aef8fdd 460
69ea3c1c 461static const struct pvr2_dvb_props pvr2_751xx_dvb_props = {
4aef8fdd
MK
462 .frontend_attach = pvr2_s5h1411_attach,
463 .tuner_attach = pvr2_tda18271_8295_attach,
464};
087886eb
MK
465#endif
466
11fcd470
MK
467static const char *pvr2_fw1_names_75xxx[] = {
468 "v4l-pvrusb2-73xxx-01.fw",
469};
470
c8812841 471static const struct pvr2_device_desc pvr2_device_750xx = {
1d70c7fd 472 .description = "WinTV HVR-1950 Model 750xx",
c8812841 473 .shortname = "750xx",
dd5f322f
MI
474 .client_table.lst = pvr2_cli_73xxx,
475 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
c8812841
MK
476 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
477 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
478 .flag_has_cx25840 = !0,
479 .flag_has_hauppauge_rom = !0,
480 .flag_has_analogtuner = !0,
481 .flag_has_composite = !0,
482 .flag_has_svideo = !0,
c21c2db4 483 .flag_fx2_16kb = !0,
c8812841
MK
484 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
485 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
486 .default_std_mask = V4L2_STD_NTSC_M,
487 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
31335b13 488 .ir_scheme = PVR2_IR_SCHEME_ZILOG,
087886eb
MK
489#ifdef CONFIG_VIDEO_PVRUSB2_DVB
490 .dvb_props = &pvr2_750xx_dvb_props,
491#endif
c8812841
MK
492};
493
494static const struct pvr2_device_desc pvr2_device_751xx = {
1d70c7fd 495 .description = "WinTV HVR-1950 Model 751xx",
c8812841 496 .shortname = "751xx",
dd5f322f
MI
497 .client_table.lst = pvr2_cli_73xxx,
498 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
11fcd470
MK
499 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
500 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
501 .flag_has_cx25840 = !0,
502 .flag_has_hauppauge_rom = !0,
1aaac60f
MI
503 .flag_has_analogtuner = !0,
504 .flag_has_composite = !0,
505 .flag_has_svideo = !0,
c21c2db4 506 .flag_fx2_16kb = !0,
11fcd470 507 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
e8f5bacf 508 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
11fcd470 509 .default_std_mask = V4L2_STD_NTSC_M,
40381cb0 510 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
31335b13 511 .ir_scheme = PVR2_IR_SCHEME_ZILOG,
4aef8fdd
MK
512#ifdef CONFIG_VIDEO_PVRUSB2_DVB
513 .dvb_props = &pvr2_751xx_dvb_props,
514#endif
11fcd470
MK
515};
516
517
518
d130fa8a
MI
519/*------------------------------------------------------------------------*/
520
521struct usb_device_id pvr2_device_table[] = {
522 { USB_DEVICE(0x2040, 0x2900),
523 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
b675c052
MI
524 { USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */
525 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
d130fa8a
MI
526 { USB_DEVICE(0x2040, 0x2400),
527 .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
528 { USB_DEVICE(0x1164, 0x0622),
529 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
fd1da789
MI
530 { USB_DEVICE(0x1164, 0x0602),
531 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d},
d130fa8a
MI
532 { USB_DEVICE(0x11ba, 0x1003),
533 .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
d130fa8a
MI
534 { USB_DEVICE(0x11ba, 0x1001),
535 .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
92c9d075
MK
536 { USB_DEVICE(0x2040, 0x7300),
537 .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
11fcd470 538 { USB_DEVICE(0x2040, 0x7500),
c8812841 539 .driver_info = (kernel_ulong_t)&pvr2_device_750xx},
dd6e9467 540 { USB_DEVICE(0x2040, 0x7501),
c8812841 541 .driver_info = (kernel_ulong_t)&pvr2_device_751xx},
43823c02
MI
542 { USB_DEVICE(0x0ccd, 0x0039),
543 .driver_info = (kernel_ulong_t)&pvr2_device_av400},
d130fa8a
MI
544 { }
545};
989eb154
MI
546
547MODULE_DEVICE_TABLE(usb, pvr2_device_table);
548
549
550/*
551 Stuff for Emacs to see, in order to encourage consistent editing style:
552 *** Local Variables: ***
553 *** mode: c ***
554 *** fill-column: 75 ***
555 *** tab-width: 8 ***
556 *** c-basic-offset: 8 ***
557 *** End: ***
558 */