[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 <tiwai@suse.de>
This commit is contained in:
parent
9b87819b61
commit
0fbf405c58
1 changed files with 0 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue