]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix wait condition in snd_pcm_write_areas() to avoid return zero
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2019 07:14:33 +0000 (09:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2019 08:27:36 +0000 (10:27 +0200)
commitc7fc3fdbe23e63757b0e2c88c0d7c029c660923b
treeb620ad2263de332ce4936302db19ffb84f23c496
parent4694a6643dc09c5e41969d33ed98f42278a02d40
pcm: fix wait condition in snd_pcm_write_areas() to avoid return zero

The hw_ptr might be updated during the snd_pcm_may_wait_for_avail_min() call,
so even if it returns zero (OK), the avail must be updated again.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm.c