IMX8MM Android10 WM8962

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX8MM Android10 WM8962

Jump to solution
341 Views
jianfeichang
Contributor III

hello

      my board is imx8mm android10 kernle5.4.47,I added WM8962 in the imx8mm-evk.dts。

308 sound-wm8962 {
309 compatible = "fsl,imx6q-sabresd-wm8962",
310 "fsl,imx-audio-wm8962";
311 model = "wm8962-audio";
312 audio-cpu = <&sai3>;//add cjf,old is cpu-dai
313 audio-codec = <&wm8962>;
314 audio-routing =
315 "Headphone Jack", "HPOUTL",
316 "Headphone Jack", "HPOUTR",
317 "Ext Spk", "SPKOUTL",
318 "Ext Spk", "SPKOUTR",
319 "AMIC", "MICBIAS",
320 "IN3R", "AMIC",
321 "DMIC", "MICBIAS",
322 "DMICDAT", "DMIC";
323 /* "CPU-Playback", "ASRC-Playback",
324 "Playback", "CPU-Playback";
325 "ASRC-Capture", "CPU-Capture",
326 "CPU-Capture", "Capture";*/
327 mux-int-port = <2>;
328 mux-ext-port = <3>;
329 codec-master;
330 hp-det-gpios = <&gpio3 20 0>;
331 mic-det-gpios = <&gpio3 25 1>;
332 };

871 &i2c4 {
872 clock-frequency = <100000>;
873 pinctrl-names = "default";
874 pinctrl-0 = <&pinctrl_i2c4>;
875 status = "okay";
876
877 wm8962: wm8962@1a {
878 compatible = "wlf,wm8962";
879 reg = <0x1a>;
880 clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
881 clock-names = "mclk";
882 amic-mono;
883 // spk-mono;
884 gpio-cfg = <
885 0x0000 // 0:Default
886 0x0000 // 1:Default
887 0x0013 // 2:FN_DMICCLK
888 0x0000 // 3:Default
889 0x8014 // 4:FN_DMICCDAT
890 0x0000 // 5:Default
891 >;
892 };

WM8962 was found in the boot log。

kernel log:

[ 9.226274] ALSA device list:
[ 9.236627] #0: imx-spdif
[ 9.239432] #1: imx-audio-micfil
[ 9.242862] #2: bt-sco-audio
[ 9.245932] #3: fsl,imx-audio-wm8962

evk_8mm:/ # dmesg | grep wm
[ 7.150445] wm8962 3-001a: 3-001a supply DCVDD not found, using dummy regulator
......
[ 7.202419] wm8962 3-001a: 3-001a supply SPKVDD2 not found, using dummy regulator
[ 7.215237] wm8962 3-001a: customer id 0 revision D
[ 9.154253] asoc-simple-card sound-wm8962: wm8962 <-> 30030000.sai mapping ok
[ 9.161488] asoc-simple-card sound-wm8962: ASoC: no DMI vendor name!
[ 9.245932] #3: fsl,imx-audio-wm8962

evk_8mm:/ # cat /proc/asound/cards
0 [imxspdif ]: imx-spdif - imx-spdif
imx-spdif
1 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil
imx-audio-micfil
2 [btscoaudio ]: bt-sco-audio - bt-sco-audio
bt-sco-audio
3 [fslimxaudiowm89]: fsl_imx-audio-w - fsl,imx-audio-wm8962
fsl,imx-audio-wm8962

But WM8962 has no sound,It doesn't seem to have been called。

Linux 4.14.98 wm8962 is ok。

How do I change Android10?

 

0 Kudos
1 Solution
319 Views
jianfeichang
Contributor III
0 Kudos
1 Reply
320 Views
jianfeichang
Contributor III
0 Kudos