summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/tua9001.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-09-17 03:26:55 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-27 09:26:07 +0200
commit69504793dfb42bdd0e647c948047b71e9c3307f2 (patch)
tree45a5520fcfe511ec8fe10d0bb59f1406c8457e9d /drivers/media/tuners/tua9001.c
parent[media] media: sh-vou: fix compilation breakage (diff)
downloadlinux-69504793dfb42bdd0e647c948047b71e9c3307f2.tar.xz
linux-69504793dfb42bdd0e647c948047b71e9c3307f2.zip
[media] tua9001: enter full power save on attach
Disable RXEN and enable RESETN pins on attach to ensure chip is totally powered down after attach. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/tua9001.c')
-rw-r--r--drivers/media/tuners/tua9001.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/tuners/tua9001.c b/drivers/media/tuners/tua9001.c
index e6394fc884b0..389668474070 100644
--- a/drivers/media/tuners/tua9001.c
+++ b/drivers/media/tuners/tua9001.c
@@ -261,6 +261,16 @@ struct dvb_frontend *tua9001_attach(struct dvb_frontend *fe,
TUA9001_CMD_CEN, 1);
if (ret < 0)
goto err;
+
+ ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
+ TUA9001_CMD_RXEN, 0);
+ if (ret < 0)
+ goto err;
+
+ ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
+ TUA9001_CMD_RESETN, 1);
+ if (ret < 0)
+ goto err;
}
dev_info(&priv->i2c->dev,