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