summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
authorOliver Endriss <devnull@localhost>2003-11-25 19:13:22 +0000
committerOliver Endriss <devnull@localhost>2003-11-25 19:13:22 +0000
commit03a665292520b7d6e6373abb7166d8e9f80b960f (patch)
treebb4a0b018733a05083cd695e076d54105400c642 /linux/drivers/media/common
parentea594f01cb39d739763ccc2f386f9831323ec116 (diff)
downloadmediapointer-dvb-s2-03a665292520b7d6e6373abb7166d8e9f80b960f.tar.gz
mediapointer-dvb-s2-03a665292520b7d6e6373abb7166d8e9f80b960f.tar.bz2
introduced flag SAA7146_I2C_SHORT_DELAY to speed up I2C access
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r--linux/drivers/media/common/saa7146_i2c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c
index 06f56531a..5db9ef621 100644
--- a/linux/drivers/media/common/saa7146_i2c.c
+++ b/linux/drivers/media/common/saa7146_i2c.c
@@ -301,8 +301,9 @@ int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg msgs[], i
goto out;
}
- if (count > 3) short_delay = 1;
-
+ if ( count > 3 || 0 != (SAA7146_I2C_SHORT_DELAY & dev->ext->flags) )
+ short_delay = 1;
+
do {
/* reset the i2c-device if necessary */
err = saa7146_i2c_reset(dev);