/linux-6.1.9/sound/soc/codecs/ |
D | rt5514-spi.c | 79 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local 90 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work() 91 if (!period_bytes) { in rt5514_spi_copy_work() 96 if (rt5514_dsp->buf_size % period_bytes) in rt5514_spi_copy_work() 97 rt5514_dsp->buf_size = (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() 119 if (rt5514_dsp->buf_rp + period_bytes <= rt5514_dsp->buf_limit) { in rt5514_spi_copy_work() 122 period_bytes); in rt5514_spi_copy_work() 124 if (rt5514_dsp->buf_rp + period_bytes == rt5514_dsp->buf_limit) in rt5514_spi_copy_work() [all …]
|
D | rt5677-spi.c | 309 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.1.9/sound/soc/sh/ |
D | siu_pcm.c | 26 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \ argument 27 ((buf_bytes) / (period_bytes)) 28 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \ argument 29 ((buf_addr) + ((period_num) * (period_bytes))) 88 siu_stream->period_bytes)) in siu_dma_tx_complete() 93 siu_stream->cur_period * 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() [all …]
|
/linux-6.1.9/sound/hda/ |
D | hdac_stream.c | 318 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup() 478 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local 485 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods() 486 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods() 502 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods() 520 period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods() 524 period_bytes, in snd_hdac_stream_setup_periods() 533 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods() 550 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local 559 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params() [all …]
|
/linux-6.1.9/sound/soc/au1x/ |
D | dbdma2.c | 53 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()
|
D | dma.c | 64 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.1.9/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 110 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() 139 desc->size = cpu_to_le16(period_bytes); in cs5535audio_build_dma_packets() 142 addr += period_bytes; in cs5535audio_build_dma_packets() 153 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
|
/linux-6.1.9/sound/pci/ |
D | als300.c | 402 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 …]
|
D | atiixp_modem.c | 210 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()
|
D | atiixp.c | 234 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.1.9/sound/pci/lola/ |
D | lola_pcm.c | 283 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.1.9/sound/soc/bcm/ |
D | cygnus-ssp.h | 31 unsigned period_bytes; member 41 .period_bytes = 0, \ 51 .period_bytes = 0, \
|
/linux-6.1.9/sound/virtio/ |
D | virtio_pcm_msg.c | 133 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()
|
D | virtio_pcm_ops.c | 155 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.1.9/sound/drivers/pcsp/ |
D | pcsp_lib.c | 91 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.1.9/sound/soc/amd/ps/ |
D | ps-pdm-dma.c | 214 size_t size, period_bytes; in acp62_pdm_dma_hw_params() local 220 period_bytes = params_period_bytes(params); in acp62_pdm_dma_hw_params() 225 period_bytes, rtd->acp62_base); in acp62_pdm_dma_hw_params() 399 u32 period_bytes, buffer_len; in acp62_pdm_resume() local 405 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp62_pdm_resume() 409 period_bytes, adata->acp62_base); in acp62_pdm_resume()
|
/linux-6.1.9/sound/soc/amd/yc/ |
D | acp6x-pdm-dma.c | 214 size_t size, period_bytes; in acp6x_pdm_dma_hw_params() local 220 period_bytes = params_period_bytes(params); in acp6x_pdm_dma_hw_params() 225 period_bytes, rtd->acp6x_base); in acp6x_pdm_dma_hw_params() 396 u32 period_bytes, buffer_len; in acp6x_pdm_resume() local 402 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp6x_pdm_resume() 406 period_bytes, adata->acp6x_base); in acp6x_pdm_resume()
|
/linux-6.1.9/sound/soc/amd/acp/ |
D | acp-pdm.c | 46 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.1.9/sound/soc/amd/renoir/ |
D | acp3x-pdm-dma.c | 238 size_t size, period_bytes; in acp_pdm_dma_hw_params() local 244 period_bytes = params_period_bytes(params); in acp_pdm_dma_hw_params() 248 init_pdm_ring_buffer(MEM_WINDOW_START, size, period_bytes, in acp_pdm_dma_hw_params() 443 u32 period_bytes, buffer_len; in acp_pdm_resume() local 449 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_pdm_resume() 452 init_pdm_ring_buffer(MEM_WINDOW_START, buffer_len, period_bytes, in acp_pdm_resume()
|
/linux-6.1.9/sound/soc/sof/intel/ |
D | hda-stream.c | 113 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.1.9/sound/soc/amd/raven/ |
D | acp3x-i2s.c | 152 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.1.9/sound/core/oss/ |
D | pcm_oss.c | 782 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size() 964 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked() 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() 1079 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked() 1419 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1() 1421 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1() 1422 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1() 1434 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1() 1441 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1() [all …]
|
/linux-6.1.9/sound/soc/amd/vangogh/ |
D | acp5x-i2s.c | 237 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.1.9/sound/soc/fsl/ |
D | mpc5200_dma.c | 67 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.1.9/include/sound/ |
D | pcm_oss.h | 35 size_t period_bytes; /* requested period size */ member
|