From c867348ce2fffb419ce1a0ff763191b7f6b3b2e6 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Fri, 15 Nov 2024 10:51:48 +0200 Subject: [PATCH] samples: audio: detect_test: use wait_delay instead of idelay Prepare to remove idelay() use from generic code, so it can be removed from the SOF rtos abstraction layer. Signed-off-by: Kai Vehmanen --- src/samples/audio/detect_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samples/audio/detect_test.c b/src/samples/audio/detect_test.c index 0b7d12d89..35270b60f 100644 --- a/src/samples/audio/detect_test.c +++ b/src/samples/audio/detect_test.c @@ -223,7 +223,7 @@ static void default_detect_test(struct comp_dev *dev, /* assuming count is a processing frame size in samples */ cycles_per_frame = (cd->config.load_mips * 1000000 * count) / audio_stream_get_rate(source); - idelay(cycles_per_frame); + wait_delay(cycles_per_frame); } /* perform detection within current period */