Check whether the capture buffer is available
int snd_pcm_capture_ready(struct snd_pcm_substream * substream);
substream
the pcm substream instance
Checks whether enough capture data is available on the capture buffer.
Non-zero if available, or zero if not.