aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2012-07-26 12:34:37 (GMT)
committerMichael Krufky <mkrufky@linuxtv.org>2012-07-26 12:34:37 (GMT)
commit782b28e20d3b253d317cc71879639bf3c108b200 (patch)
treeb38f78e43faf58a96e4a0d3c41d6ea7f57477ab6
parent0c7d5a6da75caecc677be1fda207b7578936770d (diff)
tda18271: enter low-power standby mode at the end of tda18271_attach()
Ensure that unnecessary features are powered down at the end of the attach() function. If the configuration requires the loop thru or xtout features, they will remain enabled. Thanks to Antti Palosaari for noticing the additional power consumption. Cc: Antti Palosaari <crope@iki.fi> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--drivers/media/common/tuners/tda18271-fe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c
index 2e67f44..5f5d866 100644
--- a/drivers/media/common/tuners/tda18271-fe.c
+++ b/drivers/media/common/tuners/tda18271-fe.c
@@ -1323,6 +1323,9 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
if (tda18271_debug & (DBG_MAP | DBG_ADV))
tda18271_dump_std_map(fe);
+ ret = tda18271_sleep(fe);
+ tda_fail(ret);
+
return fe;
fail:
mutex_unlock(&tda18271_list_mutex);

Privacy Policy