We have a custom board with IMX6DQ processor, and the board configuration is similar to the SABRE Board. It has SSI in I2S master mode configuration. We are able to capture and pay the audio. But there is some background noise while playing audio. Below given is the audio codec and SSI configuration from dts file.
regulators {
compatible = "simple-bus";
reg_audio: regulator@2 {
compatible = "regulator-fixed";
reg = <2>;
regulator-name = "wm8962-supply";
};
sound {
compatible = "fsl,imx6q-extron-tlpx25-wm8962",
"fsl,imx-audio-wm8962";
model = "wm8962-audio";
cpu-dai = <&ssi2>;
audio-codec = <&codec>;
asrc-controller = <&asrc>;
audio-routing =
"Headphone Jack", "HPOUTL",
"Headphone Jack", "HPOUTR",
"Ext Spk", "SPKOUTL",
"Ext Spk", "SPKOUTR",
"AMIC", "MICBIAS",
"IN3R", "AMIC",
/*"DMIC", "MICBIAS",
"DMICDAT", "DMIC",*/
"CPU-Playback", "ASRC-Playback",
"Playback", "CPU-Playback",
"ASRC-Capture", "CPU-Capture",
"CPU-Capture", "Capture";
mux-int-port = <2>;
mux-ext-port = <6>;
};
codec: wm8962@1a {
compatible = "wlf,wm8962";
reg = <0x1a>;
clocks = <&clks IMX6QDL_CLK_CKO>;
DCVDD-supply = <®_audio>;
DBVDD-supply = <®_audio>;
AVDD-supply = <®_audio>;
CPVDD-supply = <®_audio>;
MICVDD-supply = <®_audio>;
PLLVDD-supply = <®_audio>;
SPKVDD1-supply = <®_audio>;
SPKVDD2-supply = <®_audio>;
gpio-cfg = <
0x0000 /* 0:Default */
0x0000 /* 1:Default */
0x0000 /* 2:Default */ /* 0x0013 // 2:FN_DMICCLK */
0x0000 /* 3:Default */
0x0000 /* 4:as o/p */ /* 0x8014 // 4:FN_DMICCDAT */
0x0000 /* 5:as o/p */
>;
amic-mono;
};
pinctrl_audmux: audmuxgrp {
fsl,pins = <
MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x130b0
MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x130b0
MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x110b0
MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x130b0
>;
};
Is there any issue in dts configuration? Looking for your help.
Thank you
MSA