From 9b37e3f57ba9dc89f0d8d1d321671dc67e5f0d92 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 17 Dec 2024 07:36:18 -0800 Subject: [PATCH] drivers/mediatek/afe: Set initial state on DMA objects At the start of probe(), the expectation is that component objects go to COMP_STATE_INIT. This was being skipped. That used to be benign, I believe because the struct was allocated via a path that set it already. But now it fails with the Zephyr integration. Signed-off-by: Andy Ross --- src/drivers/mediatek/afe/afe-memif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/mediatek/afe/afe-memif.c b/src/drivers/mediatek/afe/afe-memif.c index 66638e126ff8..5fdba9b17fd9 100644 --- a/src/drivers/mediatek/afe/afe-memif.c +++ b/src/drivers/mediatek/afe/afe-memif.c @@ -370,6 +370,7 @@ static int memif_probe(struct dma *dma) dma->chan[channel].dma = dma; /* TODO need divide to UL and DL for different index */ dma->chan[channel].index = channel; + dma->chan[channel].status = COMP_STATE_INIT; memif = rzalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0, SOF_MEM_CAPS_RAM, sizeof(struct afe_memif_dma));