pipeline: Use Zephyr API k_msleep() instead of obsolete wait_delay_ms()

Use Zephyr API k_msleep() instead of obsolete wait_delay_ms(). In XTOS
build the k_msleep() is implemented in xtos-wrapper/include/kernel.h
and it actually calls the wait_delay_ms().

Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
This commit is contained in:
Jyri Sarha 2022-05-02 23:28:56 +03:00 committed by Liam Girdwood
parent e4692e644e
commit 301d3d8b9f
1 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,9 @@
#include <sof/string.h>
#include <ipc/stream.h>
#include <ipc/topology.h>
#include <kernel.h>
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
@ -430,7 +433,7 @@ int pipeline_trigger_run(struct pipeline *p, struct comp_dev *host, int cmd)
list_init(&walk_ctx.pipelines);
if (data.delay_ms)
wait_delay_ms(data.delay_ms);
k_msleep(data.delay_ms);
ret = walk_ctx.comp_func(host, NULL, &walk_ctx, host->direction);
if (ret < 0)