Update of /cvsroot/alsa/alsa-kernel/core
In directory usw-pr-cvs1:/tmp/cvs-serv32569

Modified Files:
        pcm_native.c 
Log Message:
Fixed drop call in release()

Index: pcm_native.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_native.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- pcm_native.c        9 Oct 2002 20:22:41 -0000       1.27
+++ pcm_native.c        10 Oct 2002 18:16:08 -0000      1.28
@@ -1848,7 +1848,10 @@
        snd_assert(substream != NULL, return -ENXIO);
        snd_assert(!atomic_read(&substream->runtime->mmap_count), );
        pcm = substream->pcm;
-       snd_pcm_capture_drop(substream);
+       if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
+               snd_pcm_playback_drop(substream);
+       else
+               snd_pcm_capture_drop(substream);
        fasync_helper(-1, file, 0, &substream->runtime->fasync);
        down(&pcm->open_mutex);
        snd_pcm_release_file(pcm_file);



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to