GNOME Bugzilla – Bug 731250
dvbsrc: tuning/locking logic improvements
Last modified: 2014-06-06 10:54:18 UTC
Created attachment 277923 [details] [review] improve timeout handing at tuning/locking loop * improve timeout handing at tuning/locking loop * drop redundant assignment Unrelated (but kinda due): * add Samsung copyright attribution
Created attachment 277924 [details] [review] drop redundant assignment
Created attachment 277925 [details] [review] add Samsung copyright attribution
Created attachment 277926 [details] [review] improve timeout handing at tuning/locking loop Squashing the copyright one over
Created attachment 277927 [details] [review] drop redundant assignment
Pushed with a comment block on top of the ioctl_retry (Edward approved privately). commit 7c1f7fd78744b177070cd192541b272ff378111e Author: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> Date: Wed Jun 4 14:35:51 2014 -0400 dvbsrc: drop redundant assignment commit 56933d97ecddd0ec27ca6e45cde17070f20a3d3b Author: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> Date: Wed Jun 4 01:02:20 2014 -0400 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