From 248eeffbaacabd5b3a0e7f2baf9ea6c849b00ed1 Mon Sep 17 00:00:00 2001 From: xross Date: Wed, 28 Mar 2018 16:44:02 +0100 Subject: [PATCH] Moved to lib_spdif for spdif tx (from module_spdif_tx) --- CHANGELOG.rst | 2 ++ lib_xua/src/core/audiohub/xua_audiohub.xc | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index da5e678d..90cda527 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,12 +1,14 @@ lib_xua Change Log ================== + 0.2.0 ----- * ADDED: Documentation * CHANGE: I2S hardware resources no longer used globally and must be passed to XUA_AudioHub() * CHANGE: NO_USB define renamed to XUA_USB_EN + * CHANGE: Moved to lib_spdif (from module_spdif_tx) 0.1.2 ----- diff --git a/lib_xua/src/core/audiohub/xua_audiohub.xc b/lib_xua/src/core/audiohub/xua_audiohub.xc index c9e0409a..9086c506 100755 --- a/lib_xua/src/core/audiohub/xua_audiohub.xc +++ b/lib_xua/src/core/audiohub/xua_audiohub.xc @@ -20,7 +20,7 @@ #include "audioports.h" #include "mic_array_conf.h" #if (XUA_SPDIF_TX_EN) -#include "SpdifTransmit.h" +#include "spdif.h" #endif #ifdef ADAT_TX #include "adat_tx.h" @@ -607,7 +607,7 @@ void SpdifTxWrapper(chanend c_spdif_tx) while(1) { - SpdifTransmit(p_spdif_tx, c_spdif_tx); + spdif_tx(p_spdif_tx, c_spdif_tx); } } #endif @@ -744,7 +744,7 @@ void XUA_AudioHub(chanend ?c_aud, clock ?clk_audio_mclk, clock ?clk_audio_bclk, /* Configure ADAT/SPDIF tx ports */ #if (XUA_SPDIF_TX_EN) && (SPDIF_TX_TILE == AUDIO_IO_TILE) - SpdifTransmitPortConfig(p_spdif_tx, clk_mst_spd, p_mclk_in); + spdif_tx_port_config(p_spdif_tx, clk_mst_spd, p_mclk_in, 7); #endif /* Perform required CODEC/ADC/DAC initialisation */ @@ -893,7 +893,7 @@ void XUA_AudioHub(chanend ?c_aud, clock ?clk_audio_mclk, clock ?clk_audio_bclk, #if (XUA_SPDIF_TX_EN) && (SPDIF_TX_TILE == AUDIO_IO_TILE) { set_thread_fast_mode_on(); - SpdifTransmit(p_spdif_tx, c_spdif_out); + spdif_tx(p_spdif_tx, c_spdif_out); } #endif