pvrusb2-devattr.c 17 KB

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