[media] tda18271: make 'low-power standby mode after attach' multi-instance safe
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 29 Sep 2012 19:06:23 +0000 (16:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 20:26:06 +0000 (17:26 -0300)
commit4cfae67515ed4c7bf5bb94fde20130153936f465
tree0c2c527bea7a30d182f416f0ffd02d8047a3cc92
parent185e4768b864b3b65c5d2cdca9be556d493f15e1
[media] tda18271: make 'low-power standby mode after attach' multi-instance safe

Ensure that unnecessary features are powered down at the end of the
attach() function on attach of the tuner's first instance. If the
configuration requires the loop thru or xtout features, they will
remain enabled.
This must *only* be done after attaching the first instance of the tuner.
If there are multiple instances of the tuner, the bridge driver will need
to maintain power managament by itself.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/tda18271-fe.c