Skip to contentSkip to conversation

not for embedded?

DISCUSSION littertiger 1 participant 1 message Sep 5, 2006

lore
Share & tools
lore
#0 lore raw

in acore/memalloc.c line 114:

/* for 2.2/2.4 kernels */
#if defined(CONFIG_PCI) || defined(CONFIG_ISA) || defined(__i386__)
#define dma_alloc_coherent(dev,size,addr,flags) pci_alloc_consistent((struct pci_dev *)(dev),size,addr) #define dma_free_coherent(dev,size,ptr,addr) pci_free_consistent((struct pci_dev *)(dev),size,ptr,addr) #elif CONFIG_SBUS
#define dma_alloc_coherent(dev,size,addr,flags) sbus_alloc_consistent((struct sbus_dev *)(dev),size,addr) #define dma_free_coherent(dev,size,ptr,addr) sbus_free_consistent((struct sbus_dev *)(dev),size,ptr,addr) #else
#error "Need a bus for dma_alloc_coherent()"
#endif

If my embedded device doesn't have PCI/ISA/SBUS, and isn't i386, there will be a compile error. It seems alsa is designed only for x86, not for embedded devices without PCI/ISA/SBUS. Isn't it?

        littertiger
        [email protected]
          2006-09-05

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel