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:
Peter Ujfalusi 2021-10-15 09:19:59 +03:00 committed by Liam Girdwood
parent 676541b025
commit 1745148343
1 changed files with 1 additions and 0 deletions

View File

@ -322,6 +322,7 @@ static int dma_trace_start(struct dma_trace_data *d)
"dma_trace_start(): DMA reconfiguration (active stream_tag: %u)",
d->active_stream_tag);
schedule_task_cancel(&d->dmat_work);
err = dma_stop(d->dc.chan);
if (err < 0) {
mtrace_printf(LOG_LEVEL_ERROR,