The Advanced Linux Sound Architecture (ALSA) - library
Find a file
Takashi Iwai d3d42f60a6 pcm: Skip avail_min check during draining
snd_pcm_wait() & co checks the current avail value and returns
immediately if it satisfies <= avail_min condition.  It's good in
general except for one situation: draining.  When the draining is
being performed in the non-blocking mode, apps are supposed to wait
via poll(), typically via snd_pcm_wait().  So this ends up with the
busy loop because of the immediate return from snd_pcm_wait().

A simple workaround is to put the PCM state check and ignore the
avail_min condition if it's DRAINING state.  The equivalent check is
found in the kernel xfer code, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-03-29 09:23:46 +02:00
alsalisp Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
aserver a set of fixes to reduce gcc warnings 2018-03-27 15:16:41 +02:00
doc doxygen: Suppress timestamp 2016-06-23 16:29:07 +02:00
include a set of fixes to reduce gcc warnings 2018-03-27 15:16:41 +02:00
m4 Add the attributes.m4 macro file from xine/lscube. 2008-11-21 13:04:19 +01:00
modules modules: smixer_python - add support for python3 2018-03-27 14:51:39 +02:00
src pcm: Skip avail_min check during draining 2018-03-29 09:23:46 +02:00
test test: correct emulation for channel-map TLV 2017-11-24 13:47:17 +01:00
utils autotools: update style 2014-02-26 08:16:22 +01:00
.gitignore Add pcm-multi-thread to .gitignore 2016-07-07 16:30:54 +02:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:52:17 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.ac modules: smixer_python - add support for python3 2018-03-27 14:51:39 +02:00
COPYING Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
gitcompile a set of fixes to reduce gcc warnings 2018-03-27 15:16:41 +02:00
INSTALL pcm: Add thread-safety to PCM API 2016-07-11 15:25:30 +02:00
Makefile.am autotools: update style 2014-02-26 08:16:22 +01:00
MEMORY-LEAK Initial version 2003-02-04 14:56:07 +00:00
NOTES Change assert condition in error message handler 2007-10-24 12:53:08 +02:00
TODO Added snd_config_load_override(). 2002-01-09 21:28:15 +00:00