[media] lmedm04: rs2000 check if interrupt urb is over due
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 24 May 2014 09:35:57 +0000 (06:35 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 17 Jun 2014 15:04:47 +0000 (12:04 -0300)
commit3a370222b0c514360863ec79c1481dffbbf1ddab
treef2315765635caa6362d0c6430e7ed0d4254046a9
parent3c1e7f27561038d683f519a5fb723743e7b8e83b
[media] lmedm04: rs2000 check if interrupt urb is over due

Change handling of signal_lock on rs2000. Use ibuf[2] to detect
lock as there is a longer wait for lock to appear in ibuf[6].

Remove last_key and key_timeout and use jiffies plus 60ms
to detect that streaming is still active.

If the current jiffies is time_after the interrupt urb overdue and
clear signal lock.

This results in far faster recovery of lock and streaming.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb-v2/lmedm04.c