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:
28cc099
)
Revert "pcm_plugin: fix delay"
author
Jaroslav Kysela
<perex@perex.cz>
Wed, 30 Dec 2020 16:49:33 +0000
(17:49 +0100)
committer
Jaroslav Kysela
<perex@perex.cz>
Sun, 3 Jan 2021 15:43:30 +0000
(16:43 +0100)
This reverts commit
aba87e509898ec9ddb3e319267d7c267409ff100
.
The commit does not look good. The plugins must handle
the delay value correctly.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_plugin.c
patch
|
blob
|
history
diff --git
a/src/pcm/pcm_plugin.c
b/src/pcm/pcm_plugin.c
index
6a81514
..
5787a43
100644
(file)
--- a/
src/pcm/pcm_plugin.c
+++ b/
src/pcm/pcm_plugin.c
@@
-142,12
+142,6
@@
static int snd_pcm_plugin_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp)
int err = snd_pcm_delay(plugin->gen.slave, &sd);
if (err < 0)
return err;
- if (pcm->stream == SND_PCM_STREAM_CAPTURE &&
- pcm->access != SND_PCM_ACCESS_RW_INTERLEAVED &&
- pcm->access != SND_PCM_ACCESS_RW_NONINTERLEAVED) {
- sd += snd_pcm_mmap_capture_avail(pcm);
- }
-
*delayp = sd;
return 0;
}