Update of /cvsroot/alsa/alsa-kernel/pci/emu10k1
In directory sc8-pr-cvs1:/tmp/cvs-serv30086/pci/emu10k1

Modified Files:
        emupcm.c memory.c 
Log Message:
more unified DMA allocation
- memory allocator is put into a separte independent module, snd-alloc-pages.
  it can be kept after other snd* modules unloaded, so that the big
  continuous pages can be held after reload.
- use size_t for the size type.



Index: emupcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- emupcm.c    10 Feb 2003 11:53:50 -0000      1.18
+++ emupcm.c    28 Feb 2003 14:29:26 -0000      1.19
@@ -32,7 +32,6 @@
 #include <linux/init.h>
 #include <sound/core.h>
 #include <sound/emu10k1.h>
-#include <sound/pcm_sgbuf.h>
 
 #define chip_t emu10k1_t
 

Index: memory.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/memory.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- memory.c    10 Feb 2003 11:52:08 -0000      1.10
+++ memory.c    28 Feb 2003 14:29:27 -0000      1.11
@@ -25,7 +25,6 @@
 #include <linux/time.h>
 #include <sound/core.h>
 #include <sound/emu10k1.h>
-#include <sound/pcm_sgbuf.h>
 
 /* page arguments of these two macros are Emu page (4096 bytes), not like
  * aligned pages in others
@@ -291,7 +290,7 @@
 snd_util_memblk_t *
 snd_emu10k1_alloc_pages(emu10k1_t *emu, snd_pcm_substream_t *substream)
 {
-       struct snd_sg_buf *sgbuf = snd_magic_cast(snd_pcm_sgbuf_t, 
_snd_pcm_substream_sgbuf(substream), return NULL);
+       struct snd_sg_buf *sgbuf = snd_pcm_substream_sgbuf(substream);
        snd_util_memhdr_t *hdr;
        emu10k1_memblk_t *blk;
        int page, err, idx;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to