Reference

snd_pcm_capture_ready(9) on Linux

The text 9bf270293b65, as Debian 8 (Jessie) shipped it.

check whether the capture buffer is available

snd_pcm_capture_ready(9) on Linux now