Hi All,
I have the following configuration for port 4 and port 5, gsm_port is port 4 (gsm module as master) and dai_port is port 5 (Audio codec as slave).
dai_ptcr |= AUDMUX_PTCR_SYN;
gsm_ptcr |= AUDMUX_PTCR_SYN;
gsm_pdcr |= AUDMUX_PDCR_RXDSEL(dai_port);
dai_pdcr |= AUDMUX_PDCR_RXDSEL(gsm_port);
/* set Tx frame direction and source gsm_port--> dai_port output */
dai_ptcr |= AUDMUX_PTCR_TFSDIR;
dai_ptcr |= AUDMUX_PTCR_TFSSEL(AUDMUX_FROM_TXFS, gsm_port);
/* set Tx Clock direction and source gsm_port--> dai_port output */
dai_ptcr |= AUDMUX_PTCR_TCLKDIR;
dai_ptcr |= AUDMUX_PTCR_TCSEL(AUDMUX_FROM_TXFS, gsm_port);
My problem is that I can see the clock and data routed properly to audio codec but I cannot see the frame sync routed to the audio codec
Thanks in advance for any help with this issue
M . Nadeem
Hi All,
Actually I found out the problem. its in /arch/arm/plat-mxc/include/mach/iomux-mx53.h. Since SD2_DATA1 is daisy chain, the definition for SD2_DATA1 is wrong. See the correct one below
#define _MX53_PAD_SD2_DATA1__AUDMUX_AUD4_TXFS IOMUX_PAD(0x698, 0x30C, 3, 0x744, 0, 0) Wrong
#define _MX53_PAD_SD2_DATA1__AUDMUX_AUD4_TXFS IOMUX_PAD(0x698, 0x30C, 3, 0x744, 1, 0) Right
see the above screen shot
Thanks
M. Nadeem
Hello,
Is it possible to check state of corresponding PDCR and PTCR in binary form ?
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------