Reference

snd_pcm_capture_ready(9) on Linux

The text 0644a4ae228b, as Debian 4.0 (Etch) shipped it.

check whether the capture buffer is available

snd_pcm_capture_ready(9) on Linux now