Home
last modified time | relevance | path

Searched refs:buffer_bytes (Results 1 – 14 of 14) sorted by relevance

/sound/drivers/pcsp/
Dpcsp_lib.c91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
101 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in pcsp_pointer_update()
110 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
112 periods_elapsed += buffer_bytes; in pcsp_pointer_update()
117 chip->playback_ptr %= buffer_bytes; in pcsp_pointer_update()
121 chip->period_ptr %= buffer_bytes; in pcsp_pointer_update()
/sound/virtio/
Dvirtio_pcm_ops.c154 unsigned int buffer_bytes, in virtsnd_pcm_dev_set_params() argument
189 request->buffer_bytes = cpu_to_le32(buffer_bytes); in virtsnd_pcm_dev_set_params()
283 vss->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in virtsnd_pcm_prepare()
288 unsigned int buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in virtsnd_pcm_prepare() local
292 rc = virtsnd_pcm_dev_set_params(vss, buffer_bytes, period_bytes, in virtsnd_pcm_prepare()
Dvirtio_pcm.h52 size_t buffer_bytes; member
Dvirtio_pcm_msg.c309 if (vss->hw_ptr >= vss->buffer_bytes) in virtsnd_pcm_msg_complete()
310 vss->hw_ptr -= vss->buffer_bytes; in virtsnd_pcm_msg_complete()
/sound/pci/
Dals300.c403 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_playback_prepare() local
410 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
421 runtime->dma_addr + buffer_bytes - 1); in snd_als300_playback_prepare()
432 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_capture_prepare() local
439 buffer_bytes); in snd_als300_capture_prepare()
450 runtime->dma_addr + buffer_bytes - 1); in snd_als300_capture_prepare()
Dazt3328.c1377 unsigned int buffer_bytes in snd_azf3328_codec_setdmaa() argument
1381 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa()
1383 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa()
1397 area_length = buffer_bytes/2; in snd_azf3328_codec_setdmaa()
1406 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
/sound/pcmcia/vx/
Dvxp_ops.c361 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write()
362 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
403 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read()
404 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
/sound/usb/
Dpcm.c684 subs->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in snd_usb_pcm_prepare()
1298 if (subs->hwptr_done >= subs->buffer_bytes) in retire_capture_urb()
1299 subs->hwptr_done -= subs->buffer_bytes; in retire_capture_urb()
1312 if (oldptr + bytes > subs->buffer_bytes) { in retire_capture_urb()
1313 unsigned int bytes1 = subs->buffer_bytes - oldptr; in retire_capture_urb()
1334 if (subs->hwptr_done >= subs->buffer_bytes) in urb_ctx_queue_advance()
1335 subs->hwptr_done -= subs->buffer_bytes; in urb_ctx_queue_advance()
1344 unsigned int wrap = subs->buffer_bytes; in fill_playback_urb_dsd_dop()
1405 if (++ofs >= subs->buffer_bytes) in fill_playback_urb_dsd_bitrev()
1417 if (subs->hwptr_done + bytes > subs->buffer_bytes) { in copy_to_urb()
[all …]
Dcard.h177 unsigned int buffer_bytes; /* buffer size in bytes */ member
/sound/pci/vx222/
Dvx222_ops.c259 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write()
260 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
297 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read()
298 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
/sound/drivers/vx/
Dvx_pcm.c51 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
56 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
61 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
831 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
/sound/pci/asihpi/
Dasihpi.c141 unsigned int buffer_bytes; member
485 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
784 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function()
790 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, in snd_card_asihpi_timer_function()
846 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; in snd_card_asihpi_timer_function()
854 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); in snd_card_asihpi_timer_function()
942 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1105 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/sound/core/oss/
Dpcm_oss.c590 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_oss_bytes()
593 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
596 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes()
606 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_alsa_frames()
608 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1065 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params_locked()
1069 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params_locked()
2249 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c129 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in sst_fill_alloc_params() local
136 alloc_param->ring_buf_info[0].size = buffer_bytes; in sst_fill_alloc_params()