Home
last modified time | relevance | path

Searched refs:hdelta (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/core/
H A Dpcm_lib.c289 snd_pcm_sframes_t hdelta, delta; in snd_pcm_update_hw_ptr0() local
346 hdelta = curr_jiffies - runtime->hw_ptr_jiffies; in snd_pcm_update_hw_ptr0()
347 if (hdelta > runtime->hw_ptr_buffer_jiffies/2 + 1) { in snd_pcm_update_hw_ptr0()
382 hdelta = jdelta - delta * HZ / runtime->rate; in snd_pcm_update_hw_ptr0()
384 while (hdelta > xrun_threshold) { in snd_pcm_update_hw_ptr0()
392 hdelta -= runtime->hw_ptr_buffer_jiffies; in snd_pcm_update_hw_ptr0()
416 hdelta = delta; in snd_pcm_update_hw_ptr0()
417 if (hdelta < runtime->delay) in snd_pcm_update_hw_ptr0()
419 hdelta -= runtime->delay; in snd_pcm_update_hw_ptr0()
421 if (((hdelta * HZ) / runtime->rate) > jdelta + HZ/100) { in snd_pcm_update_hw_ptr0()
[all …]