Update of /cvsroot/alsa/alsa-kernel/sparc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29808/sparc
Modified Files:
amd7930.c cs4231.c
Log Message:
fixed for the new DMA buffer handler.
Index: amd7930.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/sparc/amd7930.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- amd7930.c 14 Aug 2003 11:05:39 -0000 1.7
+++ amd7930.c 6 Mar 2004 17:24:24 -0000 1.8
@@ -791,7 +791,9 @@
strcpy(pcm->name, amd->card->shortname);
amd->pcm = pcm;
- snd_pcm_lib_preallocate_pages_for_all(pcm, 64*1024, 64*1024, GFP_KERNEL);
+ snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
+ snd_dma_continuous_data(GFP_KERNEL),
+ 64*1024, 64*1024);
return 0;
}
Index: cs4231.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/sparc/cs4231.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- cs4231.c 14 Aug 2003 11:05:39 -0000 1.9
+++ cs4231.c 6 Mar 2004 17:24:24 -0000 1.10
@@ -1570,13 +1570,15 @@
#ifdef EBUS_SUPPORT
if (chip->flags & CS4231_FLAG_EBUS) {
- snd_pcm_lib_preallocate_pci_pages_for_all(chip->dev_u.pdev, pcm,
- 64*1024, 128*1024);
+ snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_PCI,
+
snd_dma_pci_data(chip->dev_u.pdev)
+ 64*1024, 128*1024);
} else {
#endif
#ifdef SBUS_SUPPORT
- snd_pcm_lib_preallocate_sbus_pages_for_all(chip->dev_u.sdev, pcm,
- 64*1024, 128*1024);
+ snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_SBUS,
+
snd_dma_sbus_data(chip->dev_u.sdev),
+ 64*1024, 128*1024);
#endif
#ifdef EBUS_SUPPORT
}
-------------------------------------------------------
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