aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2012-09-29 15:05:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-01 16:25:39 -0400
commit185e4768b864b3b65c5d2cdca9be556d493f15e1 (patch)
tree214900ab611db7138c1da376ff77e28988392209 /drivers/media
parentbfd063cebb75d3305089e9eeedbd25469d3dc1e6 (diff)
[media] 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. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/tuners/tda18271-fe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/tuners/tda18271-fe.c b/drivers/media/tuners/tda18271-fe.c
index 2e67f4459904..5f5d866d3fc9 100644
--- a/drivers/media/tuners/tda18271-fe.c
+++ b/drivers/media/tuners/tda18271-fe.c
@@ -1323,6 +1323,9 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
1323 if (tda18271_debug & (DBG_MAP | DBG_ADV)) 1323 if (tda18271_debug & (DBG_MAP | DBG_ADV))
1324 tda18271_dump_std_map(fe); 1324 tda18271_dump_std_map(fe);
1325 1325
1326 ret = tda18271_sleep(fe);
1327 tda_fail(ret);
1328
1326 return fe; 1329 return fe;
1327fail: 1330fail:
1328 mutex_unlock(&tda18271_list_mutex); 1331 mutex_unlock(&tda18271_list_mutex);