Searched refs:hw_base (Results 1 – 2 of 2) sorted by relevance
92 unsigned int hw_ptr = 0, hw_base = 0; in mtk_afe_pcm_pointer() local102 ret = regmap_read(regmap, reg_ofs_base, &hw_base); in mtk_afe_pcm_pointer()103 if (ret || hw_base == 0) { in mtk_afe_pcm_pointer()109 pcm_ptr_bytes = hw_ptr - hw_base; in mtk_afe_pcm_pointer()
252 snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base; in snd_pcm_update_hw_ptr0() local302 hw_base = runtime->hw_ptr_base; in snd_pcm_update_hw_ptr0()303 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()312 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()313 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()314 hw_base = 0; in snd_pcm_update_hw_ptr0()317 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()325 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()326 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()327 hw_base = 0; in snd_pcm_update_hw_ptr0()[all …]