Lines Matching refs:hdelta
263 snd_pcm_sframes_t hdelta, delta; in snd_pcm_update_hw_ptr0() local
320 hdelta = curr_jiffies - runtime->hw_ptr_jiffies; in snd_pcm_update_hw_ptr0()
321 if (hdelta > runtime->hw_ptr_buffer_jiffies/2 + 1) { in snd_pcm_update_hw_ptr0()
356 hdelta = jdelta - delta * HZ / runtime->rate; in snd_pcm_update_hw_ptr0()
358 while (hdelta > xrun_threshold) { in snd_pcm_update_hw_ptr0()
366 hdelta -= runtime->hw_ptr_buffer_jiffies; in snd_pcm_update_hw_ptr0()
390 hdelta = delta; in snd_pcm_update_hw_ptr0()
391 if (hdelta < runtime->delay) in snd_pcm_update_hw_ptr0()
393 hdelta -= runtime->delay; in snd_pcm_update_hw_ptr0()
395 if (((hdelta * HZ) / runtime->rate) > jdelta + HZ/100) { in snd_pcm_update_hw_ptr0()
415 (long)pos, (long)hdelta, in snd_pcm_update_hw_ptr0()
417 ((hdelta * HZ) / runtime->rate), hw_base, in snd_pcm_update_hw_ptr0()