I have an Apalis iMX6Q with sgtl5000. The OS is custom made from buildroot this is uname -a:
Linux buildroot 4.9.166 #8 SMP Tue Feb 25 01:12:56 PST 2020 armv7l GNU/Linux
During the boot process I fot the following error messages and no sgtl5000 sound card is available under alsa:
[ 3.142286] sgtl5000 2-000a: Error reading chip id -6
[ 3.275460] imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
[ 3.282127] imx-sgtl5000 sound: snd_soc_register_card failed (-517)
The problems seems to be on sgtl5000.c linux driver but I have no knowledge on how to modify to recognize the sgtl5000. I've tried by adding an additional 10us delay after the clock anable but have no effect always the same errors.
What can I do?
Regards,
Matteo
Hi Matteo
sgtl5000 is supported on some third party boards, one can look at sabrelite example:
imx6qdl-sabrelite.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel
https://boundarydevices.com/audio-output-selection-under-linux-on-i-mx6/
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
The problem is the carrier board. switched with a new one and it works!