Reference

snd_pcm_capture_ready(9) on Linux

The text 39c6190a3637, as Debian 5.0 (Lenny) shipped it.

check whether the capture buffer is available

snd_pcm_capture_ready(9) on Linux now