Home
last modified time | relevance | path

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

/linux/include/sound/
H A 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()
113 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_capture_transfer() local
114 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_capture_transfer()
122 rec->appl_ptr = appl_ptr; in snd_pcm_indirect_capture_transfer()
H A Drawmidi.h64 size_t appl_ptr; /* application pointer */ member
H A Dpcm.h826 …_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; in snd_pcm_playback_avail()
844 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail()
1546 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
1571 u32 appl_ptr; /* appl ptr */ member
/linux/sound/core/
H A Dpcm_compat.c165 u32 appl_ptr; member
212 .appl_ptr = status.appl_ptr, in snd_pcm_status_user_compat64()
389 u32 appl_ptr; member
422 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
438 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32()
440 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
460 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
483 __u32 appl_ptr; member
515 err = pcm_lib_apply_appl_ptr(substream, sync_cp->appl_ptr); in snd_pcm_ioctl_sync_ptr_buggy()
519 sync_cp->appl_ptr = control->appl_ptr; in snd_pcm_ioctl_sync_ptr_buggy()
H A Dsound_kunit.c44 snd_pcm_uframes_t appl_ptr; member
196 /* buf_size + hw_ptr < appl_ptr => avail = buf_size + hw_ptr - appl_ptr + boundary */
199 * buf_size + hw_ptr - appl_ptr >= boundary =>
200 * => avail = buf_size + hw_ptr - appl_ptr - boundary
203 /* standard case: avail = buf_size + hw_ptr - appl_ptr */
223 r->control->appl_ptr = p_avail_data[i].appl_ptr;
229 /* hw_ptr - appl_ptr < 0 => avail = hw_ptr - appl_ptr
[all...]
H A Dpcm_lib.c72 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() local
73 update_silence_vars(runtime, runtime->silence_start, appl_ptr); in snd_pcm_playback_silence()
78 noise_dist = appl_ptr - new_hw_ptr; in snd_pcm_playback_silence()
101 snd_pcm_sframes_t avail = runtime->control->appl_ptr - hw_ptr; in snd_pcm_playback_silence()
2228 snd_pcm_uframes_t appl_ptr) in pcm_lib_apply_appl_ptr() argument
2231 snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; in pcm_lib_apply_appl_ptr()
2235 if (old_appl_ptr == appl_ptr) in pcm_lib_apply_appl_ptr()
2238 if (appl_ptr >= runtime->boundary) in pcm_lib_apply_appl_ptr()
2244 diff = appl_ptr - old_appl_ptr; in pcm_lib_apply_appl_ptr()
2254 runtime->control->appl_ptr = appl_ptr; in pcm_lib_apply_appl_ptr()
[all …]
H A Drawmidi.c180 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
229 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
1221 unsigned long appl_ptr; in snd_rawmidi_kernel_read1()
1227 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1233 /* update runtime->appl_ptr before unlocking for userbuf */ in snd_rawmidi_kernel_read1()
1234 appl_ptr = runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1235 runtime->appl_ptr += count1; in snd_rawmidi_kernel_read1()
1236 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1()
1240 memcpy(kernelbuf + result, runtime->buffer + appl_ptr, count in snd_rawmidi_kernel_read1()
1219 unsigned long appl_ptr; snd_rawmidi_kernel_read1() local
1521 unsigned long appl_ptr; snd_rawmidi_kernel_write1() local
[all...]
H A Dpcm_native.c1071 status->appl_ptr = runtime->control->appl_ptr; in snd_pcm_status64()
1135 .appl_ptr = status64.appl_ptr, in snd_pcm_status_user32()
1906 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset()
1958 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare()
2217 /* runtime->control->appl_ptr = runtime->status->hw_ptr; */ in snd_pcm_drop()
2940 /* increase the appl_ptr; returns the processed frames or a negative error */
2946 snd_pcm_sframes_t appl_ptr; in forward_appl_ptr() local
2953 appl_ptr in forward_appl_ptr()
2966 snd_pcm_sframes_t appl_ptr; rewind_appl_ptr() local
3102 u32 appl_ptr; global() member
[all...]
H A Dpcm_local.h27 snd_pcm_uframes_t appl_ptr);
H A Dpcm.c464 snd_iprintf(buffer, "appl_ptr : %ld\n", runtime->control->appl_ptr); in snd_pcm_substream_proc_status_read()
/linux/tools/include/uapi/sound/
H A Dasound.h
/linux/include/uapi/sound/
H A Dasound.h486 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
541 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
585 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
/linux/tools/perf/trace/beauty/include/uapi/sound/
H A Dasound.h486 snd_pcm_uframes_t appl_ptr; /* appl ptr */ member
541 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
585 snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */ member
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c155 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
/linux/sound/drivers/
H A Daloop.c581 snd_pcm_uframes_t appl_ptr, appl_ptr1, diff; in copy_play_buf() local
582 appl_ptr = appl_ptr1 = runtime->control->appl_ptr; in copy_play_buf()
585 if (appl_ptr < appl_ptr1) in copy_play_buf()
587 diff = (appl_ptr - appl_ptr1) * play->pcm_salign; in copy_play_buf()
/linux/sound/soc/google/
H A Dchv3-i2s.c259 bytes = frames_to_bytes(runtime, runtime->control->appl_ptr); in chv3_dma_ack()
/linux/sound/core/oss/
H A Dpcm_oss.c1700 size = runtime->control->appl_ptr % runtime->period_size; in snd_pcm_oss_sync()
2053 snd_pcm_uframes_t appl_ptr; in snd_pcm_oss_simulate_fill() local
2054 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill()
2055 appl_ptr %= runtime->boundary; in snd_pcm_oss_simulate_fill()
2056 runtime->control->appl_ptr = appl_ptr; in snd_pcm_oss_simulate_fill()
/linux/sound/soc/fsl/
H A Dimx-pcm-rpmsg.c543 buffer_tail = (frames_to_bytes(runtime, runtime->control->appl_ptr) % in imx_rpmsg_pcm_ack()
/linux/sound/usb/
H A Dpcm.c1499 avail = (runtime->control->appl_ptr - runtime->hw_ptr_base) in prepare_playback_urb()
/linux/sound/pci/asihpi/
H A Dasihpi.c788 "timer1, %s, %d, S=%d, elap=%d, rw=%d, dsp=%d, left=%d, aux=%d, space=%d, hw_ptr=%ld, appl_ptr=%ld\n", in snd_card_asihpi_timer_function()
800 runtime->control->appl_ptr) in snd_card_asihpi_timer_function()
/linux/Documentation/sound/kernel-api/
H A Dwriting-an-alsa-driver.rst2040 ``appl_ptr`` is updated in read or write operations. Some drivers like
2041 emu10k1-fx and cs46xx need to track the current ``appl_ptr`` for the