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.

SK-AM62: Unable to get audio out of headphones and speaker on SK-AM62

Part Number: SK-AM62

Hello, unable to now get audio output from speaker on AIC3111 EVAL codec . 

root@am62xx-evm:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AM62xSKEVM [AM62x-SKEVM], device 0: davinci-mcasp.0-tlv320aic31xx-hifi tlv320aic31xx-hifi-0 [davinci-mcasp.0-tlv320aic31xx-hifi tlv320aic31xx-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@am62xx-evm:~# aplay /usr/share/sounds/alsa/Rear_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Rear_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

Kernel Details:

root@am62xx-evm:~# uname -a
Linux am62xx-evm 5.10.168-g2c23e6c538 #1 SMP PREEMPT Thu Jun 15 02:11:50 PDT 202
3 aarch64 aarch64 aarch64 GNU/Linux

Error:



[ 75.486251] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits:Failed! 0x25 was 0xffff8000 expected 0x80 (-16, 0x80, 0 us)
[ 75.497113] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: DAC Left event failed: -1
[ 75.504608] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits: Failed! 0x25 was 0xffff8000 expected 0x8 (-16, 0x8, 0 us)
[ 75.515150] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: DAC Right event failed: -1
[ 75.522757] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits: Failed! 0x25 was 0xffff8000 expected 0x20 (-16, 0x20, 0 us)
[ 75.533460] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: HPL Driver event failed: -1
[ 75.541123] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits: Failed! 0x25 was 0xffff8000 expected 0x2 (-16, 0x2, 0 us)
[ 75.551646] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: HPR Driver event failed: -1
[ 75.559316] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits: Failed! 0x25 was 0xffff8000 expected 0x10 (-16, 0x10, 0 us)
[ 75.570013] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: SPL ClassD event failed: -1
[ 75.577672] tlv320aic31xx-codec 1-0018: aic31xx_wait_bits: Failed! 0x25 was 0xffff8000 expected 0x1 (-16, 0x1, 0 us)
[ 75.588197] tlv320aic31xx-codec 1-0018: ASoC: POST_PMU: SPR ClassD event failed: -1

  • dmesg log:


    [ 4.399718] tlv320aic31xx-codec 1-0018: Could not reset device: -121
    [ 4.406587] tlv320aic31xx-codec 1-0018: Unable to sync registers 0x1b-0x1b. -121
    [ 4.418512] tlv320aic31xx-codec 1-0018: Failed to restore cache: -121
    [ 5.349489] random: systemd: uninitialized urandom read (16 bytes read)
    [ 5.384248] random: crng init done
    [ 5.387718] random: 160 urandom warning(s) missed due to ratelimiting
    [ 5.414116] remoteproc remoteproc2: 30074000.pru is available
    [ 5.421881] remoteproc remoteproc3: 30078000.pru is available
    [ 5.469492] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
    [ 5.499580] tps6598x 0-003f: Unable to find the interrupt, switching to polling
    [ 5.629310] usbcore: registered new interface driver usbfs
    [ 5.635060] usbcore: registered new interface driver hub
    [ 5.640588] usbcore: registered new device driver usb
    [ 5.643589] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [ 5.646081] tlv320aic31xx-codec 1-0018: ASoC: error at snd_soc_component_update_bits on tlv320aic31xx-codec.1-0018: -16
    [ 5.661440] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'

    [ 6.215614] tlv320aic31xx-codec 1-0018: ASoC: error at snd_soc_component_update_bits on tlv320aic31xx-codec.1-0018: -16

  • Reg dump from Audio Codec:

    root@am62xx-evm:~# i2cdump -y -f 1 0x18
    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 01 56 00 11 04 00 00 00 00 01 01 00 80 80 ..?V.??....??.??
    10: 08 00 01 01 80 80 04 00 00 00 01 00 00 00 01 00 ?.?????...?...?.
    20: 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 ....?...........
    30: 00 00 00 02 32 12 03 02 02 11 10 00 01 04 00 14 ...?2??????.??.?
    40: 0c 00 00 00 6f 38 00 00 00 00 00 ee 10 d8 7e e3 ?...o8.....???~?
    50: 00 00 80 00 00 00 00 00 7f 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 04 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 ................

  • Hi Mitesh,

    What changed from the point it was working earlier?These errors pop up if the audio-routing is messed. Did you change any dapm related settings or anything on the device tree settings?

    We can get on a call tomorrow morning (Dallas Time) and debug the issue.

    Thanks,

    Suren

  • Haven't changed much! 

    Yes please, call me when you in. Cheers. 

  • Mitesh,

    Let me know your availability, as we were not able to sync up today.

    Best Regards,

    Suren

  • Hi Suren, please let me know if you are available today.

    Thanks

  • Sure Mitesh.

    Shared the invite for our meeting. 

    Best Regards,

    Suren

  • Hi Suren, thanks for your time today. As you said, I tested all the signals and clocks and there was disconnect on the DIN and DOUT and hence the speakers were not working. 

    all back to working now.

    Thanks a lot.