[linux-dvb] Scan API

w-thiel at gmx.net w-thiel at gmx.net
Sat Nov 19 14:49:32 CET 2005


On Sat, Nov 19, 2005 at 12:13:59AM +0000, Andrew de Quincey wrote:
> OK, restarting the discussion on the scan API. The last proposal was from 
> Holger, and I like it for the most part. Here is a combination of that 
> proposal with my thoughts:
> 
> struct dvb_fe_scan_spec {
>  unsigned freq_start;
>  unsigned freq_end;
>  unsigned srate_start;
>  unsigned srate_end;
> };
> 
For me - being a feedhunter when I have the time - I would like the
symbolrates in a different way: not only srate_start and srate_end, but
also the possibility to provide a list of symbolrates (or even a list of
symbolrates with low/high for each). There are 'typical' symbolrates
used on a specific sat.
Of course, this can be done in a userland program as well with your
specification.

That could be something like:
struct dvb_fe_scan_spec {
  unsigned freq_start;
  unsigned freq_end;
  int fe_scan_n_ranges;
  struct dvb_scan_sr_range *scan_range;
};
with:
struct dvb_scan_sr_range {
	unsigned int srate_start;
	unsigned srate_end;
};

A dvb_scan_sr_range could be for example 5630-5632, a list could be:
{ 5630, 5632 }
{ 6320, 6322 }
{13260,13260 }

Wolfgang




More information about the linux-dvb mailing list