Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv21518

Modified Files:
        isadma.c 
Log Message:
return the valid pointer 0 if the residue returns 0, too.
(returning buffer_size is invalid now)



Index: isadma.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/isadma.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- isadma.c    11 Feb 2003 08:40:55 -0000      1.11
+++ isadma.c    17 Mar 2003 09:11:16 -0000      1.12
@@ -96,5 +96,8 @@
        if (result > size)
                snd_printk(KERN_ERR "pointer (0x%x) for DMA #%ld is greater than 
transfer size (0x%x)\n", result, dma, size);
 #endif
-       return result >= size ? 0 : size - result;
+       if (result >= size || result == 0)
+               return 0;
+       else
+               return size - result;
 }



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to