/sof-3.4.0/test/cmocka/src/audio/buffer/ |
D | buffer_copy.c | 24 int copy_bytes; in test_audio_buffer_copy_underrun() local 39 copy_bytes = in test_audio_buffer_copy_underrun() 43 assert_int_equal(copy_bytes, -1); in test_audio_buffer_copy_underrun() 51 int copy_bytes; in test_audio_buffer_copy_overrun() local 67 copy_bytes = in test_audio_buffer_copy_overrun() 72 assert_int_equal(copy_bytes, 1); in test_audio_buffer_copy_overrun() 80 int copy_bytes; in test_audio_buffer_copy_success() local 95 copy_bytes = audio_stream_can_copy_bytes(&src->stream, &snk->stream, 0); in test_audio_buffer_copy_success() 98 assert_int_equal(copy_bytes, 0); in test_audio_buffer_copy_success() 106 int copy_bytes; in test_audio_buffer_copy_fit_space_constraint() local [all …]
|
/sof-3.4.0/src/audio/ |
D | host-legacy.c | 176 uint32_t copy_bytes; in host_get_copy_bytes_one_shot() local 180 copy_bytes = audio_stream_get_free_bytes(&buffer_c->stream); in host_get_copy_bytes_one_shot() 182 copy_bytes = audio_stream_get_avail_bytes(&buffer_c->stream); in host_get_copy_bytes_one_shot() 189 return ALIGN_DOWN(copy_bytes, hd->dma_copy_align); in host_get_copy_bytes_one_shot() 201 uint32_t copy_bytes = 0; in host_copy_one_shot() local 207 copy_bytes = host_get_copy_bytes_one_shot(dev); in host_copy_one_shot() 208 if (!copy_bytes) { in host_copy_one_shot() 213 while (copy_bytes) { in host_copy_one_shot() 215 split_value = host_dma_get_split(hd, copy_bytes); in host_copy_one_shot() 216 copy_bytes -= split_value; in host_copy_one_shot() [all …]
|
D | host-zephyr.c | 117 uint32_t copy_bytes; in host_get_copy_bytes_one_shot() local 123 copy_bytes = audio_stream_get_free_bytes(&buffer_c->stream); in host_get_copy_bytes_one_shot() 125 copy_bytes = audio_stream_get_avail_bytes(&buffer_c->stream); in host_get_copy_bytes_one_shot() 132 return ALIGN_DOWN(copy_bytes, hd->dma_copy_align); in host_get_copy_bytes_one_shot() 143 uint32_t copy_bytes; in host_copy_one_shot() local 149 copy_bytes = host_get_copy_bytes_one_shot(hd); in host_copy_one_shot() 150 if (!copy_bytes) { in host_copy_one_shot() 155 while (copy_bytes) { in host_copy_one_shot() 157 split_value = host_dma_get_split(hd, copy_bytes); in host_copy_one_shot() 158 copy_bytes -= split_value; in host_copy_one_shot() [all …]
|
D | kpb.c | 1065 struct comp_buffer __sparse_cache *source_c, size_t copy_bytes, in kpb_micselect_copy() argument 1075 kpb_micselect_copy16(sink_c, source_c, copy_bytes, in kpb_micselect_copy() 1081 kpb_micselect_copy32(sink_c, source_c, copy_bytes, in kpb_micselect_copy() 1085 kpb_micselect_copy32(sink_c, source_c, copy_bytes, in kpb_micselect_copy() 1111 size_t copy_bytes = 0, produced_bytes = 0; in kpb_copy() local 1158 copy_bytes = audio_stream_get_copy_bytes(&source_c->stream, &sink_c->stream); in kpb_copy() 1159 if (!copy_bytes) { in kpb_copy() 1168 kpb_copy_samples(sink_c, source_c, copy_bytes, sample_width, channels); in kpb_copy() 1173 copy_bytes = MIN(avail, free * channels / kpb->num_of_sel_mic); in kpb_copy() 1174 copy_bytes = ROUND_DOWN(copy_bytes, (sample_width >> 3) * channels); in kpb_copy() [all …]
|
D | dai-legacy.c | 927 uint32_t copy_bytes = 0; in dai_copy() local 967 copy_bytes = samples * sampling; in dai_copy() 970 dev->direction, copy_bytes, in dai_copy() 977 copy_bytes + avail_bytes < dd->period_bytes) in dai_copy() 979 copy_bytes, avail_bytes, dd->period_bytes); in dai_copy() 981 copy_bytes + free_bytes < dd->period_bytes) in dai_copy() 983 copy_bytes, free_bytes, dd->period_bytes); in dai_copy() 986 if (!copy_bytes) { in dai_copy() 994 ret = dma_copy_legacy(dd->chan, copy_bytes, 0); in dai_copy() 996 dai_report_xrun(dev, copy_bytes); in dai_copy()
|
D | dai-zephyr.c | 1219 uint32_t copy_bytes = 0; in dai_copy() local 1275 copy_bytes = samples * sampling; in dai_copy() 1278 dev->direction, copy_bytes, in dai_copy() 1285 copy_bytes + avail_bytes < dd->period_bytes) in dai_copy() 1287 copy_bytes, avail_bytes, dd->period_bytes); in dai_copy() 1289 copy_bytes + free_bytes < dd->period_bytes) in dai_copy() 1291 copy_bytes, free_bytes, dd->period_bytes); in dai_copy() 1294 if (!copy_bytes) { in dai_copy() 1304 if (dai_dma_cb(dev, copy_bytes) == DMA_CB_STATUS_END) in dai_copy() 1307 ret = dma_reload(dd->chan->dma->z_dev, dd->chan->index, 0, 0, copy_bytes); in dai_copy() [all …]
|
/sof-3.4.0/src/include/sof/audio/ |
D | component.h | 819 uint32_t copy_bytes) in comp_underrun() argument 824 copy_bytes; in comp_underrun() 829 copy_bytes); in comp_underrun() 841 uint32_t copy_bytes) in comp_overrun() argument 845 int32_t bytes = (int32_t)copy_bytes - in comp_overrun() 849 audio_stream_get_free_bytes(&sink->stream), copy_bytes); in comp_overrun()
|
/sof-3.4.0/src/audio/module_adapter/ |
D | module_adapter.c | 512 uint32_t tmp, copy_bytes = bytes; in generate_zeroes() local 515 while (copy_bytes) { in generate_zeroes() 518 tmp = MIN(tmp, copy_bytes); in generate_zeroes() 520 copy_bytes -= tmp; in generate_zeroes() 530 uint32_t copy_bytes; in module_copy_samples() local 552 copy_bytes = cl.frames * cl.source_frame_bytes; in module_copy_samples() 553 if (!copy_bytes) in module_copy_samples() 556 copy_bytes / mod->stream_params->sample_container_bytes); in module_copy_samples() 557 buffer_stream_writeback(sink_buffer, copy_bytes); in module_copy_samples() 559 comp_update_buffer_produce(sink_buffer, copy_bytes); in module_copy_samples() [all …]
|
/sof-3.4.0/src/probe/ |
D | probe.c | 812 int32_t copy_bytes = 0; in probe_cb_produce() local 923 copy_bytes = dma->dmapb.r_ptr - dma->dmapb.w_ptr; in probe_cb_produce() 924 if (copy_bytes < 0) in probe_cb_produce() 925 copy_bytes += dma->dmapb.size; in probe_cb_produce() 928 copy_bytes = ALIGN_DOWN(copy_bytes, 32); in probe_cb_produce() 931 if (copy_bytes > 0) { in probe_cb_produce() 935 copy_bytes); in probe_cb_produce() 940 dma->dmapb.w_ptr = dma->dmapb.w_ptr + copy_bytes; in probe_cb_produce()
|
/sof-3.4.0/src/lib/ |
D | alloc.c | 1013 size_t copy_bytes = MIN(bytes, old_bytes); in rbrealloc_align() local 1023 memcpy_s(new_ptr, copy_bytes, ptr, copy_bytes); in rbrealloc_align()
|