[ivtv-devel] [PATCH] fix radio for ivtv in current HG

Hans Verkuil hverkuil at xs4all.nl
Thu Jan 10 23:02:58 CET 2008


On Thursday 10 January 2008 22:00:36 Jose Alberto Reguero wrote:
> El Miércoles, 9 de Enero de 2008, Jose Alberto Reguero escribió:
> > El Martes, 8 de Enero de 2008, Jose Alberto Reguero escribió:
> > > El Martes, 8 de Enero de 2008, mkrufky at linuxtv.org escribió:
> > > > Jose Alberto Reguero wrote:
> > > > > If I left the minimal atached patch, and without debug
> > > > > options, I have no problems.
> > > > > Maybe the driver needs a delay in somwhere?
> > > > >
> > > > > [snip]
> > > > > AFC Status: 2
> > > > > AFC Status: 2
> > > > > AFC Status: 2
> > > > > AFC Status: -1
> > > > > AFC Status: 2
> > > > > AFC Status: 2
> > > > > [snip]
> > > >
> > > > Jose,
> > > >
> > > > What tuner do you have on your card?  This behavior is strange.
> > > >
> > > > -Mike
> > > >
> > > >From logs
> > >
> > > tveeprom 1-0050: tuner model is Philips FM1216 ME MK3 (idx 57,
> > > type 38) tveeprom 1-0050: TV standards PAL(B/G) PAL(I)
> > > SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
> > > tveeprom 1-0050: audio processor is MSP4418 (idx 25)
> > >
> > > msp3400 1-0040: MSP4418G-B3 found @ 0x80 (ivtv i2c driver #0)
> > > msp3400 1-0040: MSP4418G-B3 supports nicam and radio, mode is
> > > autodetect and autoselect
> > >
> > > tda9887 1-0043: tda988[5/6/7] found
> > >
> > > tuner-simple 1-0061: type set to 38 (Philips PAL/SECAM multi
> > > (FM1216ME MK3))
> > >
> > > Thanks.
> > > Jose Alberto
> >
> > With the attached patch and works well without debug options.
> > With udelay(1), don't work.
> >
> > Jose Alberto
>
> I found a solution in the ivtv driver with this hack.
>
> diff -r e57736b60075 linux/drivers/media/video/ivtv/ivtv-driver.c
> --- a/linux/drivers/media/video/ivtv/ivtv-driver.c      Wed Jan 02
> 13:50:02 2008 -0200
> +++ b/linux/drivers/media/video/ivtv/ivtv-driver.c      Thu Jan 10
> 21:39:41 2008 +0100
> @@ -1078,8 +1078,10 @@ static int __devinit ivtv_probe(struct p
>         }
>
>         /* The mspx4xx chips need a longer delay for some reason */
> +#if 0
>         if (!(itv->hw_flags & IVTV_HW_MSP34XX))
>                 itv->i2c_algo.udelay = 5;
> +#endif
>
>         if (itv->std == 0) {
>                 itv->std = V4L2_STD_NTSC_M;

Jose,

For my information: which linux kernel version are you using?

Regards,

	Hans

>
> My card is:
> ivtv0: Initialized card #0: Hauppauge WinTV PVR-350
> ivtv:  End initialization
> ACPI: PCI interrupt for device 0000:07:09.0 disabled
> ivtv0: Removed Hauppauge WinTV PVR-350, card #0
> ivtv:  Start initialization, version 1.2.0
> ivtv0: Initializing card #0
> ivtv0: Autodetected Hauppauge card (cx23415 based)
> ACPI: PCI Interrupt 0000:07:09.0[A] -> GSI 19 (level, low) -> IRQ 19
> tveeprom 1-0050: Hauppauge model 48139, rev K257, serial# 7671399
> tveeprom 1-0050: tuner model is Philips FM1216 ME MK3 (idx 57, type
> 38) tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L')
> PAL(D/D1/K) (eeprom 0x74)
> tveeprom 1-0050: audio processor is MSP4418 (idx 25)
> tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
> tveeprom 1-0050: has radio, has IR receiver, has no IR transmitter
> ivtv0: Autodetected Hauppauge WinTV PVR-350
> saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c
> driver #0) saa7127 1-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
> msp3400 1-0040: MSP4418G-B3 found @ 0x80 (ivtv i2c driver #0)
> msp3400 1-0040: MSP4418G-B3 supports nicam and radio, mode is
> autodetect and autoselect
> tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
> tda9887 1-0043: tda988[5/6/7] found
> tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
> tuner-simple 1-0061: type set to 38 (Philips PAL/SECAM multi
> (FM1216ME MK3)) ivtv0: Registered device video1 for encoder MPG (4096
> kB)
> ivtv0: Registered device video33 for encoder YUV (2048 kB)
> ivtv0: Registered device vbi1 for encoder VBI (1024 kB)
> ivtv0: Registered device video25 for encoder PCM (320 kB)
> ivtv0: Registered device radio1 for encoder radio
> ivtv0: Registered device video17 for decoder MPG (1024 kB)
> ivtv0: Registered device vbi9 for decoder VBI (64 kB)
> ivtv0: Registered device vbi17 for decoder VOUT
> ivtv0: Registered device video49 for decoder YUV (1024 kB)
> ivtv0: Initialized card #0: Hauppauge WinTV PVR-350
> ivtv:  End initialization
>
> Jose Alberto
>
> --
> video4linux-list mailing list
> Unsubscribe
> mailto:video4linux-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list





More information about the ivtv-devel mailing list