iMX6Q sgtl5000 problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6Q sgtl5000 problem

1,164 Views
m_sperandio
Contributor I

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

Labels (2)
Tags (1)
0 Kudos
2 Replies

1,023 Views
igorpadykov
NXP Employee
NXP Employee

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 

Codec SGTL5000 can not work 

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,023 Views
m_sperandio
Contributor I

The problem is the carrier board.  switched with a new one and it works!

0 Kudos