V4L/DVB (9634): Make sure the i2c gate is open before powering down tuner

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=41286d972530b7a47acb48376d714b6b121a6c22
Commit:     41286d972530b7a47acb48376d714b6b121a6c22
Parent:     3f9b46c154da5ec4facca88f82d1820eb329fd3e
Author:     Devin Heitmueller <devin.heitmueller <at> gmail.com>
AuthorDate: Sun Nov 16 00:44:52 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab <at> redhat.com>
CommitDate: Sun Nov 16 23:57:13 2008 -0200

    V4L/DVB (9634): Make sure the i2c gate is open before powering down tuner

    It is not safe to assume that the i2c gate will be open before issuing the
    command to power down the tuner.  In fact, many demods only open the gate
    long enough to issue the tuning command.

    This fix allows power management to work properly for those tuners behind an
    i2c gate (in my case the problem was with the HVR-950Q)

    Signed-off-by: Devin Heitmueller <devin.heitmueller <at> gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab <at> redhat.com>
---
 drivers/media/dvb/dvb-core/dvb_frontend.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index b38cebe..7a421e9 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -585,6 +585,8 @@ restart:
 		if (fe->ops.set_voltage)
 			fe->ops.set_voltage(fe, SEC_VOLTAGE_OFF);
(Continue reading)


Gmane