snd_pcm_capture_hw_avail
return snd_pcm_capture_hw_avail(substream->runtime);
avail = snd_pcm_capture_hw_avail(runtime);