Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13160/core

Modified Files:
        memalloc.c 
Log Message:
removed the obsolete hack for dev_alloc_coherent() with dev = 0.


Index: memalloc.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/memalloc.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- memalloc.c  14 Apr 2004 09:44:16 -0000      1.30
+++ memalloc.c  16 Apr 2004 09:06:57 -0000      1.31
@@ -91,32 +91,7 @@
  *  Hacks
  */
 
-static void *snd_dma_alloc_coherent1(struct device *dev, size_t size,
-                                    dma_addr_t *dma_handle, int flags)
-{
-       if (dev)
-               return dma_alloc_coherent(dev, size, dma_handle, flags);
-       else /* FIXME: dma_alloc_coherent does't always accept dev=NULL */
-               return pci_alloc_consistent(NULL, size, dma_handle);
-}
-
-static void snd_dma_free_coherent1(struct device *dev, size_t size, void *dma_addr,
-                                  dma_addr_t dma_handle)
-{
-       if (dev)
-               return dma_free_coherent(dev, size, dma_addr, dma_handle);
-       else
-               return pci_free_consistent(NULL, size, dma_addr, dma_handle);
-}
-
-#undef dma_alloc_coherent
-#define dma_alloc_coherent snd_dma_alloc_coherent1
-#undef dma_free_coherent
-#define dma_free_coherent snd_dma_free_coherent1
-
-
 #if defined(__i386__) || defined(__ppc__) || defined(__x86_64__)
-
 /*
  * A hack to allocate large buffers via dma_alloc_coherent()
  *



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to