]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dib0700: add a sleep before attempting to detect dib7000p
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Mon, 20 Jul 2009 03:42:33 +0000 (00:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:27 +0000 (17:52 -0300)
Add a sleep since in some cases the dib7000p wasn't online when being probed.
The optimal timing has not yet been determined.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dib0700_devices.c

index e9311041a556326aff0512f5c9d2361916af44de..5da350429907235d3d25876e42d492087c082656 100644 (file)
@@ -2722,6 +2722,8 @@ static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap)
        /* FIXME: not verified yet */
        dib0700_ctrl_clock(adap->dev, 72, 1);
 
+       msleep(500);
+
        if (dib7000pc_detection(&adap->dev->i2c_adap) == 0) {
                /* Demodulator not found for some reason? */
                return -ENODEV;