]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] lmedm04: Increase Interupt due time to 200 msec
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 2 Jan 2015 13:56:27 +0000 (10:56 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Feb 2015 19:14:00 +0000 (17:14 -0200)
Ocassionally the device fails to report back an interrupt urb status which
results in false no lock trigger on the RS2000 demodulator.

Increase time from 60 msecs to 200 msecs.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.17+
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/lmedm04.c

index 994de53a574bf561cc2a408b969254087dd7e9a9..f1edb299c2f238ffd65be96e8fca0d8ec393ed1a 100644 (file)
@@ -344,9 +344,10 @@ static void lme2510_int_response(struct urb *lme_urb)
 
        usb_submit_urb(lme_urb, GFP_ATOMIC);
 
-       /* interrupt urb is due every 48 msecs while streaming
-        *      add 12msecs for system lag */
-       st->int_urb_due = jiffies + msecs_to_jiffies(60);
+       /* Interrupt urb is due every 48 msecs while streaming the buffer
+        * stores up to 4 periods if missed. Allow 200 msec for next interrupt.
+        */
+       st->int_urb_due = jiffies + msecs_to_jiffies(200);
 }
 
 static int lme2510_int_read(struct dvb_usb_adapter *adap)