Hello everyone
system:Android
1.In the debugging audio, both SAI1_TXD0 and SAI1_RXD0 are used. The audio schematic diagram is as follows:
DTS is configured as follows:
sound-es8311 {
compatible = "fsl,imx-audio-es8311";
model = "es8311-audio";
audio-cpu = <&sai1>;
audio-codec = <&es8311>;
};
es8311: es8311@19 {
compatible = "ambarella,es8311";
reg = <0x19>;
};
pinctrl_sai1: sai1grp {
fsl,pins = <
MX8MM_IOMUXC_SAI1_MCLK_SAI1_MCLK 0xd6
MX8MM_IOMUXC_SAI1_RXD0_SAI1_RX_DATA0 0xd6
MX8MM_IOMUXC_SAI1_TXD0_SAI1_TX_DATA0 0xd6
MX8MM_IOMUXC_SAI1_RXFS_SAI1_RX_SYNC 0xd6
MX8MM_IOMUXC_SAI1_RXC_SAI1_RX_BCLK 0xd6
>;
};
&sai1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai1>;
assigned-clocks = <&clk IMX8MM_CLK_SAI1>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
assigned-clock-rates = <12288000>,<49152000>;
/*fsl,sai-synchronous-rx;*/
status = "okay";
};
If configured in the .json file,Play normal, recording is not normal(The RXD0 data waveform remains unchanged)
{
"driver_name": "es8311-audio",
"supported_out_devices": ["speaker"],
"supported_in_devices": ["builtin_mic"]
}
If configured, the recording works and the playback does not work properly.
{
"driver_name": "es8311-audio",
"supported_in_devices": ["builtin_mic"]
}
How should I configure for recording and playback?
Thanks.
Solved! Go to Solution.