diff options
author | Antti Palosaari <crope@iki.fi> | 2012-09-16 21:26:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-27 03:27:30 -0400 |
commit | 12897dc37648ac48b2aa2b3bb2d7df69625b6de5 (patch) | |
tree | e596d5dfcc15c5c8710d3737fdd9ecd4adb4c4b3 | |
parent | 51639be3b39b058d9f80cfd68c52887c7b96eb41 (diff) |
[media] af9033: sleep on attach
This reduces power consumption 10mA.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb-frontends/af9033.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 0979ada2a20a..56e9611c0abb 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c | |||
@@ -909,6 +909,15 @@ struct dvb_frontend *af9033_attach(const struct af9033_config *config, | |||
909 | "OFDM=%d.%d.%d.%d\n", KBUILD_MODNAME, buf[0], buf[1], | 909 | "OFDM=%d.%d.%d.%d\n", KBUILD_MODNAME, buf[0], buf[1], |
910 | buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); | 910 | buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); |
911 | 911 | ||
912 | /* sleep */ | ||
913 | ret = af9033_wr_reg(state, 0x80004c, 1); | ||
914 | if (ret < 0) | ||
915 | goto err; | ||
916 | |||
917 | ret = af9033_wr_reg(state, 0x800000, 0); | ||
918 | if (ret < 0) | ||
919 | goto err; | ||
920 | |||
912 | /* configure internal TS mode */ | 921 | /* configure internal TS mode */ |
913 | switch (state->cfg.ts_mode) { | 922 | switch (state->cfg.ts_mode) { |
914 | case AF9033_TS_MODE_PARALLEL: | 923 | case AF9033_TS_MODE_PARALLEL: |