pvrusb2-devattr.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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. This source file should encompass ALL per-device type information for the
  22. driver. To define a new device, add elements to the pvr2_device_table and
  23. pvr2_device_desc structures.
  24. */
  25. #include "pvrusb2-devattr.h"
  26. #include <linux/usb.h>
  27. #include <linux/module.h>
  28. /* This is needed in order to pull in tuner type ids... */
  29. #include <linux/i2c.h>
  30. #include <media/tuner.h>
  31. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  32. #include "pvrusb2-hdw-internal.h"
  33. #include "lgdt330x.h"
  34. #include "s5h1409.h"
  35. #include "s5h1411.h"
  36. #include "tda10048.h"
  37. #include "tda18271.h"
  38. #include "tda8290.h"
  39. #include "tuner-simple.h"
  40. #endif
  41. /*------------------------------------------------------------------------*/
  42. /* Hauppauge PVR-USB2 Model 29xxx */
  43. static const struct pvr2_device_client_desc pvr2_cli_29xxx[] = {
  44. { .module_id = PVR2_CLIENT_ID_SAA7115 },
  45. { .module_id = PVR2_CLIENT_ID_MSP3400 },
  46. { .module_id = PVR2_CLIENT_ID_TUNER },
  47. { .module_id = PVR2_CLIENT_ID_DEMOD },
  48. };
  49. static const char *pvr2_fw1_names_29xxx[] = {
  50. "v4l-pvrusb2-29xxx-01.fw",
  51. };
  52. static const struct pvr2_device_desc pvr2_device_29xxx = {
  53. .description = "WinTV PVR USB2 Model 29xxx",
  54. .shortname = "29xxx",
  55. .client_table.lst = pvr2_cli_29xxx,
  56. .client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx),
  57. .fx2_firmware.lst = pvr2_fw1_names_29xxx,
  58. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
  59. .flag_has_hauppauge_rom = !0,
  60. .flag_has_analogtuner = !0,
  61. .flag_has_fmradio = !0,
  62. .flag_has_composite = !0,
  63. .flag_has_svideo = !0,
  64. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  65. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  66. .ir_scheme = PVR2_IR_SCHEME_29XXX,
  67. };
  68. /*------------------------------------------------------------------------*/
  69. /* Hauppauge PVR-USB2 Model 24xxx */
  70. static const struct pvr2_device_client_desc pvr2_cli_24xxx[] = {
  71. { .module_id = PVR2_CLIENT_ID_CX25840 },
  72. { .module_id = PVR2_CLIENT_ID_TUNER },
  73. { .module_id = PVR2_CLIENT_ID_WM8775 },
  74. { .module_id = PVR2_CLIENT_ID_DEMOD },
  75. };
  76. static const char *pvr2_fw1_names_24xxx[] = {
  77. "v4l-pvrusb2-24xxx-01.fw",
  78. };
  79. static const struct pvr2_device_desc pvr2_device_24xxx = {
  80. .description = "WinTV PVR USB2 Model 24xxx",
  81. .shortname = "24xxx",
  82. .client_table.lst = pvr2_cli_24xxx,
  83. .client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx),
  84. .fx2_firmware.lst = pvr2_fw1_names_24xxx,
  85. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
  86. .flag_has_cx25840 = !0,
  87. .flag_has_wm8775 = !0,
  88. .flag_has_hauppauge_rom = !0,
  89. .flag_has_analogtuner = !0,
  90. .flag_has_fmradio = !0,
  91. .flag_has_composite = !0,
  92. .flag_has_svideo = !0,
  93. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  94. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  95. .ir_scheme = PVR2_IR_SCHEME_24XXX,
  96. };
  97. /*------------------------------------------------------------------------*/
  98. /* GOTVIEW USB2.0 DVD2 */
  99. static const struct pvr2_device_client_desc pvr2_cli_gotview_2[] = {
  100. { .module_id = PVR2_CLIENT_ID_CX25840 },
  101. { .module_id = PVR2_CLIENT_ID_TUNER },
  102. { .module_id = PVR2_CLIENT_ID_DEMOD },
  103. };
  104. static const struct pvr2_device_desc pvr2_device_gotview_2 = {
  105. .description = "Gotview USB 2.0 DVD 2",
  106. .shortname = "gv2",
  107. .client_table.lst = pvr2_cli_gotview_2,
  108. .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
  109. .flag_has_cx25840 = !0,
  110. .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  111. .flag_has_analogtuner = !0,
  112. .flag_has_fmradio = !0,
  113. .flag_has_composite = !0,
  114. .flag_has_svideo = !0,
  115. .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
  116. };
  117. /*------------------------------------------------------------------------*/
  118. /* GOTVIEW USB2.0 DVD Deluxe */
  119. /* (same module list as gotview_2) */
  120. static const struct pvr2_device_desc pvr2_device_gotview_2d = {
  121. .description = "Gotview USB 2.0 DVD Deluxe",
  122. .shortname = "gv2d",
  123. .client_table.lst = pvr2_cli_gotview_2,
  124. .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2),
  125. .flag_has_cx25840 = !0,
  126. .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  127. .flag_has_analogtuner = !0,
  128. .flag_has_composite = !0,
  129. .flag_has_svideo = !0,
  130. .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
  131. };
  132. /*------------------------------------------------------------------------*/
  133. /* Terratec Grabster AV400 */
  134. static const struct pvr2_device_client_desc pvr2_cli_av400[] = {
  135. { .module_id = PVR2_CLIENT_ID_CX25840 },
  136. };
  137. static const struct pvr2_device_desc pvr2_device_av400 = {
  138. .description = "Terratec Grabster AV400",
  139. .shortname = "av400",
  140. .flag_is_experimental = 1,
  141. .client_table.lst = pvr2_cli_av400,
  142. .client_table.cnt = ARRAY_SIZE(pvr2_cli_av400),
  143. .flag_has_cx25840 = !0,
  144. .flag_has_analogtuner = 0,
  145. .flag_has_composite = !0,
  146. .flag_has_svideo = !0,
  147. .signal_routing_scheme = PVR2_ROUTING_SCHEME_AV400,
  148. };
  149. /*------------------------------------------------------------------------*/
  150. /* OnAir Creator */
  151. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  152. static struct lgdt330x_config pvr2_lgdt3303_config = {
  153. .demod_address = 0x0e,
  154. .demod_chip = LGDT3303,
  155. .clock_polarity_flip = 1,
  156. };
  157. static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap)
  158. {
  159. adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config,
  160. &adap->channel.hdw->i2c_adap);
  161. if (adap->fe)
  162. return 0;
  163. return -EIO;
  164. }
  165. static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap)
  166. {
  167. dvb_attach(simple_tuner_attach, adap->fe,
  168. &adap->channel.hdw->i2c_adap, 0x61,
  169. TUNER_LG_TDVS_H06XF);
  170. return 0;
  171. }
  172. static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = {
  173. .frontend_attach = pvr2_lgdt3303_attach,
  174. .tuner_attach = pvr2_lgh06xf_attach,
  175. };
  176. #endif
  177. static const struct pvr2_device_client_desc pvr2_cli_onair_creator[] = {
  178. { .module_id = PVR2_CLIENT_ID_SAA7115 },
  179. { .module_id = PVR2_CLIENT_ID_CS53L32A },
  180. { .module_id = PVR2_CLIENT_ID_TUNER },
  181. };
  182. static const struct pvr2_device_desc pvr2_device_onair_creator = {
  183. .description = "OnAir Creator Hybrid USB tuner",
  184. .shortname = "oac",
  185. .client_table.lst = pvr2_cli_onair_creator,
  186. .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator),
  187. .default_tuner_type = TUNER_LG_TDVS_H06XF,
  188. .flag_has_analogtuner = !0,
  189. .flag_has_composite = !0,
  190. .flag_has_svideo = !0,
  191. .flag_digital_requires_cx23416 = !0,
  192. .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR,
  193. .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
  194. .default_std_mask = V4L2_STD_NTSC_M,
  195. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  196. .dvb_props = &pvr2_onair_creator_fe_props,
  197. #endif
  198. };
  199. /*------------------------------------------------------------------------*/
  200. /* OnAir USB 2.0 */
  201. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  202. static struct lgdt330x_config pvr2_lgdt3302_config = {
  203. .demod_address = 0x0e,
  204. .demod_chip = LGDT3302,
  205. };
  206. static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap)
  207. {
  208. adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config,
  209. &adap->channel.hdw->i2c_adap);
  210. if (adap->fe)
  211. return 0;
  212. return -EIO;
  213. }
  214. static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap)
  215. {
  216. dvb_attach(simple_tuner_attach, adap->fe,
  217. &adap->channel.hdw->i2c_adap, 0x61,
  218. TUNER_PHILIPS_FCV1236D);
  219. return 0;
  220. }
  221. static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = {
  222. .frontend_attach = pvr2_lgdt3302_attach,
  223. .tuner_attach = pvr2_fcv1236d_attach,
  224. };
  225. #endif
  226. static const struct pvr2_device_client_desc pvr2_cli_onair_usb2[] = {
  227. { .module_id = PVR2_CLIENT_ID_SAA7115 },
  228. { .module_id = PVR2_CLIENT_ID_CS53L32A },
  229. { .module_id = PVR2_CLIENT_ID_TUNER },
  230. };
  231. static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
  232. .description = "OnAir USB2 Hybrid USB tuner",
  233. .shortname = "oa2",
  234. .client_table.lst = pvr2_cli_onair_usb2,
  235. .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2),
  236. .default_tuner_type = TUNER_PHILIPS_FCV1236D,
  237. .flag_has_analogtuner = !0,
  238. .flag_has_composite = !0,
  239. .flag_has_svideo = !0,
  240. .flag_digital_requires_cx23416 = !0,
  241. .signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR,
  242. .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
  243. .default_std_mask = V4L2_STD_NTSC_M,
  244. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  245. .dvb_props = &pvr2_onair_usb2_fe_props,
  246. #endif
  247. };
  248. /*------------------------------------------------------------------------*/
  249. /* Hauppauge PVR-USB2 Model 73xxx */
  250. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  251. static struct tda10048_config hauppauge_tda10048_config = {
  252. .demod_address = 0x10 >> 1,
  253. .output_mode = TDA10048_PARALLEL_OUTPUT,
  254. .fwbulkwritelen = TDA10048_BULKWRITE_50,
  255. .inversion = TDA10048_INVERSION_ON,
  256. .dtv6_if_freq_khz = TDA10048_IF_3300,
  257. .dtv7_if_freq_khz = TDA10048_IF_3800,
  258. .dtv8_if_freq_khz = TDA10048_IF_4300,
  259. .clk_freq_khz = TDA10048_CLK_16000,
  260. .disable_gate_access = 1,
  261. };
  262. static struct tda829x_config tda829x_no_probe = {
  263. .probe_tuner = TDA829X_DONT_PROBE,
  264. };
  265. static struct tda18271_config hauppauge_tda18271_dvb_config = {
  266. .gate = TDA18271_GATE_ANALOG,
  267. .output_opt = TDA18271_OUTPUT_LT_OFF,
  268. };
  269. static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap)
  270. {
  271. adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config,
  272. &adap->channel.hdw->i2c_adap);
  273. if (adap->fe)
  274. return 0;
  275. return -EIO;
  276. }
  277. static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
  278. {
  279. dvb_attach(tda829x_attach, adap->fe,
  280. &adap->channel.hdw->i2c_adap, 0x42,
  281. &tda829x_no_probe);
  282. dvb_attach(tda18271_attach, adap->fe, 0x60,
  283. &adap->channel.hdw->i2c_adap,
  284. &hauppauge_tda18271_dvb_config);
  285. return 0;
  286. }
  287. static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = {
  288. .frontend_attach = pvr2_tda10048_attach,
  289. .tuner_attach = pvr2_73xxx_tda18271_8295_attach,
  290. };
  291. #endif
  292. static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = {
  293. { .module_id = PVR2_CLIENT_ID_CX25840 },
  294. { .module_id = PVR2_CLIENT_ID_TUNER,
  295. .i2c_address_list = "\x42"},
  296. };
  297. static const char *pvr2_fw1_names_73xxx[] = {
  298. "v4l-pvrusb2-73xxx-01.fw",
  299. };
  300. static const struct pvr2_device_desc pvr2_device_73xxx = {
  301. .description = "WinTV HVR-1900 Model 73xxx",
  302. .shortname = "73xxx",
  303. .client_table.lst = pvr2_cli_73xxx,
  304. .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
  305. .fx2_firmware.lst = pvr2_fw1_names_73xxx,
  306. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
  307. .flag_has_cx25840 = !0,
  308. .flag_has_hauppauge_rom = !0,
  309. .flag_has_analogtuner = !0,
  310. .flag_has_composite = !0,
  311. .flag_has_svideo = !0,
  312. .flag_fx2_16kb = !0,
  313. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  314. .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
  315. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  316. .ir_scheme = PVR2_IR_SCHEME_ZILOG,
  317. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  318. .dvb_props = &pvr2_73xxx_dvb_props,
  319. #endif
  320. };
  321. /*------------------------------------------------------------------------*/
  322. /* Hauppauge PVR-USB2 Model 75xxx */
  323. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  324. static struct s5h1409_config pvr2_s5h1409_config = {
  325. .demod_address = 0x32 >> 1,
  326. .output_mode = S5H1409_PARALLEL_OUTPUT,
  327. .gpio = S5H1409_GPIO_OFF,
  328. .qam_if = 4000,
  329. .inversion = S5H1409_INVERSION_ON,
  330. .status_mode = S5H1409_DEMODLOCKING,
  331. };
  332. static struct s5h1411_config pvr2_s5h1411_config = {
  333. .output_mode = S5H1411_PARALLEL_OUTPUT,
  334. .gpio = S5H1411_GPIO_OFF,
  335. .vsb_if = S5H1411_IF_44000,
  336. .qam_if = S5H1411_IF_4000,
  337. .inversion = S5H1411_INVERSION_ON,
  338. .status_mode = S5H1411_DEMODLOCKING,
  339. };
  340. static struct tda18271_std_map hauppauge_tda18271_std_map = {
  341. .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3,
  342. .if_lvl = 6, .rfagc_top = 0x37, },
  343. .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
  344. .if_lvl = 6, .rfagc_top = 0x37, },
  345. };
  346. static struct tda18271_config hauppauge_tda18271_config = {
  347. .std_map = &hauppauge_tda18271_std_map,
  348. .gate = TDA18271_GATE_ANALOG,
  349. .output_opt = TDA18271_OUTPUT_LT_OFF,
  350. };
  351. static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap)
  352. {
  353. adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config,
  354. &adap->channel.hdw->i2c_adap);
  355. if (adap->fe)
  356. return 0;
  357. return -EIO;
  358. }
  359. static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap)
  360. {
  361. adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config,
  362. &adap->channel.hdw->i2c_adap);
  363. if (adap->fe)
  364. return 0;
  365. return -EIO;
  366. }
  367. static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
  368. {
  369. dvb_attach(tda829x_attach, adap->fe,
  370. &adap->channel.hdw->i2c_adap, 0x42,
  371. &tda829x_no_probe);
  372. dvb_attach(tda18271_attach, adap->fe, 0x60,
  373. &adap->channel.hdw->i2c_adap,
  374. &hauppauge_tda18271_config);
  375. return 0;
  376. }
  377. static const struct pvr2_dvb_props pvr2_750xx_dvb_props = {
  378. .frontend_attach = pvr2_s5h1409_attach,
  379. .tuner_attach = pvr2_tda18271_8295_attach,
  380. };
  381. static const struct pvr2_dvb_props pvr2_751xx_dvb_props = {
  382. .frontend_attach = pvr2_s5h1411_attach,
  383. .tuner_attach = pvr2_tda18271_8295_attach,
  384. };
  385. #endif
  386. static const char *pvr2_fw1_names_75xxx[] = {
  387. "v4l-pvrusb2-73xxx-01.fw",
  388. };
  389. static const struct pvr2_device_desc pvr2_device_750xx = {
  390. .description = "WinTV HVR-1950 Model 750xx",
  391. .shortname = "750xx",
  392. .client_table.lst = pvr2_cli_73xxx,
  393. .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
  394. .fx2_firmware.lst = pvr2_fw1_names_75xxx,
  395. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
  396. .flag_has_cx25840 = !0,
  397. .flag_has_hauppauge_rom = !0,
  398. .flag_has_analogtuner = !0,
  399. .flag_has_composite = !0,
  400. .flag_has_svideo = !0,
  401. .flag_fx2_16kb = !0,
  402. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  403. .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
  404. .default_std_mask = V4L2_STD_NTSC_M,
  405. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  406. .ir_scheme = PVR2_IR_SCHEME_ZILOG,
  407. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  408. .dvb_props = &pvr2_750xx_dvb_props,
  409. #endif
  410. };
  411. static const struct pvr2_device_desc pvr2_device_751xx = {
  412. .description = "WinTV HVR-1950 Model 751xx",
  413. .shortname = "751xx",
  414. .client_table.lst = pvr2_cli_73xxx,
  415. .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
  416. .fx2_firmware.lst = pvr2_fw1_names_75xxx,
  417. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
  418. .flag_has_cx25840 = !0,
  419. .flag_has_hauppauge_rom = !0,
  420. .flag_has_analogtuner = !0,
  421. .flag_has_composite = !0,
  422. .flag_has_svideo = !0,
  423. .flag_fx2_16kb = !0,
  424. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  425. .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
  426. .default_std_mask = V4L2_STD_NTSC_M,
  427. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  428. .ir_scheme = PVR2_IR_SCHEME_ZILOG,
  429. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  430. .dvb_props = &pvr2_751xx_dvb_props,
  431. #endif
  432. };
  433. /*------------------------------------------------------------------------*/
  434. struct usb_device_id pvr2_device_table[] = {
  435. { USB_DEVICE(0x2040, 0x2900),
  436. .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
  437. { USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */
  438. .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
  439. { USB_DEVICE(0x2040, 0x2400),
  440. .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
  441. { USB_DEVICE(0x1164, 0x0622),
  442. .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
  443. { USB_DEVICE(0x1164, 0x0602),
  444. .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d},
  445. { USB_DEVICE(0x11ba, 0x1003),
  446. .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
  447. { USB_DEVICE(0x11ba, 0x1001),
  448. .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
  449. { USB_DEVICE(0x2040, 0x7300),
  450. .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
  451. { USB_DEVICE(0x2040, 0x7500),
  452. .driver_info = (kernel_ulong_t)&pvr2_device_750xx},
  453. { USB_DEVICE(0x2040, 0x7501),
  454. .driver_info = (kernel_ulong_t)&pvr2_device_751xx},
  455. { USB_DEVICE(0x0ccd, 0x0039),
  456. .driver_info = (kernel_ulong_t)&pvr2_device_av400},
  457. { }
  458. };
  459. MODULE_DEVICE_TABLE(usb, pvr2_device_table);
  460. /*
  461. Stuff for Emacs to see, in order to encourage consistent editing style:
  462. *** Local Variables: ***
  463. *** mode: c ***
  464. *** fill-column: 75 ***
  465. *** tab-width: 8 ***
  466. *** c-basic-offset: 8 ***
  467. *** End: ***
  468. */