From dec5c62bd1256ac37afb2af02bb076a6f32ca1f5 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Fri, 25 Jan 2019 11:28:17 +0100 Subject: [PATCH] dw-dma: use chan instead of p[chan] Fixes DMA channel usage. Signed-off-by: Tomasz Lauda --- src/drivers/dw-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/dw-dma.c b/src/drivers/dw-dma.c index 6e7e8406c..9722f6580 100644 --- a/src/drivers/dw-dma.c +++ b/src/drivers/dw-dma.c @@ -474,7 +474,7 @@ static int dw_dma_start(struct dma *dma, int channel) /* activate timer for timer driven scheduling */ work_schedule_default(&chan->dma_ch_work, chan->timer_delay + start_offset); - } else if (p->chan[channel].status == COMP_STATE_PREPARE) + } else if (chan->status == COMP_STATE_PREPARE) /* enable interrupt only for the first start */ ret = dw_dma_interrupt_register(dma, channel);