Apalis Imx6 S/PDIF Errors on boot

Hello all,
I have made an image with Yocto Dunfell with tdx-wayland distro.
The problem is that when booting it is showing SPDIF error messages for a few seconds and then continues the boot process normally.

It is booting from a USB Pendrive.

Which is the reason of this error and how I can solve it?

[ 1.264226] usb usb1-port1: over-current condition
[ 1.696532] imx6q-pcie 1ffc000.pcie: failed to initialize host
[ 1.702376] imx6q-pcie 1ffc000.pcie: unable to add pcie port.
[ 1.945130] debugfs: Directory ‘2028000.ssi’ with parent ‘imx6q-apalis-sgtl5000’ already present!
[ 1.962439] imx-spdif sound-spdif: ASoC: failed to init link S/PDIF PCM: -517
[ 2.148487] imx-spdif sound-spdif: ASoC: failed to init link S/PDIF PCM: -517
[ 2.304949] imx-spdif sound-spdif: ASoC: failed to init link S/PDIF PCM: -517
[ 2.463179] imx-spdif sound-spdif: ASoC: failed to init link S/PDIF PCM: -517
[ 2.803393] imx-spdif sound-spdif: ASoC: failed to init link S/PDIF PCM: -517

Thanks for advanded.

Hi @LordXor ,

Thanks for using the Toradex Community.

The message with the code -517 is not an actual error. This is the way a driver or module communicates to the kernel that something that the driver was trying to load is not there. This is caused by the fact that during booting a lot of tasks get done in parallel. This leads to certain dependencies to not be ready at the moment when they are needed, which results in the -517 message.

The driver/module will try again at a later stage automatically. If it succeeded it will not print the message again. If at the end of booting one of these was not resolved this would mean that somewhere in the configuration you’re trying to use a dependency that was never added.

Hope this helps

Best Regards
Kevin

Hi @kevin.tx
Thanks for your reply.

Since I don’t need sound on my device I have solved the problem by disabling the kernel audio modules “#CONFIG_SOUND is not set”.

I know that it is not a very accurate solution, but time is pressing on me.

Regards,
Oscar