lkml.org 
[lkml]   [1998]   [Mar]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 04 Mar 1998 08:39:39 +0100
FromThomas Sailer <>
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 12:41    [W:0.450 / U:0.130 seconds]
©2003-2008 Jasper Spaans