summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_i2c.c
AgeCommit message (Collapse)Author
2003-01-13add a timeout to saa7146_i2c_writeout() to prevent endless loopJohannes Stezenbach
2003-01-10- Fix broken i2c irq transfer, due to Holger's changesMichael Hunold
- clean up the mxb driver and it's helper modules (rename the structures, add GPL license to the appropriate files, c99 initialisers) - fix 2.5.55 "module insertion causes bug in kobject.o" issue - fixed missing exported symbols in budget-core
2003-01-09return meaningful error valuesHolger Waechtler
2003-01-05After all, using the i2c irq wasn't a good idea. After long hours ofMichael Hunold
testing why the !#+?ยง"1 TS stream stops and "debi oops" messages appear, I found out that this is caused by the i2c irq handler. Don't ask me why, but returning to the old code solved this mystery. Apparently, the additional i2c interrupts caused some timing problems or the saa7146 is simply too f*cked up. I left the code in however, it works for the analog MXB driver, so the extension should decide if it should be used. Removed some additional debug messages, which were commented out anyway.
2002-12-28- added timeout handling for i2c_writeout(); it seems that theJohannes Stezenbach
SAA7146 does not generate an I2C error irq when we are probing for a non-existant device (so there's neither an ACK nor a NACK at the end of the address phase) - don't request the I2C error irq anymore, since it isn't currently being handled; we just wait for the /BUSY irq or timeout; if there were errors during transmission they will still be detected from the status register after the /BUSY irq - added some more debug to hw_interrupt() TODO: I think SAA7146_I2C_TIMEOUT is too large; 10ms should do?
2002-12-25As promised, I changed the "retry-loop" to the style of the "old" saa7146Michael Hunold
driver. I doesn't do any harm for my analog drivers and apparently fixes some bugs related to some frontends/tuners, who expect certain start/stop cycles. Please check if these tuners work now...
2002-12-22Changed i2c_writeout() and the irq handler to use a waitqueueMichael Hunold
instead of busy waiting for an i2c transaction to finish. Left the old method in there. if you need it (or if i screwed up), set "use_i2c_irq" to zero in saa7146_i2c.c to get the old behaviour.
2002-12-20Removed the dependecy to i2c-core from saa7146 and av7110,Michael Hunold
changed mxb to (un)register the i2c adapter by itself
2002-12-20More compile fixes to allow a flawless static build, changed theMichael Hunold
READMEs accordingly, compile fixes for the mxb driver.
2002-12-17Misc. build fixes (beautification, remove some unnecessary printks)Michael Hunold
for the new saa7146 core, the mxb driver and the saa7111 driver.
2002-12-17Add the new saa7146 driver core to media/common.Michael Hunold