Hi There!
We are using AM572x GP_EVM with default audio loopback example through DSP1 using TI RTOS. It is working perfectly fine.
It uses the following connections:
MCASP3_AHCLKX -> Codec_MCLK
MCASP3_ACLKX -> Codec_BCLK
MCASP3_FSX -> Codec_WCLK
MCASP3_AXR0 -> Codec_DIN
MCASP3_AXR1 <- Codec_DOUT
Since in our custom board we cannot use MCASP3_AXR1, we did a small hardware change to do the folowing change
MCASP3_AX2 <- Codec_DOUT, keeping rest all connections same.
Since MCASP3_AXR2 is pinmuxed on MCASP2_AXR2, we added the following pinmuxing code in the init:
HW_WR_FIELD32(CSL_DSP_CORE_PAD_IO_REGISTERS_REGS+CSL_CONTROL_CORE_PAD_IO_PAD_MCASP2_AXR2, \
CSL_CONTROL_CORE_PAD_IO_PAD_MCASP2_AXR2_MCASP2_AXR2_MUXMODE, \
0x1);
HW_WR_FIELD32(CSL_DSP_CORE_PAD_IO_REGISTERS_REGS+CSL_CONTROL_CORE_PAD_IO_PAD_MCASP2_AXR2, \
CSL_CONTROL_CORE_PAD_IO_PAD_MCASP2_AXR2_MCASP2_AXR2_INPUTENABLE, \
0x1);
But we are not able to hear anything from codec, the received buffer is also all 0's.
Wondering if anything else needs to be taken care in software with this hardware change.
Can anyone help us?
Thanks & Regards,
Ashok