How to audmux setting.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to audmux setting.

1,080 Views
changyonglee
Contributor II

 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.ALSA-lm49350-develop.png

 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 ?

ALSA-lm49350-develop.png

Thanks. 

Labels (4)
Tags (3)
0 Kudos
1 Reply

864 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos