提交 0fbf405c 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[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: NTakashi Iwai <tiwai@suse.de>
上级 9b87819b
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册