iMX6Q sgtl5000 problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX6Q sgtl5000 problem

1,331 次查看
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

标签 (2)
标记 (1)
0 项奖励
回复
2 回复数

1,190 次查看
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 项奖励
回复

1,190 次查看
m_sperandio
Contributor I

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

0 项奖励
回复