[media] rtl28xxu: add small sleep for rtl2830 demod attach
authorAntti Palosaari <crope@iki.fi>
Fri, 18 May 2012 19:07:46 +0000 (16:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 20 May 2012 13:25:00 +0000 (10:25 -0300)
Demod needs some time to wake up after power on.

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

index 4e69e9db849ee5d8f9a01b518ca265d32a15797c..41e1f5537f44b5b67d31140f52fec2f9cc25224b 100644 (file)
@@ -322,6 +322,9 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
         * since there is some demod params needed to set according to tuner.
         */
 
+       /* demod needs some time to wake up */
+       msleep(20);
+
        /* open demod I2C gate */
        ret = rtl28xxu_ctrl_msg(adap->dev, &req_gate);
        if (ret)