Re: [PATCH] add DVB-S2 support to frontend.h

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

 



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.

Johannes

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux