Skip to content

Commit

Permalink
drivers/mediatek/afe: Set initial state on DMA objects
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andyross committed Dec 18, 2024
1 parent 48744c6 commit 9b37e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/mediatek/afe/afe-memif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9b37e3f

Please sign in to comment.