dvbsrc: improve timeout handing at locking loop
authorReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Wed, 4 Jun 2014 05:02:20 +0000 (01:02 -0400)
committerReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Thu, 5 Jun 2014 16:56:46 +0000 (12:56 -0400)
commit56933d97ecddd0ec27ca6e45cde17070f20a3d3b
treebd8489d542a5a80fd5d026c23567f8c7ea7b143e
parent574b29f2c4cb9d2c7ef9804eea6e772c1d789ea5
dvbsrc: improve timeout handing at locking loop

New approach attempts to be more accurate by measuring
the elapsed time by iteration. Also:

* Use a 10 seconds default timeout and a half a second
  polling step. New values should better match the tuning
  process on real-life scenarios.
* Correct elapsed_time computation.
* Add _retry_ioctl() to avoid bailing out on temporary
  ioctl EINTR failures (no need to check for EAGAIN cause
  we are opening the frontend on blocking mode)
* Small corrections to fail condition handling
sys/dvb/gstdvbsrc.c