]>
Commit | Line | Data |
---|---|---|
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 | ||
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> | |
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 |
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 }, | |
bb65242a | 53 | { .module_id = PVR2_CLIENT_ID_DEMOD }, |
989eb154 MI |
54 | }; |
55 | ||
989eb154 MI |
56 | static const char *pvr2_fw1_names_29xxx[] = { |
57 | "v4l-pvrusb2-29xxx-01.fw", | |
58 | }; | |
59 | ||
d130fa8a | 60 | static const struct pvr2_device_desc pvr2_device_29xxx = { |
e7f677f3 | 61 | .description = "WinTV PVR USB2 Model Category 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 |
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 }, | |
bb65242a | 86 | { .module_id = PVR2_CLIENT_ID_DEMOD }, |
d130fa8a MI |
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 = { | |
e7f677f3 | 94 | .description = "WinTV PVR USB2 Model Category 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 |
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 }, | |
d130fa8a MI |
120 | }; |
121 | ||
122 | static const struct pvr2_device_desc pvr2_device_gotview_2 = { | |
9e2e3aeb MI |
123 | .description = "Gotview USB 2.0 DVD 2", |
124 | .shortname = "gv2", | |
dd5f322f MI |
125 | .client_table.lst = pvr2_cli_gotview_2, |
126 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | |
787f5abb | 127 | .flag_has_cx25840 = !0, |
9e2e3aeb | 128 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
1aaac60f | 129 | .flag_has_analogtuner = !0, |
1df59f0b | 130 | .flag_has_fmradio = !0, |
1aaac60f MI |
131 | .flag_has_composite = !0, |
132 | .flag_has_svideo = !0, | |
9e2e3aeb | 133 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, |
d130fa8a MI |
134 | }; |
135 | ||
136 | ||
137 | ||
fd1da789 MI |
138 | /*------------------------------------------------------------------------*/ |
139 | /* GOTVIEW USB2.0 DVD Deluxe */ | |
140 | ||
141 | /* (same module list as gotview_2) */ | |
142 | ||
143 | static const struct pvr2_device_desc pvr2_device_gotview_2d = { | |
144 | .description = "Gotview USB 2.0 DVD Deluxe", | |
145 | .shortname = "gv2d", | |
dd5f322f MI |
146 | .client_table.lst = pvr2_cli_gotview_2, |
147 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | |
fd1da789 MI |
148 | .flag_has_cx25840 = !0, |
149 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | |
150 | .flag_has_analogtuner = !0, | |
151 | .flag_has_composite = !0, | |
152 | .flag_has_svideo = !0, | |
153 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, | |
154 | }; | |
155 | ||
156 | ||
157 | ||
d130fa8a MI |
158 | /*------------------------------------------------------------------------*/ |
159 | /* OnAir Creator */ | |
160 | ||
906a4957 MK |
161 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
162 | static struct lgdt330x_config pvr2_lgdt3303_config = { | |
163 | .demod_address = 0x0e, | |
164 | .demod_chip = LGDT3303, | |
165 | .clock_polarity_flip = 1, | |
166 | }; | |
167 | ||
168 | static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap) | |
169 | { | |
170 | adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config, | |
171 | &adap->channel.hdw->i2c_adap); | |
172 | if (adap->fe) | |
173 | return 0; | |
174 | ||
175 | return -EIO; | |
176 | } | |
177 | ||
178 | static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap) | |
179 | { | |
180 | dvb_attach(simple_tuner_attach, adap->fe, | |
181 | &adap->channel.hdw->i2c_adap, 0x61, | |
182 | TUNER_LG_TDVS_H06XF); | |
183 | ||
184 | return 0; | |
185 | } | |
186 | ||
69ea3c1c | 187 | static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = { |
906a4957 MK |
188 | .frontend_attach = pvr2_lgdt3303_attach, |
189 | .tuner_attach = pvr2_lgh06xf_attach, | |
190 | }; | |
191 | #endif | |
192 | ||
dd5f322f MI |
193 | static const struct pvr2_device_client_desc pvr2_cli_onair_creator[] = { |
194 | { .module_id = PVR2_CLIENT_ID_SAA7115 }, | |
195 | { .module_id = PVR2_CLIENT_ID_CS53L32A }, | |
196 | { .module_id = PVR2_CLIENT_ID_TUNER }, | |
d130fa8a MI |
197 | }; |
198 | ||
199 | static const struct pvr2_device_desc pvr2_device_onair_creator = { | |
4542783c MI |
200 | .description = "OnAir Creator Hybrid USB tuner", |
201 | .shortname = "oac", | |
dd5f322f MI |
202 | .client_table.lst = pvr2_cli_onair_creator, |
203 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator), | |
4542783c | 204 | .default_tuner_type = TUNER_LG_TDVS_H06XF, |
1aaac60f MI |
205 | .flag_has_analogtuner = !0, |
206 | .flag_has_composite = !0, | |
207 | .flag_has_svideo = !0, | |
72998b71 | 208 | .flag_digital_requires_cx23416 = !0, |
2a6b627f | 209 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, |
e8f5bacf | 210 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, |
f0910c74 | 211 | .default_std_mask = V4L2_STD_NTSC_M, |
906a4957 MK |
212 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
213 | .dvb_props = &pvr2_onair_creator_fe_props, | |
214 | #endif | |
d130fa8a | 215 | }; |
d130fa8a MI |
216 | |
217 | ||
218 | ||
d130fa8a MI |
219 | /*------------------------------------------------------------------------*/ |
220 | /* OnAir USB 2.0 */ | |
221 | ||
906a4957 MK |
222 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
223 | static struct lgdt330x_config pvr2_lgdt3302_config = { | |
224 | .demod_address = 0x0e, | |
225 | .demod_chip = LGDT3302, | |
226 | }; | |
227 | ||
228 | static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap) | |
229 | { | |
230 | adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config, | |
231 | &adap->channel.hdw->i2c_adap); | |
232 | if (adap->fe) | |
233 | return 0; | |
234 | ||
235 | return -EIO; | |
236 | } | |
237 | ||
238 | static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap) | |
239 | { | |
240 | dvb_attach(simple_tuner_attach, adap->fe, | |
241 | &adap->channel.hdw->i2c_adap, 0x61, | |
242 | TUNER_PHILIPS_FCV1236D); | |
243 | ||
244 | return 0; | |
245 | } | |
246 | ||
69ea3c1c | 247 | static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { |
906a4957 MK |
248 | .frontend_attach = pvr2_lgdt3302_attach, |
249 | .tuner_attach = pvr2_fcv1236d_attach, | |
250 | }; | |
251 | #endif | |
252 | ||
dd5f322f MI |
253 | static const struct pvr2_device_client_desc pvr2_cli_onair_usb2[] = { |
254 | { .module_id = PVR2_CLIENT_ID_SAA7115 }, | |
255 | { .module_id = PVR2_CLIENT_ID_CS53L32A }, | |
256 | { .module_id = PVR2_CLIENT_ID_TUNER }, | |
d130fa8a MI |
257 | }; |
258 | ||
259 | static const struct pvr2_device_desc pvr2_device_onair_usb2 = { | |
4542783c MI |
260 | .description = "OnAir USB2 Hybrid USB tuner", |
261 | .shortname = "oa2", | |
dd5f322f MI |
262 | .client_table.lst = pvr2_cli_onair_usb2, |
263 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2), | |
ab8b870e | 264 | .default_tuner_type = TUNER_PHILIPS_FCV1236D, |
1aaac60f MI |
265 | .flag_has_analogtuner = !0, |
266 | .flag_has_composite = !0, | |
267 | .flag_has_svideo = !0, | |
72998b71 | 268 | .flag_digital_requires_cx23416 = !0, |
2a6b627f | 269 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, |
e8f5bacf | 270 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, |
f0910c74 | 271 | .default_std_mask = V4L2_STD_NTSC_M, |
906a4957 MK |
272 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
273 | .dvb_props = &pvr2_onair_usb2_fe_props, | |
274 | #endif | |
989eb154 | 275 | }; |
d130fa8a MI |
276 | |
277 | ||
989eb154 | 278 | |
92c9d075 MK |
279 | /*------------------------------------------------------------------------*/ |
280 | /* Hauppauge PVR-USB2 Model 73xxx */ | |
281 | ||
95814bc2 MK |
282 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
283 | static struct tda10048_config hauppauge_tda10048_config = { | |
284 | .demod_address = 0x10 >> 1, | |
285 | .output_mode = TDA10048_PARALLEL_OUTPUT, | |
286 | .fwbulkwritelen = TDA10048_BULKWRITE_50, | |
287 | .inversion = TDA10048_INVERSION_ON, | |
08b83583 ST |
288 | .dtv6_if_freq_khz = TDA10048_IF_3300, |
289 | .dtv7_if_freq_khz = TDA10048_IF_3800, | |
290 | .dtv8_if_freq_khz = TDA10048_IF_4300, | |
c7470206 | 291 | .clk_freq_khz = TDA10048_CLK_16000, |
507a34f4 | 292 | .disable_gate_access = 1, |
95814bc2 MK |
293 | }; |
294 | ||
295 | static struct tda829x_config tda829x_no_probe = { | |
296 | .probe_tuner = TDA829X_DONT_PROBE, | |
297 | }; | |
298 | ||
299 | static struct tda18271_config hauppauge_tda18271_dvb_config = { | |
300 | .gate = TDA18271_GATE_ANALOG, | |
301 | }; | |
302 | ||
303 | static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap) | |
304 | { | |
305 | adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config, | |
306 | &adap->channel.hdw->i2c_adap); | |
307 | if (adap->fe) | |
308 | return 0; | |
309 | ||
310 | return -EIO; | |
311 | } | |
312 | ||
313 | static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | |
314 | { | |
315 | dvb_attach(tda829x_attach, adap->fe, | |
316 | &adap->channel.hdw->i2c_adap, 0x42, | |
317 | &tda829x_no_probe); | |
318 | dvb_attach(tda18271_attach, adap->fe, 0x60, | |
319 | &adap->channel.hdw->i2c_adap, | |
320 | &hauppauge_tda18271_dvb_config); | |
321 | ||
322 | return 0; | |
323 | } | |
324 | ||
69ea3c1c | 325 | static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = { |
95814bc2 MK |
326 | .frontend_attach = pvr2_tda10048_attach, |
327 | .tuner_attach = pvr2_73xxx_tda18271_8295_attach, | |
328 | }; | |
329 | #endif | |
330 | ||
dd5f322f MI |
331 | static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = { |
332 | { .module_id = PVR2_CLIENT_ID_CX25840 }, | |
333 | { .module_id = PVR2_CLIENT_ID_TUNER, | |
334 | .i2c_address_list = "\x42"}, | |
92c9d075 MK |
335 | }; |
336 | ||
337 | static const char *pvr2_fw1_names_73xxx[] = { | |
338 | "v4l-pvrusb2-73xxx-01.fw", | |
339 | }; | |
340 | ||
341 | static const struct pvr2_device_desc pvr2_device_73xxx = { | |
353facd4 | 342 | .description = "WinTV HVR-1900 Model Category 73xxx", |
92c9d075 | 343 | .shortname = "73xxx", |
dd5f322f MI |
344 | .client_table.lst = pvr2_cli_73xxx, |
345 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
92c9d075 MK |
346 | .fx2_firmware.lst = pvr2_fw1_names_73xxx, |
347 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), | |
348 | .flag_has_cx25840 = !0, | |
349 | .flag_has_hauppauge_rom = !0, | |
350 | .flag_has_analogtuner = !0, | |
351 | .flag_has_composite = !0, | |
352 | .flag_has_svideo = !0, | |
353 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | |
354 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | |
355 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | |
31335b13 | 356 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
95814bc2 MK |
357 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
358 | .dvb_props = &pvr2_73xxx_dvb_props, | |
359 | #endif | |
92c9d075 MK |
360 | }; |
361 | ||
362 | ||
363 | ||
11fcd470 MK |
364 | /*------------------------------------------------------------------------*/ |
365 | /* Hauppauge PVR-USB2 Model 75xxx */ | |
366 | ||
087886eb MK |
367 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
368 | static struct s5h1409_config pvr2_s5h1409_config = { | |
369 | .demod_address = 0x32 >> 1, | |
370 | .output_mode = S5H1409_PARALLEL_OUTPUT, | |
371 | .gpio = S5H1409_GPIO_OFF, | |
372 | .qam_if = 4000, | |
373 | .inversion = S5H1409_INVERSION_ON, | |
374 | .status_mode = S5H1409_DEMODLOCKING, | |
375 | }; | |
376 | ||
4aef8fdd MK |
377 | static struct s5h1411_config pvr2_s5h1411_config = { |
378 | .output_mode = S5H1411_PARALLEL_OUTPUT, | |
379 | .gpio = S5H1411_GPIO_OFF, | |
380 | .vsb_if = S5H1411_IF_44000, | |
381 | .qam_if = S5H1411_IF_4000, | |
382 | .inversion = S5H1411_INVERSION_ON, | |
383 | .status_mode = S5H1411_DEMODLOCKING, | |
384 | }; | |
385 | ||
087886eb MK |
386 | static struct tda18271_std_map hauppauge_tda18271_std_map = { |
387 | .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3, | |
388 | .if_lvl = 6, .rfagc_top = 0x37, }, | |
389 | .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0, | |
390 | .if_lvl = 6, .rfagc_top = 0x37, }, | |
391 | }; | |
392 | ||
393 | static struct tda18271_config hauppauge_tda18271_config = { | |
394 | .std_map = &hauppauge_tda18271_std_map, | |
395 | .gate = TDA18271_GATE_ANALOG, | |
396 | }; | |
397 | ||
398 | static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap) | |
399 | { | |
400 | adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config, | |
401 | &adap->channel.hdw->i2c_adap); | |
402 | if (adap->fe) | |
403 | return 0; | |
404 | ||
405 | return -EIO; | |
406 | } | |
407 | ||
4aef8fdd MK |
408 | static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap) |
409 | { | |
410 | adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config, | |
411 | &adap->channel.hdw->i2c_adap); | |
412 | if (adap->fe) | |
413 | return 0; | |
414 | ||
415 | return -EIO; | |
416 | } | |
417 | ||
087886eb MK |
418 | static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) |
419 | { | |
420 | dvb_attach(tda829x_attach, adap->fe, | |
421 | &adap->channel.hdw->i2c_adap, 0x42, | |
422 | &tda829x_no_probe); | |
423 | dvb_attach(tda18271_attach, adap->fe, 0x60, | |
424 | &adap->channel.hdw->i2c_adap, | |
425 | &hauppauge_tda18271_config); | |
426 | ||
427 | return 0; | |
428 | } | |
429 | ||
69ea3c1c | 430 | static const struct pvr2_dvb_props pvr2_750xx_dvb_props = { |
087886eb MK |
431 | .frontend_attach = pvr2_s5h1409_attach, |
432 | .tuner_attach = pvr2_tda18271_8295_attach, | |
433 | }; | |
4aef8fdd | 434 | |
69ea3c1c | 435 | static const struct pvr2_dvb_props pvr2_751xx_dvb_props = { |
4aef8fdd MK |
436 | .frontend_attach = pvr2_s5h1411_attach, |
437 | .tuner_attach = pvr2_tda18271_8295_attach, | |
438 | }; | |
087886eb MK |
439 | #endif |
440 | ||
11fcd470 MK |
441 | static const char *pvr2_fw1_names_75xxx[] = { |
442 | "v4l-pvrusb2-73xxx-01.fw", | |
443 | }; | |
444 | ||
c8812841 | 445 | static const struct pvr2_device_desc pvr2_device_750xx = { |
353facd4 | 446 | .description = "WinTV HVR-1950 Model Category 750xx", |
c8812841 | 447 | .shortname = "750xx", |
dd5f322f MI |
448 | .client_table.lst = pvr2_cli_73xxx, |
449 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
c8812841 MK |
450 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
451 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | |
452 | .flag_has_cx25840 = !0, | |
453 | .flag_has_hauppauge_rom = !0, | |
454 | .flag_has_analogtuner = !0, | |
455 | .flag_has_composite = !0, | |
456 | .flag_has_svideo = !0, | |
457 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | |
458 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | |
459 | .default_std_mask = V4L2_STD_NTSC_M, | |
460 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | |
31335b13 | 461 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
087886eb MK |
462 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
463 | .dvb_props = &pvr2_750xx_dvb_props, | |
464 | #endif | |
c8812841 MK |
465 | }; |
466 | ||
467 | static const struct pvr2_device_desc pvr2_device_751xx = { | |
353facd4 | 468 | .description = "WinTV HVR-1950 Model Category 751xx", |
c8812841 | 469 | .shortname = "751xx", |
dd5f322f MI |
470 | .client_table.lst = pvr2_cli_73xxx, |
471 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
11fcd470 MK |
472 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
473 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | |
474 | .flag_has_cx25840 = !0, | |
475 | .flag_has_hauppauge_rom = !0, | |
1aaac60f MI |
476 | .flag_has_analogtuner = !0, |
477 | .flag_has_composite = !0, | |
478 | .flag_has_svideo = !0, | |
11fcd470 | 479 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
e8f5bacf | 480 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, |
11fcd470 | 481 | .default_std_mask = V4L2_STD_NTSC_M, |
40381cb0 | 482 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
31335b13 | 483 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
4aef8fdd MK |
484 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
485 | .dvb_props = &pvr2_751xx_dvb_props, | |
486 | #endif | |
11fcd470 MK |
487 | }; |
488 | ||
489 | ||
490 | ||
d130fa8a MI |
491 | /*------------------------------------------------------------------------*/ |
492 | ||
493 | struct usb_device_id pvr2_device_table[] = { | |
494 | { USB_DEVICE(0x2040, 0x2900), | |
495 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | |
b675c052 MI |
496 | { USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */ |
497 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | |
d130fa8a MI |
498 | { USB_DEVICE(0x2040, 0x2400), |
499 | .driver_info = (kernel_ulong_t)&pvr2_device_24xxx}, | |
500 | { USB_DEVICE(0x1164, 0x0622), | |
501 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2}, | |
fd1da789 MI |
502 | { USB_DEVICE(0x1164, 0x0602), |
503 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d}, | |
d130fa8a MI |
504 | { USB_DEVICE(0x11ba, 0x1003), |
505 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, | |
d130fa8a MI |
506 | { USB_DEVICE(0x11ba, 0x1001), |
507 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, | |
92c9d075 MK |
508 | { USB_DEVICE(0x2040, 0x7300), |
509 | .driver_info = (kernel_ulong_t)&pvr2_device_73xxx}, | |
11fcd470 | 510 | { USB_DEVICE(0x2040, 0x7500), |
c8812841 | 511 | .driver_info = (kernel_ulong_t)&pvr2_device_750xx}, |
dd6e9467 | 512 | { USB_DEVICE(0x2040, 0x7501), |
c8812841 | 513 | .driver_info = (kernel_ulong_t)&pvr2_device_751xx}, |
d130fa8a MI |
514 | { } |
515 | }; | |
989eb154 MI |
516 | |
517 | MODULE_DEVICE_TABLE(usb, pvr2_device_table); | |
518 | ||
519 | ||
520 | /* | |
521 | Stuff for Emacs to see, in order to encourage consistent editing style: | |
522 | *** Local Variables: *** | |
523 | *** mode: c *** | |
524 | *** fill-column: 75 *** | |
525 | *** tab-width: 8 *** | |
526 | *** c-basic-offset: 8 *** | |
527 | *** End: *** | |
528 | */ |