Skip to content

Commit c867348

Browse files
kv2019ilgirdwood
authored andcommitted
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 <kai.vehmanen@linux.intel.com>
1 parent d561536 commit c867348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/samples/audio/detect_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static void default_detect_test(struct comp_dev *dev,
223223
/* assuming count is a processing frame size in samples */
224224
cycles_per_frame = (cd->config.load_mips * 1000000 * count)
225225
/ audio_stream_get_rate(source);
226-
idelay(cycles_per_frame);
226+
wait_delay(cycles_per_frame);
227227
}
228228

229229
/* perform detection within current period */

0 commit comments

Comments
 (0)