Update of /cvsroot/alsa/alsa-kernel/isa/gus
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18820/alsa-kernel/isa/gus

Modified Files:
        gus_pcm.c 
Log Message:
Big DMA cleanup originated by Russell King <[EMAIL PROTECTED]>
* Russel
  - introduced 'struct device' support for 2.6 dma_alloc_coherent()
* Jaroslav
  - removed all bus-specific allocation functions
  - extended snd_dma_alloc_pages/snd_dma_free_pages to handle all bus types
  - recoded all (or almost all) device drivers
  - sgbuf functions are bus independent now


Index: gus_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gus_pcm.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- gus_pcm.c   20 Dec 2003 09:31:32 -0000      1.18
+++ gus_pcm.c   2 Mar 2004 15:32:36 -0000       1.19
@@ -874,7 +874,9 @@
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops);
 
        for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; 
substream = substream->next)
-               snd_pcm_lib_preallocate_isa_pages(substream, 64*1024, gus->gf1.dma1 > 
3 ? 128*1024 : 64*1024);
+               snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_ISA,
+                                             snd_pcm_isa_flags(0),
+                                             64*1024, gus->gf1.dma1 > 3 ? 128*1024 : 
64*1024);
        
        pcm->info_flags = 0;
        pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
@@ -882,7 +884,9 @@
                snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, 
&snd_gf1_pcm_capture_ops);
                if (gus->gf1.dma2 == gus->gf1.dma1)
                        pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
-               
snd_pcm_lib_preallocate_isa_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, 
64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 64*1024);
+               
snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
+                                             SNDRV_DMA_TYPE_ISA, snd_pcm_isa_flags(0),
+                                             64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 
64*1024);
        }
        strcpy(pcm->name, pcm->id);
        if (gus->interwave) {



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to