aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-12-08 15:11:13 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:25 -0500
commit4542783c3733de9a21099cd0c42e1a2392c68a88 (patch)
tree248e6af340ac6138b67b702ea28498746899d35c
parent787f5abb9519fd420c4681a560aabc449632a6c2 (diff)
V4L/DVB (6769): pvrusb2: Implement experimental support for OnAir Creator and USB2 devices
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-devattr.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
index 7c2b976960e1..2d6519d20f07 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
@@ -37,13 +37,34 @@ pvr2_device_desc structures.
37#define PVR2_HDW_TYPE_29XXX 0 37#define PVR2_HDW_TYPE_29XXX 0
38#define PVR2_HDW_TYPE_24XXX 1 38#define PVR2_HDW_TYPE_24XXX 1
39#define PVR2_HDW_TYPE_GOTVIEW_2 2 39#define PVR2_HDW_TYPE_GOTVIEW_2 2
40#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
41#define PVR2_HDW_TYPE_ONAIR_CREATOR 3
42#endif
43#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
44#define PVR2_HDW_TYPE_ONAIR_USB2 4
45#endif
40 46
41struct usb_device_id pvr2_device_table[] = { 47struct usb_device_id pvr2_device_table[] = {
42 [PVR2_HDW_TYPE_29XXX] = { USB_DEVICE(0x2040, 0x2900) }, 48 [PVR2_HDW_TYPE_29XXX] = { USB_DEVICE(0x2040, 0x2900) },
43 [PVR2_HDW_TYPE_24XXX] = { USB_DEVICE(0x2040, 0x2400) }, 49 [PVR2_HDW_TYPE_24XXX] = { USB_DEVICE(0x2040, 0x2400) },
44 [PVR2_HDW_TYPE_GOTVIEW_2] = { USB_DEVICE(0x1164, 0x0622) }, 50 [PVR2_HDW_TYPE_GOTVIEW_2] = { USB_DEVICE(0x1164, 0x0622) },
51#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
52 [PVR2_HDW_TYPE_ONAIR_CREATOR] = { USB_DEVICE(0x11ba, 0x1003) },
53#endif
54#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
55 [PVR2_HDW_TYPE_ONAIR_USB2] = { USB_DEVICE(0x11ba, 0x1001) },
56#endif
45 { } 57 { }
46}; 58};
59#if defined(CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR) || defined(CONFIG_VIDEO_PVRUSB2_ONAIR_USB2)
60
61/* Names of other client modules to request for Creator model hardware */
62static const char *pvr2_client_onair[] = {
63 "saa7115",
64 "tuner",
65 "cs53l32a",
66};
67#endif
47 68
48/* Names of other client modules to request for 24xxx model hardware */ 69/* Names of other client modules to request for 24xxx model hardware */
49static const char *pvr2_client_24xxx[] = { 70static const char *pvr2_client_24xxx[] = {
@@ -108,6 +129,26 @@ const struct pvr2_device_desc pvr2_device_descriptions[] = {
108 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, 129 .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
109 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, 130 .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW,
110 }, 131 },
132#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR
133 [PVR2_HDW_TYPE_ONAIR_CREATOR] = {
134 .description = "OnAir Creator Hybrid USB tuner",
135 .shortname = "oac",
136 .client_modules.lst = pvr2_client_onair,
137 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair),
138 .default_tuner_type = TUNER_LG_TDVS_H06XF,
139 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
140 },
141#endif
142#ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2
143 [PVR2_HDW_TYPE_ONAIR_USB2] = {
144 .description = "OnAir USB2 Hybrid USB tuner",
145 .shortname = "oa2",
146 .client_modules.lst = pvr2_client_onair,
147 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair),
148 .default_tuner_type = TUNER_PHILIPS_ATSC,
149 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
150 },
151#endif
111}; 152};
112 153
113const unsigned int pvr2_device_count = ARRAY_SIZE(pvr2_device_descriptions); 154const unsigned int pvr2_device_count = ARRAY_SIZE(pvr2_device_descriptions);