summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-23 06:50:09 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-23 06:50:09 +0000
commitd149837768a0043157da6e1e09a30cb52c314e48 (patch)
tree50520412362c194fba8444ba2043ba9a6a71ee3a /linux
parent446536a00d50da5b7cb82f62560e7c63ef295557 (diff)
downloadmediapointer-dvb-s2-d149837768a0043157da6e1e09a30cb52c314e48.tar.gz
mediapointer-dvb-s2-d149837768a0043157da6e1e09a30cb52c314e48.tar.bz2
Fix I2C bridge error in zl10353
From: Dmitri Belimov <d.belimov@gmail.com> Fix I2C bridge error in zl10353 if no tunner attached to internal I2C bus of zl10353 chip. When set enable bridge from internal I2C bus to the main I2C bus (saa7134) the main I2C bus stopped very hardly. No any communication. In our next board we solder additional resistors to internal I2C bus. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/zl10353.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/zl10353.c b/linux/drivers/media/dvb/frontends/zl10353.c
index 2e449a457..be5d7ef7c 100644
--- a/linux/drivers/media/dvb/frontends/zl10353.c
+++ b/linux/drivers/media/dvb/frontends/zl10353.c
@@ -598,8 +598,15 @@ static int zl10353_init(struct dvb_frontend *fe)
static int zl10353_i2c_gate_ctrl(struct dvb_frontend* fe, int enable)
{
+ struct zl10353_state *state = fe->demodulator_priv;
u8 val = 0x0a;
+ if (state->config.no_tuner) {
+ /* No tuner attached to the internal I2C bus */
+ /* If set enable I2C bridge, the main I2C bus stopped hardly */
+ return 0;
+ }
+
if (enable)
val |= 0x10;