[PATCH] [UBUNTU:sound/core/] Fix pcm-draining of capture stream in PCM middle layer
crimsun at fungus.sh.nu
crimsun at fungus.sh.nu
Fri Jun 2 21:11:24 UTC 2006
Subject: [PATCH] [UBUNTU:sound/core/] Fix pcm-draining of capture stream in PCM middle layer
UpstreamStatus: Added in upstream alsa-kernel hg changeset 912de5ce9d3c
http://hg-mirror.alsa-project.org/alsa-kernel?cmd=changeset;node=912de5ce9d3c7f5959b9e2c0b8472237e4cda77e;style=raw
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: Daniel T Chen <crimsun at ubuntu.com>
---
sound/core/pcm_native.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
ff802a335d919f94211a0e8ab16a942337faac7c
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 69c6a83..007c7de 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -1423,8 +1423,6 @@ static int snd_pcm_drain(snd_pcm_substre
}
}
up_read(&snd_pcm_link_rwsem);
- if (! num_drecs)
- goto _error;
snd_pcm_stream_lock_irq(substream);
/* resume pause */
--
1.1.3
--
Daniel T. Chen crimsun at ubuntu.com
GPG key: www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060602/f8f5a042/attachment.sig>
More information about the kernel-team
mailing list