From ccfca90451c1bf9fce34cb451be8496fa5862107 Mon Sep 17 00:00:00 2001 From: Tom Williams Date: Wed, 22 Mar 2023 15:56:28 +0000 Subject: [PATCH 1/2] removed referance to outdated header file, changed for the api file --- lib_xua/src/core/main.xc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_xua/src/core/main.xc b/lib_xua/src/core/main.xc index d7a27d10..2b9a90e7 100755 --- a/lib_xua/src/core/main.xc +++ b/lib_xua/src/core/main.xc @@ -31,7 +31,7 @@ #endif #if (XUA_SPDIF_RX_EN) -#include "SpdifReceive.h" +#include "spdif.h" #endif #if (XUA_ADAT_RX_EN) From 79d14f8b59b0e87f7485fef238e67247f740e730 Mon Sep 17 00:00:00 2001 From: Tom Williams Date: Wed, 5 Apr 2023 17:34:33 +0100 Subject: [PATCH 2/2] changed to use spdif_rx from SpdifReceive --- lib_xua/doc/rst/feat_spdif_rx.rst | 4 ++-- lib_xua/src/core/main.xc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_xua/doc/rst/feat_spdif_rx.rst b/lib_xua/doc/rst/feat_spdif_rx.rst index 00dd249d..0753371d 100644 --- a/lib_xua/doc/rst/feat_spdif_rx.rst +++ b/lib_xua/doc/rst/feat_spdif_rx.rst @@ -20,11 +20,11 @@ Finally, a channel for the output samples must be declared, note, this should be The S/PDIF receiver should be called on the appropriate tile:: - SpdifReceive(p_spdif_rx, c_spdif_rx, 1, clk_spd_rx); + spdif_rx(c_spdif_rx,p_spdif_rx,clk_spd_rx,192000); .. note:: - It is recomended to use the value 1 for the ``initial_divider`` parameter + It is recomended to use the value 192000 for the ``sample_freq_estimate`` parameter With the steps above an S/PDIF stream can be captured by the xCORE. To be functionally useful the audio master clock must be able to synchronise to this external digital stream. Additionally, the host can be diff --git a/lib_xua/src/core/main.xc b/lib_xua/src/core/main.xc index 2b9a90e7..19186a69 100755 --- a/lib_xua/src/core/main.xc +++ b/lib_xua/src/core/main.xc @@ -142,7 +142,7 @@ on stdcore[XUD_TILE] : buffered in port:32 p_adat_rx = PORT_ADAT_IN; #endif #if (XUA_SPDIF_RX_EN) -on tile[XUD_TILE] : buffered in port:4 p_spdif_rx = PORT_SPDIF_IN; +on tile[XUD_TILE] : in port p_spdif_rx = PORT_SPDIF_IN; #endif #if (XUA_SPDIF_RX_EN) || (XUA_ADAT_RX_EN) || (XUA_SYNCMODE == XUA_SYNCMODE_SYNC) @@ -685,7 +685,7 @@ int main() on tile[XUD_TILE]: { thread_speed(); - SpdifReceive(p_spdif_rx, c_spdif_rx, 1, clk_spd_rx); + spdif_rx(c_spdif_rx,p_spdif_rx,clk_spd_rx,192000); } #endif