Home
last modified time | relevance | path

Searched refs:hw_ptr (Results 1 – 19 of 19) sorted by relevance

/sound/soc/mediatek/common/
Dmtk-afe-platform-driver.c91 unsigned int hw_ptr = 0, hw_base = 0; in mtk_afe_pcm_pointer() local
94 ret = regmap_read(regmap, reg_ofs_cur, &hw_ptr); in mtk_afe_pcm_pointer()
95 if (ret || hw_ptr == 0) { in mtk_afe_pcm_pointer()
108 pcm_ptr_bytes = hw_ptr - hw_base; in mtk_afe_pcm_pointer()
/sound/core/
Dpcm_compat.c166 u32 hw_ptr; member
213 .hw_ptr = status.hw_ptr, in snd_pcm_status_user_compat64()
385 u32 hw_ptr; member
453 sstatus.hw_ptr = status->hw_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
459 put_user(sstatus.hw_ptr, &src->s.status.hw_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
533 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_ioctl_sync_ptr_buggy()
Drawmidi.c167 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
202 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
994 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
995 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1003 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1008 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
1009 runtime->hw_ptr += count1; in snd_rawmidi_receive()
1010 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1023 runtime->hw_ptr = count1; in snd_rawmidi_receive()
1197 *buffer = runtime->buffer[runtime->hw_ptr]; in __snd_rawmidi_transmit_peek()
[all …]
Dpcm_trace.h35 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
70 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
Dpcm_native.c1037 status->hw_ptr = runtime->status->hw_ptr; in snd_pcm_status64()
1103 .hw_ptr = status64.hw_ptr, in snd_pcm_status_user32()
1882 runtime->hw_ptr_interrupt = runtime->status->hw_ptr - in snd_pcm_do_reset()
1883 runtime->status->hw_ptr % runtime->period_size; in snd_pcm_do_reset()
1884 runtime->silence_start = runtime->status->hw_ptr; in snd_pcm_do_reset()
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()
3044 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_sync_ptr()
3057 u32 hw_ptr; member
3140 sstatus.hw_ptr = status->hw_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat()
[all …]
Dpcm_lib.c78 runtime->silence_start = (runtime->status->hw_ptr + in snd_pcm_playback_silence()
82 ofs = runtime->status->hw_ptr; in snd_pcm_playback_silence()
227 audio_frames = runtime->hw_ptr_wrap + runtime->status->hw_ptr; in update_audio_tstamp()
270 old_hw_ptr = runtime->status->hw_ptr; in snd_pcm_update_hw_ptr0()
435 if (runtime->status->hw_ptr == new_hw_ptr) { in snd_pcm_update_hw_ptr0()
455 runtime->status->hw_ptr = new_hw_ptr; in snd_pcm_update_hw_ptr0()
1691 runtime->status->hw_ptr %= runtime->buffer_size; in snd_pcm_lib_ioctl_reset()
1693 runtime->status->hw_ptr = 0; in snd_pcm_lib_ioctl_reset()
Dpcm.c472 snd_iprintf(buffer, "hw_ptr : %ld\n", runtime->status->hw_ptr); in snd_pcm_substream_proc_status_read()
/sound/pcmcia/vx/
Dvxp_ops.c355 int offset = pipe->hw_ptr; in vxp_dma_write()
369 pipe->hw_ptr = 0; in vxp_dma_write()
371 pipe->hw_ptr += count; in vxp_dma_write()
395 int offset = pipe->hw_ptr; in vxp_dma_read()
409 pipe->hw_ptr = 0; in vxp_dma_read()
411 pipe->hw_ptr += count; in vxp_dma_read()
/sound/pci/vx222/
Dvx222_ops.c249 int offset = pipe->hw_ptr; in vx2_dma_write()
269 pipe->hw_ptr = 0; in vx2_dma_write()
271 pipe->hw_ptr += count; in vx2_dma_write()
287 int offset = pipe->hw_ptr; in vx2_dma_read()
305 pipe->hw_ptr = 0; in vx2_dma_read()
307 pipe->hw_ptr += count; in vx2_dma_read()
/sound/xen/
Dxen_snd_front_alsa.c44 atomic_t hw_ptr; member
222 atomic_set(&stream->hw_ptr, 0); in stream_clear()
587 new_hw_ptr = (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr); in xen_snd_front_alsa_handle_cur_pos()
589 atomic_set(&stream->hw_ptr, (int)new_hw_ptr); in xen_snd_front_alsa_handle_cur_pos()
602 return (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr); in alsa_pointer()
/sound/drivers/vx/
Dvx_pcm.c48 int offset = pipe->hw_ptr; in vx_pcm_read_per_bytes()
64 pipe->hw_ptr = offset; in vx_pcm_read_per_bytes()
824 pipe->hw_ptr = 0; in vx_pcm_prepare()
1000 if ((pipe->hw_ptr % pipe->align) == 0) in vx_pcm_capture_update()
1052 return bytes_to_frames(runtime, pipe->hw_ptr); in vx_pcm_capture_pointer()
/sound/pci/rme9652/
Drme9652.c1965 runtime->status->hw_ptr = rme9652_hw_pointer(rme9652); in snd_rme9652_reset()
1967 runtime->status->hw_ptr = 0; in snd_rme9652_reset()
1973 oruntime->status->hw_ptr = runtime->status->hw_ptr; in snd_rme9652_reset()
Dhdsp.c3979 runtime->status->hw_ptr = hdsp_hw_pointer(hdsp); in snd_hdsp_reset()
3981 runtime->status->hw_ptr = 0; in snd_hdsp_reset()
3987 oruntime->status->hw_ptr = runtime->status->hw_ptr; in snd_hdsp_reset()
Dhdspm.c5483 runtime->status->hw_ptr = hdspm_hw_pointer(hdspm); in snd_hdspm_reset()
5485 runtime->status->hw_ptr = 0; in snd_hdspm_reset()
5491 oruntime->status->hw_ptr = in snd_hdspm_reset()
5492 runtime->status->hw_ptr; in snd_hdspm_reset()
/sound/pci/nm256/
Dnm256.c841 const struct snd_pcm_hardware *hw_ptr) in snd_nm256_setup_stream() argument
846 runtime->hw = *hw_ptr; in snd_nm256_setup_stream()
/sound/core/oss/
Dpcm_oss.c2048 snd_pcm_uframes_t hw_ptr) in snd_pcm_oss_simulate_fill() argument
2052 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill()
2213 info.ptr = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr % runtime->buffer_size); in snd_pcm_oss_get_ptr()
2224 info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr) & INT_MAX; in snd_pcm_oss_get_ptr()
/sound/pci/emu10k1/
Demupcm.c729 period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; in snd_emu10k1_playback_mangle_extra()
/sound/pci/hda/
Dhda_intel.c738 if (hwptr < runtime->status->hw_ptr) in azx_position_ok()
/sound/pci/asihpi/
Dasihpi.c805 runtime->status->hw_ptr), in snd_card_asihpi_timer_function()