]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] tda18271: enter low-power standby mode at the end of tda18271_attach()
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 29 Sep 2012 19:05:26 +0000 (16:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 20:25:39 +0000 (17:25 -0300)
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>
drivers/media/tuners/tda18271-fe.c

index 2e67f44599045e175ba6f0881bbb56bb6c11c578..5f5d866d3fc9c399e1c67b7743542c8b790c77cf 100644 (file)
@@ -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);