Fixed issue with TDM and S/PDIF Tx

This commit is contained in:
Ross Owen
2014-12-02 14:07:50 +00:00
parent ee0c69c50f
commit 7ac0e87e0b

View File

@@ -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