Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/sound/soc/codecs/
A Drt5514-spi.c79 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local
91 if (!period_bytes) { in rt5514_spi_copy_work()
96 if (rt5514_dsp->buf_size % period_bytes) in rt5514_spi_copy_work()
98 period_bytes; in rt5514_spi_copy_work()
113 if (remain_data < period_bytes) { in rt5514_spi_copy_work()
122 period_bytes); in rt5514_spi_copy_work()
127 rt5514_dsp->buf_rp += period_bytes; in rt5514_spi_copy_work()
136 truncated_bytes, period_bytes - truncated_bytes); in rt5514_spi_copy_work()
138 rt5514_dsp->buf_rp = rt5514_dsp->buf_base + period_bytes - in rt5514_spi_copy_work()
142 rt5514_dsp->get_size += period_bytes; in rt5514_spi_copy_work()
[all …]
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 / 1000); in rt5677_spi_copy_work()
/linux-6.3-rc2/sound/soc/sh/
A Dsiu_pcm.c26 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \ argument
27 ((buf_bytes) / (period_bytes))
29 ((buf_addr) + ((period_num) * (period_bytes)))
88 siu_stream->period_bytes)) in siu_dma_tx_complete()
223 siu_stream->period_bytes); in siu_io_work()
224 count = siu_stream->period_bytes; in siu_io_work()
232 siu_stream->period_bytes), in siu_io_work()
233 siu_stream->period_bytes); in siu_io_work()
383 siu_stream->period_bytes); in siu_pcm_prepare()
397 siu_stream->period_bytes, in siu_pcm_prepare()
[all …]
/linux-6.3-rc2/sound/hda/
A Dhdac_stream.c330 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup()
492 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
509 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods()
526 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
545 &bdl, ofs, period_bytes, in snd_hdac_stream_setup_periods()
554 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods()
572 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
589 period_bytes != azx_dev->period_bytes || in snd_hdac_stream_set_params()
593 azx_dev->period_bytes = period_bytes; in snd_hdac_stream_set_params()
927 azx_dev->period_bytes = byte_size; in snd_hdac_dsp_prepare()
[all …]
/linux-6.3-rc2/sound/soc/au1x/
A Ddbdma2.c53 unsigned long period_bytes; /* size in bytes of one SG segment */ member
81 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx()
85 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx()
95 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx()
99 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx()
110 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb()
123 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb()
219 pcd->period_bytes = params_period_bytes(params); in au1xpsc_pcm_hw_params()
A Ddma.c64 unsigned int period_bytes, in au1000_setup_dma_link() argument
75 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
81 stream->period_size = period_bytes; in au1000_setup_dma_link()
89 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link()
90 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
/linux-6.3-rc2/sound/pci/cs5535audio/
A Dcs5535audio_pcm.c110 unsigned int period_bytes) in cs5535audio_build_dma_packets() argument
125 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
128 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
138 desc->size = cpu_to_le16(period_bytes); in cs5535audio_build_dma_packets()
140 addr += period_bytes; in cs5535audio_build_dma_packets()
151 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
/linux-6.3-rc2/sound/pci/
A Dals300.c402 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local
410 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
414 tmp |= period_bytes - 1; in snd_als300_playback_prepare()
431 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local
438 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare()
443 tmp |= period_bytes - 1; in snd_als300_capture_prepare()
504 unsigned short period_bytes; in snd_als300_pointer() local
507 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer()
513 if (current_ptr > period_bytes) in snd_als300_pointer()
516 current_ptr = period_bytes - current_ptr; in snd_als300_pointer()
[all …]
A Datiixp_modem.c210 unsigned int period_bytes, periods; member
313 unsigned int period_bytes) in atiixp_build_dma_packets() argument
326 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
329 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
347 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets()
353 addr += period_bytes; in atiixp_build_dma_packets()
359 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
A Datiixp.c234 unsigned int period_bytes, periods; member
344 unsigned int period_bytes) in atiixp_build_dma_packets() argument
359 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
362 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
380 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets()
386 addr += period_bytes; in atiixp_build_dma_packets()
392 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
/linux-6.3-rc2/sound/pci/lola/
A Dlola_pcm.c283 str->period_bytes = 0; in lola_pcm_hw_params()
345 int i, ofs, periods, period_bytes; in lola_setup_periods() local
347 period_bytes = str->period_bytes; in lola_setup_periods()
348 periods = str->bufsize / period_bytes; in lola_setup_periods()
355 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); in lola_setup_periods()
363 str->bufsize, period_bytes); in lola_setup_periods()
457 unsigned int bufsize, period_bytes, format_verb; in lola_pcm_prepare() local
474 period_bytes = snd_pcm_lib_period_bytes(substream); in lola_pcm_prepare()
478 str->period_bytes = period_bytes; in lola_pcm_prepare()
/linux-6.3-rc2/sound/soc/bcm/
A Dcygnus-ssp.h31 unsigned period_bytes; member
41 .period_bytes = 0, \
51 .period_bytes = 0, \
/linux-6.3-rc2/sound/drivers/pcsp/
A Dpcsp_lib.c91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
100 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
110 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
114 periods_elapsed /= period_bytes; in pcsp_pointer_update()
120 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
/linux-6.3-rc2/sound/virtio/
A Dvirtio_pcm_msg.c133 unsigned int periods, unsigned int period_bytes) in virtsnd_pcm_msg_alloc() argument
145 u8 *data = runtime->dma_area + period_bytes * i; in virtsnd_pcm_msg_alloc()
146 int sg_num = virtsnd_pcm_sg_num(data, period_bytes); in virtsnd_pcm_msg_alloc()
158 msg->length = period_bytes; in virtsnd_pcm_msg_alloc()
160 period_bytes); in virtsnd_pcm_msg_alloc()
A Dvirtio_pcm_ops.c155 unsigned int period_bytes, in virtsnd_pcm_dev_set_params() argument
190 request->period_bytes = cpu_to_le32(period_bytes); in virtsnd_pcm_dev_set_params()
289 unsigned int period_bytes = snd_pcm_lib_period_bytes(substream); in virtsnd_pcm_prepare() local
292 rc = virtsnd_pcm_dev_set_params(vss, buffer_bytes, period_bytes, in virtsnd_pcm_prepare()
/linux-6.3-rc2/sound/soc/amd/ps/
A Dps-pdm-dma.c224 size_t size, period_bytes; in acp63_pdm_dma_hw_params() local
230 period_bytes = params_period_bytes(params); in acp63_pdm_dma_hw_params()
235 period_bytes, rtd->acp63_base); in acp63_pdm_dma_hw_params()
413 u32 period_bytes, buffer_len; in acp63_pdm_resume() local
419 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp63_pdm_resume()
423 period_bytes, adata->acp63_base); in acp63_pdm_resume()
/linux-6.3-rc2/sound/soc/amd/yc/
A Dacp6x-pdm-dma.c220 size_t size, period_bytes; in acp6x_pdm_dma_hw_params() local
226 period_bytes = params_period_bytes(params); in acp6x_pdm_dma_hw_params()
231 period_bytes, rtd->acp6x_base); in acp6x_pdm_dma_hw_params()
402 u32 period_bytes, buffer_len; in acp6x_pdm_resume() local
408 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp6x_pdm_resume()
412 period_bytes, adata->acp6x_base); in acp6x_pdm_resume()
/linux-6.3-rc2/sound/soc/amd/acp/
A Dacp-pdm.c46 u32 physical_addr, size_dmic, period_bytes; in acp_dmic_prepare() local
55 period_bytes = frames_to_bytes(substream->runtime, in acp_dmic_prepare()
65 writel(period_bytes, adata->acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp_dmic_prepare()
/linux-6.3-rc2/sound/soc/amd/renoir/
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-6.3-rc2/sound/soc/sof/intel/
A Dhda-stream.c113 int i, offset, period_bytes, periods; in hda_dsp_stream_setup_bdl() local
116 period_bytes = hstream->period_bytes; in hda_dsp_stream_setup_bdl()
117 dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes); in hda_dsp_stream_setup_bdl()
118 if (!period_bytes) in hda_dsp_stream_setup_bdl()
119 period_bytes = hstream->bufsize; in hda_dsp_stream_setup_bdl()
121 periods = hstream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl()
125 remain = hstream->bufsize % period_bytes; in hda_dsp_stream_setup_bdl()
150 period_bytes, ioc); in hda_dsp_stream_setup_bdl()
/linux-6.3-rc2/sound/soc/amd/raven/
A Dacp3x-i2s.c152 u32 ret, val, period_bytes, reg_val, ier_val, water_val; in acp3x_i2s_trigger() local
156 period_bytes = frames_to_bytes(substream->runtime, in acp3x_i2s_trigger()
201 rv_writel(period_bytes, rtd->acp3x_base + water_val); in acp3x_i2s_trigger()
/linux-6.3-rc2/sound/core/oss/
A Dpcm_oss.c782 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size()
1064 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked()
1068 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked()
1441 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
1453 runtime->oss.period_bytes, 0); in snd_pcm_oss_write1()
1461 tmp != runtime->oss.period_bytes) in snd_pcm_oss_write1()
1551 runtime->oss.period_bytes, 0); in snd_pcm_oss_read1()
1842 return substream->runtime->oss.period_bytes; in snd_pcm_oss_get_block_size()
2255 info.blocks = delay / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
2286 info.fragsize = runtime->oss.period_bytes; in snd_pcm_oss_get_space()
[all …]
/linux-6.3-rc2/sound/soc/amd/vangogh/
A Dacp5x-i2s.c237 u32 ret, val, period_bytes, reg_val, ier_val, water_val; in acp5x_i2s_trigger() local
242 period_bytes = frames_to_bytes(substream->runtime, in acp5x_i2s_trigger()
287 acp_writel(period_bytes, rtd->acp5x_base + water_val); in acp5x_i2s_trigger()
/linux-6.3-rc2/sound/soc/fsl/
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()
124 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
276 count = s->period_current * s->period_bytes; in psc_dma_pointer()
/linux-6.3-rc2/include/sound/
A Dpcm_oss.h35 size_t period_bytes; /* requested period size */ member

Completed in 42 milliseconds

123