mirror of https://github.com/thesofproject/sof.git
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:
parent
2b6001e065
commit
735d44368f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue