Re: drivers/sound/sb_audio.c - Typo?

Thomas Sailer (sailer@ife.ee.ethz.ch)
Wed, 04 Mar 1998 08:39:39 +0100


Christopher Butler wrote:

> I think I've just noticed a small typo (possibly) in
> drivers/sound/sb_audio.c in the function sb16_audio_set_speed.
>
> -- Begin drivers/sound/sb_audio.c --
> static int sb16_audio_set_speed(int dev, int speed)
> {
> sb_devc *devc = audio_devs[dev]->devc;
>
> if (speed > 0)
> {
> if (speed < 5000) /* Shouldn't this be if (speed < 4000) */
> speed = 4000;
>
> if (speed > 44100)
> speed = 44100;
>
> devc->speed = speed;
> }
> return devc->speed;
> }
> --- End drivers/sound/sb_audio.c ---

It's the other way round, according to the Creative
Hardware Manual, the SB16 minimum sampling rate is 5000 sps.

Tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu