| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  Copyright (C) 2007 Mike Isely <isely@pobox.com> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  *  it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  |  *  the Free Software Foundation; either version 2 of the License | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  *  GNU General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  |  *  along with this program; if not, write to the Free Software | 
					
						
							|  |  |  |  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This source file should encompass ALL per-device type information for the | 
					
						
							|  |  |  | driver.  To define a new device, add elements to the pvr2_device_table and | 
					
						
							|  |  |  | pvr2_device_desc structures. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "pvrusb2-devattr.h"
 | 
					
						
							|  |  |  | #include <linux/usb.h>
 | 
					
						
							| 
									
										
										
										
											2011-07-03 14:03:12 -04:00
										 |  |  | #include <linux/module.h>
 | 
					
						
							| 
									
										
										
										
											2007-12-02 23:51:34 -03:00
										 |  |  | /* This is needed in order to pull in tuner type ids... */ | 
					
						
							| 
									
										
										
										
											2007-11-26 02:14:23 -03:00
										 |  |  | #include <linux/i2c.h>
 | 
					
						
							|  |  |  | #include <media/tuner.h>
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | #include "pvrusb2-hdw-internal.h"
 | 
					
						
							|  |  |  | #include "lgdt330x.h"
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | #include "s5h1409.h"
 | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | #include "s5h1411.h"
 | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | #include "tda10048.h"
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | #include "tda18271.h"
 | 
					
						
							|  |  |  | #include "tda8290.h"
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #include "tuner-simple.h"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:11:13 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* Hauppauge PVR-USB2 Model 29xxx */ | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_29xxx[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_SAA7115 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_MSP3400 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER }, | 
					
						
							| 
									
										
										
										
											2009-03-14 14:09:04 -03:00
										 |  |  | 	{ .module_id = PVR2_CLIENT_ID_DEMOD }, | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | #define PVR2_FIRMWARE_29xxx "v4l-pvrusb2-29xxx-01.fw"
 | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | static const char *pvr2_fw1_names_29xxx[] = { | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | 		PVR2_FIRMWARE_29xxx, | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | static const struct pvr2_device_desc pvr2_device_29xxx = { | 
					
						
							| 
									
										
										
										
											2009-11-25 02:55:38 -03:00
										 |  |  | 		.description = "WinTV PVR USB2 Model 29xxx", | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 		.shortname = "29xxx", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_29xxx, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx), | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 		.fx2_firmware.lst = pvr2_fw1_names_29xxx, | 
					
						
							|  |  |  | 		.fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), | 
					
						
							| 
									
										
										
										
											2007-11-26 02:04:11 -03:00
										 |  |  | 		.flag_has_hauppauge_rom = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_fmradio = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2007-11-26 02:07:26 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | 		.led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2009-04-06 01:51:38 -03:00
										 |  |  | 		.ir_scheme = PVR2_IR_SCHEME_29XXX, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* Hauppauge PVR-USB2 Model 24xxx */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_24xxx[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CX25840 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_WM8775 }, | 
					
						
							| 
									
										
										
										
											2009-03-14 14:09:04 -03:00
										 |  |  | 	{ .module_id = PVR2_CLIENT_ID_DEMOD }, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | #define PVR2_FIRMWARE_24xxx "v4l-pvrusb2-24xxx-01.fw"
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | static const char *pvr2_fw1_names_24xxx[] = { | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | 		PVR2_FIRMWARE_24xxx, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_24xxx = { | 
					
						
							| 
									
										
										
										
											2009-11-25 02:55:38 -03:00
										 |  |  | 		.description = "WinTV PVR USB2 Model 24xxx", | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 		.shortname = "24xxx", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_24xxx, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx), | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 		.fx2_firmware.lst = pvr2_fw1_names_24xxx, | 
					
						
							|  |  |  | 		.fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx), | 
					
						
							|  |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.flag_has_wm8775 = !0, | 
					
						
							| 
									
										
										
										
											2007-11-26 02:04:11 -03:00
										 |  |  | 		.flag_has_hauppauge_rom = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_fmradio = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2007-11-26 02:07:26 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | 		.led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-07-25 19:35:31 -03:00
										 |  |  | 		.ir_scheme = PVR2_IR_SCHEME_24XXX, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* GOTVIEW USB2.0 DVD2 */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_gotview_2[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CX25840 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER }, | 
					
						
							| 
									
										
										
										
											2010-05-15 00:07:04 -03:00
										 |  |  | 	{ .module_id = PVR2_CLIENT_ID_DEMOD }, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_gotview_2 = { | 
					
						
							| 
									
										
										
										
											2007-11-26 02:14:23 -03:00
										 |  |  | 		.description = "Gotview USB 2.0 DVD 2", | 
					
						
							|  |  |  | 		.shortname = "gv2", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_gotview_2, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | 
					
						
							| 
									
										
										
										
											2007-12-08 17:08:32 -03:00
										 |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							| 
									
										
										
										
											2007-11-26 02:14:23 -03:00
										 |  |  | 		.default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							| 
									
										
										
										
											2008-04-21 03:50:39 -03:00
										 |  |  | 		.flag_has_fmradio = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2007-11-26 02:14:23 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* GOTVIEW USB2.0 DVD Deluxe */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* (same module list as gotview_2) */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_gotview_2d = { | 
					
						
							|  |  |  | 		.description = "Gotview USB 2.0 DVD Deluxe", | 
					
						
							|  |  |  | 		.shortname = "gv2d", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_gotview_2, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.default_tuner_type = TUNER_PHILIPS_FM1216ME_MK3, | 
					
						
							|  |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							|  |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_GOTVIEW, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-13 20:37:11 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* Terratec Grabster AV400 */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_client_desc pvr2_cli_av400[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CX25840 }, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_av400 = { | 
					
						
							|  |  |  | 		.description = "Terratec Grabster AV400", | 
					
						
							|  |  |  | 		.shortname = "av400", | 
					
						
							|  |  |  | 		.flag_is_experimental = 1, | 
					
						
							|  |  |  | 		.client_table.lst = pvr2_cli_av400, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_av400), | 
					
						
							|  |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.flag_has_analogtuner = 0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							|  |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_AV400, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* OnAir Creator */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | static struct lgdt330x_config pvr2_lgdt3303_config = { | 
					
						
							|  |  |  | 	.demod_address       = 0x0e, | 
					
						
							|  |  |  | 	.demod_chip          = LGDT3303, | 
					
						
							|  |  |  | 	.clock_polarity_flip = 1, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config, | 
					
						
							|  |  |  | 			      &adap->channel.hdw->i2c_adap); | 
					
						
							|  |  |  | 	if (adap->fe) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return -EIO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	dvb_attach(simple_tuner_attach, adap->fe, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, 0x61, | 
					
						
							|  |  |  | 		   TUNER_LG_TDVS_H06XF); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:08:58 -03:00
										 |  |  | static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = { | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | 	.frontend_attach = pvr2_lgdt3303_attach, | 
					
						
							|  |  |  | 	.tuner_attach    = pvr2_lgh06xf_attach, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_onair_creator[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_SAA7115 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CS53L32A }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER }, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_onair_creator = { | 
					
						
							| 
									
										
										
										
											2007-12-08 17:11:13 -03:00
										 |  |  | 		.description = "OnAir Creator Hybrid USB tuner", | 
					
						
							|  |  |  | 		.shortname = "oac", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_onair_creator, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator), | 
					
						
							| 
									
										
										
										
											2007-12-08 17:11:13 -03:00
										 |  |  | 		.default_tuner_type = TUNER_LG_TDVS_H06XF, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2008-04-03 04:51:19 -03:00
										 |  |  | 		.flag_digital_requires_cx23416 = !0, | 
					
						
							| 
									
										
										
										
											2009-03-15 17:53:29 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:40 -03:00
										 |  |  | 		.digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:45 -03:00
										 |  |  | 		.default_std_mask = V4L2_STD_NTSC_M, | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | 		.dvb_props = &pvr2_onair_creator_fe_props, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* OnAir USB 2.0 */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | static struct lgdt330x_config pvr2_lgdt3302_config = { | 
					
						
							|  |  |  | 	.demod_address       = 0x0e, | 
					
						
							|  |  |  | 	.demod_chip          = LGDT3302, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	adap->fe = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config, | 
					
						
							|  |  |  | 			      &adap->channel.hdw->i2c_adap); | 
					
						
							|  |  |  | 	if (adap->fe) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return -EIO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	dvb_attach(simple_tuner_attach, adap->fe, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, 0x61, | 
					
						
							|  |  |  | 		   TUNER_PHILIPS_FCV1236D); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:08:58 -03:00
										 |  |  | static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | 	.frontend_attach = pvr2_lgdt3302_attach, | 
					
						
							|  |  |  | 	.tuner_attach    = pvr2_fcv1236d_attach, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_onair_usb2[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_SAA7115 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CS53L32A }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER }, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_onair_usb2 = { | 
					
						
							| 
									
										
										
										
											2007-12-08 17:11:13 -03:00
										 |  |  | 		.description = "OnAir USB2 Hybrid USB tuner", | 
					
						
							|  |  |  | 		.shortname = "oa2", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_onair_usb2, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2), | 
					
						
							| 
									
										
										
										
											2008-04-22 14:46:05 -03:00
										 |  |  | 		.default_tuner_type = TUNER_PHILIPS_FCV1236D, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2008-04-03 04:51:19 -03:00
										 |  |  | 		.flag_digital_requires_cx23416 = !0, | 
					
						
							| 
									
										
										
										
											2009-03-15 17:53:29 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_ONAIR, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:40 -03:00
										 |  |  | 		.digital_control_scheme = PVR2_DIGITAL_SCHEME_ONAIR, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:45 -03:00
										 |  |  | 		.default_std_mask = V4L2_STD_NTSC_M, | 
					
						
							| 
									
										
										
										
											2008-03-28 05:47:47 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | 		.dvb_props = &pvr2_onair_usb2_fe_props, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* Hauppauge PVR-USB2 Model 73xxx */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | static struct tda10048_config hauppauge_tda10048_config = { | 
					
						
							|  |  |  | 	.demod_address  = 0x10 >> 1, | 
					
						
							|  |  |  | 	.output_mode    = TDA10048_PARALLEL_OUTPUT, | 
					
						
							|  |  |  | 	.fwbulkwritelen = TDA10048_BULKWRITE_50, | 
					
						
							|  |  |  | 	.inversion      = TDA10048_INVERSION_ON, | 
					
						
							| 
									
										
										
										
											2009-05-15 21:04:56 -03:00
										 |  |  | 	.dtv6_if_freq_khz = TDA10048_IF_3300, | 
					
						
							|  |  |  | 	.dtv7_if_freq_khz = TDA10048_IF_3800, | 
					
						
							|  |  |  | 	.dtv8_if_freq_khz = TDA10048_IF_4300, | 
					
						
							| 
									
										
										
										
											2009-05-02 11:09:08 -03:00
										 |  |  | 	.clk_freq_khz   = TDA10048_CLK_16000, | 
					
						
							| 
									
										
										
										
											2009-05-05 19:31:42 -03:00
										 |  |  | 	.disable_gate_access = 1, | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct tda829x_config tda829x_no_probe = { | 
					
						
							|  |  |  | 	.probe_tuner = TDA829X_DONT_PROBE, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-07 13:28:33 -03:00
										 |  |  | static struct tda18271_std_map hauppauge_tda18271_dvbt_std_map = { | 
					
						
							|  |  |  |         .dvbt_6   = { .if_freq = 3300, .agc_mode = 3, .std = 4, | 
					
						
							|  |  |  |                       .if_lvl = 1, .rfagc_top = 0x37, }, | 
					
						
							|  |  |  |         .dvbt_7   = { .if_freq = 3800, .agc_mode = 3, .std = 5, | 
					
						
							|  |  |  |                       .if_lvl = 1, .rfagc_top = 0x37, }, | 
					
						
							|  |  |  |         .dvbt_8   = { .if_freq = 4300, .agc_mode = 3, .std = 6, | 
					
						
							|  |  |  |                       .if_lvl = 1, .rfagc_top = 0x37, }, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | static struct tda18271_config hauppauge_tda18271_dvb_config = { | 
					
						
							| 
									
										
										
										
											2012-02-07 13:28:33 -03:00
										 |  |  | 	.std_map = &hauppauge_tda18271_dvbt_std_map, | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | 	.gate    = TDA18271_GATE_ANALOG, | 
					
						
							| 
									
										
										
										
											2009-08-29 17:47:01 -03:00
										 |  |  | 	.output_opt = TDA18271_OUTPUT_LT_OFF, | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_tda10048_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	adap->fe = dvb_attach(tda10048_attach, &hauppauge_tda10048_config, | 
					
						
							|  |  |  | 			      &adap->channel.hdw->i2c_adap); | 
					
						
							|  |  |  | 	if (adap->fe) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return -EIO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	dvb_attach(tda829x_attach, adap->fe, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, 0x42, | 
					
						
							|  |  |  | 		   &tda829x_no_probe); | 
					
						
							|  |  |  | 	dvb_attach(tda18271_attach, adap->fe, 0x60, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, | 
					
						
							|  |  |  | 		   &hauppauge_tda18271_dvb_config); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:08:58 -03:00
										 |  |  | static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = { | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | 	.frontend_attach = pvr2_tda10048_attach, | 
					
						
							|  |  |  | 	.tuner_attach    = pvr2_73xxx_tda18271_8295_attach, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | static const struct pvr2_device_client_desc pvr2_cli_73xxx[] = { | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_CX25840 }, | 
					
						
							|  |  |  | 	{ .module_id = PVR2_CLIENT_ID_TUNER, | 
					
						
							|  |  |  | 	  .i2c_address_list = "\x42"}, | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | #define PVR2_FIRMWARE_73xxx "v4l-pvrusb2-73xxx-01.fw"
 | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | static const char *pvr2_fw1_names_73xxx[] = { | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | 		PVR2_FIRMWARE_73xxx, | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_73xxx = { | 
					
						
							| 
									
										
										
										
											2009-11-25 02:55:38 -03:00
										 |  |  | 		.description = "WinTV HVR-1900 Model 73xxx", | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | 		.shortname = "73xxx", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_73xxx, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | 		.fx2_firmware.lst = pvr2_fw1_names_73xxx, | 
					
						
							|  |  |  | 		.fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), | 
					
						
							|  |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.flag_has_hauppauge_rom = !0, | 
					
						
							|  |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2009-11-25 03:03:31 -03:00
										 |  |  | 		.flag_fx2_16kb = !0, | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | 
					
						
							|  |  |  | 		.digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | 
					
						
							|  |  |  | 		.led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-07-25 19:35:31 -03:00
										 |  |  | 		.ir_scheme = PVR2_IR_SCHEME_ZILOG, | 
					
						
							| 
									
										
										
										
											2008-04-19 15:36:51 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | 		.dvb_props = &pvr2_73xxx_dvb_props, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | /* Hauppauge PVR-USB2 Model 75xxx */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | static struct s5h1409_config pvr2_s5h1409_config = { | 
					
						
							|  |  |  | 	.demod_address = 0x32 >> 1, | 
					
						
							|  |  |  | 	.output_mode   = S5H1409_PARALLEL_OUTPUT, | 
					
						
							|  |  |  | 	.gpio          = S5H1409_GPIO_OFF, | 
					
						
							|  |  |  | 	.qam_if        = 4000, | 
					
						
							|  |  |  | 	.inversion     = S5H1409_INVERSION_ON, | 
					
						
							|  |  |  | 	.status_mode   = S5H1409_DEMODLOCKING, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | static struct s5h1411_config pvr2_s5h1411_config = { | 
					
						
							|  |  |  | 	.output_mode   = S5H1411_PARALLEL_OUTPUT, | 
					
						
							|  |  |  | 	.gpio          = S5H1411_GPIO_OFF, | 
					
						
							|  |  |  | 	.vsb_if        = S5H1411_IF_44000, | 
					
						
							|  |  |  | 	.qam_if        = S5H1411_IF_4000, | 
					
						
							|  |  |  | 	.inversion     = S5H1411_INVERSION_ON, | 
					
						
							|  |  |  | 	.status_mode   = S5H1411_DEMODLOCKING, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | static struct tda18271_std_map hauppauge_tda18271_std_map = { | 
					
						
							|  |  |  | 	.atsc_6   = { .if_freq = 5380, .agc_mode = 3, .std = 3, | 
					
						
							|  |  |  | 		      .if_lvl = 6, .rfagc_top = 0x37, }, | 
					
						
							|  |  |  | 	.qam_6    = { .if_freq = 4000, .agc_mode = 3, .std = 0, | 
					
						
							|  |  |  | 		      .if_lvl = 6, .rfagc_top = 0x37, }, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct tda18271_config hauppauge_tda18271_config = { | 
					
						
							|  |  |  | 	.std_map = &hauppauge_tda18271_std_map, | 
					
						
							|  |  |  | 	.gate    = TDA18271_GATE_ANALOG, | 
					
						
							| 
									
										
										
										
											2009-08-29 17:47:01 -03:00
										 |  |  | 	.output_opt = TDA18271_OUTPUT_LT_OFF, | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int pvr2_s5h1409_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	adap->fe = dvb_attach(s5h1409_attach, &pvr2_s5h1409_config, | 
					
						
							|  |  |  | 			      &adap->channel.hdw->i2c_adap); | 
					
						
							|  |  |  | 	if (adap->fe) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return -EIO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | static int pvr2_s5h1411_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	adap->fe = dvb_attach(s5h1411_attach, &pvr2_s5h1411_config, | 
					
						
							|  |  |  | 			      &adap->channel.hdw->i2c_adap); | 
					
						
							|  |  |  | 	if (adap->fe) | 
					
						
							|  |  |  | 		return 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return -EIO; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	dvb_attach(tda829x_attach, adap->fe, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, 0x42, | 
					
						
							|  |  |  | 		   &tda829x_no_probe); | 
					
						
							|  |  |  | 	dvb_attach(tda18271_attach, adap->fe, 0x60, | 
					
						
							|  |  |  | 		   &adap->channel.hdw->i2c_adap, | 
					
						
							|  |  |  | 		   &hauppauge_tda18271_config); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:08:58 -03:00
										 |  |  | static const struct pvr2_dvb_props pvr2_750xx_dvb_props = { | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | 	.frontend_attach = pvr2_s5h1409_attach, | 
					
						
							|  |  |  | 	.tuner_attach    = pvr2_tda18271_8295_attach, | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 02:08:58 -03:00
										 |  |  | static const struct pvr2_dvb_props pvr2_751xx_dvb_props = { | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | 	.frontend_attach = pvr2_s5h1411_attach, | 
					
						
							|  |  |  | 	.tuner_attach    = pvr2_tda18271_8295_attach, | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | #define PVR2_FIRMWARE_75xxx "v4l-pvrusb2-73xxx-01.fw"
 | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | static const char *pvr2_fw1_names_75xxx[] = { | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | 		PVR2_FIRMWARE_75xxx, | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | static const struct pvr2_device_desc pvr2_device_750xx = { | 
					
						
							| 
									
										
										
										
											2009-11-25 02:55:38 -03:00
										 |  |  | 		.description = "WinTV HVR-1950 Model 750xx", | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 		.shortname = "750xx", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_73xxx, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 		.fx2_firmware.lst = pvr2_fw1_names_75xxx, | 
					
						
							|  |  |  | 		.fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | 
					
						
							|  |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.flag_has_hauppauge_rom = !0, | 
					
						
							|  |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2009-11-25 02:49:21 -03:00
										 |  |  | 		.flag_fx2_16kb = !0, | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | 
					
						
							|  |  |  | 		.digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | 
					
						
							|  |  |  | 		.default_std_mask = V4L2_STD_NTSC_M, | 
					
						
							|  |  |  | 		.led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-07-25 19:35:31 -03:00
										 |  |  | 		.ir_scheme = PVR2_IR_SCHEME_ZILOG, | 
					
						
							| 
									
										
										
										
											2008-03-28 05:49:36 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | 		.dvb_props = &pvr2_750xx_dvb_props, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static const struct pvr2_device_desc pvr2_device_751xx = { | 
					
						
							| 
									
										
										
										
											2009-11-25 02:55:38 -03:00
										 |  |  | 		.description = "WinTV HVR-1950 Model 751xx", | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 		.shortname = "751xx", | 
					
						
							| 
									
										
										
										
											2009-03-07 02:07:12 -03:00
										 |  |  | 		.client_table.lst = pvr2_cli_73xxx, | 
					
						
							|  |  |  | 		.client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | 		.fx2_firmware.lst = pvr2_fw1_names_75xxx, | 
					
						
							|  |  |  | 		.fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), | 
					
						
							|  |  |  | 		.flag_has_cx25840 = !0, | 
					
						
							|  |  |  | 		.flag_has_hauppauge_rom = !0, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:36 -03:00
										 |  |  | 		.flag_has_analogtuner = !0, | 
					
						
							|  |  |  | 		.flag_has_composite = !0, | 
					
						
							|  |  |  | 		.flag_has_svideo = !0, | 
					
						
							| 
									
										
										
										
											2009-11-25 02:49:21 -03:00
										 |  |  | 		.flag_fx2_16kb = !0, | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | 		.signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:40 -03:00
										 |  |  | 		.digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | 		.default_std_mask = V4L2_STD_NTSC_M, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | 		.led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, | 
					
						
							| 
									
										
										
										
											2008-07-25 19:35:31 -03:00
										 |  |  | 		.ir_scheme = PVR2_IR_SCHEME_ZILOG, | 
					
						
							| 
									
										
										
										
											2008-04-25 04:19:02 -03:00
										 |  |  | #ifdef CONFIG_VIDEO_PVRUSB2_DVB
 | 
					
						
							|  |  |  | 		.dvb_props = &pvr2_751xx_dvb_props, | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | /*------------------------------------------------------------------------*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct usb_device_id pvr2_device_table[] = { | 
					
						
							|  |  |  | 	{ USB_DEVICE(0x2040, 0x2900), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | 
					
						
							| 
									
										
										
										
											2008-08-30 15:08:28 -03:00
										 |  |  | 	{ USB_DEVICE(0x2040, 0x2950), /* Logically identical to 2900 */ | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_29xxx}, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | 	{ USB_DEVICE(0x2040, 0x2400), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_24xxx}, | 
					
						
							|  |  |  | 	{ USB_DEVICE(0x1164, 0x0622), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2}, | 
					
						
							| 
									
										
										
										
											2008-04-22 14:45:42 -03:00
										 |  |  | 	{ USB_DEVICE(0x1164, 0x0602), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_gotview_2d}, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | 	{ USB_DEVICE(0x11ba, 0x1003), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_onair_creator}, | 
					
						
							|  |  |  | 	{ USB_DEVICE(0x11ba, 0x1001), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_onair_usb2}, | 
					
						
							| 
									
										
										
										
											2008-03-15 23:59:29 -03:00
										 |  |  | 	{ USB_DEVICE(0x2040, 0x7300), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_73xxx}, | 
					
						
							| 
									
										
										
										
											2007-10-25 02:01:10 -03:00
										 |  |  | 	{ USB_DEVICE(0x2040, 0x7500), | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_750xx}, | 
					
						
							| 
									
										
										
										
											2008-03-08 06:07:38 -03:00
										 |  |  | 	{ USB_DEVICE(0x2040, 0x7501), | 
					
						
							| 
									
										
										
										
											2008-03-28 05:48:44 -03:00
										 |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_751xx}, | 
					
						
							| 
									
										
										
										
											2011-03-13 20:37:11 -03:00
										 |  |  | 	{ USB_DEVICE(0x0ccd, 0x0039), | 
					
						
							|  |  |  | 	  .driver_info = (kernel_ulong_t)&pvr2_device_av400}, | 
					
						
							| 
									
										
										
										
											2007-12-08 17:20:06 -03:00
										 |  |  | 	{ } | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | MODULE_DEVICE_TABLE(usb, pvr2_device_table); | 
					
						
							| 
									
										
										
										
											2012-07-26 14:57:07 -03:00
										 |  |  | MODULE_FIRMWARE(PVR2_FIRMWARE_29xxx); | 
					
						
							|  |  |  | MODULE_FIRMWARE(PVR2_FIRMWARE_24xxx); | 
					
						
							|  |  |  | MODULE_FIRMWARE(PVR2_FIRMWARE_73xxx); | 
					
						
							|  |  |  | MODULE_FIRMWARE(PVR2_FIRMWARE_75xxx); | 
					
						
							| 
									
										
										
										
											2007-11-26 01:53:12 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |   Stuff for Emacs to see, in order to encourage consistent editing style: | 
					
						
							|  |  |  |   *** Local Variables: *** | 
					
						
							|  |  |  |   *** mode: c *** | 
					
						
							|  |  |  |   *** fill-column: 75 *** | 
					
						
							|  |  |  |   *** tab-width: 8 *** | 
					
						
							|  |  |  |   *** c-basic-offset: 8 *** | 
					
						
							|  |  |  |   *** End: *** | 
					
						
							|  |  |  |   */ |