imx8mm sai configure play and record

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8mm sai configure play and record

ソリューションへジャンプ
2,714件の閲覧回数
nxf65233
NXP Employee
NXP Employee

Hello everyone

system:Android

1.In the debugging audio, both SAI1_TXD0 and SAI1_RXD0 are used. The audio schematic diagram is as follows:

nxf65233_1-1621491489756.png

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.

ラベル(3)
タグ(1)
0 件の賞賛
返信
1 解決策
1 返信
2,711件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信