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 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
64 /*------------------------------------------------------------------------*/
65 /* Hauppauge PVR-USB2 Model 24xxx */
67 static const char *pvr2_client_24xxx[] = {
73 static const char *pvr2_fw1_names_24xxx[] = {
74 "v4l-pvrusb2-24xxx-01.fw",
77 static const struct pvr2_device_desc pvr2_device_24xxx = {
78 .description = "WinTV PVR USB2 Model Category 24xxxx",
80 .client_modules.lst = pvr2_client_24xxx,
81 .client_modules.cnt = ARRAY_SIZE(pvr2_client_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_hauppauge_custom_ir = !0,
88 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
93 /*------------------------------------------------------------------------*/
94 /* GOTVIEW USB2.0 DVD2 */
96 static const char *pvr2_client_gotview_2[] = {
101 static const struct pvr2_device_desc pvr2_device_gotview_2 = {
102 .description = "Gotview USB 2.0 DVD 2",
104 .client_modules.lst = pvr2_client_gotview_2,
105 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
106 .flag_has_cx25840 = !0,
107 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
108 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
113 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
114 /*------------------------------------------------------------------------*/
117 static const char *pvr2_client_onair_creator[] = {
123 static const struct pvr2_device_desc pvr2_device_onair_creator = {
124 .description = "OnAir Creator Hybrid USB tuner",
126 .client_modules.lst = pvr2_client_onair_creator,
127 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator),
128 .default_tuner_type = TUNER_LG_TDVS_H06XF,
129 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
135 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
136 /*------------------------------------------------------------------------*/
139 static const char *pvr2_client_onair_usb2[] = {
145 static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
146 .description = "OnAir USB2 Hybrid USB tuner",
148 .client_modules.lst = pvr2_client_onair_usb2,
149 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2),
150 .default_tuner_type = TUNER_PHILIPS_ATSC,
151 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
157 /*------------------------------------------------------------------------*/
158 /* Hauppauge PVR-USB2 Model 73xxx */
160 static const char *pvr2_client_73xxx[] = {
165 static const char *pvr2_fw1_names_73xxx[] = {
166 "v4l-pvrusb2-73xxx-01.fw",
169 static const struct pvr2_device_desc pvr2_device_73xxx = {
170 .description = "WinTV PVR USB2 Model Category 73xxxx",
171 .shortname = "73xxx",
172 .client_modules.lst = pvr2_client_73xxx,
173 .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx),
174 .fx2_firmware.lst = pvr2_fw1_names_73xxx,
175 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
176 .flag_has_cx25840 = !0,
177 .flag_has_hauppauge_rom = !0,
179 .flag_has_analogtuner = !0,
180 .flag_has_composite = !0,
181 .flag_has_svideo = !0,
182 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
183 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
184 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
186 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
192 /*------------------------------------------------------------------------*/
193 /* Hauppauge PVR-USB2 Model 75xxx */
195 static const char *pvr2_client_75xxx[] = {
200 static const char *pvr2_fw1_names_75xxx[] = {
201 "v4l-pvrusb2-73xxx-01.fw",
204 static const struct pvr2_device_desc pvr2_device_75xxx = {
205 .description = "WinTV PVR USB2 Model Category 75xxxx",
206 .shortname = "75xxx",
207 .client_modules.lst = pvr2_client_75xxx,
208 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
209 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
210 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
211 .flag_has_cx25840 = !0,
212 .flag_has_hauppauge_rom = !0,
213 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
214 .default_std_mask = V4L2_STD_NTSC_M,
219 /*------------------------------------------------------------------------*/
221 struct usb_device_id pvr2_device_table[] = {
222 { USB_DEVICE(0x2040, 0x2900),
223 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
224 { USB_DEVICE(0x2040, 0x2400),
225 .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
226 { USB_DEVICE(0x1164, 0x0622),
227 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
228 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
229 { USB_DEVICE(0x11ba, 0x1003),
230 .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
232 #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
233 { USB_DEVICE(0x11ba, 0x1001),
234 .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
236 { USB_DEVICE(0x2040, 0x7300),
237 .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
238 { USB_DEVICE(0x2040, 0x7500),
239 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
240 { USB_DEVICE(0x2040, 0x7501),
241 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
245 MODULE_DEVICE_TABLE(usb, pvr2_device_table);
249 Stuff for Emacs to see, in order to encourage consistent editing style:
250 *** Local Variables: ***
252 *** fill-column: 75 ***
254 *** c-basic-offset: 8 ***