I configure ssi1 as network mode,Frame Sync and Transmit Clock generated internally,and route it to AUD3,but I can't get clock on AUD3_TXC pin and AUD3_TXFS pin,who can help me?!!!!
Thanks in advance!!!
Is there any problem in this function?
//route ssi1 to AUD3
static int imx_audmux_config(int slave, int master)
{
int ret;
unsigned int ptcr, pdcr;
slave = slave - 1; //slave=3-1
master = master - 1; //master=1-1
ptcr = MXC_AUDMUX_V2_PTCR_SYN |
MXC_AUDMUX_V2_PTCR_TFSDIR |
MXC_AUDMUX_V2_PTCR_TFSEL(master) |
MXC_AUDMUX_V2_PTCR_TCLKDIR |
MXC_AUDMUX_V2_PTCR_TCSEL(master);
pdcr = MXC_AUDMUX_V2_PDCR_RXDSEL(master);
ret = mxc_audmux_v2_configure_port(slave, ptcr, pdcr);
ptcr = MXC_AUDMUX_V2_PTCR_SYN;
pdcr = MXC_AUDMUX_V2_PDCR_RXDSEL(slave);
ret = mxc_audmux_v2_configure_port(master, ptcr, pdcr);
return 0;
}
Actually, the code you listed here has no sense for me. As far as I understand, you are trying to configure the SSI1 interface to operate in master mode and to be routed out of the chip through AUD3 port. Am I right? Please clarify. Also, please specify, what exactly processor of i.MX series do you use to make me able to check the required configuration.
Have a great day,
Artur
Thank you very much!
Yes,you are right.And I use I.MX6Q processor.Please help me!
can any one help me?
Hi
Have you setup "snd_soc_dai_set_sysclk" correctly?
For SSI master mode you need to mentioned "SND_SOC_CLOCK_OUT"
ret = snd_soc_dai_set_sysclk(cpu_dai, 0, bclk, SND_SOC_CLOCK_OUT); |
Thanks
Saurabh
I am sure that I have configure the sysclk as SND_SOC_CLOCK_OUT,but it still not clock generare on aud3.
Please help me, thank you very much!