[linux-dvb] [PATCH] add DVB-S2 support to frontend.h

Johannes Stezenbach js at linuxtv.org
Thu Mar 2 23:23:52 CET 2006

On Thu, Mar 02, 2006, Rainer.scherg wrote:
> Johannes Stezenbach wrote:
> >>
> >>I think it's more useful for the lib to query for specific
> >>API/driver capabilites than for a version number.
> >>
> Querying driver capabilities is of course necessary.
> But a version information about the API version, too.
> Currently is more or less guessing during compile time
> what API is present. Using major/minor numbering scheme
> we can tell an application (or user space library), if
> it's able to run on a machine.

For compile time there is linux/dvb/version.h.

But the lib should support any kernel, so there
are two choices (pseudo code):

1. 	ioctl(FE_GET_VERSION);
	if (api_version_minor > 1)
		/* assume FE_SET_STANDARD is available */

2.	ioctl(FE_GET_CAPS);
	if (caps & FE_CAP_SET_STANDARD)
		/* we know FE_SET_STANDARD is available */

My personal preference is 2.


More information about the linux-dvb mailing list