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> |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 35 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 36 | #include "pvrusb2-hdw-internal.h" |
| 37 | #include "lgdt330x.h" |
Michael Krufky | 087886e | 2008-03-28 05:49:36 -0300 | [diff] [blame] | 38 | #include "s5h1409.h" |
| 39 | #include "tda18271.h" |
| 40 | #include "tda8290.h" |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 41 | #include "tuner-simple.h" |
| 42 | #endif |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 43 | |
Mike Isely | 4542783 | 2007-12-08 17:11:13 -0300 | [diff] [blame] | 44 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 45 | /*------------------------------------------------------------------------*/ |
| 46 | /* Hauppauge PVR-USB2 Model 29xxx */ |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 47 | |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 48 | static const char *pvr2_client_29xxx[] = { |
| 49 | "msp3400", |
| 50 | "saa7115", |
| 51 | "tuner", |
| 52 | }; |
| 53 | |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 54 | static const char *pvr2_fw1_names_29xxx[] = { |
| 55 | "v4l-pvrusb2-29xxx-01.fw", |
| 56 | }; |
| 57 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 58 | static const struct pvr2_device_desc pvr2_device_29xxx = { |
Mike Isely | e7f677f | 2008-03-16 01:13:17 -0300 | [diff] [blame] | 59 | .description = "WinTV PVR USB2 Model Category 29xxx", |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 60 | .shortname = "29xxx", |
| 61 | .client_modules.lst = pvr2_client_29xxx, |
| 62 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_29xxx), |
| 63 | .fx2_firmware.lst = pvr2_fw1_names_29xxx, |
| 64 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), |
Mike Isely | aaf7884 | 2007-11-26 02:04:11 -0300 | [diff] [blame] | 65 | .flag_has_hauppauge_rom = !0, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 66 | .flag_has_analogtuner = !0, |
Mike Isely | d068c6e | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 67 | .flag_has_fmradio = !0, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 68 | .flag_has_composite = !0, |
| 69 | .flag_has_svideo = !0, |
Mike Isely | f5174af | 2007-11-26 02:07:26 -0300 | [diff] [blame] | 70 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | 40381cb | 2008-04-22 14:45:42 -0300 | [diff] [blame] | 71 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | |
| 75 | |
| 76 | /*------------------------------------------------------------------------*/ |
| 77 | /* Hauppauge PVR-USB2 Model 24xxx */ |
| 78 | |
| 79 | static const char *pvr2_client_24xxx[] = { |
| 80 | "cx25840", |
| 81 | "tuner", |
| 82 | "wm8775", |
| 83 | }; |
| 84 | |
| 85 | static const char *pvr2_fw1_names_24xxx[] = { |
| 86 | "v4l-pvrusb2-24xxx-01.fw", |
| 87 | }; |
| 88 | |
| 89 | static const struct pvr2_device_desc pvr2_device_24xxx = { |
Mike Isely | e7f677f | 2008-03-16 01:13:17 -0300 | [diff] [blame] | 90 | .description = "WinTV PVR USB2 Model Category 24xxx", |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 91 | .shortname = "24xxx", |
| 92 | .client_modules.lst = pvr2_client_24xxx, |
| 93 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx), |
| 94 | .fx2_firmware.lst = pvr2_fw1_names_24xxx, |
| 95 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx), |
| 96 | .flag_has_cx25840 = !0, |
| 97 | .flag_has_wm8775 = !0, |
Mike Isely | aaf7884 | 2007-11-26 02:04:11 -0300 | [diff] [blame] | 98 | .flag_has_hauppauge_rom = !0, |
Mike Isely | 056d1a8 | 2007-11-26 02:09:42 -0300 | [diff] [blame] | 99 | .flag_has_hauppauge_custom_ir = !0, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 100 | .flag_has_analogtuner = !0, |
Mike Isely | d068c6e | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 101 | .flag_has_fmradio = !0, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 102 | .flag_has_composite = !0, |
| 103 | .flag_has_svideo = !0, |
Mike Isely | f5174af | 2007-11-26 02:07:26 -0300 | [diff] [blame] | 104 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | 40381cb | 2008-04-22 14:45:42 -0300 | [diff] [blame] | 105 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 106 | }; |
| 107 | |
| 108 | |
| 109 | |
| 110 | /*------------------------------------------------------------------------*/ |
| 111 | /* GOTVIEW USB2.0 DVD2 */ |
| 112 | |
| 113 | static const char *pvr2_client_gotview_2[] = { |
| 114 | "cx25840", |
| 115 | "tuner", |
| 116 | }; |
| 117 | |
| 118 | static const struct pvr2_device_desc pvr2_device_gotview_2 = { |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 119 | .description = "Gotview USB 2.0 DVD 2", |
| 120 | .shortname = "gv2", |
| 121 | .client_modules.lst = pvr2_client_gotview_2, |
| 122 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), |
Mike Isely | 787f5ab | 2007-12-08 17:08:32 -0300 | [diff] [blame] | 123 | .flag_has_cx25840 = !0, |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 124 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 125 | .flag_has_analogtuner = !0, |
| 126 | .flag_has_composite = !0, |
| 127 | .flag_has_svideo = !0, |
Mike Isely | 9e2e3ae | 2007-11-26 02:14:23 -0300 | [diff] [blame] | 128 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 129 | }; |
| 130 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 131 | |
| 132 | |
Mike Isely | fd1da78 | 2008-04-22 14:45:42 -0300 | [diff] [blame] | 133 | /*------------------------------------------------------------------------*/ |
| 134 | /* GOTVIEW USB2.0 DVD Deluxe */ |
| 135 | |
| 136 | /* (same module list as gotview_2) */ |
| 137 | |
| 138 | static const struct pvr2_device_desc pvr2_device_gotview_2d = { |
| 139 | .description = "Gotview USB 2.0 DVD Deluxe", |
| 140 | .shortname = "gv2d", |
| 141 | .client_modules.lst = pvr2_client_gotview_2, |
| 142 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), |
| 143 | .flag_has_cx25840 = !0, |
| 144 | .default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 145 | .flag_has_analogtuner = !0, |
| 146 | .flag_has_composite = !0, |
| 147 | .flag_has_svideo = !0, |
| 148 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, |
| 149 | }; |
| 150 | |
| 151 | |
| 152 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 153 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR |
| 154 | /*------------------------------------------------------------------------*/ |
| 155 | /* OnAir Creator */ |
| 156 | |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 157 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 158 | static struct lgdt330x_config pvr2_lgdt3303_config = { |
| 159 | .demod_address = 0x0e, |
| 160 | .demod_chip = LGDT3303, |
| 161 | .clock_polarity_flip = 1, |
| 162 | }; |
| 163 | |
| 164 | static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap) |
| 165 | { |
| 166 | adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config, |
| 167 | &adap->channel.hdw->i2c_adap); |
| 168 | if (adap->fe) |
| 169 | return 0; |
| 170 | |
| 171 | return -EIO; |
| 172 | } |
| 173 | |
| 174 | static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap) |
| 175 | { |
| 176 | dvb_attach(simple_tuner_attach, adap->fe, |
| 177 | &adap->channel.hdw->i2c_adap, 0x61, |
| 178 | TUNER_LG_TDVS_H06XF); |
| 179 | |
| 180 | return 0; |
| 181 | } |
| 182 | |
| 183 | struct pvr2_dvb_props pvr2_onair_creator_fe_props = { |
| 184 | .frontend_attach = pvr2_lgdt3303_attach, |
| 185 | .tuner_attach = pvr2_lgh06xf_attach, |
| 186 | }; |
| 187 | #endif |
| 188 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 189 | static const char *pvr2_client_onair_creator[] = { |
| 190 | "saa7115", |
| 191 | "tuner", |
| 192 | "cs53l32a", |
| 193 | }; |
| 194 | |
| 195 | static const struct pvr2_device_desc pvr2_device_onair_creator = { |
| 196 | .description = "OnAir Creator Hybrid USB tuner", |
| 197 | .shortname = "oac", |
| 198 | .client_modules.lst = pvr2_client_onair_creator, |
| 199 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator), |
| 200 | .default_tuner_type = TUNER_LG_TDVS_H06XF, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 201 | .flag_has_analogtuner = !0, |
| 202 | .flag_has_composite = !0, |
| 203 | .flag_has_svideo = !0, |
Mike Isely | 72998b7 | 2008-04-03 04:51:19 -0300 | [diff] [blame^] | 204 | .flag_digital_requires_cx23416 = !0, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 205 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | e8f5bac | 2008-04-22 14:45:40 -0300 | [diff] [blame] | 206 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, |
Michael Krufky | f0910c7 | 2008-04-22 14:45:45 -0300 | [diff] [blame] | 207 | .default_std_mask = V4L2_STD_NTSC_M, |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 208 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 209 | .dvb_props = &pvr2_onair_creator_fe_props, |
| 210 | #endif |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 211 | }; |
| 212 | #endif |
| 213 | |
| 214 | |
| 215 | |
| 216 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2 |
| 217 | /*------------------------------------------------------------------------*/ |
| 218 | /* OnAir USB 2.0 */ |
| 219 | |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 220 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 221 | static struct lgdt330x_config pvr2_lgdt3302_config = { |
| 222 | .demod_address = 0x0e, |
| 223 | .demod_chip = LGDT3302, |
| 224 | }; |
| 225 | |
| 226 | static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap) |
| 227 | { |
| 228 | adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config, |
| 229 | &adap->channel.hdw->i2c_adap); |
| 230 | if (adap->fe) |
| 231 | return 0; |
| 232 | |
| 233 | return -EIO; |
| 234 | } |
| 235 | |
| 236 | static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap) |
| 237 | { |
| 238 | dvb_attach(simple_tuner_attach, adap->fe, |
| 239 | &adap->channel.hdw->i2c_adap, 0x61, |
| 240 | TUNER_PHILIPS_FCV1236D); |
| 241 | |
| 242 | return 0; |
| 243 | } |
| 244 | |
| 245 | struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { |
| 246 | .frontend_attach = pvr2_lgdt3302_attach, |
| 247 | .tuner_attach = pvr2_fcv1236d_attach, |
| 248 | }; |
| 249 | #endif |
| 250 | |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 251 | static const char *pvr2_client_onair_usb2[] = { |
| 252 | "saa7115", |
| 253 | "tuner", |
| 254 | "cs53l32a", |
| 255 | }; |
| 256 | |
| 257 | static const struct pvr2_device_desc pvr2_device_onair_usb2 = { |
| 258 | .description = "OnAir USB2 Hybrid USB tuner", |
| 259 | .shortname = "oa2", |
| 260 | .client_modules.lst = pvr2_client_onair_usb2, |
| 261 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2), |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 262 | .default_tuner_type = TUNER_PHILIPS_FCV1236D, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 263 | .flag_has_analogtuner = !0, |
| 264 | .flag_has_composite = !0, |
| 265 | .flag_has_svideo = !0, |
Mike Isely | 72998b7 | 2008-04-03 04:51:19 -0300 | [diff] [blame^] | 266 | .flag_digital_requires_cx23416 = !0, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 267 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | e8f5bac | 2008-04-22 14:45:40 -0300 | [diff] [blame] | 268 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, |
Michael Krufky | f0910c7 | 2008-04-22 14:45:45 -0300 | [diff] [blame] | 269 | .default_std_mask = V4L2_STD_NTSC_M, |
Michael Krufky | 906a495 | 2008-03-28 05:47:47 -0300 | [diff] [blame] | 270 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 271 | .dvb_props = &pvr2_onair_usb2_fe_props, |
| 272 | #endif |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 273 | }; |
| 274 | #endif |
| 275 | |
| 276 | |
| 277 | |
| 278 | /*------------------------------------------------------------------------*/ |
Michael Krufky | 92c9d07 | 2008-03-15 23:59:29 -0300 | [diff] [blame] | 279 | /* Hauppauge PVR-USB2 Model 73xxx */ |
| 280 | |
| 281 | static const char *pvr2_client_73xxx[] = { |
| 282 | "cx25840", |
| 283 | "tuner", |
| 284 | }; |
| 285 | |
| 286 | static const char *pvr2_fw1_names_73xxx[] = { |
| 287 | "v4l-pvrusb2-73xxx-01.fw", |
| 288 | }; |
| 289 | |
| 290 | static const struct pvr2_device_desc pvr2_device_73xxx = { |
Mike Isely | e7f677f | 2008-03-16 01:13:17 -0300 | [diff] [blame] | 291 | .description = "WinTV PVR USB2 Model Category 73xxx", |
Michael Krufky | 92c9d07 | 2008-03-15 23:59:29 -0300 | [diff] [blame] | 292 | .shortname = "73xxx", |
| 293 | .client_modules.lst = pvr2_client_73xxx, |
| 294 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx), |
| 295 | .fx2_firmware.lst = pvr2_fw1_names_73xxx, |
| 296 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), |
| 297 | .flag_has_cx25840 = !0, |
| 298 | .flag_has_hauppauge_rom = !0, |
| 299 | .flag_has_analogtuner = !0, |
| 300 | .flag_has_composite = !0, |
| 301 | .flag_has_svideo = !0, |
| 302 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
| 303 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, |
| 304 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
| 305 | }; |
| 306 | |
| 307 | |
| 308 | |
| 309 | /*------------------------------------------------------------------------*/ |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 310 | /* Hauppauge PVR-USB2 Model 75xxx */ |
| 311 | |
Michael Krufky | 087886e | 2008-03-28 05:49:36 -0300 | [diff] [blame] | 312 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 313 | static struct s5h1409_config pvr2_s5h1409_config = { |
| 314 | .demod_address = 0x32 >> 1, |
| 315 | .output_mode = S5H1409_PARALLEL_OUTPUT, |
| 316 | .gpio = S5H1409_GPIO_OFF, |
| 317 | .qam_if = 4000, |
| 318 | .inversion = S5H1409_INVERSION_ON, |
| 319 | .status_mode = S5H1409_DEMODLOCKING, |
| 320 | }; |
| 321 | |
| 322 | static struct tda829x_config tda829x_no_probe = { |
| 323 | .probe_tuner = TDA829X_DONT_PROBE, |
| 324 | }; |
| 325 | |
| 326 | static struct tda18271_std_map hauppauge_tda18271_std_map = { |
| 327 | .atsc_6 = { .if_freq = 5380, .agc_mode = 3, .std = 3, |
| 328 | .if_lvl = 6, .rfagc_top = 0x37, }, |
| 329 | .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0, |
| 330 | .if_lvl = 6, .rfagc_top = 0x37, }, |
| 331 | }; |
| 332 | |
| 333 | static struct tda18271_config hauppauge_tda18271_config = { |
| 334 | .std_map = &hauppauge_tda18271_std_map, |
| 335 | .gate = TDA18271_GATE_ANALOG, |
| 336 | }; |
| 337 | |
| 338 | static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap) |
| 339 | { |
| 340 | adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config, |
| 341 | &adap->channel.hdw->i2c_adap); |
| 342 | if (adap->fe) |
| 343 | return 0; |
| 344 | |
| 345 | return -EIO; |
| 346 | } |
| 347 | |
| 348 | static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) |
| 349 | { |
| 350 | dvb_attach(tda829x_attach, adap->fe, |
| 351 | &adap->channel.hdw->i2c_adap, 0x42, |
| 352 | &tda829x_no_probe); |
| 353 | dvb_attach(tda18271_attach, adap->fe, 0x60, |
| 354 | &adap->channel.hdw->i2c_adap, |
| 355 | &hauppauge_tda18271_config); |
| 356 | |
| 357 | return 0; |
| 358 | } |
| 359 | |
| 360 | struct pvr2_dvb_props pvr2_750xx_dvb_props = { |
| 361 | .frontend_attach = pvr2_s5h1409_attach, |
| 362 | .tuner_attach = pvr2_tda18271_8295_attach, |
| 363 | }; |
| 364 | #endif |
| 365 | |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 366 | static const char *pvr2_client_75xxx[] = { |
| 367 | "cx25840", |
| 368 | "tuner", |
| 369 | }; |
| 370 | |
| 371 | static const char *pvr2_fw1_names_75xxx[] = { |
| 372 | "v4l-pvrusb2-73xxx-01.fw", |
| 373 | }; |
| 374 | |
Michael Krufky | c881284 | 2008-03-28 05:48:44 -0300 | [diff] [blame] | 375 | static const struct pvr2_device_desc pvr2_device_750xx = { |
| 376 | .description = "WinTV PVR USB2 Model Category 750xx", |
| 377 | .shortname = "750xx", |
| 378 | .client_modules.lst = pvr2_client_75xxx, |
| 379 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx), |
| 380 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
| 381 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), |
| 382 | .flag_has_cx25840 = !0, |
| 383 | .flag_has_hauppauge_rom = !0, |
| 384 | .flag_has_analogtuner = !0, |
| 385 | .flag_has_composite = !0, |
| 386 | .flag_has_svideo = !0, |
| 387 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
| 388 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, |
| 389 | .default_std_mask = V4L2_STD_NTSC_M, |
| 390 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
Michael Krufky | 087886e | 2008-03-28 05:49:36 -0300 | [diff] [blame] | 391 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
| 392 | .dvb_props = &pvr2_750xx_dvb_props, |
| 393 | #endif |
Michael Krufky | c881284 | 2008-03-28 05:48:44 -0300 | [diff] [blame] | 394 | }; |
| 395 | |
| 396 | static const struct pvr2_device_desc pvr2_device_751xx = { |
| 397 | .description = "WinTV PVR USB2 Model Category 751xx", |
| 398 | .shortname = "751xx", |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 399 | .client_modules.lst = pvr2_client_75xxx, |
| 400 | .client_modules.cnt = ARRAY_SIZE(pvr2_client_75xxx), |
| 401 | .fx2_firmware.lst = pvr2_fw1_names_75xxx, |
| 402 | .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), |
| 403 | .flag_has_cx25840 = !0, |
| 404 | .flag_has_hauppauge_rom = !0, |
Mike Isely | 1aaac60 | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 405 | .flag_has_analogtuner = !0, |
| 406 | .flag_has_composite = !0, |
| 407 | .flag_has_svideo = !0, |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 408 | .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, |
Mike Isely | e8f5bac | 2008-04-22 14:45:40 -0300 | [diff] [blame] | 409 | .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 410 | .default_std_mask = V4L2_STD_NTSC_M, |
Mike Isely | 40381cb | 2008-04-22 14:45:42 -0300 | [diff] [blame] | 411 | .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 412 | }; |
| 413 | |
| 414 | |
| 415 | |
| 416 | /*------------------------------------------------------------------------*/ |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 417 | |
| 418 | struct usb_device_id pvr2_device_table[] = { |
| 419 | { USB_DEVICE(0x2040, 0x2900), |
| 420 | .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, |
| 421 | { USB_DEVICE(0x2040, 0x2400), |
| 422 | .driver_info = (kernel_ulong_t)&pvr2_device_24xxx}, |
| 423 | { USB_DEVICE(0x1164, 0x0622), |
| 424 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2}, |
Mike Isely | fd1da78 | 2008-04-22 14:45:42 -0300 | [diff] [blame] | 425 | { USB_DEVICE(0x1164, 0x0602), |
| 426 | .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d}, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 427 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_CREATOR |
| 428 | { USB_DEVICE(0x11ba, 0x1003), |
| 429 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, |
| 430 | #endif |
| 431 | #ifdef CONFIG_VIDEO_PVRUSB2_ONAIR_USB2 |
| 432 | { USB_DEVICE(0x11ba, 0x1001), |
| 433 | .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, |
| 434 | #endif |
Michael Krufky | 92c9d07 | 2008-03-15 23:59:29 -0300 | [diff] [blame] | 435 | { USB_DEVICE(0x2040, 0x7300), |
| 436 | .driver_info = (kernel_ulong_t)&pvr2_device_73xxx}, |
Michael Krufky | 11fcd47 | 2007-10-25 02:01:10 -0300 | [diff] [blame] | 437 | { USB_DEVICE(0x2040, 0x7500), |
Michael Krufky | c881284 | 2008-03-28 05:48:44 -0300 | [diff] [blame] | 438 | .driver_info = (kernel_ulong_t)&pvr2_device_750xx}, |
Michael Krufky | dd6e946 | 2008-03-08 06:07:38 -0300 | [diff] [blame] | 439 | { USB_DEVICE(0x2040, 0x7501), |
Michael Krufky | c881284 | 2008-03-28 05:48:44 -0300 | [diff] [blame] | 440 | .driver_info = (kernel_ulong_t)&pvr2_device_751xx}, |
Mike Isely | d130fa8 | 2007-12-08 17:20:06 -0300 | [diff] [blame] | 441 | { } |
| 442 | }; |
Mike Isely | 989eb15 | 2007-11-26 01:53:12 -0300 | [diff] [blame] | 443 | |
| 444 | MODULE_DEVICE_TABLE(usb, pvr2_device_table); |
| 445 | |
| 446 | |
| 447 | /* |
| 448 | Stuff for Emacs to see, in order to encourage consistent editing style: |
| 449 | *** Local Variables: *** |
| 450 | *** mode: c *** |
| 451 | *** fill-column: 75 *** |
| 452 | *** tab-width: 8 *** |
| 453 | *** c-basic-offset: 8 *** |
| 454 | *** End: *** |
| 455 | */ |