Update of /cvsroot/alsa/alsa-kernel/pci/rme9652
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23362/pci/rme9652
Modified Files:
hdsp.c rme9652.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: hdsp.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- hdsp.c 2 Mar 2004 15:32:38 -0000 1.53
+++ hdsp.c 6 Mar 2004 16:51:30 -0000 1.54
@@ -569,8 +569,8 @@
struct snd_dma_buffer dmbuf;
memset(&pdev, 0, sizeof(pdev));
- pdev.type = SNDRV_DMA_TYPE_PCI;
- pdev.dev.pci = pci;
+ pdev.type = SNDRV_DMA_TYPE_DEV;
+ pdev.dev = snd_dma_pci_data(pci);
pdev.id = capture;
dmbuf.bytes = 0;
if (! snd_dma_get_reserved(&pdev, &dmbuf)) {
@@ -587,8 +587,8 @@
struct snd_dma_device pdev;
memset(&pdev, 0, sizeof(pdev));
- pdev.type = SNDRV_DMA_TYPE_PCI;
- pdev.dev.pci = pci;
+ pdev.type = SNDRV_DMA_TYPE_DEV;
+ pdev.dev = snd_dma_pci_data(pci);
pdev.id = capture;
snd_dma_free_reserved(&pdev);
}
Index: rme9652.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/rme9652.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- rme9652.c 2 Mar 2004 15:32:38 -0000 1.41
+++ rme9652.c 6 Mar 2004 16:51:31 -0000 1.42
@@ -315,8 +315,8 @@
struct snd_dma_buffer dmbuf;
memset(&pdev, 0, sizeof(pdev));
- pdev.type = SNDRV_DMA_TYPE_PCI;
- pdev.dev.pci = pci;
+ pdev.type = SNDRV_DMA_TYPE_DEV;
+ pdev.dev = snd_dma_pci_data(pci);
pdev.id = capture;
dmbuf.bytes = 0;
if (! snd_dma_get_reserved(&pdev, &dmbuf)) {
@@ -333,8 +333,8 @@
struct snd_dma_device pdev;
memset(&pdev, 0, sizeof(pdev));
- pdev.type = SNDRV_DMA_TYPE_PCI;
- pdev.dev.pci = pci;
+ pdev.type = SNDRV_DMA_TYPE_DEV;
+ pdev.dev = snd_dma_pci_data(pci);
pdev.id = capture;
snd_dma_free_reserved(&pdev);
}
-------------------------------------------------------
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