From afd2bbf64e8588ed0aa3ec2e5c6b29e0da0019da 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));