Skip to content

alsa-lib: dynamically adapt the avail_min on the slave

Jiada Wang alsa-devel 2 versions – Applied

Status from this message: Thanks, applied both patches now.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2plugin: dynamically update avail_min on slavesrc/pcm/pcm_plugin.c+63 -10 replies
2/2rate: dynamic update avail_min on slavesrc/pcm/pcm_plugin.c src/pcm/pcm_plugin.h src/pcm/pcm_rate.c+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/2 v2] alsa-lib: dynamically adapt the avail_min on the slave

When configuring avail_min to multiple of slave period size it can happen that user waits one slave period longer than needed for available data. Root cause is implicit grabbing of slave samples in avail_update operation. On next entering poll, the slave will wait for the avail_min threshold reached again, as he is not aware that there are already pending samples in the above layer which are not yet provided to user.
Solution is to dynamically adapt the avail_min on the slave.

Andreas Pape (2):
plugin: dynamically update avail_min on slave
rate: dynamic update avail_min on slave

 src/pcm/pcm_plugin.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 src/pcm/pcm_plugin.h |  3 +++
 src/pcm/pcm_rate.c   |  2 +-
 3 files changed, 67 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.3