Add pad delay to TDM master ADC ports

This commit is contained in:
xross
2022-09-29 15:26:36 +01:00
parent d754bff62b
commit 86bea717da

View File

@@ -79,11 +79,13 @@ void ConfigAudioPorts(
} }
#if (I2S_CHANS_ADC != 0) #if (I2S_CHANS_ADC != 0)
/* Some adustments for timing. Sample ADC lines on negative edge and add some delay */
if(XUA_PCM_FORMAT == XUA_PCM_FORMAT_TDM) if(XUA_PCM_FORMAT == XUA_PCM_FORMAT_TDM)
{ {
for(int i = 0; i < I2S_WIRES_ADC; i++) for(int i = 0; i < I2S_WIRES_ADC; i++)
{ {
set_port_sample_delay(p_i2s_adc[i]); set_port_sample_delay(p_i2s_adc[i]);
set_pad_delay(p_i2s_adc[i], 4);
} }
} }
#endif #endif