5 * Copyright (C) 2007 Mike Isely <isely@pobox.com>
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
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.
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
24 This source file should encompass ALL per-device type information for the
25 driver. To define a new device, add elements to the pvr2_device_table and
26 pvr2_device_desc structures.
30 #include "pvrusb2-devattr.h"
31 #include <linux/usb.h>
32 /* This is needed in order to pull in tuner type ids... */
33 #include <linux/i2c.h>
34 #include <media/tuner.h>
38 /*------------------------------------------------------------------------*/
39 /* Hauppauge PVR-USB2 Model 29xxx */
41 static const char *pvr2_client_29xxx[] = {
47 static const char *pvr2_fw1_names_29xxx[] = {
48 "v4l-pvrusb2-29xxx-01.fw",
51 static const struct pvr2_device_desc pvr2_device_29xxx = {
52 .description = "WinTV PVR USB2 Model Category 29xxxx",
54 .client_modules.lst = pvr2_client_29xxx,
55 .client_modules.cnt = ARRAY_SIZE(pvr2_client_29xxx),
56 .fx2_firmware.lst = pvr2_fw1_names_29xxx,
57 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
58 .flag_has_hauppauge_rom = !0,
59 .flag_has_analogtuner = !0,
60 .flag_has_fmradio = !0,
61 .flag_has_composite = !0,
62 .flag_has_svideo = !0,
63 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
64 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
69 /*------------------------------------------------------------------------*/
70 /* Hauppauge PVR-USB2 Model 24xxx */
72 static const char *pvr2_client_24xxx[] = {
78 static const char *pvr2_fw1_names_24xxx[] = {
79 "v4l-pvrusb2-24xxx-01.fw",
82 static const struct pvr2_device_desc pvr2_device_24xxx = {
83 .description = "WinTV PVR USB2 Model Category 24xxxx",
85 .client_modules.lst = pvr2_client_24xxx,
86 .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx),
87 .fx2_firmware.lst = pvr2_fw1_names_24xxx,
88 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
89 .flag_has_cx25840 = !0,
90 .flag_has_wm8775 = !0,
91 .flag_has_hauppauge_rom = !0,
92 .flag_has_hauppauge_custom_ir = !0,
93 .flag_has_analogtuner = !0,
94 .flag_has_fmradio = !0,
95 .flag_has_composite = !0,
96 .flag_has_svideo = !0,
97 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
98 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
103 /*------------------------------------------------------------------------*/
104 /* GOTVIEW USB2.0 DVD2 */
106 static const char *pvr2_client_gotview_2[] = {
111 static const struct pvr2_device_desc pvr2_device_gotview_2 = {
112 .description = "Gotview USB 2.0 DVD 2",
114 .client_modules.lst = pvr2_client_gotview_2,
115 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
116 .flag_has_cx25840 = !0,
117 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
118 .flag_has_analogtuner = !0,
119 .flag_has_composite = !0,
120 .flag_has_svideo = !0,
121 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
126 /*------------------------------------------------------------------------*/
127 /* GOTVIEW USB2.0 DVD Deluxe */
129 /* (same module list as gotview_2) */
131 static const struct pvr2_device_desc pvr2_device_gotview_2d = {
132 .description = "Gotview USB 2.0 DVD Deluxe",
134 .client_modules.lst = pvr2_client_gotview_2,
135 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
136 .flag_has_cx25840 = !0,
137 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
138 .flag_has_analogtuner = !0,
139 .flag_has_composite = !0,
140 .flag_has_svideo = !0,
141 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
146 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
147 /*------------------------------------------------------------------------*/
150 static const char *pvr2_client_onair_creator[] = {
156 static const struct pvr2_device_desc pvr2_device_onair_creator = {
157 .description = "OnAir Creator Hybrid USB tuner",
159 .client_modules.lst = pvr2_client_onair_creator,
160 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator),
161 .default_tuner_type = TUNER_LG_TDVS_H06XF,
162 .flag_has_analogtuner = !0,
163 .flag_has_composite = !0,
164 .flag_has_svideo = !0,
165 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
166 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
167 .default_std_mask = V4L2_STD_NTSC_M,
173 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
174 /*------------------------------------------------------------------------*/
177 static const char *pvr2_client_onair_usb2[] = {
183 static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
184 .description = "OnAir USB2 Hybrid USB tuner",
186 .client_modules.lst = pvr2_client_onair_usb2,
187 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2),
188 .default_tuner_type = TUNER_PHILIPS_FCV1236D,
189 .flag_has_analogtuner = !0,
190 .flag_has_composite = !0,
191 .flag_has_svideo = !0,
192 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
193 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
194 .default_std_mask = V4L2_STD_NTSC_M,
200 /*------------------------------------------------------------------------*/
201 /* Hauppauge PVR-USB2 Model 73xxx */
203 static const char *pvr2_client_73xxx[] = {
208 static const char *pvr2_fw1_names_73xxx[] = {
209 "v4l-pvrusb2-73xxx-01.fw",
212 static const struct pvr2_device_desc pvr2_device_73xxx = {
213 .description = "WinTV PVR USB2 Model Category 73xxxx",
214 .shortname = "73xxx",
215 .client_modules.lst = pvr2_client_73xxx,
216 .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx),
217 .fx2_firmware.lst = pvr2_fw1_names_73xxx,
218 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
219 .flag_has_cx25840 = !0,
220 .flag_has_hauppauge_rom = !0,
221 .flag_has_analogtuner = !0,
222 .flag_has_composite = !0,
223 .flag_has_svideo = !0,
224 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
225 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
226 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
231 /*------------------------------------------------------------------------*/
232 /* Hauppauge PVR-USB2 Model 75xxx */
234 static const char *pvr2_client_75xxx[] = {
239 static const char *pvr2_fw1_names_75xxx[] = {
240 "v4l-pvrusb2-73xxx-01.fw",
243 static const struct pvr2_device_desc pvr2_device_75xxx = {
244 .description = "WinTV PVR USB2 Model Category 75xxxx",
245 .shortname = "75xxx",
246 .client_modules.lst = pvr2_client_75xxx,
247 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
248 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
249 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
250 .flag_has_cx25840 = !0,
251 .flag_has_hauppauge_rom = !0,
252 .flag_has_analogtuner = !0,
253 .flag_has_composite = !0,
254 .flag_has_svideo = !0,
255 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
256 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
257 .default_std_mask = V4L2_STD_NTSC_M,
258 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
263 /*------------------------------------------------------------------------*/
265 struct usb_device_id pvr2_device_table[] = {
266 { USB_DEVICE(0x2040, 0x2900),
267 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
268 { USB_DEVICE(0x2040, 0x2400),
269 .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
270 { USB_DEVICE(0x1164, 0x0622),
271 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
272 { USB_DEVICE(0x1164, 0x0602),
273 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d},
274 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
275 { USB_DEVICE(0x11ba, 0x1003),
276 .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
278 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
279 { USB_DEVICE(0x11ba, 0x1001),
280 .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
282 { USB_DEVICE(0x2040, 0x7300),
283 .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
284 { USB_DEVICE(0x2040, 0x7500),
285 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
286 { USB_DEVICE(0x2040, 0x7501),
287 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
291 MODULE_DEVICE_TABLE(usb, pvr2_device_table);
295 Stuff for Emacs to see, in order to encourage consistent editing style:
296 *** Local Variables: ***
298 *** fill-column: 75 ***
300 *** c-basic-offset: 8 ***