mirror of https://github.com/thesofproject/sof.git
dw-dma: use chan instead of p[chan]
Fixes DMA channel usage. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
621e8702cc
commit
dec5c62bd1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue