Home
last modified time | relevance | path

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

/third_party/alsa-lib/src/pcm/
Dpcm_dsnoop.c70 dsnoop->slave_hw_ptr = ptr1; in snoop_timestamp()
102 static void snd_pcm_dsnoop_sync_area(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_ptr, snd_pcm_uframe… in snd_pcm_dsnoop_sync_area() argument
113 slave_hw_ptr %= dsnoop->slave_buffer_size; in snd_pcm_dsnoop_sync_area()
116 transfer = slave_hw_ptr + transfer > dsnoop->slave_buffer_size ? in snd_pcm_dsnoop_sync_area()
117 dsnoop->slave_buffer_size - slave_hw_ptr : transfer; in snd_pcm_dsnoop_sync_area()
119 snoop_areas(dsnoop, src_areas, dst_areas, slave_hw_ptr, hw_ptr, transfer); in snd_pcm_dsnoop_sync_area()
120 slave_hw_ptr += transfer; in snd_pcm_dsnoop_sync_area()
121 slave_hw_ptr %= dsnoop->slave_buffer_size; in snd_pcm_dsnoop_sync_area()
133 snd_pcm_uframes_t slave_hw_ptr, old_slave_hw_ptr, avail; in snd_pcm_dsnoop_sync_ptr() local
152 old_slave_hw_ptr = dsnoop->slave_hw_ptr; in snd_pcm_dsnoop_sync_ptr()
[all …]
Dpcm_dshare.c110 snd_pcm_uframes_t slave_hw_ptr, slave_appl_ptr, slave_size; in snd_pcm_dshare_sync_area() local
118 slave_hw_ptr = dshare->slave_hw_ptr; in snd_pcm_dshare_sync_area()
122 slave_hw_ptr -= slave_hw_ptr % dshare->slave_period_size; in snd_pcm_dshare_sync_area()
123 slave_hw_ptr += dshare->slave_buffer_size; in snd_pcm_dshare_sync_area()
124 if (slave_hw_ptr >= dshare->slave_boundary) in snd_pcm_dshare_sync_area()
125 slave_hw_ptr -= dshare->slave_boundary; in snd_pcm_dshare_sync_area()
126 slave_size = pcm_frame_diff(slave_hw_ptr, dshare->slave_appl_ptr, dshare->slave_boundary); in snd_pcm_dshare_sync_area()
161 static int snd_pcm_dshare_sync_ptr0(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_ptr) in snd_pcm_dshare_sync_ptr0() argument
167 old_slave_hw_ptr = dshare->slave_hw_ptr; in snd_pcm_dshare_sync_ptr0()
168 dshare->slave_hw_ptr = slave_hw_ptr; in snd_pcm_dshare_sync_ptr0()
[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()
343 slave_hw_ptr = dmix->slave_hw_ptr; in snd_pcm_dmix_sync_area()
347 slave_hw_ptr -= slave_hw_ptr % dmix->slave_period_size; in snd_pcm_dmix_sync_area()
348 slave_hw_ptr += dmix->slave_buffer_size; in snd_pcm_dmix_sync_area()
349 if (slave_hw_ptr >= dmix->slave_boundary) in snd_pcm_dmix_sync_area()
350 slave_hw_ptr -= dmix->slave_boundary; 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()
388 static int snd_pcm_dmix_sync_ptr0(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_ptr) in snd_pcm_dmix_sync_ptr0() argument
394 old_slave_hw_ptr = dmix->slave_hw_ptr; in snd_pcm_dmix_sync_ptr0()
[all …]
Dpcm_multi.c408 snd_pcm_uframes_t hw_ptr = 0, slave_hw_ptr, avail, last_avail; in snd_pcm_multi_hwptr_update() local
414 slave_hw_ptr = *multi->slaves[i].pcm->hw.ptr; in snd_pcm_multi_hwptr_update()
415 avail = __snd_pcm_playback_avail(pcm, multi->hw_ptr, slave_hw_ptr); in snd_pcm_multi_hwptr_update()
417 hw_ptr = slave_hw_ptr; in snd_pcm_multi_hwptr_update()
424 slave_hw_ptr = *multi->slaves[i].pcm->hw.ptr; in snd_pcm_multi_hwptr_update()
425 avail = __snd_pcm_capture_avail(pcm, multi->hw_ptr, slave_hw_ptr); in snd_pcm_multi_hwptr_update()
427 hw_ptr = slave_hw_ptr; in snd_pcm_multi_hwptr_update()
Dpcm_plugin.c526 snd_pcm_uframes_t slave_hw_ptr, in snd_pcm_plugin_sync_hw_ptr() argument
533 *pcm->hw.ptr = slave_hw_ptr; in snd_pcm_plugin_sync_hw_ptr()
Dpcm_direct.h147 snd_pcm_uframes_t slave_hw_ptr; member
Dpcm_rate.c638 static inline void snd_pcm_rate_sync_hwptr0(snd_pcm_t *pcm, snd_pcm_uframes_t slave_hw_ptr) in snd_pcm_rate_sync_hwptr0() argument
648 …slave_hw_ptr_diff = pcm_frame_diff(slave_hw_ptr, rate->last_slave_hw_ptr, rate->gen.slave->boundar… in snd_pcm_rate_sync_hwptr0()
665 rate->last_slave_hw_ptr = slave_hw_ptr; in snd_pcm_rate_sync_hwptr0()
Dpcm_direct.c2088 dmix->slave_appl_ptr = dmix->slave_hw_ptr =
2089 ((dmix->slave_hw_ptr / dmix->slave_period_size) *