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>;
};
};
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 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
Sure.
karinavalencia, could you, please escalate this issue?
It´s audio mux, not multimedia (VPU);
Thanks a lot