Reference

snd_pcm_capture_ready(9) on Linux

The text f556ac8d2250, as Debian 6.0 (Squeeze) shipped it.

check whether the capture buffer is available

snd_pcm_capture_ready(9) on Linux now