dai-zephyr: add a DAI COPY trigger

Add a DAI COPY trigger to be called before dma_copy

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
This commit is contained in:
Adrian Bonislawski 2022-06-29 17:54:16 +02:00 committed by Liam Girdwood
parent 33f27d3477
commit ef39318ee4
1 changed files with 5 additions and 0 deletions

View File

@ -1215,6 +1215,11 @@ static int dai_copy(struct comp_dev *dev)
return 0;
}
/* trigger optional DAI_TRIGGER_COPY which prepares dai to copy */
ret = dai_trigger(dd->dai->drv, dev->direction, DAI_TRIGGER_COPY);
if (ret < 0)
comp_warn(dev, "dai_copy(): dai trigger copy failed");
struct dma_cb_data next = {
.channel = dd->chan,
.elem = { .size = copy_bytes },