Lines Matching refs:appl_ptr
72 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() local
73 update_silence_vars(runtime, runtime->silence_start, appl_ptr); in snd_pcm_playback_silence()
78 noise_dist = appl_ptr - new_hw_ptr; in snd_pcm_playback_silence()
101 snd_pcm_sframes_t avail = runtime->control->appl_ptr - hw_ptr; in snd_pcm_playback_silence()
2228 snd_pcm_uframes_t appl_ptr) in pcm_lib_apply_appl_ptr() argument
2231 snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; in pcm_lib_apply_appl_ptr()
2235 if (old_appl_ptr == appl_ptr) in pcm_lib_apply_appl_ptr()
2238 if (appl_ptr >= runtime->boundary) in pcm_lib_apply_appl_ptr()
2244 diff = appl_ptr - old_appl_ptr; in pcm_lib_apply_appl_ptr()
2254 runtime->control->appl_ptr = appl_ptr; in pcm_lib_apply_appl_ptr()
2258 runtime->control->appl_ptr = old_appl_ptr; in pcm_lib_apply_appl_ptr()
2265 trace_applptr(substream, old_appl_ptr, appl_ptr); in pcm_lib_apply_appl_ptr()
2343 snd_pcm_uframes_t frames, appl_ptr, appl_ofs; in __snd_pcm_lib_xfer() local
2364 appl_ptr = READ_ONCE(runtime->control->appl_ptr); in __snd_pcm_lib_xfer()
2365 appl_ofs = appl_ptr % runtime->buffer_size; in __snd_pcm_lib_xfer()
2391 appl_ptr += frames; in __snd_pcm_lib_xfer()
2392 if (appl_ptr >= runtime->boundary) in __snd_pcm_lib_xfer()
2393 appl_ptr -= runtime->boundary; in __snd_pcm_lib_xfer()
2394 err = pcm_lib_apply_appl_ptr(substream, appl_ptr); in __snd_pcm_lib_xfer()