OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d33579
)
Fixed the share->state when DRAINING
author
Jaroslav Kysela
<perex@perex.cz>
Thu, 25 Oct 2001 13:53:35 +0000
(13:53 +0000)
committer
Jaroslav Kysela
<perex@perex.cz>
Thu, 25 Oct 2001 13:53:35 +0000
(13:53 +0000)
src/pcm/pcm_share.c
patch
|
blob
|
history
diff --git
a/src/pcm/pcm_share.c
b/src/pcm/pcm_share.c
index
1d91ebf
..
9b1d28b
100644
(file)
--- a/
src/pcm/pcm_share.c
+++ b/
src/pcm/pcm_share.c
@@
-210,7
+210,7
@@
static snd_pcm_uframes_t _snd_pcm_share_missing(snd_pcm_t *pcm)
share->hw_ptr = slave->hw_ptr;
avail = snd_pcm_mmap_avail(pcm);
if (avail >= pcm->stop_threshold) {
- _snd_pcm_share_stop(pcm, SND_PCM_STATE_XRUN);
+ _snd_pcm_share_stop(pcm,
share->state == SND_PCM_STATE_DRAINING ? SND_PCM_STATE_SETUP :
SND_PCM_STATE_XRUN);
goto update_poll;
}
hw_avail = buffer_size - avail;