From 0ab7a901b71fed0afadc47f571ab01ad5aa38e87 Mon Sep 17 00:00:00 2001 From: xross Date: Wed, 17 Jan 2018 14:41:34 +0000 Subject: [PATCH] Revert "Fixed issue where is appears ports are not resynced after an error (inspection - missing test)" This reverts commit 2e35d2804d97bdf88b4b1f568e7c020f5462f214. --- lib_xua/src/core/audiohub/xua_audiohub.xc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib_xua/src/core/audiohub/xua_audiohub.xc b/lib_xua/src/core/audiohub/xua_audiohub.xc index ea794a8d..87475afa 100755 --- a/lib_xua/src/core/audiohub/xua_audiohub.xc +++ b/lib_xua/src/core/audiohub/xua_audiohub.xc @@ -904,6 +904,8 @@ unsigned static deliver_slave(chanend ?c_out, chanend ?c_spd_out return command; } + InitPorts_slave(divide); + /* Main Audio I/O loop */ while (1) { @@ -913,7 +915,14 @@ unsigned static deliver_slave(chanend ?c_out, chanend ?c_spd_out int syncError = 0; unsigned lrval; - InitPorts_slave(divide); + if (!firstIteration) + { + InitPorts_slave(divide); + } + else + { + firstIteration = 0; + } while (!syncError) {