Hello Peter,
So the question is: why is the transfer failing for the first time, but suceeds for the second time?Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_transfer(): msg:1/2 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_transfer(): msg:2/2 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): before: 0xd005b5e8 (status: 0x00000100), 0 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): after: 0xd005b5e8 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): before: 0xc10000d0 (status: 0x00000100), 0 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): error in address phase. Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_transfer(): error while sending message(s). starting again. Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_reset(): busy_state detected. Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_reset(): error_state detected. status:0x00000142 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): before: 0xd005b5e8 (status: 0x00000100), 0 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): after: 0xd005b5e8 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): before: 0xc10000d0 (status: 0x00000100), 0 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_writeout(): after: 0xc188b5d0 Jan 12 10:53:11 mozart kernel: saa7146: saa7146_i2c_transfer(): transmission successful. (msg:2). Jan 12 10:53:11 mozart kernel: drivers/media/dvb/frontends/stv0299.c: setup for tuner SU1278/SH Jan 12 10:53:11 mozart kernel: DVB: registering frontend 0:0 (STV0299/TSA5059 based)...
Is the i2c speed too high? It's the same as for the DVB driver.
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.
Is there a special programm of the saa7146 needed? (gpio pins perhaps?)
And your driver works with the DVB driver? Can you please load the module withPeter
> insmod av7110/dvb-ttpci.o av7110_debug=255 saa7146_debug=255
and send the trace? Perhaps we can see what's happening for the DVB driver...
CU
Michael.
--
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as subject.
