Hi Andy,

Back in July, we were discussing about a problem with a PVR-150 MCE
concerning captures from the OSD of a VCR:

On Sun, 2008-06-29 at 16:11 -0400, Andy Walls wrote:
> On Sun, 2008-06-29 at 15:48 +0200, Levente Novák wrote:
> > On Sat, 2008-06-28 at 19:07 -0400, Andy Walls wrote:
> > > On Fri, 2008-06-13 at 09:18 +0200, Levente Novák wrote: 
> > > > I have the following problem with my Hauppauge PVR-150 (ivtv from kernel
> > > > 2.6.25) and Composite 1 as input: when a VCR is hooked onto the input
> > > > and is switched on (but play is not yet started), instead of a static
> > > > blue screen with the usual VCR OSD text, I see a picture which resembles
> > > > to a TV station which the frequency is not exactly locked to. In other
> > > > words, the blue screen with OSD is there, but there are a multitude of
> > > > thin horizontal coloured lines,
> > > 
> > > What color are the lines?  Do they seem to be every other line (i.e. all
> > > the lines in either the odd or even field)?
> > > 
> > 
> > The color is mostly red (or reddish), and the positions of the lines
> > vary with every frame (the lines do not have a static vertical position
> > but are rolling back and forth and larger darker bands are also
> > superponating onto these lines). I will send you a 2-seconds capture in
> > private mail to show it.
> > 
> > > > the picture flickers, and is constantly
> > > > misaligned horizontally.
> 
> OK.  The video you sent clearly shows that the cx2584x chip locks onto
> the vertical sync, but that it isn't locking onto the horizontal sync
> pulses.
> 
> Since the color burst happens in a short window of time after each
> horizontal sync pulse, if you don't lock to the horizontal sync, then
> you won't phase lock to the color burst either.  The colors being wrong
> doesn't matter as that's just a symptom of not maintaining horizontal
> sync.
> 

[snip...]

> I'm going to assume your VCR doesn't put out PAL-N compatible CVBS but a
> but PAL-BDGHI compatible CVBS.
> 
> If the OSD from that particular VCR is really that important to you,
> there are some things that could be tried by tweaking the CX25843
> registers, if they aren't set already (turning on a +12 dB gain, forcing
> PAL-BDGHI over PAL-N, etc.).  It would be helpful to see what the
> registers are set at when you have the OSD display problem and when you
> are playing a tape.
> 
> As root, for those two scenarios, if you provide the output of:
> 
> # v4l2-dbg -R type=i2cdrv,chip=cx25840
> 
> This will let me see how the cx25843 is set and what it's status is
> (i.e. does it have horizontal sync).
> 
> I think it will be a matter of setting amplifier gain and clamping
> settings.

At that time, my kernel was compiled without kernel debug info so
v4l2-debug was unable to dump the registers. As it was just before my
holidays, later I completely forgot the issue since I rarely use the
composite input.

Last sunday (faced again with the problem), I compiled the new kernel
with debug on, and finally dumped the registers of the cx25840 as you
will find attached (static.dump for the OSD without tape played and
dynamic.dump when playing back a tape).

There are obviously lots of differences between them, but I have no
knowledge of the register structure of the chip. Could you have a look
at these files, maybe it will give you an idea about the nature of the
problem.

Thanks for your help and my excuses for the really huge delay in my
reply.

Levente

ioctl: VIDIOC_DBG_G_REGISTER

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000100: 33 84 00 f2 80 dd 04 07 0f 04 0a 18 fe e2 2b 00 
00000110: e5 d6 98 00 00 8c 07 00 02 00 00 00 00 00 00 00 
00000120: 00 00 01 10 87 b6 30 50 f8 93 11 a0 ff 5f 20 11 
00000130: 00 00 00 00 02 18 0a 00 00 00 00 00 00 00 36 00 
00000140: 04 30 00 00 10 32 54 76 00 00 00 00 00 00 00 00 
00000150: 00 00 00 00 00 00 00 00 00 e1 86 10 00 e1 86 06 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000200: 00 00 00 00 ff ff 00 00 ff ff 00 00 00 00 00 00 
00000210: 20 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00 
00000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000400: 04 e0 04 00 2e 25 10 00 00 80 00 00 00 94 7d 00 
00000410: ff 07 ff 7f 00 80 00 00 00 00 00 00 00 00 08 00 
00000420: 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000430: 00 00 00 00 00 00 00 00 00 00 00 00 06 00 f0 ff 
00000440: a9 0b 00 00 00 00 00 00 00 00 00 00 70 99 10 2c 
00000450: 01 00 00 03 0d c4 08 26 77 88 00 54 00 00 00 00 
00000460: 02 14 0a 34 6e ca 36 06 e7 00 00 08 20 f6 84 02 
00000470: 84 00 2d 5d 24 40 24 28 1f 02 90 20 63 82 0a 01 
00000480: df 02 00 00 00 00 e0 45 19 42 06 f8 dc 40 10 00 
00000490: 8a 02 3f cd 00 03 1f 16 22 00 00 00 14 00 50 11 
000004a0: 0f 02 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 
000004b0: 00 00 00 00 03 00 00 00 01 00 00 00 00 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000800: fe 3f ff 03 00 03 8d 00 ff 04 14 10 00 00 1c e0 
00000810: 02 01 ff 9e 05 09 0e 20 c0 31 00 00 50 00 64 57 
00000820: 3d 5b ce 1b 45 e5 c5 e5 a0 01 05 04 e9 01 ed 03 
00000830: 11 40 0d 03 13 63 01 c0 76 04 ed 03 11 40 0d 03 
00000840: 8b ff 01 c0 00 00 ed 03 11 80 84 1e c2 6f 3c c0 
00000850: 6b 53 42 01 31 00 00 00 00 00 00 80 3e 70 00 80 
00000860: b8 01 ca 00 00 00 00 01 00 00 00 00 00 00 00 00 
00000870: 00 00 00 00 00 00 00 00 7e 05 7e 05 88 45 a2 06 
00000880: da 07 3c 0b e1 ca 03 40 30 70 30 70 1e 02 6c 00 
00000890: 24 f4 03 40 30 70 30 70 bd 0b bd 01 59 01 19 0b 
000008a0: 78 06 d6 12 87 51 00 00 de 53 03 00 b1 01 00 00 
000008b0: d0 f3 00 00 00 00 00 00 c8 00 ff 0f 1f 00 0f 00 
000008c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 0f 
000008d0: 12 10 01 01 24 00 ff 7f 00 18 18 18 a3 33 ff 7f 
000008e0: 70 38 06 03 24 00 ff 7f 00 18 18 18 a3 33 ff 7f 
000008f0: fc 0a 52 bb 88 88 55 55 00 80 01 08 7c 86 01 08 
00000900: 55 55 01 08 55 55 01 08 53 04 01 08 55 55 01 08 
00000910: c9 00 b0 12 a0 00 00 00 a0 01 00 00 00 00 00 00 
00000920: 00 06 82 12 05 00 00 00 00 00 00 00 00 00 00 00 
00000930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000950: 00 00 00 00 00 00 00 07 00 08 02 ff 00 00 00 00 
00000960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000980: 00 00 00 00 00 00 00 00 00 3f 00 3f 00 3f 00 3f 
00000990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
000009a0: 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 80 
ioctl: VIDIOC_DBG_G_REGISTER

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000100: 33 84 00 f2 80 dd 04 07 0f 04 0a 18 fe e2 2b 00 
00000110: e5 d6 98 00 00 8c 07 00 02 00 00 00 00 00 00 00 
00000120: 00 00 01 10 87 b6 30 50 f8 93 11 a0 ff 5f 20 11 
00000130: 00 00 00 00 02 18 0a 00 00 00 00 00 00 00 36 00 
00000140: 04 30 00 00 10 32 54 76 00 00 00 00 00 00 00 00 
00000150: 00 00 00 00 00 00 00 00 00 e1 86 10 00 e1 86 06 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000200: 00 00 00 00 ff ff 00 00 ff ff 00 00 00 00 00 00 
00000210: 20 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00 
00000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000400: 04 e0 04 00 2e 25 10 00 00 80 00 00 60 84 75 00 
00000410: ff 07 ff 7f 00 80 00 00 00 00 00 00 00 00 08 00 
00000420: 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000430: 00 00 00 00 00 00 00 00 00 00 00 00 06 00 f0 ff 
00000440: a9 0b 00 00 00 00 00 00 00 00 00 00 70 99 10 2c 
00000450: 01 00 00 03 0d c4 08 26 77 88 00 54 00 00 00 00 
00000460: 02 14 0a 34 6e ca 36 06 e7 00 00 08 20 f6 84 02 
00000470: 84 00 2d 5d 24 40 24 28 1f 02 90 20 63 82 0a 01 
00000480: af 03 00 00 00 00 e0 45 26 0d 04 f8 dc 40 10 00 
00000490: 8a 02 3f cd 00 03 1f 16 22 00 00 00 14 00 50 11 
000004a0: 0f 02 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 
000004b0: 00 00 00 00 03 00 00 00 01 00 00 00 00 00 00 00 

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000800: fe 3f ff 03 00 03 8d 00 ff 04 14 10 00 00 1c e0 
00000810: 02 01 ff 9e 05 09 0e 20 c0 31 00 00 50 00 64 57 
00000820: 3d 5b ce 1b 45 e5 c5 e5 a0 01 05 04 e9 01 ed 03 
00000830: 11 40 0d 03 e6 a5 01 c0 76 04 ed 03 11 40 0d 03 
00000840: 25 12 02 c0 00 00 ed 03 11 80 84 1e ff d9 3c c0 
00000850: 6b 53 42 01 31 00 00 00 00 00 00 80 3e 70 00 80 
00000860: b8 01 ca 00 00 00 00 01 00 00 00 00 00 00 00 00 
00000870: 00 00 00 00 00 00 00 00 7e 05 7e 05 88 45 a2 06 
00000880: da 07 3c 0b e1 ca 03 40 30 70 30 70 2c 02 6e 00 
00000890: 24 f4 03 40 30 70 30 70 ad 0c e1 01 6e 01 05 02 
000008a0: 78 06 d6 12 87 51 00 00 de 53 03 00 b1 01 00 00 
000008b0: d0 f3 00 00 00 00 00 00 c8 00 ff 0f 1f 00 0f 00 
000008c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 0f 
000008d0: 12 10 01 01 24 00 ff 7f 00 18 18 18 a3 33 ff 7f 
000008e0: 70 38 06 03 24 00 ff 7f 00 18 18 18 a3 33 ff 7f 
000008f0: fc 0a 52 bb 88 88 55 55 00 80 01 08 7c 86 01 08 
00000900: 55 55 01 08 55 55 01 08 53 04 01 08 55 55 01 08 
00000910: c9 00 b0 12 a0 00 00 00 a0 01 00 00 00 00 00 00 
00000920: 00 06 82 12 05 00 00 00 00 00 00 00 00 00 00 00 
00000930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000950: 00 00 00 00 00 00 00 07 00 08 02 ff 00 00 00 00 
00000960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00000980: 00 00 00 00 00 00 00 00 00 3f 00 3f 00 3f 00 3f 
00000990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
000009a0: 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 80 
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to