Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 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 | |
| 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. |
| 27 | |
| 28 | */ |
| 29 | |
| 30 | #include "pvrusb2-devattr.h" |
| 31 | #include <linux/usb.h> |
Mike Isely | 6a54025 | 2007-12-02 23:51:34 -0300 | [diff] [blame] | 32 | /* This is needed in order to pull in tuner type ids... */ |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 33 | #include <linux/i2c.h> |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 34 | #include <media/tuner.h> |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 35 | |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 36 | |
Mike Isely | 4542783 | 2007-12-08 17:11:13 -0300 | [diff] [blame] | 37 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 38 | /*------------------------------------------------------------------------*/ |
| 39 | /* Hauppauge PVR-USB2 Model 29xxx */ |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 40 | |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 41 | static const char *pvr2_client_29xxx[] = { |
| 42 | "msp3400", |
| 43 | "saa7115", |
| 44 | "tuner", |
| 45 | }; |
| 46 | |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 47 | static const char *pvr2_fw1_names_29xxx[] = { |
| 48 | "v4l-pvrusb2-29xxx-01.fw", |
| 49 | }; |
| 50 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 51 | static const struct pvr2_device_desc pvr2_device_29xxx = { |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 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), |
Mike Isely | aaf7884 | 2007-11-26 02:04:11 -0300 | [diff] [blame] | 58 | .flag_has_hauppauge_rom = !0, |
Mike Isely | f5174af | 2007-11-26 02:07:26 -0300 | [diff] [blame] | 59 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | |
| 63 | |
| 64 | /*------------------------------------------------------------------------*/ |
| 65 | /* Hauppauge PVR-USB2 Model 24xxx */ |
| 66 | |
| 67 | static const char *pvr2_client_24xxx[] = { |
| 68 | "cx25840", |
| 69 | "tuner", |
| 70 | "wm8775", |
| 71 | }; |
| 72 | |
| 73 | static const char *pvr2_fw1_names_24xxx[] = { |
| 74 | "v4l-pvrusb2-24xxx-01.fw", |
| 75 | }; |
| 76 | |
| 77 | static const struct pvr2_device_desc pvr2_device_24xxx = { |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 78 | .description = "WinTV PVR USB2 Model Category 24xxxx", |
| 79 | .shortname = "24xxx", |
| 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, |
Mike Isely | aaf7884 | 2007-11-26 02:04:11 -0300 | [diff] [blame] | 86 | .flag_has_hauppauge_rom = !0, |
Mike Isely | 056d1a8 | 2007-11-26 02:09:42 -0300 | [diff] [blame] | 87 | .flag_has_hauppauge_custom_ir = !0, |
Mike Isely | f5174af | 2007-11-26 02:07:26 -0300 | [diff] [blame] | 88 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | |
| 92 | |
| 93 | /*------------------------------------------------------------------------*/ |
| 94 | /* GOTVIEW USB2.0 DVD2 */ |
| 95 | |
| 96 | static const char *pvr2_client_gotview_2[] = { |
| 97 | "cx25840", |
| 98 | "tuner", |
| 99 | }; |
| 100 | |
| 101 | static const struct pvr2_device_desc pvr2_device_gotview_2 = { |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 102 | .description = "Gotview USB 2.0 DVD 2", |
| 103 | .shortname = "gv2", |
| 104 | .client_modules.lst = pvr2_client_gotview_2, |
| 105 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), |
Mike Isely | 787f5ab | 2007-12-08 17:08:32 -0300 | [diff] [blame] | 106 | .flag_has_cx25840 = !0, |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 107 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 108 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 109 | }; |
| 110 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 111 | |
| 112 | |
| 113 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR |
| 114 | /*------------------------------------------------------------------------*/ |
| 115 | /* OnAir Creator */ |
| 116 | |
| 117 | static const char *pvr2_client_onair_creator[] = { |
| 118 | "saa7115", |
| 119 | "tuner", |
| 120 | "cs53l32a", |
| 121 | }; |
| 122 | |
| 123 | static const struct pvr2_device_desc pvr2_device_onair_creator = { |
| 124 | .description = "OnAir Creator Hybrid USB tuner", |
| 125 | .shortname = "oac", |
| 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, |
| 130 | }; |
| 131 | #endif |
| 132 | |
| 133 | |
| 134 | |
| 135 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2 |
| 136 | /*------------------------------------------------------------------------*/ |
| 137 | /* OnAir USB 2.0 */ |
| 138 | |
| 139 | static const char *pvr2_client_onair_usb2[] = { |
| 140 | "saa7115", |
| 141 | "tuner", |
| 142 | "cs53l32a", |
| 143 | }; |
| 144 | |
| 145 | static const struct pvr2_device_desc pvr2_device_onair_usb2 = { |
| 146 | .description = "OnAir USB2 Hybrid USB tuner", |
| 147 | .shortname = "oa2", |
| 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, |
| 152 | }; |
| 153 | #endif |
| 154 | |
| 155 | |
| 156 | |
| 157 | /*------------------------------------------------------------------------*/ |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 158 | /* Hauppauge PVR-USB2 Model 75xxx */ |
| 159 | |
| 160 | static const char *pvr2_client_75xxx[] = { |
| 161 | "cx25840", |
| 162 | "tuner", |
| 163 | }; |
| 164 | |
| 165 | static const char *pvr2_fw1_names_75xxx[] = { |
| 166 | "v4l-pvrusb2-73xxx-01.fw", |
| 167 | }; |
| 168 | |
| 169 | static const struct pvr2_device_desc pvr2_device_75xxx = { |
| 170 | .description = "WinTV PVR USB2 Model Category 75xxxx", |
| 171 | .shortname = "75xxx", |
| 172 | .client_modules.lst = pvr2_client_75xxx, |
| 173 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx), |
| 174 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
| 175 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), |
| 176 | .flag_has_cx25840 = !0, |
| 177 | .flag_has_hauppauge_rom = !0, |
| 178 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
| 179 | .default_std_mask = V4L2_STD_NTSC_M, |
| 180 | }; |
| 181 | |
| 182 | |
| 183 | |
| 184 | /*------------------------------------------------------------------------*/ |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 185 | |
| 186 | struct usb_device_id pvr2_device_table[] = { |
| 187 | { USB_DEVICE(0x2040, 0x2900), |
| 188 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, |
| 189 | { USB_DEVICE(0x2040, 0x2400), |
| 190 | .driver_info = (kernel_ulong_t)&pvr2_device_24xxx}, |
| 191 | { USB_DEVICE(0x1164, 0x0622), |
| 192 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2}, |
| 193 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR |
| 194 | { USB_DEVICE(0x11ba, 0x1003), |
| 195 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, |
| 196 | #endif |
| 197 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2 |
| 198 | { USB_DEVICE(0x11ba, 0x1001), |
| 199 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, |
| 200 | #endif |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 201 | { USB_DEVICE(0x2040, 0x7500), |
| 202 | .driver_info = (kernel_ulong_t)&pvr2_device_75xxx}, |
Michael Krufky | dd6e946 | 2008-03-08 06:07:38 -0300 | [diff] [blame^] | 203 | { USB_DEVICE(0x2040, 0x7501), |
| 204 | .driver_info = (kernel_ulong_t)&pvr2_device_75xxx}, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 205 | { } |
| 206 | }; |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 207 | |
| 208 | MODULE_DEVICE_TABLE(usb, pvr2_device_table); |
| 209 | |
| 210 | |
| 211 | /* |
| 212 | Stuff for Emacs to see, in order to encourage consistent editing style: |
| 213 | *** Local Variables: *** |
| 214 | *** mode: c *** |
| 215 | *** fill-column: 75 *** |
| 216 | *** tab-width: 8 *** |
| 217 | *** c-basic-offset: 8 *** |
| 218 | *** End: *** |
| 219 | */ |