/kernel/linux/linux-5.10/include/sound/ |
D | pcm-indirect.h | 24 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()
|
D | rawmidi.h | 59 size_t appl_ptr; /* application pointer */ member
|
D | pcm.h | 746 …_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; in snd_pcm_playback_avail() 762 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail() 1456 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member 1481 u32 appl_ptr; /* appl ptr */ member
|
/kernel/linux/linux-5.10/sound/core/ |
D | pcm_compat.c | 165 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() 484 __u32 appl_ptr; member 516 err = pcm_lib_apply_appl_ptr(substream, sync_cp->appl_ptr); in snd_pcm_ioctl_sync_ptr_buggy() 522 sync_cp->appl_ptr = control->appl_ptr; in snd_pcm_ioctl_sync_ptr_buggy()
|
D | rawmidi.c | 167 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create() 202 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs() 1047 unsigned long appl_ptr; in snd_rawmidi_kernel_read1() local 1053 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1() 1060 appl_ptr = runtime->appl_ptr; in snd_rawmidi_kernel_read1() 1061 runtime->appl_ptr += count1; in snd_rawmidi_kernel_read1() 1062 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1() 1066 memcpy(kernelbuf + result, runtime->buffer + appl_ptr, count1); in snd_rawmidi_kernel_read1() 1070 runtime->buffer + appl_ptr, count1)) in snd_rawmidi_kernel_read1() 1363 unsigned long appl_ptr; in snd_rawmidi_kernel_write1() local [all …]
|
D | pcm_lib.c | 53 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 …]
|
D | pcm_native.c | 1036 status->appl_ptr = runtime->control->appl_ptr; in snd_pcm_status64() 1102 .appl_ptr = status64.appl_ptr, in snd_pcm_status_user32() 1895 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset() 1948 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare() 2908 snd_pcm_sframes_t appl_ptr; in forward_appl_ptr() local 2915 appl_ptr = runtime->control->appl_ptr + frames; in forward_appl_ptr() 2916 if (appl_ptr >= (snd_pcm_sframes_t)runtime->boundary) in forward_appl_ptr() 2917 appl_ptr -= runtime->boundary; in forward_appl_ptr() 2918 ret = pcm_lib_apply_appl_ptr(substream, appl_ptr); in forward_appl_ptr() 2928 snd_pcm_sframes_t appl_ptr; in rewind_appl_ptr() local [all …]
|
D | pcm_local.h | 27 snd_pcm_uframes_t appl_ptr);
|
D | pcm.c | 472 snd_iprintf(buffer, "appl_ptr : %ld\n", runtime->control->appl_ptr); in snd_pcm_substream_proc_status_read()
|
/kernel/linux/linux-5.10/tools/include/uapi/sound/ |
D | asound.h | 481 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
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/sound/ |
D | asound.h | 376 snd_pcm_uframes_t appl_ptr; member 417 snd_pcm_uframes_t appl_ptr; member 455 snd_pcm_uframes_t appl_ptr; member
|
/kernel/linux/linux-5.10/include/uapi/sound/ |
D | asound.h | 481 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
|
/kernel/linux/linux-5.10/sound/drivers/ |
D | aloop.c | 541 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()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/sound/ |
D | asound.h | 359 snd_pcm_uframes_t appl_ptr; member 381 snd_pcm_uframes_t appl_ptr; member
|
/kernel/linux/linux-5.10/sound/core/oss/ |
D | pcm_oss.c | 1702 size = runtime->control->appl_ptr % runtime->period_size; in snd_pcm_oss_sync() 2051 snd_pcm_uframes_t appl_ptr; in snd_pcm_oss_simulate_fill() local 2052 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill() 2053 appl_ptr %= runtime->boundary; in snd_pcm_oss_simulate_fill() 2054 runtime->control->appl_ptr = appl_ptr; in snd_pcm_oss_simulate_fill()
|
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
D | asihpi.c | 807 runtime->control->appl_ptr) in snd_card_asihpi_timer_function()
|
/kernel/linux/linux-5.10/Documentation/sound/kernel-api/ |
D | writing-an-alsa-driver.rst | 2136 ``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
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/ |
D | 0009_linux_sound.patch | 17883 + buffer_tail = (frames_to_bytes(runtime, runtime->control->appl_ptr) %
|