pvrusb2-devattr.c 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /*
  2. *
  3. * $Id$
  4. *
  5. * Copyright (C) 2007 Mike Isely <isely@pobox.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. */
  21. /*
  22. This source file should encompass ALL per-device type information for the
  23. driver. To define a new device, add elements to the pvr2_device_table and
  24. pvr2_device_desc structures.
  25. */
  26. #include "pvrusb2-devattr.h"
  27. #include <linux/usb.h>
  28. /* This is needed in order to pull in tuner type ids... */
  29. #include <linux/i2c.h>
  30. #include <media/tuner.h>
  31. /*------------------------------------------------------------------------*/
  32. /* Hauppauge PVR-USB2 Model 29xxx */
  33. static const char *pvr2_client_29xxx[] = {
  34. "msp3400",
  35. "saa7115",
  36. "tuner",
  37. };
  38. static const char *pvr2_fw1_names_29xxx[] = {
  39. "v4l-pvrusb2-29xxx-01.fw",
  40. };
  41. static const struct pvr2_device_desc pvr2_device_29xxx = {
  42. .description = "WinTV PVR USB2 Model Category 29xxxx",
  43. .shortname = "29xxx",
  44. .client_modules.lst = pvr2_client_29xxx,
  45. .client_modules.cnt = ARRAY_SIZE(pvr2_client_29xxx),
  46. .fx2_firmware.lst = pvr2_fw1_names_29xxx,
  47. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
  48. .flag_has_hauppauge_rom = !0,
  49. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  50. };
  51. /*------------------------------------------------------------------------*/
  52. /* Hauppauge PVR-USB2 Model 24xxx */
  53. static const char *pvr2_client_24xxx[] = {
  54. "cx25840",
  55. "tuner",
  56. "wm8775",
  57. };
  58. static const char *pvr2_fw1_names_24xxx[] = {
  59. "v4l-pvrusb2-24xxx-01.fw",
  60. };
  61. static const struct pvr2_device_desc pvr2_device_24xxx = {
  62. .description = "WinTV PVR USB2 Model Category 24xxxx",
  63. .shortname = "24xxx",
  64. .client_modules.lst = pvr2_client_24xxx,
  65. .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx),
  66. .fx2_firmware.lst = pvr2_fw1_names_24xxx,
  67. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
  68. .flag_has_cx25840 = !0,
  69. .flag_has_wm8775 = !0,
  70. .flag_has_hauppauge_rom = !0,
  71. .flag_has_hauppauge_custom_ir = !0,
  72. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  73. };
  74. /*------------------------------------------------------------------------*/
  75. /* GOTVIEW USB2.0 DVD2 */
  76. static const char *pvr2_client_gotview_2[] = {
  77. "cx25840",
  78. "tuner",
  79. };
  80. static const struct pvr2_device_desc pvr2_device_gotview_2 = {
  81. .description = "Gotview USB 2.0 DVD 2",
  82. .shortname = "gv2",
  83. .client_modules.lst = pvr2_client_gotview_2,
  84. .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
  85. .flag_has_cx25840 = !0,
  86. .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  87. .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
  88. };
  89. #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
  90. /*------------------------------------------------------------------------*/
  91. /* OnAir Creator */
  92. static const char *pvr2_client_onair_creator[] = {
  93. "saa7115",
  94. "tuner",
  95. "cs53l32a",
  96. };
  97. static const struct pvr2_device_desc pvr2_device_onair_creator = {
  98. .description = "OnAir Creator Hybrid USB tuner",
  99. .shortname = "oac",
  100. .client_modules.lst = pvr2_client_onair_creator,
  101. .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator),
  102. .default_tuner_type = TUNER_LG_TDVS_H06XF,
  103. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  104. };
  105. #endif
  106. #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
  107. /*------------------------------------------------------------------------*/
  108. /* OnAir USB 2.0 */
  109. static const char *pvr2_client_onair_usb2[] = {
  110. "saa7115",
  111. "tuner",
  112. "cs53l32a",
  113. };
  114. static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
  115. .description = "OnAir USB2 Hybrid USB tuner",
  116. .shortname = "oa2",
  117. .client_modules.lst = pvr2_client_onair_usb2,
  118. .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2),
  119. .default_tuner_type = TUNER_PHILIPS_ATSC,
  120. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  121. };
  122. #endif
  123. /*------------------------------------------------------------------------*/
  124. /* Hauppauge PVR-USB2 Model 73xxx */
  125. static const char *pvr2_client_73xxx[] = {
  126. "cx25840",
  127. "tuner",
  128. };
  129. static const char *pvr2_fw1_names_73xxx[] = {
  130. "v4l-pvrusb2-73xxx-01.fw",
  131. };
  132. static const struct pvr2_device_desc pvr2_device_73xxx = {
  133. .description = "WinTV PVR USB2 Model Category 73xxxx",
  134. .shortname = "73xxx",
  135. .client_modules.lst = pvr2_client_73xxx,
  136. .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx),
  137. .fx2_firmware.lst = pvr2_fw1_names_73xxx,
  138. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
  139. .flag_has_cx25840 = !0,
  140. .flag_has_hauppauge_rom = !0,
  141. .flag_has_analogtuner = !0,
  142. .flag_has_composite = !0,
  143. .flag_has_svideo = !0,
  144. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  145. .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
  146. .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
  147. };
  148. /*------------------------------------------------------------------------*/
  149. /* Hauppauge PVR-USB2 Model 75xxx */
  150. static const char *pvr2_client_75xxx[] = {
  151. "cx25840",
  152. "tuner",
  153. };
  154. static const char *pvr2_fw1_names_75xxx[] = {
  155. "v4l-pvrusb2-73xxx-01.fw",
  156. };
  157. static const struct pvr2_device_desc pvr2_device_75xxx = {
  158. .description = "WinTV PVR USB2 Model Category 75xxxx",
  159. .shortname = "75xxx",
  160. .client_modules.lst = pvr2_client_75xxx,
  161. .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
  162. .fx2_firmware.lst = pvr2_fw1_names_75xxx,
  163. .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
  164. .flag_has_cx25840 = !0,
  165. .flag_has_hauppauge_rom = !0,
  166. .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
  167. .default_std_mask = V4L2_STD_NTSC_M,
  168. };
  169. /*------------------------------------------------------------------------*/
  170. struct usb_device_id pvr2_device_table[] = {
  171. { USB_DEVICE(0x2040, 0x2900),
  172. .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
  173. { USB_DEVICE(0x2040, 0x2400),
  174. .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
  175. { USB_DEVICE(0x1164, 0x0622),
  176. .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
  177. #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
  178. { USB_DEVICE(0x11ba, 0x1003),
  179. .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
  180. #endif
  181. #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
  182. { USB_DEVICE(0x11ba, 0x1001),
  183. .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
  184. #endif
  185. { USB_DEVICE(0x2040, 0x7300),
  186. .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
  187. { USB_DEVICE(0x2040, 0x7500),
  188. .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
  189. { USB_DEVICE(0x2040, 0x7501),
  190. .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
  191. { }
  192. };
  193. MODULE_DEVICE_TABLE(usb, pvr2_device_table);
  194. /*
  195. Stuff for Emacs to see, in order to encourage consistent editing style:
  196. *** Local Variables: ***
  197. *** mode: c ***
  198. *** fill-column: 75 ***
  199. *** tab-width: 8 ***
  200. *** c-basic-offset: 8 ***
  201. *** End: ***
  202. */