Home
last modified time | relevance | path

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

/third_party/alsa-lib/src/pcm/
Dpcm_plugin.c394 snd_pcm_sframes_t slave_size; in snd_pcm_plugin_mmap_commit() local
402 slave_size = snd_pcm_avail_update(slave); in snd_pcm_plugin_mmap_commit()
403 if (slave_size < 0) in snd_pcm_plugin_mmap_commit()
404 return slave_size; in snd_pcm_plugin_mmap_commit()
408 while (size > 0 && slave_size > 0) { in snd_pcm_plugin_mmap_commit()
446 slave_size -= frames; in snd_pcm_plugin_mmap_commit()
461 snd_pcm_sframes_t slave_size) in snd_pcm_plugin_sync_hw_ptr_capture() argument
473 while (size > 0 && slave_size > 0) { in snd_pcm_plugin_sync_hw_ptr_capture()
487 slave_size = snd_pcm_avail_update(slave); in snd_pcm_plugin_sync_hw_ptr_capture()
517 slave_size -= slave_frames; in snd_pcm_plugin_sync_hw_ptr_capture()
[all …]
Dpcm_rate.c774 snd_pcm_uframes_t slave_size) in snd_pcm_rate_commit_area() argument
788 if (slave_frames < slave_size) { in snd_pcm_rate_commit_area()
794 result = snd_pcm_mmap_commit(rate->gen.slave, slave_offset, slave_size); in snd_pcm_rate_commit_area()
795 if (result < (snd_pcm_sframes_t)slave_size) { in snd_pcm_rate_commit_area()
821 if (cont > slave_size) in snd_pcm_rate_commit_area()
822 cont = slave_size; in snd_pcm_rate_commit_area()
838 if (xfer == slave_size) in snd_pcm_rate_commit_area()
842 cont = slave_size - cont; in snd_pcm_rate_commit_area()
993 snd_pcm_sframes_t slave_size; in snd_pcm_rate_sync_playback_area() local
996 slave_size = snd_pcm_avail_update(slave); in snd_pcm_rate_sync_playback_area()
[all …]
Dpcm_dmix.c314 snd_pcm_uframes_t slave_hw_ptr, slave_appl_ptr, slave_size; in snd_pcm_dmix_sync_area() local
328 slave_size = pcm_frame_diff(dmix->slave_appl_ptr, dmix->slave_hw_ptr, dmix->slave_boundary); in snd_pcm_dmix_sync_area()
329 if (slave_size > dmix->slave_buffer_size) { in snd_pcm_dmix_sync_area()
330 transfer = dmix->slave_buffer_size - slave_size; in snd_pcm_dmix_sync_area()
351 slave_size = pcm_frame_diff(slave_hw_ptr, dmix->slave_appl_ptr, dmix->slave_boundary); in snd_pcm_dmix_sync_area()
352 if (slave_size < size) in snd_pcm_dmix_sync_area()
353 size = slave_size; in snd_pcm_dmix_sync_area()
697 snd_pcm_uframes_t slave_appl_ptr, slave_size; in snd_pcm_dmix_rewind() local
731 slave_size = pcm_frame_diff(dmix->slave_appl_ptr, dmix->slave_hw_ptr, pcm->boundary); in snd_pcm_dmix_rewind()
732 if (slave_size < size) in snd_pcm_dmix_rewind()
[all …]
Dpcm_dshare.c110 snd_pcm_uframes_t slave_hw_ptr, slave_appl_ptr, slave_size; in snd_pcm_dshare_sync_area() local
126 slave_size = pcm_frame_diff(slave_hw_ptr, dshare->slave_appl_ptr, dshare->slave_boundary); in snd_pcm_dshare_sync_area()
127 if (slave_size < size) in snd_pcm_dshare_sync_area()
128 size = slave_size; in snd_pcm_dshare_sync_area()