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

Modified Files:
        ice1712.c ice1724.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: ice1712.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ice1712/ice1712.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- ice1712.c   5 Mar 2004 09:08:39 -0000       1.43
+++ ice1712.c   6 Mar 2004 16:51:30 -0000       1.44
@@ -886,8 +886,8 @@
        strcpy(pcm->name, "ICE1712 consumer");
        ice->pcm = pcm;
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 64*1024, 64*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 64*1024, 
64*1024);
 
        if (rpcm)
                *rpcm = pcm;
@@ -923,8 +923,8 @@
        strcpy(pcm->name, "ICE1712 consumer (DS)");
        ice->pcm_ds = pcm;
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 64*1024, 128*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 64*1024, 
128*1024);
 
        if (rpcm)
                *rpcm = pcm;
@@ -1271,8 +1271,8 @@
        pcm->info_flags = 0;
        strcpy(pcm->name, "ICE1712 multi");
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 256*1024, 256*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 256*1024, 
256*1024);
 
        ice->pcm_pro = pcm;
        if (rpcm)

Index: ice1724.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ice1712/ice1724.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ice1724.c   2 Mar 2004 15:32:37 -0000       1.26
+++ ice1724.c   6 Mar 2004 16:51:30 -0000       1.27
@@ -756,8 +756,8 @@
        pcm->info_flags = 0;
        strcpy(pcm->name, "ICE1724");
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 256*1024, 256*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 256*1024, 
256*1024);
 
        ice->pcm_pro = pcm;
 
@@ -911,8 +911,8 @@
        pcm->info_flags = 0;
        strcpy(pcm->name, "ICE1724 IEC958");
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 64*1024, 64*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 64*1024, 
64*1024);
 
        ice->pcm = pcm;
 
@@ -1033,8 +1033,8 @@
        pcm->info_flags = 0;
        strcpy(pcm->name, "ICE1724 Surround PCM");
 
-       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
-                                             ice->pci, 64*1024, 64*1024);
+       snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
+                                             snd_dma_pci_data(ice->pci), 64*1024, 
64*1024);
 
        ice->pcm_ds = pcm;
 



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