aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorManoel Pinheiro <pinusdtv@hotmail.com>2011-05-19 13:16:57 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-13 20:14:59 -0400
commitb08deebebe13c73b35701d180a4689dfb34db519 (patch)
tree355e796b0a792be67941b6eba503ada1356d9ff6 /drivers/media
parentf8e00d5fa86fbc4462647da162152d4e74db784c (diff)
[media] saa7134-dvb: Fix kworld sbtvd I2C gate control
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index d0f53bb153e3..b209de40a4f8 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -1796,10 +1796,10 @@ static int dvb_init(struct saa7134_dev *dev)
1796 dvb_attach(tda829x_attach, fe0->dvb.frontend, 1796 dvb_attach(tda829x_attach, fe0->dvb.frontend,
1797 &dev->i2c_adap, 0x4b, 1797 &dev->i2c_adap, 0x4b,
1798 &tda829x_no_probe); 1798 &tda829x_no_probe);
1799 fe0->dvb.frontend->ops.i2c_gate_ctrl = kworld_sbtvd_gate_ctrl;
1799 dvb_attach(tda18271_attach, fe0->dvb.frontend, 1800 dvb_attach(tda18271_attach, fe0->dvb.frontend,
1800 0x60, &dev->i2c_adap, 1801 0x60, &dev->i2c_adap,
1801 &kworld_tda18271_config); 1802 &kworld_tda18271_config);
1802 fe0->dvb.frontend->ops.i2c_gate_ctrl = kworld_sbtvd_gate_ctrl;
1803 } 1803 }
1804 1804
1805 /* mb86a20s need to use the I2C gateway */ 1805 /* mb86a20s need to use the I2C gateway */