diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-16 06:39:50 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-16 06:39:50 +0000 |
commit | 3d34dfb02c8a0f924d78122ea83aa239a1063151 (patch) | |
tree | 675ee51066cdc70b5d2fb68f4faf286963973e9f /linux | |
parent | 6a99ec7d1fca2090046e7671acb7df6b19707989 (diff) | |
download | mediapointer-dvb-s2-3d34dfb02c8a0f924d78122ea83aa239a1063151.tar.gz mediapointer-dvb-s2-3d34dfb02c8a0f924d78122ea83aa239a1063151.tar.bz2 |
Put s5h1411 into low power mode at end of attach() call
From: Devin Heitmueller <devin.heitmueller@gmail.com>
Place the s5h1411 into low power mode until first use (to handle the case where
the user plugs in the device and then doesn't use it for a while). On the
Pinnacle 801e, this brings the power usage from 126ma down to 82ma.
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/s5h1411.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/s5h1411.c b/linux/drivers/media/dvb/frontends/s5h1411.c index 40644aacf..66e2dd6d6 100644 --- a/linux/drivers/media/dvb/frontends/s5h1411.c +++ b/linux/drivers/media/dvb/frontends/s5h1411.c @@ -874,6 +874,9 @@ struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config, /* Note: Leaving the I2C gate open here. */ s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf5, 1); + /* Put the device into low-power mode until first use */ + s5h1411_set_powerstate(&state->frontend, 1); + return &state->frontend; error: |