On Wed, 2008-07-02 at 17:17 +0200, Levente Novák wrote:

> After having redone the test (as root using the bleeding edge driver),
> it still fails to produce anything useful: tons of
> 
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x0
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x1
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x2
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x100
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x101
> ioctl: VIDIOC_DBG_G_REGISTER failed for 0x102
> ...
> 
> and so on. Like if it was unable to dump the registers.

The ioctl debug code in the ivtv module and the cx28540 module to get
and set registers is wrapped in the following

        #ifdef CONFIG_VIDEO_ADV_DEBUG
        ...
        #endif

in a few places.  That looks like a kernel config option that needs to
be turned on when you compile the drivers to enable getting and setting
the registers.  Maybe that's not set.


My current thinking is that the VCR OSD signal level may actually be too
low into the CX28543 chip, causing sync level problems.  My though was
to turn on the +12 dB gain via the v4l2-dbg command to test things. If
v4l2-dbg is not going to work for you, you can add a line of code to 

linux/drivers/media/video/cx28540/cx28540-core.c:cx25840_initialize()

to do something like

        cx25840_and_or(client, 0x104, 0xF8, 0x07);

before the call to set_input().

Bits 2, 1, and 0 turn on the +12 dB amplification for Analog Front End
channels 3, 2, and 1 respectively.  You probably would only need to turn
on the amplification for AFE channel 1, but the command I gave you turns
it on for all three (0x07), just in case.



> BTW the documentation for ivtv says on the Wiki page that bttv should
> also be compiled into the kernel or as a module, but I deselected it
> from my self-compiled kernel (it didn't seem to do anything). Is it
> really needed/useful for ivtv? If so, why?

I wouldn't think so.  Maybe there's some old boards that need it.  I'm
not an expert on the really old PVR cards.



I won't be answering email again until Monday or Tuesday, so good luck.

Regards,
Andy



_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to