/linux-6.6.21/sound/soc/codecs/ |
D | rt5514-spi.c | 78 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local 89 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work() 90 if (!period_bytes) { in rt5514_spi_copy_work() 95 if (rt5514_dsp->buf_size % period_bytes) in rt5514_spi_copy_work() 96 rt5514_dsp->buf_size = (rt5514_dsp->buf_size / period_bytes) * in rt5514_spi_copy_work() 97 period_bytes; in rt5514_spi_copy_work() 112 if (remain_data < period_bytes) { in rt5514_spi_copy_work() 118 if (rt5514_dsp->buf_rp + period_bytes <= rt5514_dsp->buf_limit) { in rt5514_spi_copy_work() 121 period_bytes); in rt5514_spi_copy_work() 123 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.6.21/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.6.21/sound/hda/ |
D | hdac_stream.c | 334 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup() 498 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local 515 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods() 516 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods() 532 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods() 548 &bdl, ofs, period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods() 551 &bdl, ofs, period_bytes, in snd_hdac_stream_setup_periods() 560 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods() 578 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local 584 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params() [all …]
|
/linux-6.6.21/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.6.21/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() 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.6.21/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()
|
/linux-6.6.21/sound/soc/bcm/ |
D | cygnus-ssp.h | 31 unsigned period_bytes; member 41 .period_bytes = 0, \ 51 .period_bytes = 0, \
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/sound/soc/amd/yc/ |
D | acp6x-pdm-dma.c | 220 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.6.21/sound/soc/amd/ps/ |
D | ps-pdm-dma.c | 222 size_t size, period_bytes; in acp63_pdm_dma_hw_params() local 228 period_bytes = params_period_bytes(params); in acp63_pdm_dma_hw_params() 233 period_bytes, rtd->acp63_base); in acp63_pdm_dma_hw_params() 410 u32 period_bytes, buffer_len; in acp63_pdm_resume() local 416 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp63_pdm_resume() 420 period_bytes, adata->acp63_base); in acp63_pdm_resume()
|
D | ps-sdw-dma.c | 255 u32 period_bytes; in acp63_sdw_dma_hw_params() local 288 period_bytes = params_period_bytes(params); in acp63_sdw_dma_hw_params() 301 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_sdw_dma_hw_params() 501 u32 period_bytes, buf_size, water_mark_size_reg; in acp_restore_sdw_dma_config() local 525 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_restore_sdw_dma_config() 532 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp_restore_sdw_dma_config()
|
/linux-6.6.21/sound/soc/amd/acp/ |
D | acp-pdm.c | 34 u32 physical_addr, size_dmic, period_bytes; in acp_dmic_prepare() local 43 period_bytes = frames_to_bytes(substream->runtime, in acp_dmic_prepare() 53 writel(period_bytes, adata->acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp_dmic_prepare()
|
/linux-6.6.21/sound/soc/amd/renoir/ |
D | acp3x-pdm-dma.c | 244 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.6.21/sound/soc/sof/intel/ |
D | hda-stream.c | 112 int i, offset, period_bytes, periods; in hda_dsp_stream_setup_bdl() local 115 period_bytes = hstream->period_bytes; in hda_dsp_stream_setup_bdl() 116 dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes); in hda_dsp_stream_setup_bdl() 117 if (!period_bytes) in hda_dsp_stream_setup_bdl() 118 period_bytes = hstream->bufsize; in hda_dsp_stream_setup_bdl() 120 periods = hstream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl() 124 remain = hstream->bufsize % period_bytes; in hda_dsp_stream_setup_bdl() 149 period_bytes, ioc); in hda_dsp_stream_setup_bdl()
|
/linux-6.6.21/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.6.21/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.6.21/sound/soc/google/ |
D | chv3-i2s.c | 205 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-6.6.21/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.6.21/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() 127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger() 279 count = s->period_current * s->period_bytes; in psc_dma_pointer()
|