d9e54324d0
The code the i2c transactions was leftover from the old V4L-based ATSC driver. It did too little with too much code. It is re-written to remove unnecessary parameters and be more efficient. A demod register can now be read with one function call, instead of repeating a dozen line block of code each time. There were msleep()'s, which appear to be unnecessary, spread around all the I2C transactions. These have been removed. Reading SNR used to take about 130 ms, now it's down to 1.8 ms. Reads from the demodulator's registers do not return correct results sometimes. Adding or removing the delays in the I2C transactions did not appear to effect the probability of failure. If anything, the transactions without delays were less likely to fail, but since far more transactions could be made per second the number of failures per hour was greater. To increase reliability, the SNR and get_params functions will now retry once if they get bad data back. This appears to have reduced the probability of failure to effectively zero. Some error messages are cleaned up or given KERN_* levels when they were missing. or51132_setmode() wasn't returning correct error codes, which is fixed as well. CC: Rusty Scott <rustys@ieee.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> |
||
---|---|---|
.. | ||
bcm3510_priv.h | ||
bcm3510.c | ||
bcm3510.h | ||
bsbe1.h | ||
bsru6.h | ||
cx22700.c | ||
cx22700.h | ||
cx22702.c | ||
cx22702.h | ||
cx24110.c | ||
cx24110.h | ||
cx24123.c | ||
cx24123.h | ||
dib3000.h | ||
dib3000mb_priv.h | ||
dib3000mb.c | ||
dib3000mc.c | ||
dib3000mc.h | ||
dib7000m.c | ||
dib7000m.h | ||
dib7000p.c | ||
dib7000p.h | ||
dibx000_common.c | ||
dibx000_common.h | ||
dvb_dummy_fe.c | ||
dvb_dummy_fe.h | ||
dvb-pll.c | ||
dvb-pll.h | ||
isl6421.c | ||
isl6421.h | ||
Kconfig | ||
l64781.c | ||
l64781.h | ||
lgdt330x_priv.h | ||
lgdt330x.c | ||
lgdt330x.h | ||
lnbp21.c | ||
lnbp21.h | ||
Makefile | ||
mt312_priv.h | ||
mt312.c | ||
mt312.h | ||
mt352_priv.h | ||
mt352.c | ||
mt352.h | ||
mt2060_priv.h | ||
mt2060.c | ||
mt2060.h | ||
nxt200x.c | ||
nxt200x.h | ||
nxt6000_priv.h | ||
nxt6000.c | ||
nxt6000.h | ||
or51132.c | ||
or51132.h | ||
or51211.c | ||
or51211.h | ||
qt1010_priv.h | ||
qt1010.c | ||
qt1010.h | ||
s5h1420.c | ||
s5h1420.h | ||
sp887x.c | ||
sp887x.h | ||
sp8870.c | ||
sp8870.h | ||
stv0297.c | ||
stv0297.h | ||
stv0299.c | ||
stv0299.h | ||
tda826x.c | ||
tda826x.h | ||
tda827x.c | ||
tda827x.h | ||
tda1004x.c | ||
tda1004x.h | ||
tda8083.c | ||
tda8083.h | ||
tda10021.c | ||
tda10021.h | ||
tda10086.c | ||
tda10086.h | ||
tua6100.c | ||
tua6100.h | ||
ves1x93.c | ||
ves1x93.h | ||
ves1820.c | ||
ves1820.h | ||
zl10353_priv.h | ||
zl10353.c | ||
zl10353.h |