Post Go back to editing

SRU configure for ADSP-21569

Hi,

     I have a problem about configure SRU for ADSP-21569

due to project designed DAI0_PIN01 - DAI0_PIN09 is I2S input, and DAI1_PIN01 - DAI1_PIN10 is I2S output

like as photo

I had refer EZ-KIT reference sample code of Audio_Passthrough_I2S_21569, but they are I2S in/out within DAI1,

and sample code is work fine in EZ-KIT ADSP-21569.

(1) how could I configure SRU for passthrough first like as sample code of Audio_Passthrough_I2S_21569?

*pREG_PADS0_DAI0_IE = BITM_PADS_DAI0_IE_VALUE;
*pREG_PADS0_DAI1_IE = BITM_PADS_DAI1_IE_VALUE;

SRU2(LOW,DAI1_PBEN05_I);

SRU2(DAI1_PB05_O,SPT4_ACLK_I); /*DAC clock to SPORT 4A*/
SRU2(DAI1_PB05_O,SPT4_BCLK_I); /*DAC clock to SPORT 4B*/

SRU2(DAI1_PB04_O,SPT4_AFS_I); /*DAC FS to SPORT 4A*/
SRU2(DAI1_PB04_O,SPT4_BFS_I); /*DAC FS to SPORT 4B*/
SRU2(LOW,DAI1_PBEN04_I);

SRU2(SPT4_AD0_O,DAI1_PB01_I); /* SPORT 4A to DAC*/
SRU2(HIGH,DAI1_PBEN01_I);

#if defined(__ADSP21566__)|| defined(__ADSP21567__) || defined(__ADSP21569__)
SRU2(DAI1_PB05_O,DAI1_PB12_I); /*DAC clock to ADC */
SRU2(HIGH,DAI1_PBEN12_I);
#elif defined(__ADSP21562__)|| defined(__ADSP21563__) || defined(__ADSP21565__)
SRU2(DAI1_PB05_O,DAI1_PB09_I); /*DAC clock to ADC */
SRU2(HIGH,DAI1_PBEN09_I);
#endif

SRU2(DAI1_PB04_O,DAI1_PB20_I); /*DAC FS to ADC */
SRU2(HIGH,DAI1_PBEN20_I);

SRU2(DAI1_PB06_O,SPT4_BD0_I);
SRU2(LOW,DAI1_PBEN06_I);

(2) in this designed, there are used MCLK, how about this PIN configure? 

Thank you~