Re: Re: Mantis VP-1027/VP-1033/VP-1034/VP-2033/VP-3033

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Hi

Now I can see a continuous picture, even though it is bad!

I found out the problem:
mmwrite(MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR);
can be replaced with
mmwrite(MANTIS_GPIF_RDWRN | 0x3000, MANTIS_GPIF_ADDR);

This is because the ealier value of MANTIS_GPIF_ADDR is 0x3000. With keeping 0x3000 we won't disable i2c. With this fix I can see now a continuous bad TV picture with kaffeine.

It might be, that the fix should be modified to be something like:

if (fe->ops.i2c_gate_ctrl)
               fe->ops.i2c_gate_ctrl(fe,1);
So the function i2c_gate_ctrl(fe,1) would set bits 0x3000 on the begin of cu1216_set_param().

Regards,
Marko Ristola

Pauli Borodulin wrote:
Pauli Borodulin wrote:
[...]
The problem is: In the beginning the driver is able to communicate with
cu1216 using I2C. For example, the driver is able to check that the
demodulator is there using cu1216_readreg(). As soon as DMA is started (you
get "mantis start feed & dma" in your kernel log), all i2c reading and
writing fails. Every read returns 0. I have not yet found out why. You can
verify this by adding
[...]

I made a quick and dirty hack and commented out the contents of the
functions mantis_dma.c/mantis_dma_start() and mantis_dma.c/mantis_dma_stop()
and now I2C seems to works ok. This will totally break the driver, so it's
not a fix. I did it because I was curios whether it would make any
difference, and it did. I then tried uncommenting lines in
mantis_dma_start() one by one starting from the beginning, and found out
that the line

    mmwrite(MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR);

was the one that triggered the bug. I have no knowledge on the hardware in
question (I don't have any datasheets etc.), so I have no idea what I should
do next. There's also some bugs in the cu1216 driver, but it's no use to
debug them before the DMA(?) problem is fixed.


Br,
------------------------------------------------------------------------

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux