Home
last modified time | relevance | path

Searched refs:appl_ptr (Results 1 – 25 of 34) sorted by relevance

12

/third_party/alsa-lib/src/pcm/
Dpcm_dmix.c315 snd_pcm_uframes_t appl_ptr, size, transfer; in snd_pcm_dmix_sync_area() local
322 size = pcm_frame_diff2(dmix->appl_ptr, dmix->last_appl_ptr, pcm->boundary); in snd_pcm_dmix_sync_area()
337 size = pcm_frame_diff2(dmix->appl_ptr, dmix->last_appl_ptr, pcm->boundary); in snd_pcm_dmix_sync_area()
360 appl_ptr = dmix->last_appl_ptr % pcm->buffer_size; in snd_pcm_dmix_sync_area()
369 if (appl_ptr + transfer > pcm->buffer_size) in snd_pcm_dmix_sync_area()
370 transfer = pcm->buffer_size - appl_ptr; in snd_pcm_dmix_sync_area()
373 mix_areas(dmix, src_areas, dst_areas, appl_ptr, slave_appl_ptr, transfer); in snd_pcm_dmix_sync_area()
379 appl_ptr += transfer; in snd_pcm_dmix_sync_area()
380 appl_ptr %= pcm->buffer_size; in snd_pcm_dmix_sync_area()
495 status->appl_ptr = *pcm->appl.ptr; /* slave PCM doesn't set appl_ptr */ in snd_pcm_dmix_status()
[all …]
Dpcm_mmap.c34 snd_pcm_sframes_t appl_ptr = *pcm->appl.ptr; in snd_pcm_mmap_appl_backward() local
35 appl_ptr -= frames; in snd_pcm_mmap_appl_backward()
36 if (appl_ptr < 0) in snd_pcm_mmap_appl_backward()
37 appl_ptr += pcm->boundary; in snd_pcm_mmap_appl_backward()
38 *pcm->appl.ptr = appl_ptr; in snd_pcm_mmap_appl_backward()
43 snd_pcm_uframes_t appl_ptr = *pcm->appl.ptr; in snd_pcm_mmap_appl_forward() local
44 appl_ptr += frames; in snd_pcm_mmap_appl_forward()
45 if (appl_ptr >= pcm->boundary) in snd_pcm_mmap_appl_forward()
46 appl_ptr -= pcm->boundary; in snd_pcm_mmap_appl_forward()
47 *pcm->appl.ptr = appl_ptr; in snd_pcm_mmap_appl_forward()
Dpcm_mmap_emul.c46 snd_pcm_uframes_t appl_ptr; member
198 map->appl_ptr = 0; in snd_pcm_mmap_emul_hw_params()
201 snd_pcm_set_appl_ptr(pcm, &map->appl_ptr, -1, 0); in snd_pcm_mmap_emul_hw_params()
238 map->hw_ptr = map->appl_ptr = 0; in snd_pcm_mmap_emul_prepare()
250 map->hw_ptr = map->appl_ptr = 0; in snd_pcm_mmap_emul_reset()
284 size = map->appl_ptr - *slave->appl.ptr; in sync_slave_write()
433 snd_pcm_set_appl_ptr(pcm, &map->appl_ptr, -1, 0); in __snd_pcm_mmap_emul_open()
Dpcm_dshare.c111 snd_pcm_uframes_t appl_ptr, size; in snd_pcm_dshare_sync_area() local
115 size = pcm_frame_diff(dshare->appl_ptr, dshare->last_appl_ptr, pcm->boundary); in snd_pcm_dshare_sync_area()
135 appl_ptr = dshare->last_appl_ptr % pcm->buffer_size; in snd_pcm_dshare_sync_area()
143 if (appl_ptr + transfer > pcm->buffer_size) in snd_pcm_dshare_sync_area()
144 transfer = pcm->buffer_size - appl_ptr; in snd_pcm_dshare_sync_area()
147 share_areas(dshare, src_areas, dst_areas, appl_ptr, slave_appl_ptr, transfer); in snd_pcm_dshare_sync_area()
153 appl_ptr += transfer; in snd_pcm_dshare_sync_area()
154 appl_ptr %= pcm->buffer_size; in snd_pcm_dshare_sync_area()
247 status->appl_ptr = *pcm->appl.ptr; /* slave PCM doesn't set appl_ptr */ in snd_pcm_dshare_status()
329 dshare->appl_ptr = dshare->last_appl_ptr = dshare->hw_ptr; in snd_pcm_dshare_reset()
[all …]
Dpcm_file.c78 snd_pcm_uframes_t appl_ptr; member
467 snd_pcm_uframes_t cont = file->wbuf_size - file->appl_ptr; in snd_pcm_file_add_frames()
473 snd_pcm_areas_copy(file->wbuf_areas, file->appl_ptr, in snd_pcm_file_add_frames()
478 file->appl_ptr += n; in snd_pcm_file_add_frames()
479 if (file->appl_ptr == file->wbuf_size) in snd_pcm_file_add_frames()
480 file->appl_ptr = 0; in snd_pcm_file_add_frames()
571 file->appl_ptr = (file->appl_ptr - err + file->wbuf_size) % file->wbuf_size; in snd_pcm_file_rewind()
599 file->appl_ptr = (file->appl_ptr + err) % file->wbuf_size; in snd_pcm_file_forward()
784 file->appl_ptr = file->file_ptr_bytes = 0; in snd_pcm_file_hw_params()
Dpcm_null.c43 snd_pcm_uframes_t appl_ptr; member
99 status->appl_ptr = *pcm->appl.ptr; in snd_pcm_null_status()
419 snd_pcm_set_appl_ptr(pcm, &null->appl_ptr, -1, 0); in snd_pcm_null_open()
Dpcm_ioplug.c136 status->appl_ptr = *pcm->appl.ptr; in snd_pcm_ioplug_status()
160 io->data->appl_ptr = 0; in snd_pcm_ioplug_reset()
1114 snd_pcm_set_appl_ptr(pcm, &ioplug->appl_ptr, -1, 0); in snd_pcm_ioplug_create()
1257 const snd_pcm_uframes_t appl_ptr) in snd_pcm_ioplug_avail() argument
1259 return __snd_pcm_avail(ioplug->pcm, hw_ptr, appl_ptr); in snd_pcm_ioplug_avail()
1272 const snd_pcm_uframes_t appl_ptr) in snd_pcm_ioplug_hw_avail() argument
1279 appl_ptr); in snd_pcm_ioplug_hw_avail()
Dpcm_rate.c53 snd_pcm_uframes_t appl_ptr, hw_ptr, last_slave_hw_ptr; member
690 return pcm_frame_diff(rate->appl_ptr, rate->last_commit_ptr, pcm->boundary); in snd_pcm_rate_playback_internal_delay()
988 static int snd_pcm_rate_sync_playback_area(snd_pcm_t *pcm, snd_pcm_uframes_t appl_ptr) in snd_pcm_rate_sync_playback_area() argument
1000 xfer = pcm_frame_diff(appl_ptr, rate->last_commit_ptr, pcm->boundary); in snd_pcm_rate_sync_playback_area()
1027 err = snd_pcm_rate_sync_playback_area(pcm, rate->appl_ptr + size); in snd_pcm_rate_mmap_commit()
1075 snd_pcm_rate_sync_playback_area(pcm, rate->appl_ptr); in snd_pcm_rate_avail_update()
1111 snd_pcm_rate_sync_playback_area(pcm, rate->appl_ptr); in snd_pcm_rate_poll_revents()
1134 size = pcm_frame_diff(rate->appl_ptr, rate->last_commit_ptr, pcm->boundary); in snd_pcm_rate_drain()
1228 status->appl_ptr = *pcm->appl.ptr; in snd_pcm_rate_status()
1581 snd_pcm_set_appl_ptr(pcm, &rate->appl_ptr, -1, 0); in snd_pcm_rate_open()
Dpcm_share.c111 snd_pcm_uframes_t appl_ptr; member
311 snd_pcm_uframes_t offset = share->appl_ptr % buffer_size; in _snd_pcm_share_missing()
714 status->appl_ptr = *pcm->appl.ptr; in snd_pcm_share_status()
827 frames = *spcm->appl.ptr - share->appl_ptr; in _snd_pcm_share_mmap_commit()
898 share->appl_ptr = 0; in snd_pcm_share_prepare()
914 share->appl_ptr = share->hw_ptr; in snd_pcm_share_reset()
947 share->appl_ptr = *spcm->appl.ptr; in snd_pcm_share_start()
1248 share->appl_ptr = share->hw_ptr = 0; in snd_pcm_share_drop()
1536 snd_pcm_set_appl_ptr(pcm, &share->appl_ptr, -1, 0); in snd_pcm_share_open()
Dpcm_local.h380 void snd_pcm_set_appl_ptr(snd_pcm_t *pcm, volatile snd_pcm_uframes_t *appl_ptr, int fd, off_t offse…
494 const snd_pcm_uframes_t appl_ptr) in __snd_pcm_playback_avail() argument
497 avail = hw_ptr + pcm->buffer_size - appl_ptr; in __snd_pcm_playback_avail()
519 const snd_pcm_uframes_t appl_ptr) in __snd_pcm_capture_avail() argument
522 avail = hw_ptr - appl_ptr; in __snd_pcm_capture_avail()
535 const snd_pcm_uframes_t appl_ptr) in __snd_pcm_avail() argument
538 return __snd_pcm_playback_avail(pcm, hw_ptr, appl_ptr); in __snd_pcm_avail()
540 return __snd_pcm_capture_avail(pcm, hw_ptr, appl_ptr); in __snd_pcm_avail()
Dpcm_plugin.c567 diff = pcm_frame_diff(status->appl_ptr, *pcm->appl.ptr, pcm->boundary); in snd_pcm_plugin_status()
568 status->appl_ptr = *pcm->appl.ptr; in snd_pcm_plugin_status()
572 assert(status->appl_ptr == *pcm->appl.ptr); in snd_pcm_plugin_status()
Dpcm_dsnoop.c197 status->appl_ptr = *pcm->appl.ptr; /* slave PCM doesn't set appl_ptr */ in snd_pcm_dsnoop_status()
277 dsnoop->appl_ptr = dsnoop->hw_ptr; in snd_pcm_dsnoop_reset()
686 snd_pcm_set_appl_ptr(pcm, &dsnoop->appl_ptr, -1, 0); in snd_pcm_dsnoop_open()
Dpcm_plugin.h47 snd_pcm_uframes_t appl_ptr, hw_ptr; member
Dpcm_copy.c214 snd_pcm_set_appl_ptr(pcm, &copy->plug.appl_ptr, -1, 0); in snd_pcm_copy_open()
Dpcm_multi.c57 snd_pcm_uframes_t appl_ptr, hw_ptr; member
504 multi->hw_ptr = multi->appl_ptr = 0; in snd_pcm_multi_prepare()
519 multi->hw_ptr = multi->appl_ptr = 0; in snd_pcm_multi_reset()
1139 snd_pcm_set_appl_ptr(pcm, &multi->appl_ptr, -1, 0); in snd_pcm_multi_open()
Dpcm_direct.h142 snd_pcm_uframes_t appl_ptr; member
Dpcm_mulaw.c472 snd_pcm_set_appl_ptr(pcm, &mulaw->plug.appl_ptr, -1, 0); in snd_pcm_mulaw_open()
Dpcm_alaw.c458 snd_pcm_set_appl_ptr(pcm, &alaw->plug.appl_ptr, -1, 0); in snd_pcm_alaw_open()
Dpcm_lfloat.c417 snd_pcm_set_appl_ptr(pcm, &lfloat->plug.appl_ptr, -1, 0); in snd_pcm_lfloat_open()
Dpcm_linear.c461 snd_pcm_set_appl_ptr(pcm, &linear->plug.appl_ptr, -1, 0); in snd_pcm_linear_open()
Dpcm_hw.c1017 hw->mmap_control->appl_ptr = 0; in map_status_and_control_data()
1023 snd_pcm_set_appl_ptr(pcm, &hw->mmap_control->appl_ptr, hw->fd, in map_status_and_control_data()
1433 snd_output_printf(out, " appl_ptr : %li\n", hw->mmap_control->appl_ptr); in snd_pcm_hw_dump()
Dpcm_meter.c221 now = status.appl_ptr - status.delay; in snd_pcm_meter_thread()
225 now = status.appl_ptr + status.delay; in snd_pcm_meter_thread()
Dpcm_adpcm.c584 snd_pcm_set_appl_ptr(pcm, &adpcm->plug.appl_ptr, -1, 0); in snd_pcm_adpcm_open()
/third_party/alsa-lib/include/
Dpcm_ioplug.h114 volatile snd_pcm_uframes_t appl_ptr; /**< application pointer; read-only */ member
240 const snd_pcm_uframes_t appl_ptr);
243 const snd_pcm_uframes_t appl_ptr);
/third_party/alsa-lib/include/sound/uapi/
Dasound.h478 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
528 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
572 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member

12