Skip to content

Commit c38d058

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 <[email protected]>
1 parent 293e4c4 commit c38d058

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
@@ -371,6 +371,7 @@ static int memif_probe(struct dma *dma)
371371
dma->chan[channel].dma = dma;
372372
/* TODO need divide to UL and DL for different index */
373373
dma->chan[channel].index = channel;
374+
dma->chan[channel].status = COMP_STATE_INIT;
374375

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

0 commit comments

Comments
 (0)