radio freqs (was: floating-point abuse in 2.1.113)

Steffen Grunewald (steffen@gfz-potsdam.de)
Tue, 4 Aug 1998 12:58:19 +0200 (MET DST)


Mikael Pettersson wrote:
|> --- linux-2.1.113/drivers/char/radio-aztech.c.orig Mon Jun 8 23:55:37 1998
|> +++ linux-2.1.113/drivers/char/radio-aztech.c Mon Aug 3 20:59:03 1998
[...]
|> - v.rangelow=(int)(87.9*16);
|> - v.rangehigh=(int)(107.8*16);
|> + v.rangelow=(879*16)/10;
|> + v.rangehigh=(1078*16)/10;
[...]
|> --- linux-2.1.113/drivers/char/radio-aimslab.c.orig Tue Jul 21 21:29:24 1998
|> +++ linux-2.1.113/drivers/char/radio-aimslab.c Mon Aug 3 20:58:49 1998
[...]
|> - v.rangelow=(int)(88.0*16);
|> - v.rangehigh=(int)(108.0*16);
|> + v.rangelow=(88*16);
|> + v.rangehigh=(108*16);
[...]

AFAIK, FM bands are defined from 87.5 up to 108.0 MHz now (there was
a time when the upper limit was set to 100, later 104).
So is it a limitation of the _hardware_ to use a narrower band or
is it a bug in the driver ? I'm quite sure there are radio stations
at 87.9 MHz, and at leats a beacon at 87.5 (or 87.55 ?) MHz.
I also checked with my multiband receiver, which runs FM from 87.5
to 108.0 MHz.
Please re-check the values above...
Steffen

-- 
Steffen Grunewald = steffen(at)gfz-potsdam.de = fax +49-331-288-1266
My opinions are mine. You can rent them. Just ask me for prices  :-)
"Art is a lie which makes us realize the truth"   -    Pablo Picasso

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html