platform: imx: use DMA_DOMAIN in full synchronous mode

Use the full_sync attribute from dma_domain to schedule
tasks based on period ratio between the registrable
task and the current one.
Do not make it time dependent anymore.

Fixes: #3802

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
This commit is contained in:
Iuliana Prodan 2021-02-01 19:58:22 +02:00 committed by Daniel Baluta
parent b732c4fb13
commit 789a286ace
2 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,9 @@ int platform_init(struct sof *sof)
sof->platform_dma_domain = dma_multi_chan_domain_init
(&sof->dma_info->dma_array[0], 1,
PLATFORM_DEFAULT_CLOCK, false);
/* i.MX platform DMA domain will be full synchronous, no time dependent */
sof->platform_dma_domain->full_sync = true;
scheduler_init_ll(sof->platform_dma_domain);
/* initialize the host IPC mechanims */

View File

@ -175,6 +175,9 @@ int platform_init(struct sof *sof)
sof->platform_dma_domain =
dma_multi_chan_domain_init(&sof->dma_info->dma_array[1],
1, PLATFORM_DEFAULT_CLOCK, true);
/* i.MX platform DMA domain will be full synchronous, no time dependent */
sof->platform_dma_domain->full_sync = true;
scheduler_init_ll(sof->platform_dma_domain);
/* initialize the host IPC mechanims */