Lines Matching refs:delta
253 snd_pcm_sframes_t hdelta, delta; in snd_pcm_update_hw_ptr0() local
307 delta = runtime->hw_ptr_interrupt + runtime->period_size; in snd_pcm_update_hw_ptr0()
308 if (delta > new_hw_ptr) { in snd_pcm_update_hw_ptr0()
333 delta = new_hw_ptr - old_hw_ptr; in snd_pcm_update_hw_ptr0()
334 if (delta < 0) in snd_pcm_update_hw_ptr0()
335 delta += runtime->boundary; in snd_pcm_update_hw_ptr0()
346 hdelta = jdelta - delta * HZ / runtime->rate; in snd_pcm_update_hw_ptr0()
349 delta += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
362 if (delta >= runtime->buffer_size + runtime->period_size) { in snd_pcm_update_hw_ptr0()
380 hdelta = delta; in snd_pcm_update_hw_ptr0()
386 delta = jdelta / in snd_pcm_update_hw_ptr0()
391 hw_base = delta; in snd_pcm_update_hw_ptr0()
394 while (delta > 0) { in snd_pcm_update_hw_ptr0()
400 delta--; in snd_pcm_update_hw_ptr0()
411 delta = 0; in snd_pcm_update_hw_ptr0()
415 if (delta > runtime->period_size + runtime->period_size / 2) { in snd_pcm_update_hw_ptr0()
419 substream->stream, (long)delta, in snd_pcm_update_hw_ptr0()
436 delta = new_hw_ptr - runtime->hw_ptr_interrupt; in snd_pcm_update_hw_ptr0()
437 if (delta < 0) in snd_pcm_update_hw_ptr0()
438 delta += runtime->boundary; in snd_pcm_update_hw_ptr0()
439 delta -= (snd_pcm_uframes_t)delta % runtime->period_size; in snd_pcm_update_hw_ptr0()
440 runtime->hw_ptr_interrupt += delta; in snd_pcm_update_hw_ptr0()