/sof-3.4.0/src/audio/module_adapter/module/ |
D | passthrough.c | 30 codec->mpd.in_buff = rballoc(0, SOF_MEM_CAPS_RAM, mod->period_bytes); in passthrough_codec_prepare() 35 codec->mpd.in_buff_size = mod->period_bytes; in passthrough_codec_prepare() 37 codec->mpd.out_buff = rballoc(0, SOF_MEM_CAPS_RAM, mod->period_bytes); in passthrough_codec_prepare() 43 codec->mpd.out_buff_size = mod->period_bytes; in passthrough_codec_prepare() 86 codec->mpd.produced = mod->period_bytes; in passthrough_codec_process() 87 codec->mpd.consumed = mod->period_bytes; in passthrough_codec_process()
|
/sof-3.4.0/src/audio/ |
D | dai-legacy.c | 328 static int dai_playback_params(struct comp_dev *dev, uint32_t period_bytes, in dai_playback_params() argument 376 period_bytes, in dai_playback_params() 381 period_count, period_bytes, err); in dai_playback_params() 390 static int dai_capture_params(struct comp_dev *dev, uint32_t period_bytes, in dai_capture_params() argument 449 period_bytes, in dai_capture_params() 454 period_count, period_bytes, err); in dai_capture_params() 471 uint32_t period_bytes; in dai_params() local 551 period_bytes = dev->frames * frame_size; in dai_params() 552 if (!period_bytes) { in dai_params() 557 dd->period_bytes = period_bytes; in dai_params() [all …]
|
D | dai-zephyr.c | 440 static int dai_playback_params(struct comp_dev *dev, uint32_t period_bytes, in dai_playback_params() argument 496 buf_size = period_count * period_bytes; in dai_playback_params() 500 period_bytes = buf_size / period_count; in dai_playback_params() 511 period_bytes, in dai_playback_params() 516 period_count, period_bytes, err); in dai_playback_params() 578 static int dai_capture_params(struct comp_dev *dev, uint32_t period_bytes, in dai_capture_params() argument 651 buf_size = period_count * period_bytes; in dai_capture_params() 655 period_bytes = buf_size / period_count; in dai_capture_params() 666 period_bytes, in dai_capture_params() 671 period_count, period_bytes, err); in dai_capture_params() [all …]
|
D | host-legacy.c | 99 uint32_t period_bytes; /**< number of bytes per one period */ member 471 copy_bytes = MIN(hd->period_bytes, MIN(avail_bytes, free_bytes)); in host_get_copy_bytes_normal() 751 uint32_t period_bytes; in host_params() local 808 period_bytes = dev->frames * in host_params() 811 if (!period_bytes) { in host_params() 830 period_bytes *= period_count; in host_params() 835 buffer_size = ALIGN_UP(period_bytes, align) * period_count; in host_params() 910 hd->period_bytes = ALIGN_UP(period_bytes, hd->dma_copy_align); in host_params()
|
D | host-zephyr.c | 426 copy_bytes = MIN(hd->period_bytes, copy_bytes); in host_get_copy_bytes_normal() 480 buffer_c->stream.size < hd->period_bytes << 3 || in host_copy_normal() 481 buffer_c->stream.size - hd->partial_size <= (2 + threshold) * hd->period_bytes) { in host_copy_normal() 749 uint32_t period_bytes; in host_zephyr_params() local 797 period_bytes = dev->frames * get_frame_bytes(params->frame_fmt, params->channels); in host_zephyr_params() 799 if (!period_bytes) { in host_zephyr_params() 818 period_bytes *= period_count; in host_zephyr_params() 823 buffer_size = ALIGN_UP(period_bytes, align) * period_count; in host_zephyr_params() 954 hd->period_bytes = ALIGN_UP(period_bytes, hd->dma_copy_align); in host_zephyr_params()
|
D | tone.c | 93 uint32_t period_bytes; member 453 cd->period_bytes = dev->frames * in tone_params() 653 if (free >= cd->period_bytes) { in tone_copy() 656 buffer_stream_writeback(sink_c, cd->period_bytes); in tone_copy() 659 comp_update_buffer_produce(sink_c, cd->period_bytes); in tone_copy()
|
D | kpb.c | 1684 size_t period_bytes = 0; in kpb_draining_task() local 1717 period_bytes = 0; in kpb_draining_task() 1746 period_bytes += size_to_copy; in kpb_draining_task() 1767 if (sync_mode_on && period_bytes >= period_bytes_limit) { in kpb_draining_task()
|
/sof-3.4.0/src/audio/module_adapter/ |
D | module_adapter.c | 185 mod->period_bytes = audio_stream_period_bytes(&sink_c->stream, dev->frames); in module_adapter_prepare() 186 comp_dbg(dev, "module_adapter_prepare(): got period_bytes = %u", mod->period_bytes); in module_adapter_prepare() 281 if (md->mpd.in_buff_size > mod->period_bytes) { in module_adapter_prepare() 282 buff_periods = (md->mpd.in_buff_size % mod->period_bytes) ? in module_adapter_prepare() 283 (md->mpd.in_buff_size / mod->period_bytes) + 2 : in module_adapter_prepare() 284 (md->mpd.in_buff_size / mod->period_bytes) + 1; in module_adapter_prepare() 286 buff_periods = (mod->period_bytes % md->mpd.in_buff_size) ? in module_adapter_prepare() 287 (mod->period_bytes / md->mpd.in_buff_size) + 2 : in module_adapter_prepare() 288 (mod->period_bytes / md->mpd.in_buff_size) + 1; in module_adapter_prepare() 298 if (md->mpd.in_buff_size != mod->period_bytes) in module_adapter_prepare() [all …]
|
/sof-3.4.0/src/drivers/intel/hda/ |
D | hda-dma.c | 211 uint32_t period_bytes; member 571 hda_chan->period_bytes = 0; in hda_dma_channel_put_unlocked() 742 uint32_t period_bytes = 0; in hda_dma_set_config() local 799 if (period_bytes && period_bytes != sg_elem->size) { in hda_dma_set_config() 802 channel->index, period_bytes); in hda_dma_set_config() 808 period_bytes = sg_elem->size; in hda_dma_set_config() 809 buffer_bytes += period_bytes; in hda_dma_set_config() 832 hda_chan->period_bytes = period_bytes; in hda_dma_set_config()
|
/sof-3.4.0/src/include/sof/audio/ |
D | host_copier.h | 83 uint32_t period_bytes; /**< number of bytes per one period */ member
|
/sof-3.4.0/src/include/sof/lib/ |
D | dai-zephyr.h | 142 uint32_t period_bytes; /* number of bytes per one period */ member
|
D | dai-legacy.h | 185 uint32_t period_bytes; /* number of bytes per one period */ member
|
/sof-3.4.0/src/include/sof/audio/module_adapter/module/ |
D | generic.h | 179 uint32_t period_bytes; /** pipeline period bytes */ member
|
/sof-3.4.0/test/cmocka/src/audio/eq_fir/ |
D | eq_fir_process.c | 172 mod->period_bytes = get_frame_bytes(params->source_format, params->channels) * 48000 / 1000; in setup()
|
/sof-3.4.0/test/cmocka/src/audio/eq_iir/ |
D | eq_iir_process.c | 171 mod->period_bytes = get_frame_bytes(params->source_format, params->channels) * 48000 / 1000; in setup()
|