我正在尝试将数字麦克风连接到我的 i.mx 8m mini evk 上的 SAI5 扩展引脚。这是我的设备树:
codec_dummy: codec_dummy {
compa
tible = \"asoc,snd-soc-dummy\";
#sound-dai-cells = <0>;
pinctrl-names = \"default\";
pinctrl-0 = <&pinctrl_gpio_wlf>;
frame-master;
bitclock-master;
status = \"okay\";
};
sound-sai5 {
compatible = \"simple-audio-card\";
simple-audio-card,name=\"sound | sai5\";
simple-audio-card,format=\"i2s\";
simple-audio-card,frame-master=<&sai5>;
simple-audio-card,bitclock-master=<&sai5>;
status=\"okay\";
cpu_dai:simple-audio-card,cpu{
sound-dai=<&sai5>;
system-clock-frequency=<&clk IMX8MM_CLK_SAI5_ROOT>;
};
codec_dai: simple-audio-card,codec{
sound-dai=<&codec_dummy>;
system-clock-frequency=<&clk IMX8MM_CLK_SAI5_ROOT>;
};
};
&sai5 {
compatible=\"fsl,imx8mm-sai\";
pinctrl-names = \"default\";
pinctrl-0 = <&pinctrl_sai5>;
assigned-clocks=<&clk IMX8MM_CLK_SAI5>;
assigned-clocks-parents=<&clk IMX8MM_AUDIO_PLL1_OUT>;
assigned-clock-rates = <4096000>;
fsl,sai-mclk-direction-output;
fsl,txmasterflag = <0>;
fsl,mode=\"i2s-master\";
status=\"okay\";
};
当我运行 arecord -l 命令时,我可以看到界面,当我运行 pactrl list 时,在无限循环中打印出以下错误:
fsl-sai 30050000.sai: ASoC: error at snd_soc_dai_hw_params on 30050000.sai: -22
[ 1875.936608] 30050000.sai-snd-soc-dummy-dai: ASoC: soc_pcm_hw_params() failed (-22)
[ 1875.944756] fsl-sai 30050000.sai: failed to derive required Rx rate: 1411200