summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-05-17 17:10:35 +0200
committerJaroslav Kysela <perex@suse.cz>2006-06-22 21:33:43 +0200
commit0fbf405c583e6ee6d7227eb938a096d0998f7e78 (patch)
tree796958578b3bf9c9f0e1da0faa201cfd09fa5a3c
parent9b87819b61060a3d32d5982f5ee998c22ab8ca27 (diff)
downloadop-kernel-dev-0fbf405c583e6ee6d7227eb938a096d0998f7e78.zip
op-kernel-dev-0fbf405c583e6ee6d7227eb938a096d0998f7e78.tar.gz
[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>
-rw-r--r--sound/core/pcm_native.c2
1 files changed, 0 insertions, 2 deletions
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 */
OpenPOWER on IntegriCloud