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

Allan Stirling Dibblahmythml0015 at pendor.org
Sat Aug 27 12:56:54 UTC 2005


Stuart Auchterlonie wrote:
> On Fri, Aug 26, 2005 at 07:51:58AM -0400, Daniel Kristjansson wrote:
> 
>>On Fri, 2005-08-26 at 11:54 +0100, Stuart Auchterlonie wrote:
>>
>>>a) No Event was delivered if the card had no change in tuning
>>>b) You can't issue a FE_GET_STATUS until a FE_SET_STATUS(?) had be
>>>done.
>>
>>Heh, seems to be what I figured out experimentally. I commited a
>>fix last night for this DVB API whackyness.
>>
> 
> 
> Here's a patch that works for me.
> Basically if it hasn't got an event in 500ms it does a
> read status to see if it has lock.
> 
> With this patch I'm able to correctly pickup all the channels
> on the first multiplex.
> 
> Now I'm going to go and work out why it is looping around
> continually scanning the same multiplex....
> 
> 
> Stuart

> +    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...

Cheers,

Allan.


More information about the mythtv-dev mailing list