Update of /cvsroot/alsa/alsa-kernel/pci/korg1212
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/pci/korg1212

Modified Files:
        korg1212.c 
Log Message:
- clean up the DMA code again.
  now only struct device pointer is handled for every BUS type.
  the pointer must be given via the corresponding macro snd_dma_xxx_data().
- added the hack for dma_alloc_coherent() to accept dev = NULL for ISA
  buffers.
- added the missing include files.


Index: korg1212.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/korg1212/korg1212.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- korg1212.c  2 Mar 2004 15:32:38 -0000       1.35
+++ korg1212.c  6 Mar 2004 16:51:30 -0000       1.36
@@ -2329,8 +2329,8 @@
 #endif
 
        memset(&korg1212->dma_dev, 0, sizeof(korg1212->dma_dev));
-       korg1212->dma_dev.type = SNDRV_DMA_TYPE_PCI;
-       korg1212->dma_dev.dev.pci = korg1212->pci;
+       korg1212->dma_dev.type = SNDRV_DMA_TYPE_DEV;
+       korg1212->dma_dev.dev = snd_dma_pci_data(korg1212->pci);
 
        if (snd_dma_alloc_pages(&korg1212->dma_dev, sizeof(KorgSharedBuffer), 
&korg1212->dma_shared) < 0) {
                snd_printk(KERN_ERR "can not allocate shared buffer memory (%Zd 
bytes)\n", sizeof(KorgSharedBuffer));



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