/linux-5.19.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 | 764 …_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; in snd_pcm_playback_avail() 780 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail() 1493 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member 1518 u32 appl_ptr; /* appl ptr */ member
|
/linux-5.19.10/sound/core/ |
D | pcm_compat.c | 165 u32 appl_ptr; member 212 .appl_ptr = status.appl_ptr, in snd_pcm_status_user_compat64() 394 u32 appl_ptr; member 427 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 443 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32() 445 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32() 465 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 488 __u32 appl_ptr; member 520 err = pcm_lib_apply_appl_ptr(substream, sync_cp->appl_ptr); in snd_pcm_ioctl_sync_ptr_buggy() 526 sync_cp->appl_ptr = control->appl_ptr; in snd_pcm_ioctl_sync_ptr_buggy()
|
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() 2127 snd_pcm_uframes_t appl_ptr) in pcm_lib_apply_appl_ptr() argument 2130 snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; in pcm_lib_apply_appl_ptr() 2134 if (old_appl_ptr == appl_ptr) in pcm_lib_apply_appl_ptr() 2137 if (appl_ptr >= runtime->boundary) in pcm_lib_apply_appl_ptr() 2143 diff = appl_ptr - old_appl_ptr; in pcm_lib_apply_appl_ptr() 2153 runtime->control->appl_ptr = appl_ptr; in pcm_lib_apply_appl_ptr() [all …]
|
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() 1136 unsigned long appl_ptr; in snd_rawmidi_kernel_read1() local 1142 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1() 1149 appl_ptr = runtime->appl_ptr; in snd_rawmidi_kernel_read1() 1150 runtime->appl_ptr += count1; in snd_rawmidi_kernel_read1() 1151 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1() 1155 memcpy(kernelbuf + result, runtime->buffer + appl_ptr, count1); in snd_rawmidi_kernel_read1() 1159 runtime->buffer + appl_ptr, count1)) in snd_rawmidi_kernel_read1() 1452 unsigned long appl_ptr; in snd_rawmidi_kernel_write1() local [all …]
|
D | pcm_native.c | 1055 status->appl_ptr = runtime->control->appl_ptr; in snd_pcm_status64() 1121 .appl_ptr = status64.appl_ptr, in snd_pcm_status_user32() 1907 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset() 1960 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare() 2932 snd_pcm_sframes_t appl_ptr; in forward_appl_ptr() local 2939 appl_ptr = runtime->control->appl_ptr + frames; in forward_appl_ptr() 2940 if (appl_ptr >= (snd_pcm_sframes_t)runtime->boundary) in forward_appl_ptr() 2941 appl_ptr -= runtime->boundary; in forward_appl_ptr() 2942 ret = pcm_lib_apply_appl_ptr(substream, appl_ptr); in forward_appl_ptr() 2952 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()
|
/linux-5.19.10/tools/include/uapi/sound/ |
D | asound.h | 489 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member 544 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member 588 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
|
/linux-5.19.10/include/uapi/sound/ |
D | asound.h | 489 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member 544 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member 588 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
|
/linux-5.19.10/sound/soc/sof/intel/ |
D | hda-pcm.c | 149 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
|
/linux-5.19.10/sound/drivers/ |
D | aloop.c | 540 snd_pcm_uframes_t appl_ptr, appl_ptr1, diff; in copy_play_buf() local 541 appl_ptr = appl_ptr1 = runtime->control->appl_ptr; in copy_play_buf() 544 if (appl_ptr < appl_ptr1) in copy_play_buf() 546 diff = (appl_ptr - appl_ptr1) * play->pcm_salign; in copy_play_buf()
|
/linux-5.19.10/sound/core/oss/ |
D | pcm_oss.c | 1712 size = runtime->control->appl_ptr % runtime->period_size; in snd_pcm_oss_sync() 2067 snd_pcm_uframes_t appl_ptr; in snd_pcm_oss_simulate_fill() local 2068 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill() 2069 appl_ptr %= runtime->boundary; in snd_pcm_oss_simulate_fill() 2070 runtime->control->appl_ptr = appl_ptr; in snd_pcm_oss_simulate_fill()
|
/linux-5.19.10/sound/soc/fsl/ |
D | imx-pcm-rpmsg.c | 539 buffer_tail = (frames_to_bytes(runtime, runtime->control->appl_ptr) % in imx_rpmsg_pcm_ack()
|
/linux-5.19.10/sound/usb/ |
D | pcm.c | 1419 avail = (runtime->control->appl_ptr - runtime->hw_ptr_base) in prepare_playback_urb()
|
/linux-5.19.10/sound/pci/asihpi/ |
D | asihpi.c | 807 runtime->control->appl_ptr) in snd_card_asihpi_timer_function()
|
/linux-5.19.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
|