The patch number 14427 was added via Manu Abraham <m...@linuxtv.org>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Manu Abraham  <abraham.m...@gmail.com>
[STV090x] Use gate control, while tuner is being accessed.


Signed-off-by: Manu Abraham <m...@linuxtv.org>


---

 linux/drivers/media/dvb/frontends/stv090x.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff -r 0b84056090e3 -r 5ff2bc2dc92c linux/drivers/media/dvb/frontends/stv090x.c
--- a/linux/drivers/media/dvb/frontends/stv090x.c       Sat Jan 23 12:49:08 
2010 +0400
+++ b/linux/drivers/media/dvb/frontends/stv090x.c       Sat Jan 23 13:05:37 
2010 +0400
@@ -4652,11 +4652,17 @@
        struct stv090x_state *state = fe->demodulator_priv;
        u32 reg;
 
-       if (state->config->tuner_init) {
+       if (stv090x_i2c_gate_ctrl(state, 1) < 0)
+               goto err;
+
+       if (state->config->tuner_sleep) {
                if (state->config->tuner_sleep(fe) < 0)
                        goto err_gateoff;
        }
 
+       if (stv090x_i2c_gate_ctrl(state, 0) < 0)
+               goto err;
+
        dprintk(FE_DEBUG, 1, "Set %s to sleep",
                state->device == STV0900 ? "STV0900" : "STV0903");
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/5ff2bc2dc92c16591a9900a1d1db15355b2e1452

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to