Mailing List archive

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

[linux-dvb] Re: i2c problems with dvb-kernel



Hello Michael,

On Mon, Jan 13, 2003 at 07:07:45PM +0100, Michael Hunold wrote:

> Is the i2c speed too high? It's the same as for the DVB driver.
No. I've tested some speeds.

> Did I change something essential in the i2c logic? No, I changed the new 
> driver to work just like the old driver did. It's clearly an address 
> error there, so there is something screwed up.

I have changed the code to access the PLL chip in the stv0299 driver
like this (the first i2c message activates the I2C repeater of the
STV0299, the second i2c message goes through the repeater to
the TSA5059):

Before:

struct i2c_msg msg [] = {{ addr: 0x68, flags: 0, buf: rpt, len: 2 },
		         { addr: 0x60, flags: I2C_M_RD, buf: stat, len: 1 }};
	
if (i2c->xfer(i2c, msg1, 2) == 2)

After:

struct i2c_msg msg1 [] = {{ addr: 0x68, flags: 0, buf: rpt, len: 2 }};
struct i2c_msg msg2 [] = {{ addr: 0x60, flags: I2C_M_RD, buf: stat, len: 1 }};

if (i2c->xfer(i2c, msg1, 1) == 1)
   if (i2c->xfer(i2c, msg2, 1) == 1)


The address error occurs only if I load the modules for the first time.
After reloading the dvb-ttpci-budget module it works (at this time
for the low band only, the 22KHz generation doesn't work).

Peter



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index