diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-devattr.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.c | 558 |
1 files changed, 558 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c new file mode 100644 index 00000000000..e799331389b --- /dev/null +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c | |||
@@ -0,0 +1,558 @@ | |||
1 | /* | ||
2 | * | ||
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 | |||
23 | This source file should encompass ALL per-device type information for the | ||
24 | driver. To define a new device, add elements to the pvr2_device_table and | ||
25 | pvr2_device_desc structures. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #include "pvrusb2-devattr.h" | ||
30 | #include <linux/usb.h> | ||
31 | /* This is needed in order to pull in tuner type ids... */ | ||
32 | #include <linux/i2c.h> | ||
33 | #include <media/tuner.h> | ||
34 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
35 | #include "pvrusb2-hdw-internal.h" | ||
36 | #include "lgdt330x.h" | ||
37 | #include "s5h1409.h" | ||
38 | #include "s5h1411.h" | ||
39 | #include "tda10048.h" | ||
40 | #include "tda18271.h" | ||
41 | #include "tda8290.h" | ||
42 | #include "tuner-simple.h" | ||
43 | #endif | ||
44 | |||
45 | |||
46 | /*------------------------------------------------------------------------*/ | ||
47 | /* Hauppauge PVR-USB2 Model 29xxx */ | ||
48 | |||
49 | static 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 }, | ||
53 | { .module_id = PVR2_CLIENT_ID_DEMOD }, | ||
54 | }; | ||
55 | |||
56 | static const char *pvr2_fw1_names_29xxx[] = { | ||
57 | "v4l-pvrusb2-29xxx-01.fw", | ||
58 | }; | ||
59 | |||
60 | static const struct pvr2_device_desc pvr2_device_29xxx = { | ||
61 | .description = "WinTV PVR USB2 Model 29xxx", | ||
62 | .shortname = "29xxx", | ||
63 | .client_table.lst = pvr2_cli_29xxx, | ||
64 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx), | ||
65 | .fx2_firmware.lst = pvr2_fw1_names_29xxx, | ||
66 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), | ||
67 | .flag_has_hauppauge_rom = !0, | ||
68 | .flag_has_analogtuner = !0, | ||
69 | .flag_has_fmradio = !0, | ||
70 | .flag_has_composite = !0, | ||
71 | .flag_has_svideo = !0, | ||
72 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | ||
73 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | ||
74 | .ir_scheme = PVR2_IR_SCHEME_29XXX, | ||
75 | }; | ||
76 | |||
77 | |||
78 | |||
79 | /*------------------------------------------------------------------------*/ | ||
80 | /* Hauppauge PVR-USB2 Model 24xxx */ | ||
81 | |||
82 | static 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 }, | ||
86 | { .module_id = PVR2_CLIENT_ID_DEMOD }, | ||
87 | }; | ||
88 | |||
89 | static const char *pvr2_fw1_names_24xxx[] = { | ||
90 | "v4l-pvrusb2-24xxx-01.fw", | ||
91 | }; | ||
92 | |||
93 | static const struct pvr2_device_desc pvr2_device_24xxx = { | ||
94 | .description = "WinTV PVR USB2 Model 24xxx", | ||
95 | .shortname = "24xxx", | ||
96 | .client_table.lst = pvr2_cli_24xxx, | ||
97 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx), | ||
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, | ||
102 | .flag_has_hauppauge_rom = !0, | ||
103 | .flag_has_analogtuner = !0, | ||
104 | .flag_has_fmradio = !0, | ||
105 | .flag_has_composite = !0, | ||
106 | .flag_has_svideo = !0, | ||
107 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | ||
108 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | ||
109 | .ir_scheme = PVR2_IR_SCHEME_24XXX, | ||
110 | }; | ||
111 | |||
112 | |||
113 | |||
114 | /*------------------------------------------------------------------------*/ | ||
115 | /* GOTVIEW USB2.0 DVD2 */ | ||
116 | |||
117 | static const struct pvr2_device_client_desc pvr2_cli_gotview_2[] = { | ||
118 | { .module_id = PVR2_CLIENT_ID_CX25840 }, | ||
119 | { .module_id = PVR2_CLIENT_ID_TUNER }, | ||
120 | { .module_id = PVR2_CLIENT_ID_DEMOD }, | ||
121 | }; | ||
122 | |||
123 | static const struct pvr2_device_desc pvr2_device_gotview_2 = { | ||
124 | .description = "Gotview USB 2.0 DVD 2", | ||
125 | .shortname = "gv2", | ||
126 | .client_table.lst = pvr2_cli_gotview_2, | ||
127 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | ||
128 | .flag_has_cx25840 = !0, | ||
129 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | ||
130 | .flag_has_analogtuner = !0, | ||
131 | .flag_has_fmradio = !0, | ||
132 | .flag_has_composite = !0, | ||
133 | .flag_has_svideo = !0, | ||
134 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, | ||
135 | }; | ||
136 | |||
137 | |||
138 | |||
139 | /*------------------------------------------------------------------------*/ | ||
140 | /* GOTVIEW USB2.0 DVD Deluxe */ | ||
141 | |||
142 | /* (same module list as gotview_2) */ | ||
143 | |||
144 | static const struct pvr2_device_desc pvr2_device_gotview_2d = { | ||
145 | .description = "Gotview USB 2.0 DVD Deluxe", | ||
146 | .shortname = "gv2d", | ||
147 | .client_table.lst = pvr2_cli_gotview_2, | ||
148 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | ||
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 | |||
159 | /*------------------------------------------------------------------------*/ | ||
160 | /* Terratec Grabster AV400 */ | ||
161 | |||
162 | static const struct pvr2_device_client_desc pvr2_cli_av400[] = { | ||
163 | { .module_id = PVR2_CLIENT_ID_CX25840 }, | ||
164 | }; | ||
165 | |||
166 | static 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 | |||
181 | /*------------------------------------------------------------------------*/ | ||
182 | /* OnAir Creator */ | ||
183 | |||
184 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
185 | static struct lgdt330x_config pvr2_lgdt3303_config = { | ||
186 | .demod_address = 0x0e, | ||
187 | .demod_chip = LGDT3303, | ||
188 | .clock_polarity_flip = 1, | ||
189 | }; | ||
190 | |||
191 | static 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 | |||
201 | static 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 | |||
210 | static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = { | ||
211 | .frontend_attach = pvr2_lgdt3303_attach, | ||
212 | .tuner_attach = pvr2_lgh06xf_attach, | ||
213 | }; | ||
214 | #endif | ||
215 | |||
216 | static 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 }, | ||
220 | }; | ||
221 | |||
222 | static const struct pvr2_device_desc pvr2_device_onair_creator = { | ||
223 | .description = "OnAir Creator Hybrid USB tuner", | ||
224 | .shortname = "oac", | ||
225 | .client_table.lst = pvr2_cli_onair_creator, | ||
226 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator), | ||
227 | .default_tuner_type = TUNER_LG_TDVS_H06XF, | ||
228 | .flag_has_analogtuner = !0, | ||
229 | .flag_has_composite = !0, | ||
230 | .flag_has_svideo = !0, | ||
231 | .flag_digital_requires_cx23416 = !0, | ||
232 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, | ||
233 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, | ||
234 | .default_std_mask = V4L2_STD_NTSC_M, | ||
235 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
236 | .dvb_props = &pvr2_onair_creator_fe_props, | ||
237 | #endif | ||
238 | }; | ||
239 | |||
240 | |||
241 | |||
242 | /*------------------------------------------------------------------------*/ | ||
243 | /* OnAir USB 2.0 */ | ||
244 | |||
245 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
246 | static struct lgdt330x_config pvr2_lgdt3302_config = { | ||
247 | .demod_address = 0x0e, | ||
248 | .demod_chip = LGDT3302, | ||
249 | }; | ||
250 | |||
251 | static 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 | |||
261 | static 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 | |||
270 | static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { | ||
271 | .frontend_attach = pvr2_lgdt3302_attach, | ||
272 | .tuner_attach = pvr2_fcv1236d_attach, | ||
273 | }; | ||
274 | #endif | ||
275 | |||
276 | static 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 }, | ||
280 | }; | ||
281 | |||
282 | static const struct pvr2_device_desc pvr2_device_onair_usb2 = { | ||
283 | .description = "OnAir USB2 Hybrid USB tuner", | ||
284 | .shortname = "oa2", | ||
285 | .client_table.lst = pvr2_cli_onair_usb2, | ||
286 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2), | ||
287 | .default_tuner_type = TUNER_PHILIPS_FCV1236D, | ||
288 | .flag_has_analogtuner = !0, | ||
289 | .flag_has_composite = !0, | ||
290 | .flag_has_svideo = !0, | ||
291 | .flag_digital_requires_cx23416 = !0, | ||
292 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, | ||
293 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, | ||
294 | .default_std_mask = V4L2_STD_NTSC_M, | ||
295 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
296 | .dvb_props = &pvr2_onair_usb2_fe_props, | ||
297 | #endif | ||
298 | }; | ||
299 | |||
300 | |||
301 | |||
302 | /*------------------------------------------------------------------------*/ | ||
303 | /* Hauppauge PVR-USB2 Model 73xxx */ | ||
304 | |||
305 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
306 | static 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, | ||
311 | .dtv6_if_freq_khz = TDA10048_IF_3300, | ||
312 | .dtv7_if_freq_khz = TDA10048_IF_3800, | ||
313 | .dtv8_if_freq_khz = TDA10048_IF_4300, | ||
314 | .clk_freq_khz = TDA10048_CLK_16000, | ||
315 | .disable_gate_access = 1, | ||
316 | }; | ||
317 | |||
318 | static struct tda829x_config tda829x_no_probe = { | ||
319 | .probe_tuner = TDA829X_DONT_PROBE, | ||
320 | }; | ||
321 | |||
322 | static struct tda18271_config hauppauge_tda18271_dvb_config = { | ||
323 | .gate = TDA18271_GATE_ANALOG, | ||
324 | .output_opt = TDA18271_OUTPUT_LT_OFF, | ||
325 | }; | ||
326 | |||
327 | static 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 | |||
337 | static 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 | |||
349 | static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = { | ||
350 | .frontend_attach = pvr2_tda10048_attach, | ||
351 | .tuner_attach = pvr2_73xxx_tda18271_8295_attach, | ||
352 | }; | ||
353 | #endif | ||
354 | |||
355 | static 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"}, | ||
359 | }; | ||
360 | |||
361 | static const char *pvr2_fw1_names_73xxx[] = { | ||
362 | "v4l-pvrusb2-73xxx-01.fw", | ||
363 | }; | ||
364 | |||
365 | static const struct pvr2_device_desc pvr2_device_73xxx = { | ||
366 | .description = "WinTV HVR-1900 Model 73xxx", | ||
367 | .shortname = "73xxx", | ||
368 | .client_table.lst = pvr2_cli_73xxx, | ||
369 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | ||
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, | ||
377 | .flag_fx2_16kb = !0, | ||
378 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | ||
379 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | ||
380 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | ||
381 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, | ||
382 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
383 | .dvb_props = &pvr2_73xxx_dvb_props, | ||
384 | #endif | ||
385 | }; | ||
386 | |||
387 | |||
388 | |||
389 | /*------------------------------------------------------------------------*/ | ||
390 | /* Hauppauge PVR-USB2 Model 75xxx */ | ||
391 | |||
392 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
393 | static 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 | |||
402 | static 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 | |||
411 | static 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 | |||
418 | static struct tda18271_config hauppauge_tda18271_config = { | ||
419 | .std_map = &hauppauge_tda18271_std_map, | ||
420 | .gate = TDA18271_GATE_ANALOG, | ||
421 | .output_opt = TDA18271_OUTPUT_LT_OFF, | ||
422 | }; | ||
423 | |||
424 | static 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 | |||
434 | static 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 | |||
444 | static 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 | |||
456 | static const struct pvr2_dvb_props pvr2_750xx_dvb_props = { | ||
457 | .frontend_attach = pvr2_s5h1409_attach, | ||
458 | .tuner_attach = pvr2_tda18271_8295_attach, | ||
459 | }; | ||
460 | |||
461 | static const struct pvr2_dvb_props pvr2_751xx_dvb_props = { | ||
462 | .frontend_attach = pvr2_s5h1411_attach, | ||
463 | .tuner_attach = pvr2_tda18271_8295_attach, | ||
464 | }; | ||
465 | #endif | ||
466 | |||
467 | static const char *pvr2_fw1_names_75xxx[] = { | ||
468 | "v4l-pvrusb2-73xxx-01.fw", | ||
469 | }; | ||
470 | |||
471 | static const struct pvr2_device_desc pvr2_device_750xx = { | ||
472 | .description = "WinTV HVR-1950 Model 750xx", | ||
473 | .shortname = "750xx", | ||
474 | .client_table.lst = pvr2_cli_73xxx, | ||
475 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | ||
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, | ||
483 | .flag_fx2_16kb = !0, | ||
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, | ||
488 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, | ||
489 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
490 | .dvb_props = &pvr2_750xx_dvb_props, | ||
491 | #endif | ||
492 | }; | ||
493 | |||
494 | static const struct pvr2_device_desc pvr2_device_751xx = { | ||
495 | .description = "WinTV HVR-1950 Model 751xx", | ||
496 | .shortname = "751xx", | ||
497 | .client_table.lst = pvr2_cli_73xxx, | ||
498 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | ||
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, | ||
503 | .flag_has_analogtuner = !0, | ||
504 | .flag_has_composite = !0, | ||
505 | .flag_has_svideo = !0, | ||
506 | .flag_fx2_16kb = !0, | ||
507 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | ||
508 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | ||
509 | .default_std_mask = V4L2_STD_NTSC_M, | ||
510 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | ||
511 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, | ||
512 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
513 | .dvb_props = &pvr2_751xx_dvb_props, | ||
514 | #endif | ||
515 | }; | ||
516 | |||
517 | |||
518 | |||
519 | /*------------------------------------------------------------------------*/ | ||
520 | |||
521 | struct usb_device_id pvr2_device_table[] = { | ||
522 | { USB_DEVICE(0x2040, 0x2900), | ||
523 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | ||
524 | { USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */ | ||
525 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | ||
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}, | ||
530 | { USB_DEVICE(0x1164, 0x0602), | ||
531 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d}, | ||
532 | { USB_DEVICE(0x11ba, 0x1003), | ||
533 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, | ||
534 | { USB_DEVICE(0x11ba, 0x1001), | ||
535 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, | ||
536 | { USB_DEVICE(0x2040, 0x7300), | ||
537 | .driver_info = (kernel_ulong_t)&pvr2_device_73xxx}, | ||
538 | { USB_DEVICE(0x2040, 0x7500), | ||
539 | .driver_info = (kernel_ulong_t)&pvr2_device_750xx}, | ||
540 | { USB_DEVICE(0x2040, 0x7501), | ||
541 | .driver_info = (kernel_ulong_t)&pvr2_device_751xx}, | ||
542 | { USB_DEVICE(0x0ccd, 0x0039), | ||
543 | .driver_info = (kernel_ulong_t)&pvr2_device_av400}, | ||
544 | { } | ||
545 | }; | ||
546 | |||
547 | MODULE_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 | */ | ||