probe: update dma copy method to dma_copy_to_host()

dma_copy_to_host_nowait() no longer exists and needs to be updated

Fixes commit 443b21de4b ("dma-trace: Fix potential race issue by using
blocking DMA copy")

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
This commit is contained in:
Adrian Bonislawski 2022-02-11 10:32:21 +01:00 committed by Liam Girdwood
parent 2b6001e065
commit 735d44368f
1 changed files with 4 additions and 4 deletions

View File

@ -869,10 +869,10 @@ static void probe_cb_produce(void *arg, enum notify_id type, void *data)
/* check if copy_bytes is still valid for dma copy */
if (copy_bytes > 0) {
ret = dma_copy_to_host_nowait(&dma->dc,
&dma->config, 0,
(void *)dma->dmapb.r_ptr,
copy_bytes);
ret = dma_copy_to_host(&dma->dc,
&dma->config, 0,
(void *)dma->dmapb.r_ptr,
copy_bytes);
if (ret < 0)
goto err;