pvrusb2-devattr.c 16 KB

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