Skip to content

Commit 301d3d8

Browse files
jsarhalgirdwood
authored andcommitted
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>
1 parent e4692e6 commit 301d3d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/audio/pipeline/pipeline-stream.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include <sof/string.h>
1616
#include <ipc/stream.h>
1717
#include <ipc/topology.h>
18+
19+
#include <kernel.h>
20+
1821
#include <errno.h>
1922
#include <stdbool.h>
2023
#include <stddef.h>
@@ -430,7 +433,7 @@ int pipeline_trigger_run(struct pipeline *p, struct comp_dev *host, int cmd)
430433
list_init(&walk_ctx.pipelines);
431434

432435
if (data.delay_ms)
433-
wait_delay_ms(data.delay_ms);
436+
k_msleep(data.delay_ms);
434437

435438
ret = walk_ctx.comp_func(host, NULL, &walk_ctx, host->direction);
436439
if (ret < 0)

0 commit comments

Comments
 (0)