Browse Source

[media] rtl28xxu: add small sleep for rtl2830 demod attach

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>
Antti Palosaari 13 years ago
parent
commit
ccb5cf9bfc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/media/dvb/dvb-usb/rtl28xxu.c

+ 3 - 0
drivers/media/dvb/dvb-usb/rtl28xxu.c

@@ -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)