Fix for device failing to enumerate when ADAT and S/PDIF transmit are enabled
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
lib_xua Change Log
|
||||
==================
|
||||
|
||||
UNRELEASED
|
||||
----------
|
||||
|
||||
* FIXED: Device fails to enumerate when ADAT and S/PDIF transmit are enabled
|
||||
|
||||
4.0.0
|
||||
-----
|
||||
|
||||
|
||||
@@ -670,7 +670,6 @@ void XUA_AudioHub(chanend ?c_aud, clock ?clk_audio_mclk, clock ?clk_audio_bclk,
|
||||
/* Note, marked unsafe since other cores may be using this mclk port */
|
||||
configure_clock_src(clk_audio_mclk, p_mclk_in);
|
||||
|
||||
start_clock(clk_audio_mclk);
|
||||
|
||||
#if (DSD_CHANS_DAC > 0)
|
||||
/* Make sure the DSD ports are on and buffered - just in case they are not shared with I2S */
|
||||
@@ -682,15 +681,12 @@ void XUA_AudioHub(chanend ?c_aud, clock ?clk_audio_mclk, clock ?clk_audio_bclk,
|
||||
#endif
|
||||
|
||||
#if (XUA_ADAT_TX_EN)
|
||||
/* Share SPDIF clk blk */
|
||||
configure_clock_src(clk_mst_spd, p_mclk_in);
|
||||
configure_out_port_no_ready(p_adat_tx, clk_mst_spd, 0);
|
||||
set_clock_fall_delay(clk_mst_spd, 7);
|
||||
#if (XUA_SPDIF_TX_EN == 0)
|
||||
start_clock(clk_mst_spd);
|
||||
#endif
|
||||
configure_out_port_no_ready(p_adat_tx, clk_audio_mclk, 0);
|
||||
set_clock_fall_delay(clk_audio_mclk, 7);
|
||||
#endif
|
||||
|
||||
start_clock(clk_audio_mclk);
|
||||
|
||||
/* Perform required CODEC/ADC/DAC initialisation */
|
||||
AudioHwInit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user