[mythtv] DVB 7133 uk full dvb-t scan problems
Allan Stirling
Dibblahmythml0015 at pendor.org
Sat Aug 27 13:42:26 UTC 2005
Stuart Auchterlonie wrote:
> 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...
>
Yes, but the enum is an AND of all of the status bits, typically you'll
get 1F for a good lock.
Cheers,
Allan.
More information about the mythtv-dev
mailing list