Update of /cvsroot/alsa/alsa-kernel/isa/ad1816a
In directory sc8-pr-cvs1:/tmp/cvs-serv23956/isa/ad1816a

Modified Files:
        ad1816a_lib.c 
Log Message:
Replaced snd_dma_residue() with snd_dma_pointer().


Index: ad1816a_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1816a/ad1816a_lib.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ad1816a_lib.c       23 Nov 2002 10:41:53 -0000      1.15
+++ ad1816a_lib.c       31 Jan 2003 12:41:15 -0000      1.16
@@ -296,7 +296,7 @@
        size_t ptr;
        if (!(chip->mode & AD1816A_MODE_PLAYBACK))
                return 0;
-       ptr = chip->p_dma_size - snd_dma_residue(chip->dma1);
+       ptr = snd_dma_pointer(chip->dma1, chip->p_dma_size);
        return bytes_to_frames(substream->runtime, ptr);
 }
 
@@ -306,7 +306,7 @@
        size_t ptr;
        if (!(chip->mode & AD1816A_MODE_CAPTURE))
                return 0;
-       ptr = chip->c_dma_size - snd_dma_residue(chip->dma2);
+       ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size);
        return bytes_to_frames(substream->runtime, ptr);
 }
 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to