Update of /cvsroot/alsa/alsa-kernel/core/oss In directory sc8-pr-cvs1:/tmp/cvs-serv1571
Modified Files: pcm_oss.c Log Message: fixed the calculation of bytes. this will fix GETxSPACE, GETxPTR, GETODELAY ioctls. Index: pcm_oss.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- pcm_oss.c 7 Nov 2003 09:47:18 -0000 1.57 +++ pcm_oss.c 28 Nov 2003 15:30:01 -0000 1.58 @@ -125,9 +125,10 @@ { snd_pcm_runtime_t *runtime = substream->runtime; snd_pcm_uframes_t buffer_size = snd_pcm_lib_buffer_bytes(substream); + frames = frames_to_bytes(runtime, frames); if (buffer_size == runtime->oss.buffer_bytes) return frames; - return (runtime->oss.buffer_bytes * frames_to_bytes(runtime, frames)) / buffer_size; + return (runtime->oss.buffer_bytes * frames) / buffer_size; } static int snd_pcm_oss_format_from(int format) ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog