This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: Audio issue



Hi:

  Board:Customize the card AM5708

 SDK:processor-rt-5.3

 

The device tree Settings are as follows:

Mcasp Configuration
                                                                                                                                                       
&mcasp4 {
    #sound-dai-cells = <0>;
    assigned-clocks = <&mcasp4_ahclkr_mux>;
    status = "okay";
    op-mode = <0>; /* MCASP_IIS_MODE */
    tdm-slots = <2>;
    /* 4 serializers */
    serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
        2 2 0 0
    >;
    tx-num-evt = <32>;
    rx-num-evt = <32>;
}; 

Acquire audio data using the arecord command:

An error occurred

However, I use mcasp1_aclkx and mcasp1_fsx to capture audio data normally.
Does mcasp1_aclkr and mcasp1_fsr have special settings?

  • The McASP driver configures McASP in synchronous mode of operation, where the RX logic (RCLK) runs with BCLK from TX side (XCLK). Please refer to the "Receive Clock Generator Block Diagram" in the AM57x TRM.

    Above explains your observation where arecord works fine with aclkx/fsx but fails with aclkr/fsr.

    Unfortunately, the driver doesn't support asynchronous mode of operation.