tinyalsa/tinyalsa — pull request #42 by StevenNAN (2014-06-16 03:11:28+00:00)
Title: fix the issue on calculating avail value in pcm_mmap_playback_avail()

avail should be zero when (hw_ptr + buffer_size - appl_ptr) reaches to pcm->boundary.