Hi.
i.MX6DL I have a question about how to set AUDMUX on Sabresd board.
I connected the other device for transmit/received with audio codec. As shown below.
Other devices connected to the RxCLK4, RxFS4, RxD4, and TxD4 pins of AUDMXU Port4.
Refer to the AUDMUX chapter "Internal Network Mode Example 3" of the data sheet (IMX6SDLRM.pdf) and set the register as shown below.
source code |
---|
int_port = int_port - 1; /* Port 2 */ ext_port = ext_port - 1; /* port 3 */ other_port = other_port - 1; /* port 4 */ ptcr = IMX_AUDMUX_V2_PTCR_SYN; pdcr = IMX_AUDMUX_V2_PDCR_RXDSEL(ext_port); imx_audmux_v2_configure_port(int_port, ptcr, pdcr); ptcr = IMX_AUDMUX_V2_PTCR_SYM; pdcr = IMX_AUDMUX_V2_PDCR_RXDSEL(ext_port); imx_audmux_v2_configure_port(other_port, ptcr, pdcr); prcr = IMX_AUDMUX_V2_PTCR_SYN | IMX_AUDMUX_V2_PTCR_TFSEL(int_port) | IMX_AUDMUX_V2_PTCR_TCSEL(int_port) | IMX_AUDMUX_V2_PTCR_TFSDIR | IMX_AUDMUX_V2_PTCR_TCLKDIR; pdcr = IMX_AUDMUX_V2_PDCR_RXDSEL(int_port) | IMX_AUDMUX_V2_PDCR_MODE(1) | IMX_AUDMUX_V2_PDCR_INMMASK(0xF5); imx_audmux_v2_configure_port(ext_port, ptcr, pdcr); |
Is the above register setting code right?
What is the status and direction of the Clock and Frame Sync signals when communicating with other devices and wm8962 devices? ( The signals of AUD4_RXC and AUD4_RXFS in the Other Device are input. )
Please help me.
In addition, should the device connected to Port 5 in the Internal Network Mode example (Figure 16-8. Block Diagram For Example 3) be a SSI master device ?
Thanks.
Hi vishnu
one can look at audmux examples in i.MX6Q baremetal sdk
and description in Chapter 5 Configuring the AUDMUX Driver iMX6_Firmware_Guide.pdf
(zip available on SMP Enable in IMX6 )
network example can be found in AN2628 Programming Audio Applications
https://www.nxp.com/docs/en/application-note/AN2628.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------