Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/media/usb/go7007/
Dsnd-go7007.c41 int hw_ptr; member
72 gosnd->hw_ptr += frames; in parse_audio_stream_data()
73 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data()
74 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data()
159 gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; in go7007_snd_pcm_trigger()
172 return gosnd->hw_ptr; in go7007_snd_pcm_pointer()
214 gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; in go7007_snd_init()
/linux-6.1.9/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()
/linux-6.1.9/sound/core/
Dpcm_compat.c166 u32 hw_ptr; member
213 .hw_ptr = status.hw_ptr, in snd_pcm_status_user_compat64()
383 u32 hw_ptr; member
451 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.c182 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
217 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
1058 if (snd_BUG_ON((runtime->hw_ptr & 0x1f) != 0)) in receive_with_tstamp_framing()
1075 dest_ptr = (struct snd_rawmidi_framing_tstamp *) (runtime->buffer + runtime->hw_ptr); in receive_with_tstamp_framing()
1078 runtime->hw_ptr += frame_size; in receive_with_tstamp_framing()
1079 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1139 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
1140 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1148 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1153 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
[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.c1056 status->hw_ptr = runtime->status->hw_ptr; in snd_pcm_status64()
1122 .hw_ptr = status64.hw_ptr, in snd_pcm_status_user32()
1897 runtime->hw_ptr_interrupt = runtime->status->hw_ptr - in snd_pcm_do_reset()
1898 runtime->status->hw_ptr % runtime->period_size; in snd_pcm_do_reset()
1899 runtime->silence_start = runtime->status->hw_ptr; in snd_pcm_do_reset()
1910 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset()
1963 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare()
3069 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_sync_ptr()
3084 u32 hw_ptr; member
3167 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()
228 audio_frames = runtime->hw_ptr_wrap + runtime->status->hw_ptr; in update_audio_tstamp()
271 old_hw_ptr = runtime->status->hw_ptr; in snd_pcm_update_hw_ptr0()
436 if (runtime->status->hw_ptr == new_hw_ptr) { in snd_pcm_update_hw_ptr0()
456 runtime->status->hw_ptr = new_hw_ptr; in snd_pcm_update_hw_ptr0()
1692 runtime->status->hw_ptr %= runtime->buffer_size; in snd_pcm_lib_ioctl_reset()
1694 runtime->status->hw_ptr = 0; in snd_pcm_lib_ioctl_reset()
/linux-6.1.9/sound/virtio/
Dvirtio_pcm_ops.c284 vss->hw_ptr = 0; in virtsnd_pcm_prepare()
442 snd_pcm_uframes_t hw_ptr = SNDRV_PCM_POS_XRUN; in virtsnd_pcm_pointer() local
447 hw_ptr = bytes_to_frames(substream->runtime, vss->hw_ptr); in virtsnd_pcm_pointer()
450 return hw_ptr; in virtsnd_pcm_pointer()
Dvirtio_pcm_msg.c305 vss->hw_ptr += msg->length; in virtsnd_pcm_msg_complete()
307 vss->hw_ptr += written_bytes - sizeof(msg->status); in virtsnd_pcm_msg_complete()
309 if (vss->hw_ptr >= vss->buffer_bytes) in virtsnd_pcm_msg_complete()
310 vss->hw_ptr -= vss->buffer_bytes; in virtsnd_pcm_msg_complete()
Dvirtio_pcm.h53 size_t hw_ptr; member
/linux-6.1.9/drivers/usb/gadget/function/
Du_audio.c46 ssize_t hw_ptr; member
152 unsigned int hw_ptr; in u_audio_iso_complete() local
242 hw_ptr = prm->hw_ptr; in u_audio_iso_complete()
245 pending = runtime->dma_bytes - hw_ptr; in u_audio_iso_complete()
249 memcpy(req->buf, runtime->dma_area + hw_ptr, pending); in u_audio_iso_complete()
253 memcpy(req->buf, runtime->dma_area + hw_ptr, in u_audio_iso_complete()
258 memcpy(runtime->dma_area + hw_ptr, req->buf, pending); in u_audio_iso_complete()
262 memcpy(runtime->dma_area + hw_ptr, req->buf, in u_audio_iso_complete()
268 prm->hw_ptr = (hw_ptr + req->actual) % runtime->dma_bytes; in u_audio_iso_complete()
269 hw_ptr = prm->hw_ptr; in u_audio_iso_complete()
[all …]
/linux-6.1.9/sound/pcmcia/vx/
Dvxp_ops.c357 int offset = pipe->hw_ptr; in vxp_dma_write()
371 pipe->hw_ptr = 0; in vxp_dma_write()
373 pipe->hw_ptr += count; in vxp_dma_write()
397 int offset = pipe->hw_ptr; in vxp_dma_read()
411 pipe->hw_ptr = 0; in vxp_dma_read()
413 pipe->hw_ptr += count; in vxp_dma_read()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
833 pipe->hw_ptr = 0; in vx_pcm_prepare()
1009 if ((pipe->hw_ptr % pipe->align) == 0) in vx_pcm_capture_update()
1061 return bytes_to_frames(runtime, pipe->hw_ptr); in vx_pcm_capture_pointer()
/linux-6.1.9/include/sound/
Drawmidi.h60 size_t hw_ptr; /* hardware pointer */ member
Dpcm.h796 …snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_… in snd_pcm_playback_avail()
814 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail()
1567 snd_pcm_uframes_t hw_ptr; /* hw ptr */ member
1592 u32 hw_ptr; /* hw ptr */ member
Dvx_core.h62 int hw_ptr; /* the current hardware pointer in bytes */ member
/linux-6.1.9/tools/include/uapi/sound/
Dasound.h474 snd_pcm_uframes_t hw_ptr; /* hw ptr */ member
521 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member
562 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member
/linux-6.1.9/include/uapi/sound/
Dasound.h474 snd_pcm_uframes_t hw_ptr; /* hw ptr */ member
521 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member
562 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member
/linux-6.1.9/sound/pci/rme9652/
Drme9652.c1943 runtime->status->hw_ptr = rme9652_hw_pointer(rme9652); in snd_rme9652_reset()
1945 runtime->status->hw_ptr = 0; in snd_rme9652_reset()
1951 oruntime->status->hw_ptr = runtime->status->hw_ptr; in snd_rme9652_reset()
Dhdspm.c5474 runtime->status->hw_ptr = hdspm_hw_pointer(hdspm); in snd_hdspm_reset()
5476 runtime->status->hw_ptr = 0; in snd_hdspm_reset()
5482 oruntime->status->hw_ptr = in snd_hdspm_reset()
5483 runtime->status->hw_ptr; in snd_hdspm_reset()
/linux-6.1.9/sound/pci/nm256/
Dnm256.c837 const struct snd_pcm_hardware *hw_ptr) in snd_nm256_setup_stream() argument
842 runtime->hw = *hw_ptr; in snd_nm256_setup_stream()
/linux-6.1.9/sound/core/oss/
Dpcm_oss.c2064 snd_pcm_uframes_t hw_ptr) in snd_pcm_oss_simulate_fill() argument
2068 appl_ptr = hw_ptr + runtime->buffer_size; in snd_pcm_oss_simulate_fill()
2233 info.ptr = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr % runtime->buffer_size); in snd_pcm_oss_get_ptr()
2244 info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr) & INT_MAX; in snd_pcm_oss_get_ptr()
/linux-6.1.9/Documentation/sound/designs/
Dtimestamping.rst90 streams and to the DMA time (hw_ptr) in all other cases.

12