From: Takashi Iwai Date: Wed, 17 May 2006 15:10:35 +0000 (+0200) Subject: [ALSA] Fix pcm-draining of capture stream in PCM middle layer X-Git-Tag: v2.6.18-rc1~1081^2~293 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=0fbf405c583e6ee6d7227eb938a096d0998f7e78;p=safe%2Fjmp%2Flinux-2.6 [ALSA] Fix pcm-draining of capture stream in PCM middle layer Fix the draining of PCM capture stream in the PCM middle layer. snd_pcm_drain() ignored capture streams, but it should change the state to SNDRV_PCM_DRAINING. Signed-off-by: Takashi Iwai --- diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index a998f88..9e49524 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -1469,8 +1469,6 @@ static int snd_pcm_drain(struct snd_pcm_substream *substream) } } up_read(&snd_pcm_link_rwsem); - if (! num_drecs) - goto _error; snd_pcm_stream_lock_irq(substream); /* resume pause */