[mythtv] DVB 7133 uk full dvb-t scan problems

Stuart Auchterlonie stuarta at squashedfrog.net
Sat Aug 27 13:32:43 UTC 2005


On Sat, Aug 27, 2005 at 01:56:54PM +0100, Allan Stirling wrote:
> 
> >+    fe_status_t tmp_stat;
> >+    memset(&tmp_stat, 0, sizeof(fe_status_t));
> >+    if (ioctl(fd,FE_READ_STATUS, &tmp_stat)) {
> >+        if (tmp_stat == FE_HAS_LOCK)
> >+            return true;
> I don't see how. Don't you mean:
> 
>  if (tmp_stat & FE_HAS_LOCK)
>             return true;
> 
> Since the rest of the lock status isn't always 0...
> 

No that's correct.

FE_READ_STATUS returns an fe_status_t which is only an enum.

See include/linux/dvb/frontend.h in your kernel headers...


Stuart



More information about the mythtv-dev mailing list