Skip to content

Commit 73870dc

Browse files
committed
ipc: ipc4: dai: fix direct use of DMA driver calls
Fix a few remaining uses of direct DMA driver calls. Use the sof_dma.h wrapper instead, allowing the code to be used also from user-space. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 2a9c709 commit 73870dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ipc/ipc4/dai.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ void dai_dma_release(struct dai_data *dd, struct comp_dev *dev)
236236
* TODO: refine power management when stream is paused
237237
*/
238238
/* if reset is after pause dma has already been stopped */
239-
dma_stop(dd->dma->z_dev, dd->chan_index);
239+
sof_dma_stop(dd->dma, dd->chan_index);
240240

241-
dma_release_channel(dd->dma->z_dev, dd->chan_index);
241+
sof_dma_release_channel(dd->dma, dd->chan_index);
242242
dd->chan_index = -EINVAL;
243243
}
244244
}

0 commit comments

Comments
 (0)