[linux-dvb] Another patch for hvr1110

tomlohave tomlohave at gmail.com
Sat Oct 28 17:45:50 CEST 2006


tomlohave at gmail.com a écrit :
> Hartmut.Hackmann at t-online.de a écrit :
>> -----Original Message-----
>> Date: Fri, 27 Oct 2006 09:08:38 +0200
>> Subject: [linux-dvb] HVR1110, no signal lock on tda8290
>> From: tomlohave <tomlohave at gmail.com>
>> To: linux-dvb at linuxtv.org
>>
>> Hi,
>>
>> After some researchs,  it seems that tuner on  hvr110  is a Philips
>> 8275A.
>> with the app Productinfo provide by Hauppauge :
>>
>> Begin :
>>
>> Model 67019 Rev. B1B4
>> Serial #XXXXXXXXXXXXXX
>> Tuner Model/Formats: Philips 8275A // (MN/BG/I/DK/LL') / DVB-T (FM)
>> Tuner Audio: Stereo (SAA7131)
>> Video Formats: NTSC ( M ) PAL ( B G H I D K M N NCOMBO ) SECAM ( L L' )
>> Audio Outputs: None
>> External Inputs: 2
>> S-Video Inputs: 2
>> Teletext:
>> Radio: FM
>> Decoder: SAA7131
>> IR: Blaster
>> MAC Address: 00-0D-FE-0C-E8-F1
>> EEprom Contents:
>> 84 09 00 04 20 77 00 40 f0 1a 0c f0
>> 73 05 29 00
>> 84 08 00 06 cb 05 01 00 94 18 89
>> 72 07 70
>> 73 09 23 5f
>> 73 0a fc 72
>> 72 0b 2f
>> 72 0e 01
>> 72 0f 03
>> 72 10 01
>> 72 11 ff
>> 79 58
>>
>> end.
>>
>> But i have no lock with this settings :
>>
>> <snip>
>>
>> I don't have the patch here, but:
>> - If you live in france, you need to set the option secam=l
>>   
> well, it's already done, here why i do :
> modprobe -r tuner saa7134-alsa saa7134-dvb saa7134 && modprobe tuner 
> secam=l debug=1 && modprobe saa7134 i2c_debug=1 gpio_tracking=1 
> core_debug=1 irq_debug=1
>> - For this card, you need some GPIO settings to get the AGC
>> routed correctly.
>> for FM Radio, you typically need GPIO21 of the SAA7131 and
>> for DVB-T it typically is GPIO 1 of the TDA10046.
>> Somebody reported that the card works with the settings
>> for the Pinnacle 310i, so you might steal the code fragments
>> from there.
>>
>>   
> Already done, my configuration is based on the 310i.
>
> Today i 've got analogic tv but without sound, tnt is ok, and no radio
> (why ?)
> Need more work.
Sound on analogic tv is ok, (mplayer problem)
Sorry for the noise !
so :

TNT ok
Analogic TV : OK
Capture device : not tested
Remote control : Nothing works (perhaps ...)
Radio : not tested

Well, that's all for today !
>> Good luck
>>   Hartmut
>>   
> Thanks :)
>
> Tom
>>
>>
>>   
>
> ------------------------------------------------------------------------
>
> Seulement dans v4l-dvb-modif/linux/drivers/media/video/saa7134: hvr1110.diff
> diff -ur v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-cards.c
> --- v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c	2006-10-22 16:12:24.000000000 +0200
> +++ v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-cards.c	2006-10-28 11:15:02.000000000 +0200
> @@ -3098,6 +3098,39 @@
>  			.gpio   = 0x0200000,
>  		},
>  	},
> +	[SAA7134_BOARD_HAUPPAUGE_HVR1110] = {
> +		.name           = "Hauppauge WinTV-HVR1110 DVB-T/Hybrid",
> +		.audio_clock    = 0x00187de7,
> +		.tuner_type     = TUNER_PHILIPS_TDA8290,
> +		.radio_type     = UNSET,
> +		.tuner_addr     = ADDR_UNSET,
> +		.radio_addr     = ADDR_UNSET,
> +		.mpeg           = SAA7134_MPEG_DVB,
> +		.gpiomask       = 0x000200000,
> +		.inputs         = {{
> +			.name = name_tv,
> +			.vmux = 1,
> +			.amux = TV,
> +			.tv   = 1,
> +		},{
> +			.name = name_comp1,
> +			.vmux = 2,
> +			.amux = LINE2,
> +		},{
> +			.name = name_comp2,
> +			.vmux = 0,
> +			.amux = LINE2,
> +		},{
> +			.name = name_svideo,
> +			.vmux = 8,
> +			.amux = LINE2,
> +		}},
> +		.radio = {
> +			.name = name_radio,
> +			.amux   = TV,
> +			.gpio   = 0x0200000,
> +		},
> +	},
>  	[SAA7134_BOARD_AVERMEDIA_STUDIO_507] = {
>  		/* Mikhail Fedotov <mo_fedotov at mail.ru> */
>  		.name           = "Avermedia AVerTV Studio 507",
> @@ -3758,6 +3791,12 @@
>  	},{
>  		.vendor       = PCI_VENDOR_ID_PHILIPS,
>  		.device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
> +		.subvendor    = 0x0070,
> +		.subdevice    = 0x6701,
> +		.driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
> +	},{
> +		.vendor       = PCI_VENDOR_ID_PHILIPS,
> +		.device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
>  		.subvendor    = 0x1461, /* Avermedia Technologies Inc */
>  		.subdevice    = 0x9715,
>  		.driver_data  = SAA7134_BOARD_AVERMEDIA_STUDIO_507,
> @@ -3909,6 +3948,7 @@
>  	case SAA7134_BOARD_FLYDVBT_LR301:
>  	case SAA7134_BOARD_FLYDVBTDUO:
>  	case SAA7134_BOARD_PROTEUS_2309:
> +	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
>  		dev->has_remote = SAA7134_REMOTE_GPIO;
>  		break;
>  	case SAA7134_BOARD_FLYDVBS_LR300:
> @@ -4100,6 +4140,7 @@
>  		break;
>  	case SAA7134_BOARD_PHILIPS_TIGER:
>  	case SAA7134_BOARD_PINNACLE_PCTV_310i:
> +	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
>  	case SAA7134_BOARD_TEVION_DVBT_220RF:
>  	case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
>  	case SAA7134_BOARD_MEDION_MD8800_QUADRO:
> Seulement dans v4l-dvb-modif/linux/drivers/media/video/saa7134: saa7134-cards.c~
> diff -ur v4l-dvb/linux/drivers/media/video/saa7134/saa7134-dvb.c v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-dvb.c
> --- v4l-dvb/linux/drivers/media/video/saa7134/saa7134-dvb.c	2006-10-22 16:12:24.000000000 +0200
> +++ v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-dvb.c	2006-10-27 13:40:36.000000000 +0200
> @@ -895,6 +895,18 @@
>  
>  /* ------------------------------------------------------------------ */
>  
> +static struct tda1004x_config hauppauge_hvr_1110_config = {
> +	.demod_address = 0x08,
> +	.invert        = 1,
> +	.invert_oclk   = 0,
> +	.xtal_freq     = TDA10046_XTAL_16M,
> +	.agc_config    = TDA10046_AGC_TDA827X,
> +	.if_freq       = TDA10046_FREQ_045,
> +	.request_firmware = philips_tda1004x_request_firmware,
> +};
> +
> +/* ------------------------------------------------------------------ */
> +
>  static struct tda1004x_config asus_p7131_dual_config = {
>  	.demod_address = 0x08,
>  	.invert        = 1,
> @@ -1216,6 +1228,17 @@
>  			dev->dvb.frontend->ops.tuner_ops.set_params = philips_tiger_tuner_set_params;
>  		}
>  		break;
> +	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
> +		dev->dvb.frontend = dvb_attach(tda10046_attach,
> +					       &hauppauge_hvr_1110_config,
> +					       &dev->i2c_adap);
> +		if (dev->dvb.frontend) {
> +			dev->dvb.frontend->ops.i2c_gate_ctrl = tda8290_i2c_gate_ctrl;
> +			dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init;
> +			dev->dvb.frontend->ops.tuner_ops.sleep = philips_tiger_tuner_sleep;
> +			dev->dvb.frontend->ops.tuner_ops.set_params = philips_tiger_tuner_set_params;
> +		}
> +		break;
>  	case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
>  		dev->dvb.frontend = dvb_attach(tda10046_attach,
>  					       &asus_p7131_dual_config,
> Seulement dans v4l-dvb-modif/linux/drivers/media/video/saa7134: saa7134-dvb.c~
> diff -ur v4l-dvb/linux/drivers/media/video/saa7134/saa7134.h v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134.h
> --- v4l-dvb/linux/drivers/media/video/saa7134/saa7134.h	2006-10-22 16:12:24.000000000 +0200
> +++ v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134.h	2006-10-24 00:59:08.000000000 +0200
> @@ -238,6 +238,7 @@
>  #define SAA7134_BOARD_ASUS_EUROPA2_HYBRID 100
>  #define SAA7134_BOARD_PINNACLE_PCTV_310i  101
>  #define SAA7134_BOARD_AVERMEDIA_STUDIO_507 102
> +#define SAA7134_BOARD_HAUPPAUGE_HVR1110 103
>  
>  #define SAA7134_MAXBOARDS 8
>  #define SAA7134_INPUT_MAX 8
> Seulement dans v4l-dvb-modif/linux/drivers/media/video/saa7134: saa7134.h~
> diff -ur v4l-dvb/linux/drivers/media/video/saa7134/saa7134-input.c v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-input.c
> --- v4l-dvb/linux/drivers/media/video/saa7134/saa7134-input.c	2006-10-22 16:12:24.000000000 +0200
> +++ v4l-dvb-modif/linux/drivers/media/video/saa7134/saa7134-input.c	2006-10-27 08:45:53.000000000 +0200
> @@ -223,6 +223,12 @@
>  		mask_keydown = 0x000010;
>  		polling	     = 50; // ms
>  		break;
> +	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
> +		ir_codes     = ir_codes_hauppauge_new;
> +//		ir_type = IR_TYPE_RC5;
> +		mask_keycode = 0;
> +		polling	     = 50; // ms
> +		break;
>  	case SAA7134_BOARD_VIDEOMATE_TV_PVR:
>  	case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
>  	case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
> Seulement dans v4l-dvb-modif/linux/drivers/media/video/saa7134: saa7134-input.c~
>   




More information about the linux-dvb mailing list