alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] alsa-lib: dynamically adapt the avail_min on the slave
@ 2016-11-10  7:34 Jiada Wang
  2016-11-10  7:34 ` [PATCH 1/2] plugin: dynamically update avail_min on slave Jiada Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jiada Wang @ 2016-11-10  7:34 UTC (permalink / raw)
  To: lgirdwood, broonie, wens; +Cc: jiada_wang, alsa-devel, apape

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 | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
 src/pcm/pcm_plugin.h |  3 +++
 src/pcm/pcm_rate.c   |  2 +-
 3 files changed, 51 insertions(+), 2 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-09  5:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10  7:34 [PATCH 0/2] alsa-lib: dynamically adapt the avail_min on the slave Jiada Wang
2016-11-10  7:34 ` [PATCH 1/2] plugin: dynamically update avail_min on slave Jiada Wang
2016-11-10  7:34 ` [PATCH 2/2] rate: dynamic " Jiada Wang
2016-11-11 11:10 ` [PATCH 0/2] alsa-lib: dynamically adapt the avail_min on the slave Takashi Iwai
2016-11-28  8:31   ` Jiada Wang
2016-12-09  5:41   ` Jiada Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).