]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix the snd_pcm_plugin_status() avail and delay fields
authorJaroslav Kysela <perex@perex.cz>
Fri, 9 Oct 2020 17:57:57 +0000 (19:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 9 Oct 2020 18:02:22 +0000 (20:02 +0200)
commit4f90392f07e8822d1984ed990f622ad36022a4a3
tree05b0627640d2e636f888726ab74c5db8f76490d1
parent2b217b7010b7d57848db9c01eb57b5535c332af2
pcm: fix the snd_pcm_plugin_status() avail and delay fields

The avail and delay fields in the returned status structure does not
reflect the actual hw_ptr/appl_ptr. This change correct this.

TODO: Unfortunately, the delay might contain also information about
extra hardware / buffering delay which is hidden with this change.

Link: https://lore.kernel.org/alsa-devel/d9c1f37e-5c8d-f289-270e-c6cda7a56ce3@axis.com/
Reported-by: Jonas Holmberg <jonashg@axis.com>
Tested-by: Jonas Holmberg <jonashg@axis.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_plugin.c