[media] af9035: disable frontend0 I2C-gate control
authorAntti Palosaari <crope@iki.fi>
Fri, 6 Apr 2012 10:09:23 +0000 (07:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 17:57:14 +0000 (14:57 -0300)
Seems like tuners used for frontend0 are not behind demodulator
I2C-gate thus gate control is not needed. Disable it for sure as
it can cause problems some situations.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9035.c

index 9f962428368c00facf23bc1c23e4e633292ee8c6..e1d6e6efa77bb511912cf37247b15a44b93f47cc 100644 (file)
@@ -783,6 +783,9 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap)
                ret = -ENODEV;
                goto err;
        }
+
+       /* disable I2C-gate */
+       adap->fe_adap[0].fe->ops.i2c_gate_ctrl = NULL;
        adap->fe_adap[0].fe->callback = af9035_frontend_callback;
 
        return 0;