Skip to contentSkip to conversation

How to runtime-detect S2API kernel?

linux-dvb Udo Richter 1 participant 1 message Dec 22, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi list,

Is there an official safe way to detect S2API capable DVB drivers at runtime, so that a program compiled against S2API headers can check for S2API drivers and switch to old API otherwise?

Does it work to call FE_HAS_EXTENDED_CAPS? Do all old drivers return this flag under the new API, or only S2API-aware drivers?

Or is it better to call FE_SET_PROPERTY with num=0 commands? Does this always return success under S2API?

Cheers,

Udo

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb