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