]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix snd_pcm_avail_delay() function
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Nov 2010 08:27:07 +0000 (09:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Nov 2010 08:27:07 +0000 (09:27 +0100)
commitba9332e9192814a5431a3a2505d25d74a9232124
treea37c9f6e76d05f6c20d2bd8f246df6aa3d4d5256
parent7c99bd24bcf6852d55e90e0f42f7ac5ea8f14fbb
pcm: fix snd_pcm_avail_delay() function

For capture stream, the delay must be obtained as last, but we need to
update the ring buffer pointers for the avail_update call. So, rearrange
the code a bit and add hwsync call as first.

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