]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] dw2102: prof 1100 corrected
authorIgor M. Liplianin <liplianin@me.by>
Sun, 27 Feb 2011 19:22:52 +0000 (16:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:41 +0000 (20:32 -0300)
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dw2102.c

index 2889d32bec253165593c07ae61e67a7d66f95804..98cf30270f7d4e80e99b711b40e3d0e420c7ef55 100644 (file)
@@ -1111,18 +1111,25 @@ static int zl100313_frontend_attach(struct dvb_usb_adapter *d)
 
 static int stv0288_frontend_attach(struct dvb_usb_adapter *d)
 {
+       u8 obuf[] = {7, 1};
+
        d->fe = dvb_attach(stv0288_attach, &earda_config,
                        &d->dev->i2c_adap);
-       if (d->fe != NULL) {
-               if (dvb_attach(stb6000_attach, d->fe, 0x61,
-                               &d->dev->i2c_adap)) {
-                       d->fe->ops.set_voltage = dw210x_set_voltage;
-                       info("Attached stv0288+stb6000!\n");
-                       return 0;
-               }
-       }
 
-       return -EIO;
+       if (d->fe == NULL)
+               return -EIO;
+
+       if (NULL == dvb_attach(stb6000_attach, d->fe, 0x61, &d->dev->i2c_adap))
+               return -EIO;
+
+       d->fe->ops.set_voltage = dw210x_set_voltage;
+
+       dw210x_op_rw(d->dev->udev, 0x8a, 0, 0, obuf, 2, DW210X_WRITE_MSG);
+
+       info("Attached stv0288+stb6000!\n");
+
+       return 0;
+
 }
 
 static int ds3000_frontend_attach(struct dvb_usb_adapter *d)