Home
last modified time | relevance | path

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

/Linux-v5.10/include/sound/
Dpcm-indirect.h24 snd_pcm_uframes_t appl_ptr; /* Last seen appl_ptr */ member
39 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_playback_transfer() local
40 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_playback_transfer()
49 rec->appl_ptr = appl_ptr; in snd_pcm_indirect_playback_transfer()
108 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_capture_transfer() local
109 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_capture_transfer()
117 rec->appl_ptr = appl_ptr; in snd_pcm_indirect_capture_transfer()
Drawmidi.h59 size_t appl_ptr; /* application pointer */ member
Dpcm.h744 …_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; in snd_pcm_playback_avail()
760 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail()
1454 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
1479 u32 appl_ptr; /* appl ptr */ member
/Linux-v5.10/sound/core/
Dpcm_compat.c165 u32 appl_ptr; member
212 .appl_ptr = status.appl_ptr, in snd_pcm_status_user_compat64()
392 u32 appl_ptr; member
425 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
441 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32()
443 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
461 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
Drawmidi.c157 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
192 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
1037 unsigned long appl_ptr; in snd_rawmidi_kernel_read1() local
1043 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1050 appl_ptr = runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1051 runtime->appl_ptr += count1; in snd_rawmidi_kernel_read1()
1052 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1()
1056 memcpy(kernelbuf + result, runtime->buffer + appl_ptr, count1); in snd_rawmidi_kernel_read1()
1060 runtime->buffer + appl_ptr, count1)) in snd_rawmidi_kernel_read1()
1351 unsigned long appl_ptr; in snd_rawmidi_kernel_write1() local
[all …]
Dpcm_lib.c53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() local
54 if (runtime->silence_start != appl_ptr) { in snd_pcm_playback_silence()
55 n = appl_ptr - runtime->silence_start; in snd_pcm_playback_silence()
62 runtime->silence_start = appl_ptr; in snd_pcm_playback_silence()
2092 snd_pcm_uframes_t appl_ptr) in pcm_lib_apply_appl_ptr() argument
2095 snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; in pcm_lib_apply_appl_ptr()
2098 if (old_appl_ptr == appl_ptr) in pcm_lib_apply_appl_ptr()
2101 runtime->control->appl_ptr = appl_ptr; in pcm_lib_apply_appl_ptr()
2105 runtime->control->appl_ptr = old_appl_ptr; in pcm_lib_apply_appl_ptr()
2110 trace_applptr(substream, old_appl_ptr, appl_ptr); in pcm_lib_apply_appl_ptr()
[all …]
Dpcm_native.c983 status->appl_ptr = runtime->control->appl_ptr; in snd_pcm_status64()
1049 .appl_ptr = status64.appl_ptr, in snd_pcm_status_user32()
1823 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset()
1875 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare()
2835 snd_pcm_sframes_t appl_ptr; in forward_appl_ptr() local
2842 appl_ptr = runtime->control->appl_ptr + frames; in forward_appl_ptr()
2843 if (appl_ptr >= (snd_pcm_sframes_t)runtime->boundary) in forward_appl_ptr()
2844 appl_ptr -= runtime->boundary; in forward_appl_ptr()
2845 ret = pcm_lib_apply_appl_ptr(substream, appl_ptr); in forward_appl_ptr()
2855 snd_pcm_sframes_t appl_ptr; in rewind_appl_ptr() local
[all …]
Dpcm_local.h27 snd_pcm_uframes_t appl_ptr);
Dpcm.c472 snd_iprintf(buffer, "appl_ptr : %ld\n", runtime->control->appl_ptr); in snd_pcm_substream_proc_status_read()
/Linux-v5.10/include/uapi/sound/
Dasound.h481 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
536 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
580 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
/Linux-v5.10/tools/include/uapi/sound/
Dasound.h481 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
536 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
580 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
/Linux-v5.10/sound/drivers/
Daloop.c541 snd_pcm_uframes_t appl_ptr, appl_ptr1, diff; in copy_play_buf() local
542 appl_ptr = appl_ptr1 = runtime->control->appl_ptr; in copy_play_buf()
545 if (appl_ptr < appl_ptr1) in copy_play_buf()
547 diff = (appl_ptr - appl_ptr1) * play->pcm_salign; in copy_play_buf()
/Linux-v5.10/sound/core/oss/
Dpcm_oss.c1678 size = runtime->control->appl_ptr % runtime->period_size; in snd_pcm_oss_sync()
2023 snd_pcm_uframes_t appl_ptr; in snd_pcm_oss_simulate_fill() local
2024 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill()
2025 appl_ptr %= runtime->boundary; in snd_pcm_oss_simulate_fill()
2026 runtime->control->appl_ptr = appl_ptr; in snd_pcm_oss_simulate_fill()
/Linux-v5.10/sound/pci/asihpi/
Dasihpi.c807 runtime->control->appl_ptr) in snd_card_asihpi_timer_function()
/Linux-v5.10/Documentation/sound/kernel-api/
Dwriting-an-alsa-driver.rst2136 ``appl_ptr`` is updated in read or write operations. Some drivers like
2137 emu10k1-fx and cs46xx need to track the current ``appl_ptr`` for the