]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] tua9001: enter full power save on attach
authorAntti Palosaari <crope@iki.fi>
Mon, 17 Sep 2012 01:26:55 +0000 (22:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 07:26:07 +0000 (04:26 -0300)
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>
drivers/media/tuners/tua9001.c

index e6394fc884b00913e2a682a0998d5053f80570bc..389668474070cb045ceeabbf67c856a0d6980126 100644 (file)
@@ -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,