mirror of https://github.com/thesofproject/sof.git
dma-trace: Cancel the dtrace task before stopping the channel in reconfig
We should stop the task before the dtrace channel is stopped when we need to re-configure it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
This commit is contained in:
parent
676541b025
commit
1745148343
|
@ -322,6 +322,7 @@ static int dma_trace_start(struct dma_trace_data *d)
|
||||||
"dma_trace_start(): DMA reconfiguration (active stream_tag: %u)",
|
"dma_trace_start(): DMA reconfiguration (active stream_tag: %u)",
|
||||||
d->active_stream_tag);
|
d->active_stream_tag);
|
||||||
|
|
||||||
|
schedule_task_cancel(&d->dmat_work);
|
||||||
err = dma_stop(d->dc.chan);
|
err = dma_stop(d->dc.chan);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
mtrace_printf(LOG_LEVEL_ERROR,
|
mtrace_printf(LOG_LEVEL_ERROR,
|
||||||
|
|
Loading…
Reference in New Issue