Skip to content

Commit

Permalink
[media] tua9001: enter full power save on attach
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent b6ba418 commit 6950479
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/media/tuners/tua9001.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6950479

Please sign in to comment.