diff --git a/examples/AN00246_xua_example/README.rst b/examples/AN00246_xua_example/README.rst index abe685d4..32c8dcaf 100644 --- a/examples/AN00246_xua_example/README.rst +++ b/examples/AN00246_xua_example/README.rst @@ -14,7 +14,7 @@ Required hardware ................. The example code provided with the application has been implemented -and tested on the xCORE-200 Multi-channel Audio Board +and tested on the xCORE.ai Multi-channel Audio Board Prerequisites ............. diff --git a/lib_xua/src/core/clocking/clockgen.xc b/lib_xua/src/core/clocking/clockgen.xc index 205641bf..ceb24672 100644 --- a/lib_xua/src/core/clocking/clockgen.xc +++ b/lib_xua/src/core/clocking/clockgen.xc @@ -517,6 +517,7 @@ void clockGen (streaming chanend ?c_spdif_rx, chanend ?c_adat_rx, client interfa /* Get preamble */ unsigned preamble = spdifRxData & SPDIF_RX_PREAMBLE_MASK; + switch(preamble) { /* LEFT */ diff --git a/lib_xua/src/core/main.xc b/lib_xua/src/core/main.xc index 1bdee960..63f3d1be 100755 --- a/lib_xua/src/core/main.xc +++ b/lib_xua/src/core/main.xc @@ -138,7 +138,11 @@ on stdcore[XUD_TILE] : buffered in port:32 p_adat_rx = PORT_ADAT_IN; #endif #if (XUA_SPDIF_RX_EN) +#if (LEGACY_SPDIF_RECEIVER) on tile[XUD_TILE] : in port p_spdif_rx = PORT_SPDIF_IN; +#else +on tile[XUD_TILE] : buffered in port:32 p_spdif_rx = PORT_SPDIF_IN; +#endif #endif #if (XUA_SPDIF_RX_EN) || (XUA_ADAT_RX_EN) || (XUA_SYNCMODE == XUA_SYNCMODE_SYNC)