Update of /cvsroot/alsa/alsa-kernel/include
In directory sc8-pr-cvs1:/tmp/cvs-serv14205/include
Modified Files:
pcm.h
Log Message:
[PATCH: pcm-memory-fix.dif]
- added UNKNOWN type for dma_type, set as default to check invalid
uses of pre-allocated data.
- clean up the pre-allocation code, added more comments.
- call snd_pcm_lib_preallocate_free_fo_all() in the destructor of
pcm instance, to be sure to release all the buffers.
now, each pcm driver doesn't have to call preallocate_free_*() in
its private_free callback.
Index: pcm.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/include/pcm.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- pcm.h 7 Jan 2003 10:31:25 -0000 1.19
+++ pcm.h 7 Jan 2003 10:58:51 -0000 1.20
@@ -120,10 +120,11 @@
#define SNDRV_PCM_TRIGGER_SUSPEND 5
#define SNDRV_PCM_TRIGGER_RESUME 6
-#define SNDRV_PCM_DMA_TYPE_CONTINUOUS 0 /* continuous no-DMA memory */
-#define SNDRV_PCM_DMA_TYPE_ISA 1 /* ISA continuous */
-#define SNDRV_PCM_DMA_TYPE_PCI 2 /* PCI continuous */
-#define SNDRV_PCM_DMA_TYPE_SBUS 3 /* SBUS continuous */
+#define SNDRV_PCM_DMA_TYPE_UNKNOWN 0 /* not defined */
+#define SNDRV_PCM_DMA_TYPE_CONTINUOUS 1 /* continuous no-DMA memory */
+#define SNDRV_PCM_DMA_TYPE_ISA 2 /* ISA continuous */
+#define SNDRV_PCM_DMA_TYPE_PCI 3 /* PCI continuous */
+#define SNDRV_PCM_DMA_TYPE_SBUS 4 /* SBUS continuous */
/* If you change this don't forget to change rates[] table in pcm_native.c */
#define SNDRV_PCM_RATE_5512 (1<<0) /* 5512Hz */
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog