Data route from AUDMUX2 to AUDMUX3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Data route from AUDMUX2 to AUDMUX3

1,798 次查看
johnturnur
Contributor III

Hi,

Audio Capture device is connected to AUDMUX port 4

Audio Playback device is connected at AUDMUX port 6

Is it possible to route data from capture device to playback device?

What code change does it required?

 

Our requirement is to play audio from capture device in run-time.

Best Regards,

John

14 回复数

1,074 次查看
fabio_estevam
NXP Employee
NXP Employee

John,

You did not mention which SoC you use, which audio codec and which kernel version.

In a 3.9 kernel the way to specify the audmux (check mux-int-port/mux-ext-port properties):

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/arch/arm/boot/dts/imx6q-sa...

sound {
compatible = "fsl,imx6q-sabrelite-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "imx6q-sabrelite-sgtl5000";
ssi-controller = <&ssi1>;
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
mux-int-port = <1>;
mux-ext-port = <4>;
};
};

0 项奖励

1,074 次查看
johnturnur
Contributor III

Hi,

Fabio

Thanks for reply.

My hardware is based on IMX6q. We are using android  imx-android-13.4.1.

Linux version is Linux version 3.0.35.

0 项奖励

1,074 次查看
johnturnur
Contributor III


Any valuable Suggestion.

0 项奖励

1,074 次查看
lily_zhang
NXP Employee
NXP Employee

AUDMUX can support such kind of function, i think.

You can check AUDMUX_PTCR and AUDMUX_PDCR for AUDMUX2/3.

0 项奖励

1,074 次查看
johnturnur
Contributor III

Hi,

Can you provide any reference code which I can refer?

What changes requires for imx_audmux_config, and mxc_audio_platform_data for live capture playback with AUDMUX4 and AUDMUX6?

0 项奖励

1,074 次查看
lily_zhang
NXP Employee
NXP Employee

Hello, John:

I don't have example codes. I only have example codes which are based on old platform with old audio driver architecture.

0 项奖励

1,074 次查看
saurabh206
Senior Contributor III

Hello Xiaoli,

We are having a similar requirement.

We want to route audio from AUDMUX5 to AUDMUX6.

I have configured the imx_audmux_config for ports.

I am able to get audio but it plays with jitters.

Anybody has tried to route data similarly?

Regards,

Saurabh

0 项奖励

1,074 次查看
johnturnur
Contributor III

Hi,

No support for this issue ?

0 项奖励

1,074 次查看
daiane_angolini
NXP Employee
NXP Employee

Hi johnturnur

Change audiomux is not an easy task, and it´s difficult to anyone who did not worked with this to suggest something.

I remember I worked on this for imx27ADS. I changed the kernel driver. Changed the board file (from kernel). And I used Reference Manual in order to figure out what to do.

For imx5 or imx6 I have never touched this driver, not even to test it. As I remember, kernel for imx27 was 2.6.18, quite old, yes?

Do you know which kernel driver controls this piece of audio? Do you know which chip is responsible to decode audio? Have you tested the "default" behavior of this driver? I would start from that.

I hope somebody else could help you better than me

0 项奖励

1,074 次查看
johnturnur
Contributor III

Thanks for your reply.

It is very important to fixed this issue for our project.

1,074 次查看
daiane_angolini
NXP Employee
NXP Employee

I'm sorry I cannot help that much :smileysad:

0 项奖励

1,074 次查看
johnturnur
Contributor III

Can you forward it to appropriate person?

0 项奖励

1,074 次查看
daiane_angolini
NXP Employee
NXP Employee

Sure.

karinavalencia, could you, please escalate this issue?

It´s audio mux, not multimedia (VPU);

Thanks a lot

0 项奖励

1,074 次查看
johnturnur
Contributor III

Hi,

How to setup a audio record using one sound card and playback using another soundcard?

0 项奖励