All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] saa7134-dvb.c kworld_sbtvd
@ 2011-05-19 18:16 Manoel PN
  0 siblings, 0 replies; only message in thread
From: Manoel PN @ 2011-05-19 18:16 UTC (permalink / raw)
  To: linux-media, lgspn

The correct place to put i2c_gate_ctrl is before calling tda18271_attach,
because the driver tda18271 will use it to enable or disable the i2c-bus
from the demodulator to the tuner.

And thus eliminate the error message: "Unknown device (255) detected
@ 1-00c0, device not supported" in the driver tda18271.

In the device kworld_sbtvd (hybrid analog and digital TV) the control
of the i2c-bus to tuner is done in the analog demodulator and not in
the digital demodulator.


Signed-off-by: Manoel Pinheiro <pinusdtv@hotmail.com>


diff --git a/drivers/media/video/saa7134/saa7134-dvb.c 
b/drivers/media/video/saa7134/saa7134-dvb.c
index f65cad2..c1a18d1 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -1666,10 +1666,10 @@ static int dvb_init(struct saa7134_dev *dev)
 			dvb_attach(tda829x_attach, fe0->dvb.frontend,
 				   &dev->i2c_adap, 0x4b,
 				   &tda829x_no_probe);
+			fe0->dvb.frontend->ops.i2c_gate_ctrl = kworld_sbtvd_gate_ctrl;
 			dvb_attach(tda18271_attach, fe0->dvb.frontend,
 				   0x60, &dev->i2c_adap,
 				   &kworld_tda18271_config);
-			fe0->dvb.frontend->ops.i2c_gate_ctrl = kworld_sbtvd_gate_ctrl;
 		}
 
 		/* mb86a20s need to use the I2C gateway */



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-19 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 18:16 [PATCH] saa7134-dvb.c kworld_sbtvd Manoel PN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.