Home
last modified time | relevance | path

Searched refs:period_bytes (Results 1 – 25 of 36) sorted by relevance

12

/linux/sound/hda/core/
H A Dstream.c345 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup()
505 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_bdle() local
513 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_bdle()
514 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_bdle()
530 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_bdle()
546 &bdl, ofs, period_bytes - pos_adj, 0); in snd_hdac_stream_setup_bdle()
549 &bdl, ofs, period_bytes, in snd_hdac_stream_setup_bdle()
558 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_bdle()
603 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
609 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params()
[all …]
/linux/sound/soc/bcm/
H A Dcygnus-ssp.h31 unsigned period_bytes; member
41 .period_bytes = 0, \
51 .period_bytes = 0, \
/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c92 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
101 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
111 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
115 periods_elapsed /= period_bytes; in pcsp_pointer_update()
121 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
/linux/sound/soc/amd/renoir/
H A Dacp3x-pdm-dma.c244 size_t size, period_bytes; in acp_pdm_dma_hw_params() local
250 period_bytes = params_period_bytes(params); in acp_pdm_dma_hw_params()
254 init_pdm_ring_buffer(MEM_WINDOW_START, size, period_bytes, in acp_pdm_dma_hw_params()
449 u32 period_bytes, buffer_len; in acp_pdm_resume() local
455 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_pdm_resume()
458 init_pdm_ring_buffer(MEM_WINDOW_START, buffer_len, period_bytes, in acp_pdm_resume()
/linux/sound/soc/amd/ps/
H A Dps-sdw-dma.c349 u32 period_bytes; in acp63_sdw_dma_hw_params() local
415 period_bytes = params_period_bytes(params); in acp63_sdw_dma_hw_params()
428 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_sdw_dma_hw_params()
694 u32 period_bytes, buf_size, water_mark_size_reg; in acp63_restore_sdw_dma_config() local
718 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp63_restore_sdw_dma_config()
726 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_restore_sdw_dma_config()
739 u32 period_bytes, buf_size, water_mark_size_reg; in acp70_restore_sdw_dma_config() local
759 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp70_restore_sdw_dma_config()
767 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp70_restore_sdw_dma_config()
/linux/sound/soc/sof/intel/
H A Dhda-stream.c118 int i, offset, period_bytes, periods; in hda_dsp_stream_setup_bdl() local
121 period_bytes = hstream->period_bytes; in hda_dsp_stream_setup_bdl()
122 dev_dbg(sdev->dev, "period_bytes: %#x, bufsize: %#x\n", period_bytes, in hda_dsp_stream_setup_bdl()
125 if (!period_bytes) { in hda_dsp_stream_setup_bdl()
130 period_bytes = hstream->bufsize; in hda_dsp_stream_setup_bdl()
149 period_bytes /= 2; in hda_dsp_stream_setup_bdl()
152 periods = hstream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl()
156 remain = hstream->bufsize % period_bytes; in hda_dsp_stream_setup_bdl()
181 period_bytes, ioc); in hda_dsp_stream_setup_bdl()
H A Dhda-trace.c29 hstream->period_bytes = 0;/* initialize period_bytes */ in hda_dsp_trace_prepare()
/linux/sound/soc/codecs/
H A Drt5677-spi.c309 size_t new_bytes, copy_bytes, period_bytes; in rt5677_spi_copy_work() local
351 period_bytes = snd_pcm_lib_period_bytes(rt5677_dsp->substream); in rt5677_spi_copy_work()
353 copy_bytes = min(new_bytes, period_bytes in rt5677_spi_copy_work()
361 if (rt5677_dsp->avail_bytes >= period_bytes) { in rt5677_spi_copy_work()
368 delay = bytes_to_frames(runtime, period_bytes) / runtime->rate; in rt5677_spi_copy_work()
H A Dcros_ec_codec.c504 size_t period_bytes = snd_pcm_lib_period_bytes(priv->wov_substream); in wov_queue_try_dequeue()
506 while (period_bytes && wov_queue_size(priv) >= period_bytes) { in wov_queue_try_dequeue() local
507 wov_queue_dequeue(priv, period_bytes); in wov_queue_try_dequeue()
508 period_bytes = snd_pcm_lib_period_bytes(priv->wov_substream); in wov_queue_try_dequeue()
/linux/sound/core/oss/
H A Dpcm_oss.c774 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size()
953 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked()
1053 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked()
1057 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked()
1068 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked()
1409 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1()
1411 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1()
1412 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1()
1424 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1431 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
[all …]
/linux/sound/soc/google/
H A Dchv3-i2s.c205 unsigned int buffer_bytes, period_bytes, period_size; in chv3_dma_prepare() local
208 period_bytes = snd_pcm_lib_period_bytes(substream); in chv3_dma_prepare()
221 chv3_i2s_wr(i2s, I2S_TX_IRQ, ((period_bytes / i2s->tx_bytes_to_fetch) << 8) | 1); in chv3_dma_prepare()
/linux/sound/soc/fsl/
H A Dmpc5200_dma.c67 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer()
68 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer()
127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
279 count = s->period_current * s->period_bytes; in psc_dma_pointer()
H A Dmpc5200_dma.h31 int period_bytes; member
/linux/include/sound/
H A Dpcm_oss.h35 size_t period_bytes; /* requested period size */ member
/linux/sound/x86/
H A Dintel_hdmi_audio.h124 unsigned int period_bytes; /* PCM period size in bytes */ member
/linux/sound/virtio/
H A Dvirtio_pcm.h118 unsigned int periods, unsigned int period_bytes);
/linux/sound/drivers/
H A Dpcmtest.c107 size_t period_bytes; // bytes in a one period member
363 if (v_iter->period_pos >= v_iter->period_bytes) { in timer_timeout()
364 v_iter->period_pos %= v_iter->period_bytes; in timer_timeout()
479 v_iter->period_bytes = snd_pcm_lib_period_bytes(substream); in snd_pcmtst_pcm_prepare()
/linux/sound/pci/cs5535audio/
H A Dcs5535audio.h80 unsigned int period_bytes, periods; member
/linux/sound/soc/amd/acp/
H A Dacp-i2s.c393 u32 val, period_bytes, reg_val, ier_val, water_val, buf_size, buf_reg; in acp_i2s_trigger() local
395 period_bytes = frames_to_bytes(substream->runtime, substream->runtime->period_size); in acp_i2s_trigger()
453 writel(period_bytes, chip->base + water_val); in acp_i2s_trigger()
H A Dacp-legacy-common.c153 u32 physical_addr, pdm_size, period_bytes; in set_acp_pdm_ring_buffer() local
155 period_bytes = frames_to_bytes(runtime, runtime->period_size); in set_acp_pdm_ring_buffer()
162 writel(period_bytes, chip->base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in set_acp_pdm_ring_buffer()
/linux/sound/soc/amd/
H A Dacp-pcm-dma.c1037 u32 period_bytes, delay; in acp_dma_pointer() local
1047 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_dma_pointer()
1051 if (bytescount < period_bytes) { in acp_dma_pointer()
1056 pos = period_bytes; in acp_dma_pointer()
1061 delay = do_div(bytescount, period_bytes); in acp_dma_pointer()
/linux/sound/pci/au88x0/
H A Dau88x0_core.c1093 dma->period_bytes = psize; in vortex_adbdma_setbuffers()
1197 dma->period_bytes * p)); in vortex_adbdma_bufshift()
1239 dma->period_bytes * p)); in vortex_adbdma_resetup()
1259 return (dma->period_virt + delta) * dma->period_bytes in vortex_adbdma_getlinearpos()
1260 + (temp & (dma->period_bytes - 1)); in vortex_adbdma_getlinearpos()
1372 dma->period_bytes = psize; in vortex_wtdma_setbuffers()
1468 dma->period_bytes * p)); in vortex_wtdma_bufshift()
1508 temp = (dma->period_virt * dma->period_bytes) + (temp & (dma->period_bytes - 1)); in vortex_wtdma_getlinearpos()
/linux/sound/hda/controllers/
H A Dintel.c598 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib()
601 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib()
687 if (WARN_ONCE(!azx_dev->core.period_bytes, in azx_position_ok()
691 pos % azx_dev->core.period_bytes > azx_dev->core.period_bytes / 2) in azx_position_ok()
820 mod_dma_pos %= azx_dev->core.period_bytes; in azx_via_get_position()
838 mod_mini_pos = mini_pos % azx_dev->core.period_bytes; in azx_via_get_position()
839 mod_link_pos = link_pos % azx_dev->core.period_bytes; in azx_via_get_position()
845 bound_pos = mini_pos - mod_mini_pos + azx_dev->core.period_bytes; in azx_via_get_position()
/linux/include/uapi/linux/
H A Dvirtio_snd.h260 __le32 period_bytes; member
/linux/sound/soc/atmel/
H A Dmchp-i2s-mcc.c537 int period_bytes = params_period_size(params) * in mchp_i2s_mcc_hw_params() local
551 params_width(params), params_channels(params), period_bytes); in mchp_i2s_mcc_hw_params()
660 maxburst = mchp_i2s_mcc_period_to_maxburst(period_bytes, sample_bytes); in mchp_i2s_mcc_hw_params()

12