lkml.org 
[lkml]   [1998]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: drivers/sound/sb_audio.c - Typo?
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.052 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site