Hi, I have a custom board IMX8QXP-MEK with the integration of WM8960. By default, the RINPUT1 is connected to my main board IC. I can hear the .mp3 file sound from the WM8960, but I can't hear the audio from the radio chip. The radio chip ROUT and LOUT are connected to RINPUT2 and LINPUT2. Do I need to modify any DTS file or .c file to hear the audio?
Regards,
subash
This is the driver of WM8960.
https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/sound/soc/codecs/wm8960.c
This is a document talk about the wm8960 driver. Although it is long time ago, the concept is the same.
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/WM8960-audio-codec/ta-p/1119101
You could check the alsamixer first to see the switches/mutes are setting correct.
Please check the WM8960 block diagram. There are different path from INPUT to OUTPUT. You could input the audio signal to the ADC. Or you could input the audio signal direct to the output bypass the ADC. Please double check which path you choose and select the correct input in the output mixer.
Hi @jimmychan
sof-sound-wm8960 {
compatible = "simple-audio-card";
label = "wm8960-audio";
simple-audio-card,bitclock-master = <&sndcodec>;
simple-audio-card,frame-master = <&sndcodec>;
hp-det-gpio = <&lsio_gpio1 0 0>;
mic-det-gpio = <&lsio_gpio1 0 0>;
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Speaker", "Ext Spk",
"Microphone", "Mic Jack";
simple-audio-card,audio-routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Ext Spk", "SPK_LP",
"Ext Spk", "SPK_LN",
"Ext Spk", "SPK_RP",
"Ext Spk", "SPK_RN",
"LINPUT2", "Mic Jack",
"LINPUT3", "Mic Jack",
"RINPUT1", "Mic Jack",
"RINPUT2", "Mic Jack",
"Playback", "SAI1.OUT",
"SAI1.IN", "Capture";
simple-audio-card,dai-link {
format = "i2s";
cpu {
sound-dai = <&dsp 1>;
};
sndcodec: codec {
sound-dai = <&wm8960>;
};
};
};