Skip to contentSkip to conversation

Bug in HVR1300. Found part of a patch, if reverted

DISCUSSION Mike 2 participants 3 messages May 12, 2011 – Jul 9, 2011 Media (V4L/DVB)

lore
Share & tools
lore

Mike

author
#0 lore raw

Hi there

in the latest kernel (and all those since when the patch was written) this patch is still required for the HVR-1300 to work, any chance of it getting incorporated?

thanks
Mike

Quoted 43 lines

Hi list,

there seems to be a bug in cx88 (HVR1300) that is responsible for not switching channels, and not being able to scan.
Complete description can be found on launchpad:

https://bugs.launchpad.net/mythtv/+bug/439163 (starting from comment #16)

Anyway, i digged it down to this patch:
http://www.mail-archive.com/linuxtv-commits@xxxxxxxxxxx/msg02195.html

When reverting the following part of the patch it starts working again:

snip----------

diff -r 576096447a45 -r d2eedb425718 linux/drivers/media/video/cx88/cx88-dvb.c
- --- a/linux/drivers/media/video/cx88/cx88-dvb.c Thu Dec 18 07:28:18 2008
- -0200
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c Thu Dec 18 07:28:35 2008
- -0200

(quoted diff) +0 -1
@@ -1135,40 +1135,44 @@ static int cx8802_dvb_advise_acquire(str
 * on the bus. Take the bus from the cx23416 and enable the
 * cx22702 demod
 */
- - cx_set(MO_GP0_IO, 0x00000080); /* cx22702 out of reset and

enable */
+ /* Toggle reset on cx22702 leaving i2c active */
+ cx_set(MO_GP0_IO, 0x00000080);
+ udelay(1000);
+ cx_clear(MO_GP0_IO, 0x00000080);
+ udelay(50);
+ cx_set(MO_GP0_IO, 0x00000080);
+ udelay(1000);
+ /* enable the cx22702 pins */ cx_clear(MO_GP0_IO, 0x00000004); udelay(1000);
break;
- ---------snip

Regards

Frank Sagurna

#1 lore raw
Quoted 8 lines · Mike

Hi there

in the latest kernel (and all those since when the patch was written) this patch is still required for the HVR-1300 to work, any chance of it getting incorporated?

thanks
Mike

Hello Mike,

Please try out the following patch which has been submitted upstream, which should fix the actual underlying problem (the patch that has been circulating in Launchpad 439163 doesn't fix the *actual* issue).

https://launchpadlibrarian.net/74557311/frontend_dvb_init.patch

The above patch has been submitted for upstream inclusion, so feedback from users would be useful.

Thanks,

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
author
#2 lore raw
Quoted 14 lines · Mike
Quoted 8 lines

Hi there

in the latest kernel (and all those since when the patch was written) this patch is still required for the HVR-1300 to work, any chance of it getting incorporated?

thanks
Mike

Hello Mike,

Please try out the following patch which has been submitted upstream, which should fix the actual underlying problem (the patch that has been circulating in Launchpad 439163 doesn't fix the *actual* issue).

Quoted 9 lines

https://launchpadlibrarian.net/74557311/frontend_dvb_init.patch

The above patch has been submitted for upstream inclusion, so feedback from users would be useful.

Thanks,

Devin

Hi Devin,

thankyou very much for investigating and patching.

unfortunately for me, my system (ubuntu 10.04 with 2.6.32-32) will not boot to try it...

After downloading source via "git clone git://linuxtv.org/media_build.git" and successfully patching, compiling and installing the modules using a text terminal, i reboot and before i get to X my system hangs about 30 seconds into the boot process right after a bunch of messages warning me about using backported media build on an old kernel ("don't use it for production" etc etc).

i would be more than happy to test your patch but i'm sorry i'm not sure what to do about that booting problem. i think i will need to try to find a way to re-install the standard ubuntu media modules into my 2.6.32-32 module directories (whilst running a different kernel) to even allow my system to boot on 2.6.32-32 !!

Mike