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

Modified Files:
        trident_main.c trident_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: trident_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/trident/trident_main.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- trident_main.c      25 Feb 2003 18:04:05 -0000      1.32
+++ trident_main.c      28 Feb 2003 14:29:27 -0000      1.33
@@ -41,7 +41,6 @@
 #include <sound/control.h>
 #include <sound/trident.h>
 #include <sound/asoundef.h>
-#include <sound/pcm_sgbuf.h>
 
 #include <asm/io.h>
 

Index: trident_memory.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/trident/trident_memory.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- trident_memory.c    8 Jan 2003 13:08:25 -0000       1.9
+++ trident_memory.c    28 Feb 2003 14:29:27 -0000      1.10
@@ -28,7 +28,6 @@
 #include <linux/time.h>
 #include <sound/core.h>
 #include <sound/trident.h>
-#include <sound/pcm_sgbuf.h>
 
 /* page arguments of these two macros are Trident page (4096 bytes), not like
  * aligned pages in others
@@ -189,7 +188,7 @@
        snd_util_memhdr_t *hdr;
        snd_util_memblk_t *blk;
        int idx, page;
-       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_assert(trident != NULL, return NULL);
        snd_assert(sgbuf->size > 0 && sgbuf->size < SNDRV_TRIDENT_MAX_PAGES * 
SNDRV_TRIDENT_PAGE_SIZE, return NULL);



-------------------------------------------------------
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