Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv32128/core

Modified Files:
        pcm.c 
Log Message:
Added SNDRV_PCM_STATE_DISCONNECTED state.


Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- pcm.c       24 Nov 2003 16:20:42 -0000      1.35
+++ pcm.c       19 Jan 2004 19:46:42 -0000      1.36
@@ -852,11 +852,15 @@
 {
        snd_pcm_t *pcm = snd_magic_cast(snd_pcm_t, device->device_data, return -ENXIO);
        struct list_head *list;
-       int idx;
+       snd_pcm_substream_t *substream;
+       int idx, cidx;
 
        down(&register_mutex);
        idx = (pcm->card->number * SNDRV_PCM_DEVICES) + pcm->device;
        snd_pcm_devices[idx] = NULL;
+       for (cidx = 0; cidx < 2; cidx++)
+               for (substream = pcm->streams[cidx].substream; substream; substream = 
substream->next)
+                       substream->runtime->status->state = 
SNDRV_PCM_STATE_DISCONNECTED;
        list_for_each(list, &snd_pcm_notify_list) {
                snd_pcm_notify_t *notify;
                notify = list_entry(list, snd_pcm_notify_t, list);



-------------------------------------------------------
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