Lines Matching refs:appl_ptr
68 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() local
69 if (runtime->silence_start != appl_ptr) { in snd_pcm_playback_silence()
70 n = appl_ptr - runtime->silence_start; in snd_pcm_playback_silence()
77 runtime->silence_start = appl_ptr; in snd_pcm_playback_silence()
2092 snd_pcm_uframes_t appl_ptr) in pcm_lib_apply_appl_ptr() argument
2095 snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; in pcm_lib_apply_appl_ptr()
2098 if (old_appl_ptr == appl_ptr) in pcm_lib_apply_appl_ptr()
2101 runtime->control->appl_ptr = appl_ptr; in pcm_lib_apply_appl_ptr()
2105 runtime->control->appl_ptr = old_appl_ptr; in pcm_lib_apply_appl_ptr()
2110 trace_applptr(substream, old_appl_ptr, appl_ptr); in pcm_lib_apply_appl_ptr()
2188 snd_pcm_uframes_t frames, appl_ptr, appl_ofs; in __snd_pcm_lib_xfer() local
2209 appl_ptr = READ_ONCE(runtime->control->appl_ptr); in __snd_pcm_lib_xfer()
2210 appl_ofs = appl_ptr % runtime->buffer_size; in __snd_pcm_lib_xfer()
2228 appl_ptr += frames; in __snd_pcm_lib_xfer()
2229 if (appl_ptr >= runtime->boundary) in __snd_pcm_lib_xfer()
2230 appl_ptr -= runtime->boundary; in __snd_pcm_lib_xfer()
2231 err = pcm_lib_apply_appl_ptr(substream, appl_ptr); in __snd_pcm_lib_xfer()