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, | |
c7470206 ST |
288 | .if_freq_khz = TDA10048_IF_4300, |
289 | .clk_freq_khz = TDA10048_CLK_16000, | |
95814bc2 MK |
290 | }; |
291 | ||
292 | static struct tda829x_config tda829x_no_probe = { | |
293 | .probe_tuner = TDA829X_DONT_PROBE, | |
294 | }; | |
295 | ||
296 | static struct tda18271_config hauppauge_tda18271_dvb_config = { | |
297 | .gate = TDA18271_GATE_ANALOG, | |
298 | }; | |
299 | ||
300 | static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap) | |
301 | { | |
302 | adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config, | |
303 | &adap->channel.hdw->i2c_adap); | |
304 | if (adap->fe) | |
305 | return 0; | |
306 | ||
307 | return -EIO; | |
308 | } | |
309 | ||
310 | static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | |
311 | { | |
312 | dvb_attach(tda829x_attach, adap->fe, | |
313 | &adap->channel.hdw->i2c_adap, 0x42, | |
314 | &tda829x_no_probe); | |
315 | dvb_attach(tda18271_attach, adap->fe, 0x60, | |
316 | &adap->channel.hdw->i2c_adap, | |
317 | &hauppauge_tda18271_dvb_config); | |
318 | ||
319 | return 0; | |
320 | } | |
321 | ||
69ea3c1c | 322 | static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = { |
95814bc2 MK |
323 | .frontend_attach = pvr2_tda10048_attach, |
324 | .tuner_attach = pvr2_73xxx_tda18271_8295_attach, | |
325 | }; | |
326 | #endif | |
327 | ||
dd5f322f MI |
328 | static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = { |
329 | { .module_id = PVR2_CLIENT_ID_CX25840 }, | |
330 | { .module_id = PVR2_CLIENT_ID_TUNER, | |
331 | .i2c_address_list = "\x42"}, | |
92c9d075 MK |
332 | }; |
333 | ||
334 | static const char *pvr2_fw1_names_73xxx[] = { | |
335 | "v4l-pvrusb2-73xxx-01.fw", | |
336 | }; | |
337 | ||
338 | static const struct pvr2_device_desc pvr2_device_73xxx = { | |
353facd4 | 339 | .description = "WinTV HVR-1900 Model Category 73xxx", |
92c9d075 | 340 | .shortname = "73xxx", |
dd5f322f MI |
341 | .client_table.lst = pvr2_cli_73xxx, |
342 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
92c9d075 MK |
343 | .fx2_firmware.lst = pvr2_fw1_names_73xxx, |
344 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), | |
345 | .flag_has_cx25840 = !0, | |
346 | .flag_has_hauppauge_rom = !0, | |
347 | .flag_has_analogtuner = !0, | |
348 | .flag_has_composite = !0, | |
349 | .flag_has_svideo = !0, | |
350 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | |
351 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | |
352 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | |
31335b13 | 353 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
95814bc2 MK |
354 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
355 | .dvb_props = &pvr2_73xxx_dvb_props, | |
356 | #endif | |
92c9d075 MK |
357 | }; |
358 | ||
359 | ||
360 | ||
11fcd470 MK |
361 | /*------------------------------------------------------------------------*/ |
362 | /* Hauppauge PVR-USB2 Model 75xxx */ | |
363 | ||
087886eb MK |
364 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
365 | static struct s5h1409_config pvr2_s5h1409_config = { | |
366 | .demod_address = 0x32 >> 1, | |
367 | .output_mode = S5H1409_PARALLEL_OUTPUT, | |
368 | .gpio = S5H1409_GPIO_OFF, | |
369 | .qam_if = 4000, | |
370 | .inversion = S5H1409_INVERSION_ON, | |
371 | .status_mode = S5H1409_DEMODLOCKING, | |
372 | }; | |
373 | ||
4aef8fdd MK |
374 | static struct s5h1411_config pvr2_s5h1411_config = { |
375 | .output_mode = S5H1411_PARALLEL_OUTPUT, | |
376 | .gpio = S5H1411_GPIO_OFF, | |
377 | .vsb_if = S5H1411_IF_44000, | |
378 | .qam_if = S5H1411_IF_4000, | |
379 | .inversion = S5H1411_INVERSION_ON, | |
380 | .status_mode = S5H1411_DEMODLOCKING, | |
381 | }; | |
382 | ||
087886eb MK |
383 | static struct tda18271_std_map hauppauge_tda18271_std_map = { |
384 | .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3, | |
385 | .if_lvl = 6, .rfagc_top = 0x37, }, | |
386 | .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0, | |
387 | .if_lvl = 6, .rfagc_top = 0x37, }, | |
388 | }; | |
389 | ||
390 | static struct tda18271_config hauppauge_tda18271_config = { | |
391 | .std_map = &hauppauge_tda18271_std_map, | |
392 | .gate = TDA18271_GATE_ANALOG, | |
393 | }; | |
394 | ||
395 | static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap) | |
396 | { | |
397 | adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config, | |
398 | &adap->channel.hdw->i2c_adap); | |
399 | if (adap->fe) | |
400 | return 0; | |
401 | ||
402 | return -EIO; | |
403 | } | |
404 | ||
4aef8fdd MK |
405 | static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap) |
406 | { | |
407 | adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config, | |
408 | &adap->channel.hdw->i2c_adap); | |
409 | if (adap->fe) | |
410 | return 0; | |
411 | ||
412 | return -EIO; | |
413 | } | |
414 | ||
087886eb MK |
415 | static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) |
416 | { | |
417 | dvb_attach(tda829x_attach, adap->fe, | |
418 | &adap->channel.hdw->i2c_adap, 0x42, | |
419 | &tda829x_no_probe); | |
420 | dvb_attach(tda18271_attach, adap->fe, 0x60, | |
421 | &adap->channel.hdw->i2c_adap, | |
422 | &hauppauge_tda18271_config); | |
423 | ||
424 | return 0; | |
425 | } | |
426 | ||
69ea3c1c | 427 | static const struct pvr2_dvb_props pvr2_750xx_dvb_props = { |
087886eb MK |
428 | .frontend_attach = pvr2_s5h1409_attach, |
429 | .tuner_attach = pvr2_tda18271_8295_attach, | |
430 | }; | |
4aef8fdd | 431 | |
69ea3c1c | 432 | static const struct pvr2_dvb_props pvr2_751xx_dvb_props = { |
4aef8fdd MK |
433 | .frontend_attach = pvr2_s5h1411_attach, |
434 | .tuner_attach = pvr2_tda18271_8295_attach, | |
435 | }; | |
087886eb MK |
436 | #endif |
437 | ||
11fcd470 MK |
438 | static const char *pvr2_fw1_names_75xxx[] = { |
439 | "v4l-pvrusb2-73xxx-01.fw", | |
440 | }; | |
441 | ||
c8812841 | 442 | static const struct pvr2_device_desc pvr2_device_750xx = { |
353facd4 | 443 | .description = "WinTV HVR-1950 Model Category 750xx", |
c8812841 | 444 | .shortname = "750xx", |
dd5f322f MI |
445 | .client_table.lst = pvr2_cli_73xxx, |
446 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
c8812841 MK |
447 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
448 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | |
449 | .flag_has_cx25840 = !0, | |
450 | .flag_has_hauppauge_rom = !0, | |
451 | .flag_has_analogtuner = !0, | |
452 | .flag_has_composite = !0, | |
453 | .flag_has_svideo = !0, | |
454 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | |
455 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | |
456 | .default_std_mask = V4L2_STD_NTSC_M, | |
457 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | |
31335b13 | 458 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
087886eb MK |
459 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
460 | .dvb_props = &pvr2_750xx_dvb_props, | |
461 | #endif | |
c8812841 MK |
462 | }; |
463 | ||
464 | static const struct pvr2_device_desc pvr2_device_751xx = { | |
353facd4 | 465 | .description = "WinTV HVR-1950 Model Category 751xx", |
c8812841 | 466 | .shortname = "751xx", |
dd5f322f MI |
467 | .client_table.lst = pvr2_cli_73xxx, |
468 | .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | |
11fcd470 MK |
469 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
470 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | |
471 | .flag_has_cx25840 = !0, | |
472 | .flag_has_hauppauge_rom = !0, | |
1aaac60f MI |
473 | .flag_has_analogtuner = !0, |
474 | .flag_has_composite = !0, | |
475 | .flag_has_svideo = !0, | |
11fcd470 | 476 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
e8f5bacf | 477 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, |
11fcd470 | 478 | .default_std_mask = V4L2_STD_NTSC_M, |
40381cb0 | 479 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
31335b13 | 480 | .ir_scheme = PVR2_IR_SCHEME_ZILOG, |
4aef8fdd MK |
481 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
482 | .dvb_props = &pvr2_751xx_dvb_props, | |
483 | #endif | |
11fcd470 MK |
484 | }; |
485 | ||
486 | ||
487 | ||
d130fa8a MI |
488 | /*------------------------------------------------------------------------*/ |
489 | ||
490 | struct usb_device_id pvr2_device_table[] = { | |
491 | { USB_DEVICE(0x2040, 0x2900), | |
492 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | |
b675c052 MI |
493 | { USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */ |
494 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | |
d130fa8a MI |
495 | { USB_DEVICE(0x2040, 0x2400), |
496 | .driver_info = (kernel_ulong_t)&pvr2_device_24xxx}, | |
497 | { USB_DEVICE(0x1164, 0x0622), | |
498 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2}, | |
fd1da789 MI |
499 | { USB_DEVICE(0x1164, 0x0602), |
500 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d}, | |
d130fa8a MI |
501 | { USB_DEVICE(0x11ba, 0x1003), |
502 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, | |
d130fa8a MI |
503 | { USB_DEVICE(0x11ba, 0x1001), |
504 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, | |
92c9d075 MK |
505 | { USB_DEVICE(0x2040, 0x7300), |
506 | .driver_info = (kernel_ulong_t)&pvr2_device_73xxx}, | |
11fcd470 | 507 | { USB_DEVICE(0x2040, 0x7500), |
c8812841 | 508 | .driver_info = (kernel_ulong_t)&pvr2_device_750xx}, |
dd6e9467 | 509 | { USB_DEVICE(0x2040, 0x7501), |
c8812841 | 510 | .driver_info = (kernel_ulong_t)&pvr2_device_751xx}, |
d130fa8a MI |
511 | { } |
512 | }; | |
989eb154 MI |
513 | |
514 | MODULE_DEVICE_TABLE(usb, pvr2_device_table); | |
515 | ||
516 | ||
517 | /* | |
518 | Stuff for Emacs to see, in order to encourage consistent editing style: | |
519 | *** Local Variables: *** | |
520 | *** mode: c *** | |
521 | *** fill-column: 75 *** | |
522 | *** tab-width: 8 *** | |
523 | *** c-basic-offset: 8 *** | |
524 | *** End: *** | |
525 | */ |