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:
Tomasz Lauda 2019-01-25 11:28:17 +01:00 committed by Liam Girdwood
parent 621e8702cc
commit dec5c62bd1
1 changed files with 1 additions and 1 deletions

View File

@ -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);