blob: 87526666bc9e4194975e4342236b60643018f7a3 [file] [log] [blame]
Mike Isely989eb152007-11-26 01:53:12 -03001/*
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/*
23
24This source file should encompass ALL per-device type information for the
25driver. To define a new device, add elements to the pvr2_device_table and
26pvr2_device_desc structures.
27
28*/
29
30#include "pvrusb2-devattr.h"
31#include <linux/usb.h>
Mike Isely6a540252007-12-02 23:51:34 -030032/* This is needed in order to pull in tuner type ids... */
Mike Isely9e2e3ae2007-11-26 02:14:23 -030033#include <linux/i2c.h>
Mike Isely9e2e3ae2007-11-26 02:14:23 -030034#include <media/tuner.h>
Mike Isely989eb152007-11-26 01:53:12 -030035
Mike Isely989eb152007-11-26 01:53:12 -030036
Mike Isely45427832007-12-08 17:11:13 -030037
Mike Iselyd130fa82007-12-08 17:20:06 -030038/*------------------------------------------------------------------------*/
39/* Hauppauge PVR-USB2 Model 29xxx */
Mike Isely989eb152007-11-26 01:53:12 -030040
Mike Isely989eb152007-11-26 01:53:12 -030041static const char *pvr2_client_29xxx[] = {
42 "msp3400",
43 "saa7115",
44 "tuner",
45};
46
Mike Isely989eb152007-11-26 01:53:12 -030047static const char *pvr2_fw1_names_29xxx[] = {
48 "v4l-pvrusb2-29xxx-01.fw",
49};
50
Mike Iselyd130fa82007-12-08 17:20:06 -030051static const struct pvr2_device_desc pvr2_device_29xxx = {
Mike Isely989eb152007-11-26 01:53:12 -030052 .description = "WinTV PVR USB2 Model Category 29xxxx",
53 .shortname = "29xxx",
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),
Mike Iselyaaf78842007-11-26 02:04:11 -030058 .flag_has_hauppauge_rom = !0,
Mike Iselyd068c6e2008-04-22 14:45:36 -030059 .flag_has_fmradio = !0,
Mike Iselyf5174af2007-11-26 02:07:26 -030060 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
Mike Iselyd130fa82007-12-08 17:20:06 -030061};
62
63
64
65/*------------------------------------------------------------------------*/
66/* Hauppauge PVR-USB2 Model 24xxx */
67
68static const char *pvr2_client_24xxx[] = {
69 "cx25840",
70 "tuner",
71 "wm8775",
72};
73
74static const char *pvr2_fw1_names_24xxx[] = {
75 "v4l-pvrusb2-24xxx-01.fw",
76};
77
78static const struct pvr2_device_desc pvr2_device_24xxx = {
Mike Isely989eb152007-11-26 01:53:12 -030079 .description = "WinTV PVR USB2 Model Category 24xxxx",
80 .shortname = "24xxx",
81 .client_modules.lst = pvr2_client_24xxx,
82 .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx),
83 .fx2_firmware.lst = pvr2_fw1_names_24xxx,
84 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx),
85 .flag_has_cx25840 = !0,
86 .flag_has_wm8775 = !0,
Mike Iselyaaf78842007-11-26 02:04:11 -030087 .flag_has_hauppauge_rom = !0,
Mike Isely056d1a82007-11-26 02:09:42 -030088 .flag_has_hauppauge_custom_ir = !0,
Mike Iselyd068c6e2008-04-22 14:45:36 -030089 .flag_has_fmradio = !0,
Mike Iselyf5174af2007-11-26 02:07:26 -030090 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
Mike Iselyd130fa82007-12-08 17:20:06 -030091};
92
93
94
95/*------------------------------------------------------------------------*/
96/* GOTVIEW USB2.0 DVD2 */
97
98static const char *pvr2_client_gotview_2[] = {
99 "cx25840",
100 "tuner",
101};
102
103static const struct pvr2_device_desc pvr2_device_gotview_2 = {
Mike Isely9e2e3ae2007-11-26 02:14:23 -0300104 .description = "Gotview USB 2.0 DVD 2",
105 .shortname = "gv2",
106 .client_modules.lst = pvr2_client_gotview_2,
107 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
Mike Isely787f5ab2007-12-08 17:08:32 -0300108 .flag_has_cx25840 = !0,
Mike Isely9e2e3ae2007-11-26 02:14:23 -0300109 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
110 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
Mike Isely989eb152007-11-26 01:53:12 -0300111};
112
Mike Iselyd130fa82007-12-08 17:20:06 -0300113
114
115#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
116/*------------------------------------------------------------------------*/
117/* OnAir Creator */
118
119static const char *pvr2_client_onair_creator[] = {
120 "saa7115",
121 "tuner",
122 "cs53l32a",
123};
124
125static const struct pvr2_device_desc pvr2_device_onair_creator = {
126 .description = "OnAir Creator Hybrid USB tuner",
127 .shortname = "oac",
128 .client_modules.lst = pvr2_client_onair_creator,
129 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator),
130 .default_tuner_type = TUNER_LG_TDVS_H06XF,
Mike Iselyd068c6e2008-04-22 14:45:36 -0300131 .flag_has_digitaltuner = !0,
Mike Iselyd130fa82007-12-08 17:20:06 -0300132 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
133};
134#endif
135
136
137
138#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
139/*------------------------------------------------------------------------*/
140/* OnAir USB 2.0 */
141
142static const char *pvr2_client_onair_usb2[] = {
143 "saa7115",
144 "tuner",
145 "cs53l32a",
146};
147
148static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
149 .description = "OnAir USB2 Hybrid USB tuner",
150 .shortname = "oa2",
151 .client_modules.lst = pvr2_client_onair_usb2,
152 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2),
153 .default_tuner_type = TUNER_PHILIPS_ATSC,
Mike Iselyd068c6e2008-04-22 14:45:36 -0300154 .flag_has_digitaltuner = !0,
Mike Iselyd130fa82007-12-08 17:20:06 -0300155 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
156};
157#endif
158
159
160
161/*------------------------------------------------------------------------*/
Michael Krufky92c9d072008-03-15 23:59:29 -0300162/* Hauppauge PVR-USB2 Model 73xxx */
163
164static const char *pvr2_client_73xxx[] = {
165 "cx25840",
166 "tuner",
167};
168
169static const char *pvr2_fw1_names_73xxx[] = {
170 "v4l-pvrusb2-73xxx-01.fw",
171};
172
173static const struct pvr2_device_desc pvr2_device_73xxx = {
174 .description = "WinTV PVR USB2 Model Category 73xxxx",
175 .shortname = "73xxx",
176 .client_modules.lst = pvr2_client_73xxx,
177 .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx),
178 .fx2_firmware.lst = pvr2_fw1_names_73xxx,
179 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx),
180 .flag_has_cx25840 = !0,
181 .flag_has_hauppauge_rom = !0,
Michael Krufky4c3b01f2008-04-06 20:40:17 -0400182#if 0
Michael Krufky92c9d072008-03-15 23:59:29 -0300183 .flag_has_analogtuner = !0,
184 .flag_has_composite = !0,
185 .flag_has_svideo = !0,
186 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
187 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
188 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
Michael Krufky4c3b01f2008-04-06 20:40:17 -0400189#else
190 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
191#endif
Michael Krufky92c9d072008-03-15 23:59:29 -0300192};
193
194
195
196/*------------------------------------------------------------------------*/
Michael Krufky11fcd472007-10-25 02:01:10 -0300197/* Hauppauge PVR-USB2 Model 75xxx */
198
199static const char *pvr2_client_75xxx[] = {
200 "cx25840",
201 "tuner",
202};
203
204static const char *pvr2_fw1_names_75xxx[] = {
205 "v4l-pvrusb2-73xxx-01.fw",
206};
207
208static const struct pvr2_device_desc pvr2_device_75xxx = {
209 .description = "WinTV PVR USB2 Model Category 75xxxx",
210 .shortname = "75xxx",
211 .client_modules.lst = pvr2_client_75xxx,
212 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
213 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
214 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
215 .flag_has_cx25840 = !0,
216 .flag_has_hauppauge_rom = !0,
Mike Iselyd068c6e2008-04-22 14:45:36 -0300217 .flag_has_digitaltuner = !0,
Michael Krufky11fcd472007-10-25 02:01:10 -0300218 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
219 .default_std_mask = V4L2_STD_NTSC_M,
220};
221
222
223
224/*------------------------------------------------------------------------*/
Mike Iselyd130fa82007-12-08 17:20:06 -0300225
226struct usb_device_id pvr2_device_table[] = {
227 { USB_DEVICE(0x2040, 0x2900),
228 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
229 { USB_DEVICE(0x2040, 0x2400),
230 .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
231 { USB_DEVICE(0x1164, 0x0622),
232 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
233#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
234 { USB_DEVICE(0x11ba, 0x1003),
235 .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
236#endif
237#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
238 { USB_DEVICE(0x11ba, 0x1001),
239 .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
240#endif
Michael Krufky92c9d072008-03-15 23:59:29 -0300241 { USB_DEVICE(0x2040, 0x7300),
242 .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
Michael Krufky11fcd472007-10-25 02:01:10 -0300243 { USB_DEVICE(0x2040, 0x7500),
244 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
Michael Krufkydd6e9462008-03-08 06:07:38 -0300245 { USB_DEVICE(0x2040, 0x7501),
246 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
Mike Iselyd130fa82007-12-08 17:20:06 -0300247 { }
248};
Mike Isely989eb152007-11-26 01:53:12 -0300249
250MODULE_DEVICE_TABLE(usb, pvr2_device_table);
251
252
253/*
254 Stuff for Emacs to see, in order to encourage consistent editing style:
255 *** Local Variables: ***
256 *** mode: c ***
257 *** fill-column: 75 ***
258 *** tab-width: 8 ***
259 *** c-basic-offset: 8 ***
260 *** End: ***
261 */