Update of /cvsroot/alsa/alsa-lib/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29765/src

Modified Files:
        shmarea.c 
Log Message:
<[EMAIL PROTECTED]>
- shm memory patch
- optimized a bit sample mixing routines in c and x_86 asm


Index: shmarea.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/shmarea.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- shmarea.c   26 Apr 2003 08:26:05 -0000      1.1
+++ shmarea.c   24 Jan 2004 16:34:35 -0000      1.2
@@ -56,17 +56,6 @@
        return area;
 }
 
-static void _x_destroy(struct snd_shm_area *area)
-{
-       struct shmid_ds buf;
-
-       shmdt(area->ptr);
-       if (shmctl(area->shmid, IPC_STAT, &buf) >= 0) {
-               if (buf.shm_nattch == 0)
-                       shmctl(area->shmid, IPC_RMID, NULL);
-       }
-}
-
 int snd_shm_area_destroy(struct snd_shm_area *area)
 {
        if (area == NULL)
@@ -74,7 +63,7 @@
        if (--area->share)
                return 0;
        list_del(&area->list);
-       _x_destroy(area);
+       shmdt(area->ptr);
        free(area);
        return 0;
 }
@@ -88,6 +77,6 @@
 
        list_for_each(pos, &shm_areas) {
                area = list_entry(pos, struct snd_shm_area, list);
-               _x_destroy(area);
+               shmdt(area->ptr);
        }
 }



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to