V4L/DVB (7381): tuner: rename TUNER_PHILIPS_ATSC to TUNER_PHILIPS_FCV1236D
[linux-2.6-block.git] / drivers / media / video / pvrusb2 / pvrusb2-devattr.c
CommitLineData
989eb154
MI
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/*
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>
6a540254 32/* This is needed in order to pull in tuner type ids... */
9e2e3aeb 33#include <linux/i2c.h>
9e2e3aeb 34#include <media/tuner.h>
989eb154 35
4542783c 36
989eb154 37
d130fa8a
MI
38/*------------------------------------------------------------------------*/
39/* Hauppauge PVR-USB2 Model 29xxx */
989eb154 40
989eb154
MI
41static const char *pvr2_client_29xxx[] = {
42 "msp3400",
43 "saa7115",
44 "tuner",
45};
46
989eb154
MI
47static const char *pvr2_fw1_names_29xxx[] = {
48 "v4l-pvrusb2-29xxx-01.fw",
49};
50
d130fa8a 51static const struct pvr2_device_desc pvr2_device_29xxx = {
989eb154
MI
52 .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),
aaf7884d 58 .flag_has_hauppauge_rom = !0,
1aaac60f 59 .flag_has_analogtuner = !0,
d068c6ee 60 .flag_has_fmradio = !0,
1aaac60f
MI
61 .flag_has_composite = !0,
62 .flag_has_svideo = !0,
f5174af2 63 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
40381cb0 64 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
d130fa8a
MI
65};
66
67
68
69/*------------------------------------------------------------------------*/
70/* Hauppauge PVR-USB2 Model 24xxx */
71
72static const char *pvr2_client_24xxx[] = {
73 "cx25840",
74 "tuner",
75 "wm8775",
76};
77
78static const char *pvr2_fw1_names_24xxx[] = {
79 "v4l-pvrusb2-24xxx-01.fw",
80};
81
82static const struct pvr2_device_desc pvr2_device_24xxx = {
989eb154
MI
83 .description = "WinTV PVR USB2 Model Category 24xxxx",
84 .shortname = "24xxx",
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,
aaf7884d 91 .flag_has_hauppauge_rom = !0,
056d1a89 92 .flag_has_hauppauge_custom_ir = !0,
1aaac60f 93 .flag_has_analogtuner = !0,
d068c6ee 94 .flag_has_fmradio = !0,
1aaac60f
MI
95 .flag_has_composite = !0,
96 .flag_has_svideo = !0,
f5174af2 97 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
40381cb0 98 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
d130fa8a
MI
99};
100
101
102
103/*------------------------------------------------------------------------*/
104/* GOTVIEW USB2.0 DVD2 */
105
106static const char *pvr2_client_gotview_2[] = {
107 "cx25840",
108 "tuner",
109};
110
111static const struct pvr2_device_desc pvr2_device_gotview_2 = {
9e2e3aeb
MI
112 .description = "Gotview USB 2.0 DVD 2",
113 .shortname = "gv2",
114 .client_modules.lst = pvr2_client_gotview_2,
115 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2),
787f5abb 116 .flag_has_cx25840 = !0,
9e2e3aeb 117 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1aaac60f
MI
118 .flag_has_analogtuner = !0,
119 .flag_has_composite = !0,
120 .flag_has_svideo = !0,
9e2e3aeb 121 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
d130fa8a
MI
122};
123
124
125
fd1da789
MI
126/*------------------------------------------------------------------------*/
127/* GOTVIEW USB2.0 DVD Deluxe */
128
129/* (same module list as gotview_2) */
130
131static const struct pvr2_device_desc pvr2_device_gotview_2d = {
132 .description = "Gotview USB 2.0 DVD Deluxe",
133 .shortname = "gv2d",
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,
142};
143
144
145
4542783c 146#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
d130fa8a
MI
147/*------------------------------------------------------------------------*/
148/* OnAir Creator */
149
150static const char *pvr2_client_onair_creator[] = {
151 "saa7115",
152 "tuner",
153 "cs53l32a",
154};
155
156static const struct pvr2_device_desc pvr2_device_onair_creator = {
4542783c
MI
157 .description = "OnAir Creator Hybrid USB tuner",
158 .shortname = "oac",
d130fa8a
MI
159 .client_modules.lst = pvr2_client_onair_creator,
160 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator),
4542783c 161 .default_tuner_type = TUNER_LG_TDVS_H06XF,
1aaac60f
MI
162 .flag_has_analogtuner = !0,
163 .flag_has_composite = !0,
164 .flag_has_svideo = !0,
4542783c 165 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
e8f5bacf 166 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
f0910c74 167 .default_std_mask = V4L2_STD_NTSC_M,
d130fa8a 168};
4542783c 169#endif
d130fa8a
MI
170
171
172
4542783c 173#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
d130fa8a
MI
174/*------------------------------------------------------------------------*/
175/* OnAir USB 2.0 */
176
177static const char *pvr2_client_onair_usb2[] = {
178 "saa7115",
179 "tuner",
180 "cs53l32a",
181};
182
183static const struct pvr2_device_desc pvr2_device_onair_usb2 = {
4542783c
MI
184 .description = "OnAir USB2 Hybrid USB tuner",
185 .shortname = "oa2",
d130fa8a
MI
186 .client_modules.lst = pvr2_client_onair_usb2,
187 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2),
ab8b870e 188 .default_tuner_type = TUNER_PHILIPS_FCV1236D,
1aaac60f
MI
189 .flag_has_analogtuner = !0,
190 .flag_has_composite = !0,
191 .flag_has_svideo = !0,
4542783c 192 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
e8f5bacf 193 .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR,
f0910c74 194 .default_std_mask = V4L2_STD_NTSC_M,
989eb154 195};
d130fa8a
MI
196#endif
197
198
989eb154 199
92c9d075
MK
200/*------------------------------------------------------------------------*/
201/* Hauppauge PVR-USB2 Model 73xxx */
202
203static const char *pvr2_client_73xxx[] = {
204 "cx25840",
205 "tuner",
206};
207
208static const char *pvr2_fw1_names_73xxx[] = {
209 "v4l-pvrusb2-73xxx-01.fw",
210};
211
212static 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,
4c3b01f7 221#if 0
92c9d075
MK
222 .flag_has_analogtuner = !0,
223 .flag_has_composite = !0,
224 .flag_has_svideo = !0,
225 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
226 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
227 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
4c3b01f7
MK
228#else
229 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
230#endif
92c9d075
MK
231};
232
233
234
11fcd470
MK
235/*------------------------------------------------------------------------*/
236/* Hauppauge PVR-USB2 Model 75xxx */
237
238static const char *pvr2_client_75xxx[] = {
239 "cx25840",
240 "tuner",
241};
242
243static const char *pvr2_fw1_names_75xxx[] = {
244 "v4l-pvrusb2-73xxx-01.fw",
245};
246
247static const struct pvr2_device_desc pvr2_device_75xxx = {
248 .description = "WinTV PVR USB2 Model Category 75xxxx",
249 .shortname = "75xxx",
250 .client_modules.lst = pvr2_client_75xxx,
251 .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx),
252 .fx2_firmware.lst = pvr2_fw1_names_75xxx,
253 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
254 .flag_has_cx25840 = !0,
255 .flag_has_hauppauge_rom = !0,
1aaac60f
MI
256 .flag_has_analogtuner = !0,
257 .flag_has_composite = !0,
258 .flag_has_svideo = !0,
11fcd470 259 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
e8f5bacf 260 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
11fcd470 261 .default_std_mask = V4L2_STD_NTSC_M,
40381cb0 262 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
11fcd470
MK
263};
264
265
266
d130fa8a
MI
267/*------------------------------------------------------------------------*/
268
269struct usb_device_id pvr2_device_table[] = {
270 { USB_DEVICE(0x2040, 0x2900),
271 .driver_info = (kernel_ulong_t)&pvr2_device_29xxx},
272 { USB_DEVICE(0x2040, 0x2400),
273 .driver_info = (kernel_ulong_t)&pvr2_device_24xxx},
274 { USB_DEVICE(0x1164, 0x0622),
275 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2},
fd1da789
MI
276 { USB_DEVICE(0x1164, 0x0602),
277 .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d},
d130fa8a
MI
278#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
279 { USB_DEVICE(0x11ba, 0x1003),
280 .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator},
281#endif
282#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
283 { USB_DEVICE(0x11ba, 0x1001),
284 .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2},
285#endif
92c9d075
MK
286 { USB_DEVICE(0x2040, 0x7300),
287 .driver_info = (kernel_ulong_t)&pvr2_device_73xxx},
11fcd470
MK
288 { USB_DEVICE(0x2040, 0x7500),
289 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
dd6e9467
MK
290 { USB_DEVICE(0x2040, 0x7501),
291 .driver_info = (kernel_ulong_t)&pvr2_device_75xxx},
d130fa8a
MI
292 { }
293};
989eb154
MI
294
295MODULE_DEVICE_TABLE(usb, pvr2_device_table);
296
297
298/*
299 Stuff for Emacs to see, in order to encourage consistent editing style:
300 *** Local Variables: ***
301 *** mode: c ***
302 *** fill-column: 75 ***
303 *** tab-width: 8 ***
304 *** c-basic-offset: 8 ***
305 *** End: ***
306 */