[AUDMUX] How to mix the audio data from the external port and a internal port to another external port?

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

[AUDMUX] How to mix the audio data from the external port and a internal port to another external port?

640 Views
brunochen
Contributor II

Hi,

I am using i.mx6dl board to implement an android based device.

And I would like to do a audio route like,

AUD3 --> audio codec (Speaker)

AUD4 --> I2S in (via HDMI in decoder)

And I would like to route AUD4 to AUD3 in normal.

Here is my question,

If it comes the notification sound from Android via AUD2(SSI), how could we mix it?

AUD4 --> AUD3

AUD2 --> AUD3? (how to mixing them)

Thanks,

Bruno

0 Kudos
4 Replies

499 Views
brunochen
Contributor II

Any update?

0 Kudos

499 Views
joanxie
NXP TechSupport
NXP TechSupport

I'm not sure about your questions, you can configure AUDx to any port in the kernel, Each of the AUDMUX ports has its own set of registers that allows you to configure the port as desired. Please understand that you will be using six ports for three external signals. for more detailed information about this, one can refer to the SSI chapter in the Reference Manual.

for example you use AUD5, one can find the kernel source code like this

static iomux_v3_cfg_t mx6q_sabrelite_pads[] = {

….

/*AUD5 MUX*/

MX6Q_PAD_KEY_COL0__AUDMUX_AUD5_TXC,

MX6Q_PAD_KEY_ROW0__AUDMUX_AUD5_TXD,

MX6Q_PAD_KEY_COL1__AUDMUX_AUD5_TXFS,

MX6Q_PAD_KEY_ROW1__AUDMUX_AUD5_RXD,

…..

}

…./*you have modified here*/

static struct mxc_audio_platform_data mx6_sabrelite_audio_data = {

       .ssi_num = 1,

       .src_port = 2,

       .ext_port = 5,

       .init = mx6_sabrelite_sgtl5000_init,

       .hp_gpio = -1,

};

0 Kudos

499 Views
brunochen
Contributor II

Hi, Joan,

Thanks for your reply. And sorry for that I did not describe clearly.

I think I should break down my question. Could you help to clarified the first one?

Q. Is it possible to connect two external ports directly via AUDMUX?

For example, AUD3 and AUD4 connect the devices "AUX in" and "Speaker Out" respectively.

And the audio data route from "AUX in" to "Speaker Out" without via SSI2?

Thanks,

Bruno

0 Kudos

499 Views
brunochen
Contributor II

Hi, Joan,

I think the first one is possible since Reference Manual 16.5.2 External port to external port.

So my next question is like as below diagram. Could AUD1 and AUD3 be mixed?

mix.png

Thanks,

Bruno

0 Kudos