Skip to content

Commit

Permalink
pipeline: Use Zephyr API k_msleep() instead of obsolete wait_delay_ms()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jsarha authored and lgirdwood committed May 9, 2022
1 parent e4692e6 commit 301d3d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/audio/pipeline/pipeline-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 301d3d8

Please sign in to comment.