Home
last modified time | relevance | path

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

/openbmc/qemu/audio/
H A Ddsoundaudio.c445 hw->pos_emul = wpos; in dsound_buffer_get_free()
449 return audio_ring_dist(ppos, hw->pos_emul, hw->size_emul); in dsound_buffer_get_free()
461 req_size = MIN(*size, hw->size_emul - hw->pos_emul); in dsound_get_buffer_out()
464 err = dsound_lock_out(dsb, &hw->info, hw->pos_emul, req_size, &ret, NULL, in dsound_get_buffer_out()
486 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_out()
555 hw->pos_emul = rpos; in dsound_get_buffer_in()
559 req_size = audio_ring_dist(rpos, hw->pos_emul, hw->size_emul); in dsound_get_buffer_in()
560 req_size = MIN(*size, MIN(req_size, hw->size_emul - hw->pos_emul)); in dsound_get_buffer_in()
567 err = dsound_lock_in(dscb, &hw->info, hw->pos_emul, req_size, &ret, NULL, in dsound_get_buffer_in()
589 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_in()
H A Dossaudio.c381 return audio_ring_dist(cntinfo.ptr, oss->hw.pos_emul, oss->hw.size_emul); in oss_get_available_bytes()
409 *size = hw->size_emul - hw->pos_emul; in oss_get_buffer_out()
410 return hw->buf_emul + hw->pos_emul; in oss_get_buffer_out()
420 assert(buf == hw->buf_emul + hw->pos_emul && size < hw->size_emul); in oss_put_buffer_out()
422 hw->pos_emul = (hw->pos_emul + size) % hw->size_emul; in oss_put_buffer_out()
440 size_t to_copy = MIN(len, hw->size_emul - hw->pos_emul); in oss_write()
441 memcpy(hw->buf_emul + hw->pos_emul, buf, to_copy); in oss_write()
443 hw->pos_emul = (hw->pos_emul + to_copy) % hw->size_emul; in oss_write()
H A Dsdlaudio.c230 start = audio_ring_posb(hw->pos_emul, hw->pending_emul, in sdl_callback_out()
278 size_t read_len = MIN(len, MIN(hw->size_emul - hw->pos_emul, in sdl_callback_in()
281 memcpy(hw->buf_emul + hw->pos_emul, buf, read_len); in sdl_callback_in()
284 hw->pos_emul = (hw->pos_emul + read_len) % hw->size_emul; in sdl_callback_in()
439 hw->pos_emul = hw->pending_emul = 0; in sdl_init_in()
H A Daudio.c1415 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()
[all …]
H A Daudio_int.h76 size_t pos_emul, pending_emul, size_emul; member
98 size_t pos_emul, pending_emul, size_emul; member
H A Dcoreaudio.m339 start = audio_ring_posb(hw->pos_emul, hw->pending_emul, hw->size_emul);