Update of /cvsroot/alsa/alsa-driver/usb/us428
In directory sc8-pr-cvs1:/tmp/cvs-serv854

Modified Files:
        usbus428audio.c 
Log Message:
Use snd_pcm_running() macro

Index: usbus428audio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/us428/usbus428audio.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- usbus428audio.c     6 Oct 2003 13:15:17 -0000       1.4
+++ usbus428audio.c     6 Oct 2003 13:28:07 -0000       1.5
@@ -400,18 +400,13 @@
                return;
        }
 
-       if (pcm_captsubs)
-               if (pcm_captsubs->runtime->status->state == SNDRV_PCM_STATE_RUNNING
-                   || pcm_captsubs->runtime->status->state == 
SNDRV_PCM_STATE_DRAINING)
-                       runtime = pcm_captsubs->runtime;
+       if (pcm_captsubs && snd_pcm_running(pcm_captsubs))
+               runtime = pcm_captsubs->runtime;
        if (NULL == runtime){
                snd_us428_substream_t *playsubs = captsubs->stream->substream + 
SNDRV_PCM_STREAM_PLAYBACK;
                snd_pcm_substream_t *pcm_playsubs = playsubs->pcm_substream;
-               if (pcm_playsubs)
-                       if (pcm_playsubs->runtime->status->state == 
SNDRV_PCM_STATE_RUNNING
-                           || pcm_playsubs->runtime->status->state == 
SNDRV_PCM_STATE_DRAINING)
-                               runtime = pcm_playsubs->runtime;
-               
+               if (pcm_playsubs && snd_pcm_running(pcm_playsubs))
+                       runtime = pcm_playsubs->runtime;
        }
                
        if (NULL == runtime){



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