Skip to content

Commit

Permalink
[ALSA] Fix pcm-draining of capture stream in PCM middle layer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tiwai authored and Jaroslav Kysela committed Jun 22, 2006
1 parent 9b87819 commit 0fbf405
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0fbf405

Please sign in to comment.