]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit403d348ef32ac29a1b5d8d6db0ea84e0e5360b46
tree0c2c527bea7a30d182f416f0ffd02d8047a3cc92
parent0f34cb33e0d25edfea08e49f6a4cbd656fb681cf
[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