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.

TAS2110: Unable to play wav files through aplay

Part Number: TAS2110

Tool/software:

I cannot play the sound effect file through aplay.


The error message is as follows:

I can find the device:

Device Tree:

audio_amp: tas2562@4c {
	#sound-dai-cells = <0>;
	reg = <0x4c>;
	compatible = "ti,tas2562";
	interrupt-parent = <&gpio4>;
	interrupts = <28>;
	shutdown-gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
	ti,imon-slot-no = <0>;
	ti,vmon-slot-no = <1>;
	status = "okay";
};

&sai3 {
	#sound-dai-cells = <0>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sai3>;
	assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
	assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
	assigned-clock-rates = <12288000>;
	status = "okay";
};

How can I play the sound?

Thanks

  • Hi Michelin,

    We'll reach out to SW specialists to look into your questions. I'll get back to you as soon as possible.

    Best regards,
    -Ivan Salazar
    Applicaitons Engineer

  • Hello, Dear Team

    Do we have any new comment?

    Many Thanks

    Gibbs

  • Hi Ivan,

    I provide register maps. (booting finished)

    Register Summary Table Page=0x00

    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 00 00 0e 20 c6 22 09 03 0a 10 13 02 00 04 05 06    ..? ?"??????.???
    10: 07 7f 12 76 01 2e 60 0e 0c 00 fc a6 df ef ff 00    ???v?.`??.????..
    20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    30: 19 40 81 34 4b 74 00 00 0d 08 2e 58 38 08 10 00    ?@?4Kt..??.X8??.
    40: 76 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    v...............
    50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    70: 00 00 00 ff 00 ff 00 00 80 00 00 00 00 00 12 00    ........?.....?.
    80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    Register Summary Table Page=0x01

    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 01 00 00 44 80 42 01 01 40 00 28 20 48 02 60 00    ?..D?B??@.( H?`.
    10: 40 10 00 00 00 00 40 00 00 00 00 00 08 00 00 60    @?....@.....?..`
    20: 03 00 01 00 00 00 00 00 00 00 02 00 20 01 09 01    ?.?.......?. ???
    30: 30 00 80 00 00 00 00 00 00 00 00 12 48 00 00 00    0.?........?H...
    40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    Register Summary Table Page=0x02

    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 02 00 00 00 00 00 00 00 40 00 00 00 00 00 0d 43    ?.......@.....?C
    10: 03 4a 51 6c 2d 6a 86 6f 47 5c 28 f6 16 66 66 66    ?JQl-j?oG\(??fff
    20: 34 cc cc cd 10 00 00 00 2e 66 66 66 2b 33 33 33    4????....fff+333
    30: 7f fb b6 14 80 04 49 ec 7f f7 6c 28 3f ff 7e a3    ??????I???l(?.~?
    40: 01 01 5b 4c 00 00 03 1f 02 46 b4 e4 e0 00 00 00    ??[L..???F???...
    50: 6e d9 eb a1 00 00 00 2c 08 09 bc c4 64 00 00 00    n???...,????d...
    60: 00 80 00 00 00 20 c4 9c 02 46 b4 e4 00 00 12 c0    .?... ???F??..??
    70: 7f fb b6 14 80 04 49 ec 7f f7 6c 28 72 14 82 c0    ??????I???l(r???
    80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    Register Summary Table Page=0x04

    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ?...............
    10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    40: 01 19 5a 84 21 b6 2a ca 06 1b 94 4d 3f 42 03 aa    ??Z?!?*????M?B??
    50: 40 00 00 00 0a 0a cb ac 00 00 00 64 40 bd b7 c0    @...????...d@???
    60: 39 82 60 7f 2d 6a 86 6f 02 46 b4 e4 02 79 ca 5e    9?`?-j?o?F???y?^
    70: 48 20 2d 49 73 33 33 33 00 44 32 13 00 00 00 00    H -Is333.D2?....
    80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    I refer to section 8.5.7 in the document "TAS2110 6.1-W Digital Input Audio Class-D Amplifier With Integrated 11-V Class-H Boost" (SLASET8–DECEMBER 2019).

    I set register "page=0x00 address=0x02 value=0x00 " (MODE[1:0] equals "00b = Active"), and the result value is always 0x02.

    No size specified (using byte-data access)
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
    00: 00 00 02 20 c6 22 09 03 0a 10 13 02 00 04 05 06    ..? ?"??????.???
    10: 07 7f 12 76 01 2e 60 0e 0c 00 fc a6 df ef ff 00    ???v?.`??.????..
    20: 00 00 80 00 04 00 00 80 00 80 00 00 00 d7 40 a3    ..?.?..?.?...?@?
    30: 19 40 81 34 4b 74 00 00 0d 08 2e 58 38 08 10 00    ?@?4Kt..??.X8??.
    40: 76 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    v...............
    50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    70: 00 00 00 ff 00 ff 00 00 80 00 00 00 00 00 7d 00    ........?.....}.
    80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

    Is this the reason why wav files cannot be played?

    Please tell me how to solve it, thank you.

  • Hi,

    If register 0x02 goes always back to 0x02, means the device is shutting down itself due to some error.
    Register 0x24 shows value of 0x04, which means TDM clock error. Please make sure you enable the device through register 0x02 only after the input clocks are up and running. Enabling the device without input clocks will cause the device to shutdown automatically.

    Best regards,
    -Ivan Salazar
    Applicaitons Engineer