Skip to content

Commit

Permalink
[media] tda18271: enter low-power standby mode at the end of tda18271…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent bfd063c commit 185e476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 185e476

Please sign in to comment.