pvrusb2-devattr.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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_std_map hauppauge_tda18271_dvbt_std_map = {
  266. .dvbt_6 = { .if_freq = 3300, .agc_mode = 3, .std = 4,
  267. .if_lvl = 1, .rfagc_top = 0x37, },
  268. .dvbt_7 = { .if_freq = 3800, .agc_mode = 3, .std = 5,
  269. .if_lvl = 1, .rfagc_top = 0x37, },
  270. .dvbt_8 = { .if_freq = 4300, .agc_mode = 3, .std = 6,
  271. .if_lvl = 1, .rfagc_top = 0x37, },
  272. };
  273. static struct tda18271_config hauppauge_tda18271_dvb_config = {
  274. .std_map = &hauppauge_tda18271_dvbt_std_map,
  275. .gate = TDA18271_GATE_ANALOG,
  276. .output_opt = TDA18271_OUTPUT_LT_OFF,
  277. };
  278. static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap)
  279. {
  280. adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config,
  281. &adap->channel.hdw->i2c_adap);
  282. if (adap->fe)
  283. return 0;
  284. return -EIO;
  285. }
  286. static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
  287. {
  288. dvb_attach(tda829x_attach, adap->fe,
  289. &adap->channel.hdw->i2c_adap, 0x42,
  290. &tda829x_no_probe);
  291. dvb_attach(tda18271_attach, adap->fe, 0x60,
  292. &adap->channel.hdw->i2c_adap,
  293. &hauppauge_tda18271_dvb_config);
  294. return 0;
  295. }
  296. static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = {
  297. .frontend_attach = pvr2_tda10048_attach,
  298. .tuner_attach = pvr2_73xxx_tda18271_8295_attach,
  299. };
  300. #endif
  301. static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = {
  302. { .module_id = PVR2_CLIENT_ID_CX25840 },
  303. { .module_id = PVR2_CLIENT_ID_TUNER,
  304. .i2c_address_list = "\x42"},
  305. };
  306. static const char *pvr2_fw1_names_73xxx[] = {
  307. "v4l-pvrusb2-73xxx-01.fw",
  308. };
  309. static const struct pvr2_device_desc pvr2_device_73xxx = {
  310. .description = "WinTV HVR-1900 Model 73xxx",
  311. .shortname = "73xxx",
  312. .client_table.lst = pvr2_cli_73xxx,
  313. .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx),
  314. .fx2_firmware.lst = pvr2_fw1_names_73xxx,
  315. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
  316. .flag_has_cx25840 = !0,
  317. .flag_has_hauppauge_rom = !0,
  318. .flag_has_analogtuner = !0,
  319. .flag_has_composite = !0,
  320. .flag_has_svideo = !0,
  321. .flag_fx2_16kb = !0,
  322. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  323. .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
  324. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  325. .ir_scheme = PVR2_IR_SCHEME_ZILOG,
  326. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  327. .dvb_props = &pvr2_73xxx_dvb_props,
  328. #endif
  329. };
  330. /*------------------------------------------------------------------------*/
  331. /* Hauppauge PVR-USB2 Model 75xxx */
  332. #ifdef CONFIG_VIDEO_PVRUSB2_DVB
  333. static struct s5h1409_config pvr2_s5h1409_config = {
  334. .demod_address = 0x32 >> 1,
  335. .output_mode = S5H1409_PARALLEL_OUTPUT,
  336. .gpio = S5H1409_GPIO_OFF,
  337. .qam_if = 4000,
  338. .inversion = S5H1409_INVERSION_ON,
  339. .status_mode = S5H1409_DEMODLOCKING,
  340. };
  341. static struct s5h1411_config pvr2_s5h1411_config = {
  342. .output_mode = S5H1411_PARALLEL_OUTPUT,
  343. .gpio = S5H1411_GPIO_OFF,
  344. .vsb_if = S5H1411_IF_44000,
  345. .qam_if = S5H1411_IF_4000,
  346. .inversion = S5H1411_INVERSION_ON,
  347. .status_mode = S5H1411_DEMODLOCKING,
  348. };
  349. static struct tda18271_std_map hauppauge_tda18271_std_map = {
  350. .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3,
  351. .if_lvl = 6, .rfagc_top = 0x37, },
  352. .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
  353. .if_lvl = 6, .rfagc_top = 0x37, },
  354. };
  355. static struct tda18271_config hauppauge_tda18271_config = {
  356. .std_map = &hauppauge_tda18271_std_map,
  357. .gate = TDA18271_GATE_ANALOG,
  358. .output_opt = TDA18271_OUTPUT_LT_OFF,
  359. };
  360. static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap)
  361. {
  362. adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config,
  363. &adap->channel.hdw->i2c_adap);
  364. if (adap->fe)
  365. return 0;
  366. return -EIO;
  367. }
  368. static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap)
  369. {
  370. adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config,
  371. &adap->channel.hdw->i2c_adap);
  372. if (adap->fe)
  373. return 0;
  374. return -EIO;
  375. }
  376. static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap)
  377. {
  378. dvb_attach(tda829x_attach, adap->fe,
  379. &adap->channel.hdw->i2c_adap, 0x42,
  380. &tda829x_no_probe);
  381. dvb_attach(tda18271_attach, adap->fe, 0x60,
  382. &adap->channel.hdw->i2c_adap,
  383. &hauppauge_tda18271_config);
  384. return 0;
  385. }
  386. static const struct pvr2_dvb_props pvr2_750xx_dvb_props = {
  387. .frontend_attach = pvr2_s5h1409_attach,
  388. .tuner_attach = pvr2_tda18271_8295_attach,
  389. };
  390. static const struct pvr2_dvb_props pvr2_751xx_dvb_props = {
  391. .frontend_attach = pvr2_s5h1411_attach,
  392. .tuner_attach = pvr2_tda18271_8295_attach,
  393. };
  394. #endif
  395. static const char *pvr2_fw1_names_75xxx[] = {
  396. "v4l-pvrusb2-73xxx-01.fw",
  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. /*
  470. Stuff for Emacs to see, in order to encourage consistent editing style:
  471. *** Local Variables: ***
  472. *** mode: c ***
  473. *** fill-column: 75 ***
  474. *** tab-width: 8 ***
  475. *** c-basic-offset: 8 ***
  476. *** End: ***
  477. */