Mailing List archive

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

[linux-dvb] Re: blocking FE_SET_FRONTEND ioctl in non-blocking mode



Franck Arnaud wrote:
> 
> I've got a problem with tuning in non-blocking mode:
> the FE_SET_FRONTEND ioctl blocks.
> 
> strace says:
> 
> open("/dev/dvb/adapter0/frontend0", O_RDWR|O_NONBLOCK) = 6
> ioctl(6, 0x80a86f3d, 0xbfff3104)        = 0
> ioctl(6, 0x80a86f3d, 0xbfff3094)        = 0
> ioctl(6, 0x40246f4c /* here we block for 1 or 2 seconds */
> 
> The time we block is the time it takes to wake up the 
> card from power saving mode, I don't know if it actually 
> waits for a lock or not, but anyway it's waiting for 
> far too long for a "non-blocking" call (I have other 
> things to do during those 2 seconds!). 
> 
> I'd have expected it to return OK immediately and  
> return a failure event later in case seting up 
> the card or tuning fails.
> 
> Is this a feature?

I'd say it's a bug.

Which frontend driver?

Anyway, if it only happens once directly after open(), when initializing
the frontend, I would say it's not worth fixing.

Johannes


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



Home | Main Index | Thread Index