From 7ac0e87e0b28ab3b3d2c2c29696bb6910d06d29f Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Tue, 2 Dec 2014 14:07:50 +0000 Subject: [PATCH] Fixed issue with TDM and S/PDIF Tx --- module_usb_audio/audio.xc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index 6c944ab6..744b8f70 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -585,6 +585,8 @@ chanend ?c_adc) } #endif + if(frameCount == 0) + { #if defined(SPDIF_RX) || defined(ADAT_RX) /* Sync with clockgen */ @@ -610,15 +612,14 @@ chanend ?c_adc) #if defined(SPDIF_RX) || defined(ADAT_RX) /* Request digital data (with prefill) */ - outuint(c_dig_rx, 0); + outuint(c_dig_rx, 0); #endif #if defined(SPDIF) && (NUM_USB_CHAN_OUT > 0) outuint(c_spd_out, samplesOut[SPDIF_TX_INDEX]); /* Forward sample to S/PDIF Tx thread */ sample = samplesOut[SPDIF_TX_INDEX + 1]; outuint(c_spd_out, sample); /* Forward sample to S/PDIF Tx thread */ #endif - - + } #ifndef CODEC_MASTER #ifdef I2S_MODE_TDM