Reference

snd_pcm_capture_ready(9) on Linux

The text d68cefa906e0, as Debian 7 (Wheezy) shipped it.

check whether the capture buffer is available

snd_pcm_capture_ready(9) on Linux now