mirror of https://github.com/thesofproject/sof.git
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:
parent
d56153635f
commit
c867348ce2
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue