Lines Matching refs:pos_emul
1415 hw->pos_emul = hw->pending_emul = 0; in audio_generic_run_buffer_in()
1419 size_t read_len = MIN(hw->size_emul - hw->pos_emul, in audio_generic_run_buffer_in()
1421 size_t read = hw->pcm_ops->read(hw, hw->buf_emul + hw->pos_emul, in audio_generic_run_buffer_in()
1424 hw->pos_emul = (hw->pos_emul + read) % hw->size_emul; in audio_generic_run_buffer_in()
1435 start = audio_ring_posb(hw->pos_emul, hw->pending_emul, hw->size_emul); in audio_generic_get_buffer_in()
1463 start = audio_ring_posb(hw->pos_emul, hw->pending_emul, hw->size_emul); in audio_generic_run_buffer_out()
1482 hw->pos_emul = hw->pending_emul = 0; in audio_generic_get_buffer_out()
1486 hw->size_emul - hw->pos_emul); in audio_generic_get_buffer_out()
1487 return hw->buf_emul + hw->pos_emul; in audio_generic_get_buffer_out()
1492 assert(buf == hw->buf_emul + hw->pos_emul && in audio_generic_put_buffer_out()
1496 hw->pos_emul = (hw->pos_emul + size) % hw->size_emul; in audio_generic_put_buffer_out()