hi nxp
软件环境:
imx8mm yocto sumo linux-4.14.98的内核,
问题:
我使用ACL 5640 CODEC音频,安装imx-wm8960.c的方式,写了一份imx-rt5640.c的文件,使用aplay命令播放wav文件时,speaker无声音输出,请帮我查看一下问题。
imx-rt5640.c中的配置为CODEC做为slave, CPU做为master;
设置树节点配置为:
sound-rt5640 {
compatible = "fsl,imx-audio-rt5640";
model = "rt5640-audio";
audio-cpu = <&sai3>;
audio-codec = <&rt5640>;
audio-routing =
"Headphone Jack", "HPOL",
"Headphone Jack", "HPOR",
"Ext Spk", "SPORP",
"Ext Spk", "SPORN",
"Headset Jack", "MONOP",
"Headset Jack", "MONON",
"IN1P", "Mic Jack",
"IN1N", "Mic Jack",
"Headset Jack", "MICBIAS1",
"Headphone Jack", "MICBIAS1";
/*codec-master;*/
};
&sai3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clk IMX8MM_CLK_SAI3_SRC>,
<&clk IMX8MM_CLK_SAI3_DIV>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL2_OUT>;
assigned-clock-rates = <0>, <22579200>; //sample_rate = 41KHz
status = "okay";
};
&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
rt5640: rt5640@1c {
compatible = "realtek,rt5640";
#sound-dai-cells = <0>;
reg = <0x1c>;
clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
clock-names = "mclk";
realtek,in1-differential = "true";
realtek,in2-differential = "false";
realtek,in3-differential = "true";
status = "okay";
};
};