]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: dmix/dshare - delay calculation fixes and cleanups
authorJaroslav Kysela <perex@perex.cz>
Tue, 19 Jan 2021 10:17:00 +0000 (11:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Jan 2021 16:05:00 +0000 (17:05 +0100)
commit0de72e63d7bd180566c71f6fb01d7719525ee326
tree0061e0a95dd91f96e3e1d32b1b2b42bce2256c30
parent644514e85da169670e4a490b7b15b5ecfcec92c0
pcm: dmix/dshare - delay calculation fixes and cleanups

Unfortunately, we cannot use status->avail from slave, because this value
does not wrap to the buffer size and it may even overflow slave boundary
(endless run). We can use only hw_ptr from slave.

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