• CTAG-ALSA
  • CTAG-Face error message revealed with dmesg

Hi @henrix,

I turned on CTAG-Face and check the system message using dmesg command and found an error
snd_ctag_face_2_4 ocp🔉 snd_soc_register_card failed (-517)

What should I do to solve this problem?


[   19.282742] bone_capemgr bone_capemgr: part_number 'BB-CTAG-SW-8CH', version 'N/A'
[   19.282780] bone_capemgr bone_capemgr: slot #4: override
[   19.282798] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   19.282815] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-CTAG-SW-8CH'
[   19.303525] bone_capemgr bone_capemgr: slot #4: dtbo 'BB-CTAG-SW-8CH-00A0.dtbo' loaded; overlay id #0
[   22.019612] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[   23.955033] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[   24.047779] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[   27.251530] snd_ctag_face_2_4 ocp:sound: using only one audio codec (no daisy chain).
[   27.251604] snd_ctag_face_2_4 ocp:sound: mclk not found.
[   27.251646] snd_ctag_face_2_4 ocp:sound: ASoC: CODEC DAI ad193x-hifi not registered
[   27.259547] snd_ctag_face_2_4 ocp:sound: snd_soc_register_card failed (-517)
[   27.881208] snd_ctag_face_2_4 ocp:sound: using only one audio codec (no daisy chain).
[   27.881282] snd_ctag_face_2_4 ocp:sound: mclk not found.
[   27.886500] snd_ctag_face_2_4 ocp:sound: Using audio routing configuration from dt overlay.
[   27.886566] snd_ctag_face_2_4 ocp:sound: Using 8 TDM slots.
[   27.894335] snd_ctag_face_2_4 ocp:sound: ad193x-hifi <-> 48038000.mcasp mapping ok
[   28.922199] davinci-mcasp 48038000.mcasp: Set codec DAI clock rate to 24576000.
[   28.922234] davinci-mcasp 48038000.mcasp: Set CPU DAI clock rate to 24576000.
[   28.930323] ad193x spi32766.0: AD193X register 0:    0x5
[   28.930429] ad193x spi32766.0: AD193X register 1:    0x0
[   28.930516] ad193x spi32766.0: AD193X register 2:    0x40
[   28.930597] ad193x spi32766.0: AD193X register 3:    0xc
[   28.930679] ad193x spi32766.0: AD193X register 4:    0x1a
[   28.930760] ad193x spi32766.0: AD193X register 5:    0x0
[   28.930841] ad193x spi32766.0: AD193X register 6:    0x0
[   28.930921] ad193x spi32766.0: AD193X register 7:    0x0
[   28.931001] ad193x spi32766.0: AD193X register 8:    0x0
[   28.931082] ad193x spi32766.0: AD193X register 9:    0x0
[   28.931163] ad193x spi32766.0: AD193X register 10:   0x0
[   28.931244] ad193x spi32766.0: AD193X register 11:   0x0
[   28.931326] ad193x spi32766.0: AD193X register 12:   0x0
[   28.931406] ad193x spi32766.0: AD193X register 13:   0x0
[   28.931487] ad193x spi32766.0: AD193X register 14:   0x3
[   28.931567] ad193x spi32766.0: AD193X register 15:   0x23
[   28.931647] ad193x spi32766.0: AD193X register 16:   0x6c
[   28.932796] davinci-mcasp 48038000.mcasp: Set codec DAI clock rate to 24576000.
[   28.932820] davinci-mcasp 48038000.mcasp: Set CPU DAI clock rate to 24576000.
[   28.938945] ad193x spi32766.0: AD193X register 0:    0x84
[   28.939045] ad193x spi32766.0: AD193X register 1:    0x8
[   28.942547] ad193x spi32766.0: AD193X register 2:    0x40
[   28.942708] ad193x spi32766.0: AD193X register 3:    0xc
[   28.942800] ad193x spi32766.0: AD193X register 4:    0x1a
[   28.942883] ad193x spi32766.0: AD193X register 5:    0x0
[   28.942967] ad193x spi32766.0: AD193X register 6:    0x0
[   28.944832] ad193x spi32766.0: AD193X register 7:    0x0
[   28.944970] ad193x spi32766.0: AD193X register 8:    0x0
[   28.945062] ad193x spi32766.0: AD193X register 9:    0x0
[   28.945147] ad193x spi32766.0: AD193X register 10:   0x0
[   28.945229] ad193x spi32766.0: AD193X register 11:   0x0
[   28.945310] ad193x spi32766.0: AD193X register 12:   0x0
[   28.945390] ad193x spi32766.0: AD193X register 13:   0x0
[   28.945471] ad193x spi32766.0: AD193X register 14:   0x2
[   28.946558] ad193x spi32766.0: AD193X register 15:   0x23
[   28.946685] ad193x spi32766.0: AD193X register 16:   0x6c

please use triple backticks (```) to enclose your terminal output ( I amended it for you above).

Does the soundcard work when the error is dislpayed? That looks like a harmless warning, so I wouldn't worry too much if it indeed works.

I will do the backticks next time

No. there is no sound with the second DAC (DA2) when the message appear, I did not manage to co-relate the aural problem with the system message in my previous post, but this one I did.

  1. I turn on the system
  2. Load driver, run jackd, and use jack_connect to link my program
  3. DAC1 has sound, DAC2 has no sound, open dmesg ... this time two errors
[  178.985106] bone_capemgr bone_capemgr: part_number 'BB-CTAG-SW-8CH', version 'N/A'
[  178.985143] bone_capemgr bone_capemgr: slot #4: override
[  178.985160] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[  178.985177] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-CTAG-SW-8CH'
[  179.003229] bone_capemgr bone_capemgr: slot #4: dtbo 'BB-CTAG-SW-8CH-00A0.dtbo' loaded; overlay id #0
[  179.056299] snd_ctag_face_2_4 ocp:sound: using only one audio codec (no daisy chain).
[  179.056375] snd_ctag_face_2_4 ocp:sound: mclk not found.
[  179.056418] snd_ctag_face_2_4 ocp:sound: ASoC: CODEC DAI ad193x-hifi not registered
[  179.064301] snd_ctag_face_2_4 ocp:sound: snd_soc_register_card failed (-517)
[  179.102165] snd_ctag_face_2_4 ocp:sound: using only one audio codec (no daisy chain).
[  179.102240] snd_ctag_face_2_4 ocp:sound: mclk not found.
[  179.102286] snd_ctag_face_2_4 ocp:sound: ASoC: CODEC DAI ad193x-hifi not registered
[  179.110121] snd_ctag_face_2_4 ocp:sound: snd_soc_register_card failed (-517)
[  179.139441] snd_ctag_face_2_4 ocp:sound: using only one audio codec (no daisy chain).
[  179.139519] snd_ctag_face_2_4 ocp:sound: mclk not found.
[  179.146176] snd_ctag_face_2_4 ocp:sound: Using audio routing configuration from dt overlay.
[  179.146245] snd_ctag_face_2_4 ocp:sound: Using 8 TDM slots.
[  179.154102] snd_ctag_face_2_4 ocp:sound: ad193x-hifi <-> 48038000.mcasp mapping ok
[  266.928160] davinci-mcasp 48038000.mcasp: Set codec DAI clock rate to 24576000.
[  266.928195] davinci-mcasp 48038000.mcasp: Set CPU DAI clock rate to 24576000.
[  266.929208] ad193x spi32766.0: AD193X register 0:	0x5
[  266.929312] ad193x spi32766.0: AD193X register 1:	0x0
[  266.929398] ad193x spi32766.0: AD193X register 2:	0x40
[  266.929479] ad193x spi32766.0: AD193X register 3:	0xc
[  266.933811] ad193x spi32766.0: AD193X register 4:	0x1a
[  266.933967] ad193x spi32766.0: AD193X register 5:	0x0
[  266.934665] ad193x spi32766.0: AD193X register 6:	0x0
[  266.934773] ad193x spi32766.0: AD193X register 7:	0x0
[  266.934860] ad193x spi32766.0: AD193X register 8:	0x0
[  266.934943] ad193x spi32766.0: AD193X register 9:	0x0
[  266.935025] ad193x spi32766.0: AD193X register 10:	0x0
[  266.935107] ad193x spi32766.0: AD193X register 11:	0x0
[  266.936600] ad193x spi32766.0: AD193X register 12:	0x0
[  266.936727] ad193x spi32766.0: AD193X register 13:	0x0
[  266.936812] ad193x spi32766.0: AD193X register 14:	0x1
[  266.936895] ad193x spi32766.0: AD193X register 15:	0x23
[  266.936977] ad193x spi32766.0: AD193X register 16:	0x6c
[  266.939479] davinci-mcasp 48038000.mcasp: Set codec DAI clock rate to 24576000.
[  266.939512] davinci-mcasp 48038000.mcasp: Set CPU DAI clock rate to 24576000.
[  266.942756] ad193x spi32766.0: AD193X register 0:	0x84
[  266.942856] ad193x spi32766.0: AD193X register 1:	0x0
[  266.942939] ad193x spi32766.0: AD193X register 2:	0x40
[  266.943021] ad193x spi32766.0: AD193X register 3:	0xc
[  266.943102] ad193x spi32766.0: AD193X register 4:	0x1a
[  266.943184] ad193x spi32766.0: AD193X register 5:	0x0
[  266.943264] ad193x spi32766.0: AD193X register 6:	0x0
[  266.943345] ad193x spi32766.0: AD193X register 7:	0x0
[  266.945008] ad193x spi32766.0: AD193X register 8:	0x0
[  266.945144] ad193x spi32766.0: AD193X register 9:	0x0
[  266.945233] ad193x spi32766.0: AD193X register 10:	0x0
[  266.945316] ad193x spi32766.0: AD193X register 11:	0x0
[  266.945396] ad193x spi32766.0: AD193X register 12:	0x0
[  266.945478] ad193x spi32766.0: AD193X register 13:	0x0
[  266.946649] ad193x spi32766.0: AD193X register 14:	0x0
[  266.946780] ad193x spi32766.0: AD193X register 15:	0x23
[  266.946867] ad193x spi32766.0: AD193X register 16:	0x6c

Please note the above is one instance of the startup process time, the whole picture is that the chance of error occurance is 30%, which means it fail every 3 times in 10, and the other 7 times works perfectly, and when it works it can works perfectly for many hours.

    ok, let's wait for @henrix. can you post the full sequence of commands, so he can reproduce this step by step?

    Hi moseswong001 ,

    Error 517 means probe deferred (https://github.com/torvalds/linux/blob/master/include/linux/errno.h#L19).
    Thus, you can ignore this error. If you can list the audio cards via aplay -l, the kernel modules were loaded correctly.

    Have you checked if all audio card channels are unmuted?
    You can do that using alsamixer or amixer.
    Moreover, there seems to be a port mapping issue of the JACK config in the current image:
    https://forum.bela.io/d/692-ctag-beast-i-o-and-jack-port-mappings