• Home
  • Raw
  • Download

Lines Matching refs:avail

80 			snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime);  in snd_pcm_playback_silence()  local
81 if (avail > runtime->buffer_size) in snd_pcm_playback_silence()
82 avail = runtime->buffer_size; in snd_pcm_playback_silence()
83 runtime->silence_filled = avail > 0 ? avail : 0; in snd_pcm_playback_silence()
208 snd_pcm_uframes_t avail; in snd_pcm_update_state() local
211 avail = snd_pcm_playback_avail(runtime); in snd_pcm_update_state()
213 avail = snd_pcm_capture_avail(runtime); in snd_pcm_update_state()
214 if (avail > runtime->avail_max) in snd_pcm_update_state()
215 runtime->avail_max = avail; in snd_pcm_update_state()
217 if (avail >= runtime->buffer_size) { in snd_pcm_update_state()
222 if (avail >= runtime->stop_threshold) { in snd_pcm_update_state()
228 if (avail >= runtime->twake) in snd_pcm_update_state()
230 } else if (avail >= runtime->control->avail_min) in snd_pcm_update_state()
1918 snd_pcm_uframes_t avail = 0; in wait_for_avail() local
1950 avail = snd_pcm_playback_avail(runtime); in wait_for_avail()
1952 avail = snd_pcm_capture_avail(runtime); in wait_for_avail()
1953 if (avail >= runtime->twake) in wait_for_avail()
1972 avail = 0; /* indicate draining */ in wait_for_avail()
1993 *availp = avail; in wait_for_avail()
2029 snd_pcm_uframes_t avail; in snd_pcm_lib_write1() local
2055 avail = snd_pcm_playback_avail(runtime); in snd_pcm_lib_write1()
2059 if (!avail) { in snd_pcm_lib_write1()
2066 err = wait_for_avail(substream, &avail); in snd_pcm_lib_write1()
2070 frames = size > avail ? avail : size; in snd_pcm_lib_write1()
2106 avail -= frames; in snd_pcm_lib_write1()
2247 snd_pcm_uframes_t avail; in snd_pcm_lib_read1() local
2280 avail = snd_pcm_capture_avail(runtime); in snd_pcm_lib_read1()
2284 if (!avail) { in snd_pcm_lib_read1()
2296 err = wait_for_avail(substream, &avail); in snd_pcm_lib_read1()
2299 if (!avail) in snd_pcm_lib_read1()
2302 frames = size > avail ? avail : size; in snd_pcm_lib_read1()
2338 avail -= frames; in snd_pcm_lib_read1()