[mythtv] dvbchannel patch

Tom Hughes tom at compton.nu
Wed Aug 31 15:26:33 UTC 2005


In message <4315CA7E.5030902 at npsl.co.uk>
        Mark Weaver <mark-clist at npsl.co.uk> wrote:

> As far as I read drivers/media/dvb/dvb-core/dvb_frontend.c, it isn't
> necessary to wait for N lock events.  After ioctl(FE_SET_FRONTEND),
> FE_READ_STATUS will return 0 until the tune has completed, so the
> first lock status ought to be good enough.  Could also save a bit of
> CPU with poll() rather than the usleep() loop I suppose, but that's an
> aside.

That is true in 2.6.13 but before that there was a race condition
where it would pass on the FE_READ_STATUS even if the kernel thread
had not started tuning yet so you could get the old status.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/


More information about the mythtv-dev mailing list