The following patch addresses an condition where the dvb_frontend attempts to power down the tuner, but there is no guarantee that the gate is open at that phase (in fact, in a properly written demod it should have been closed at this phase). Tested on the HVR-950Q. Regards, Devin -- Devin J. Heitmueller http://www.devinheitmueller.com AIM: devinheitmueller
Open the i2c gate before issuing attempting to put the tuner to sleep From: Devin Heitmueller <devin.heitmueller@xxxxxxxxx> 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@xxxxxxxxx> Index: v4l-dvb/linux/drivers/media/dvb/dvb-core/dvb_frontend.c =================================================================== --- v4l-dvb.orig/linux/drivers/media/dvb/dvb-core/dvb_frontend.c 2008-11-15 19:37:15.000000000 -0500 +++ v4l-dvb/linux/drivers/media/dvb/dvb-core/dvb_frontend.c 2008-11-15 19:37:51.000000000 -0500 @@ -656,6 +656,8 @@ if (fe->ops.set_voltage) fe->ops.set_voltage(fe, SEC_VOLTAGE_OFF); if (fe->ops.tuner_ops.sleep) { + if (fe->ops.i2c_gate_ctrl) + fe->ops.i2c_gate_ctrl(fe, 1); fe->ops.tuner_ops.sleep(fe); if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb