Hi Takashi,

this enables DRAINING.
Here it is a really bugfix for using us428 with snd & alsaplayer.
Please commit.
What do you think about the us428control stuffs I sent you last week?

best,
Karsten
? .directory
? alsa-driver/cscope.files
? alsa-driver/cscope.out
? alsa-driver/usb/us428/cscope.out
? alsa-lib/cscope.files
Index: alsa-driver/usb/us428/usbus428audio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/usb/us428/usbus428audio.c,v
retrieving revision 1.3
diff -u -r1.3 usbus428audio.c
--- alsa-driver/usb/us428/usbus428audio.c	30 Sep 2003 08:54:47 -0000	1.3
+++ alsa-driver/usb/us428/usbus428audio.c	5 Oct 2003 19:10:30 -0000
@@ -401,13 +401,15 @@
 	}
 
 	if (pcm_captsubs)
-		if (pcm_captsubs->runtime->status->state == SNDRV_PCM_STATE_RUNNING)
+		if (pcm_captsubs->runtime->status->state == SNDRV_PCM_STATE_RUNNING
+		    || pcm_captsubs->runtime->status->state == SNDRV_PCM_STATE_DRAINING)
 			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)
+			if (pcm_playsubs->runtime->status->state == SNDRV_PCM_STATE_RUNNING
+			    || pcm_playsubs->runtime->status->state == SNDRV_PCM_STATE_DRAINING)
 				runtime = pcm_playsubs->runtime;
 		
 	}

Reply via email to