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>
This commit is contained in:
Kai Vehmanen 2024-11-15 10:51:48 +02:00 committed by Liam Girdwood
parent d56153635f
commit c867348ce2
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ static void default_detect_test(struct comp_dev *dev,
/* assuming count is a processing frame size in samples */ /* assuming count is a processing frame size in samples */
cycles_per_frame = (cd->config.load_mips * 1000000 * count) cycles_per_frame = (cd->config.load_mips * 1000000 * count)
/ audio_stream_get_rate(source); / audio_stream_get_rate(source);
idelay(cycles_per_frame); wait_delay(cycles_per_frame);
} }
/* perform detection within current period */ /* perform detection within current period */