From a721eb6c53f0402661b3549ec99701c15714beca Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Sun, 5 Jan 2003 18:49:58 +0000 Subject: Enable the FE before dvb_register_i2c_bus(), otherwise it won't be recognized directly after system bootoup. This one got lost when I cleanup up the attach()/detach() logic. --- linux/drivers/media/dvb/ttpci/av7110.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index f583af0e7..113e7d968 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -4243,6 +4243,10 @@ int av7110_attach (struct saa7146_dev* dev, struct saa7146_sub_info *info) av7110->dev=(struct saa7146_dev *)dev; dvb_register_adapter(&av7110->dvb_adapter, av7110->card_name); + /* the Siemens DVB needs this if you want to have the i2c chips + get recognized before the main driver is fully loaded */ + saa7146_write(dev, GPIO_CTRL, 0x500000); + saa7146_i2c_adapter_prepare(dev, NULL, SAA7146_I2C_BUS_BIT_RATE_3200); av7110->i2c_bus = dvb_register_i2c_bus (master_xfer, dev, av7110->dvb_adapter, 0); -- cgit v1.2.3