]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: multi plugin: detach the hw_ptr and appl_ptr from master_slave
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2019 08:12:34 +0000 (10:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2019 08:27:36 +0000 (10:27 +0200)
commit369df322577034ea872978d6470edbadf30d81a9
tree355ebc7bfbec36e648bcd1b9ef21f57ff60aa337
parentc7fc3fdbe23e63757b0e2c88c0d7c029c660923b
pcm: multi plugin: detach the hw_ptr and appl_ptr from master_slave

Unfortunately, the master_slave buffer pointers are not always in sync with
the presented avail value and the higher layers (like write_areas) got
confused. Create own hw_ptr and appl_ptr.

This commit also tries to fix the hwsync and delay implementation (iterate
through all slaves).

The multi plugin was designed only for hardware which runs really in sync.
Anyway, users are trying to use this plugin for other purposes.

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