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
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):
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>;
};
};
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.
Any valuable Suggestion.
AUDMUX can support such kind of function, i think.
You can check AUDMUX_PTCR and AUDMUX_PDCR for AUDMUX2/3.
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?
Hello, John:
I don't have example codes. I only have example codes which are based on old platform with old audio driver architecture.
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
Hi,
No support for this issue ?
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
Thanks for your reply.
It is very important to fixed this issue for our project.
I'm sorry I cannot help that much :smileysad:
Can you forward it to appropriate person?
Sure.
karinavalencia, could you, please escalate this issue?
It´s audio mux, not multimedia (VPU);
Thanks a lot
Hi,
How to setup a audio record using one sound card and playback using another soundcard?