[linux-dvb] [PATCH] Add missing S2 caps flag to S2API

Udo Richter udo_richter at gmx.de
Mon Dec 22 17:33:32 CET 2008

On 26.11.2008 22:56, Udo Richter wrote:
> What does a DVB app need to know? A DVB app probably just needs to know
> "What devices are capable of tuning to channel XYZ?". The API could
> answer this the same way as it would tune to channel XYZ, just without
> actually doing it. Try-before-you-buy.

After some insights to S2API interface, this looks even better to me:

properties.num = 1;
properties.props[0].cmd = DTV_DELIVERY_SYSTEM;
properties.props[0].u.data = SYS_DVBS2;
if (ioctl(d, FE_CAP_SET_PROPERTY, &properties) >= 0) {
     // has S2 capability

A generic frontend test function that delivers the necessary S2 
capability information, and many other capabilities too. And there are a 
lot more delivery systems that seem to be hard to detect, so a query 
function 'can do SYS_XXXX' seems necessary anyway.



More information about the linux-dvb mailing list