Skip to content

Commit ab7f6ce

Browse files
committed
ipc: ipc4: use the SOF sof_dma_get_status() in dai_common_position()
Use the sof_dma_get_status() wrapper to get DMA status in dai_common_position(). This allows the code to be used from user-space context. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent b8d5999 commit ab7f6ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ipc/ipc4/dai.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ int dai_common_position(struct dai_data *dd, struct comp_dev *dev,
425425
platform_dai_wallclock(dev, &dd->wallclock);
426426
posn->wallclock = dd->wallclock;
427427

428-
ret = dma_get_status(dd->dma->z_dev, dd->chan_index, &status);
428+
ret = sof_dma_get_status(dd->dma, dd->chan_index, &status);
429429
if (ret < 0)
430430
return ret;
431431

0 commit comments

Comments
 (0)