]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix snd_pcm_mmap_hw_avail() near the boundary
authorAlexander E. Patrakov <patrakov@gmail.com>
Sun, 31 Aug 2014 16:23:47 +0000 (22:23 +0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Sep 2014 13:27:46 +0000 (15:27 +0200)
commit99a2254f5f2a085b81efcc80950033a2b6110ecd
treee0b4af8b6faf2008920cb94df73bad87902fb0af
parent5f1960e3d8d56aa63afe2c37c6a3f4aa03571627
pcm: fix snd_pcm_mmap_hw_avail() near the boundary

This function returned incorrect results when hw.ptr was near the
boundary and hw.appl_ptr was near zero. Here "incorrect" means "greater
than the boundary".

The result was incorrect, because it was used as a return value of
various *_rewindable() functions and also as the delay for ioplug.

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_local.h