Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: difficulty getting Nova-T working with dvbtune



Dave Chapman wrote:
> On Monday 01 July 2002 11:30, Holger Waechtler wrote:
> 
>>Some applications get mislead because they don't clear outstanding 
>>events from the event queue after opening the device. The NEWSTRUCT 
>>driver does this for you, so even buggy applications should not run in 
>>troubles, the old driver did not. Please use the NEWSTRUCT branch, there 
>>are many other problems fixed, too.
> 
> 
> The only example I can find in the DVB driver applications is in szap (not 
> tzap or libdvb/tuxzap) and it does the following:
> 
>   /* discard stale QPSK events */
>   while (1)
>     {
>       if (ioctl (fefd, FE_GET_EVENT, &ev) == -1)
>         break;
>     }
> 
> I assume that this is all that is needed - I'll add it to dvbtune and 
> dvbstream.

Events can be emitted all the time the hardware is working. Just imagine 
the situation you pull out the RF cable, a bird flies in front on your 
satellite dish, whatever.

The old driver did not notified you about this signal loss, it was a 
driver bug.

The proper way is to read all events after tuning, the operation was 
successfully when the lock bit in the last event is set.

Holger



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index