Skip to content

Commit 132fbdd

Browse files
committed
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 <andyross@google.com>
1 parent 5ded9f3 commit 132fbdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/mediatek/afe/afe-memif.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ static int memif_probe(struct dma *dma)
370370
dma->chan[channel].dma = dma;
371371
/* TODO need divide to UL and DL for different index */
372372
dma->chan[channel].index = channel;
373+
dma->chan[channel].status = COMP_STATE_INIT;
373374

374375
memif = rzalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0, SOF_MEM_CAPS_RAM,
375376
sizeof(struct afe_memif_dma));

0 commit comments

Comments
 (0)