Hi,
I am using pico-imx7 platform, and trying to add a new sound card to ALSA through sai3 port to use the sound card as an external Mic. I have added the sound card successfully.
But when I try to record the voice in pico-imx7 using "arecord -Dhw:1 -c2 -r48000 -fS32_LE -twav -d10 -Vstereo test.wav" command, its giving the following error log:
[ 93.085619] fsl-sai 308c0000.sai: failed to derive required Rx rate: 2822400
[ 93.091371] fsl-sai 308c0000.sai: ASoC: can't set 308c0000.sai hw params: -22
[ 93.097607] fsl-sai 308c0000.sai: failed to derive required Rx rate: 2822400
[ 93.103435] fsl-sai 308c0000.sai: ASoC: can't set 308c0000.sai hw params: -22
[ 93.109701] fsl-sai 308c0000.sai: failed to derive required Rx rate: 2822400
[ 93.115610] fsl-sai 308c0000.sai: ASoC: can't set 308c0000.sai hw params: -22
Configuration in baseboard_pico_pi.dtsi file is
sound-ics52000{
compatible = "fsl,imx-ics52000",
"fsl,imx-audio-ics52000";
model = "audio-ics52000";
ssi-controller = <&sai3>;
audio-codec = <&codec_card>;
audio-routing = "Mic Jack", "MIC_OUT";
};
codec_card: ics52000@a{
status = "okay";
compatible = "fsl,ics52000";
system-clock-direction = "in";
system-clock-frequency = <12288000>;
};
&sai3
{
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>
assigned-clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_SRC>,
<&clks IMX7D_SAI3_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
assigned-clock-rates = <0>, <36864000>;
status = "okay";
};
So please help me regarding this clock configuration of custom sound card.
Thanks in advance..
Regards,
Ganapathirao.P