[yocto]SGTL5000: Restart SGTL5000- card registration fails

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

[yocto]SGTL5000: Restart SGTL5000- card registration fails

697 Views
jimunozq
Contributor I

Dears members

I have a Wandboard platform (which has an SGTL5000 audio codec) running a Linux image (Linux wandboard 3.14.28_1.0.0_ga-wandboard). While I use this platform with headphones

<WANDBOARD/LINEOUT> ------> <HEADPHONES>

it works OK.

On the other side, when I used a little amplifier LM386

<WANDBOARD/LINEOUT>-------> <resistor><LM386><SPEAKER>

-------------------------                          -------------------------------------------

POWER SOURCE 1                              POWER SOURCE 2 (Both grounds are connected)

, it works fine. However, after some minutes, it stop working. In order to recover it, I rebooted the system, but without any success.  In addition, once the reboot was finished, the "dmesg" command returned the following lines

[ 5.491631] imx-sgtl5000 sound.20: ASoC: CODEC (null) not registered
[ 5.496951] imx-sgtl5000 sound.20: snd_soc_register_card failed (-517)
[ 5.502196] platform sound.20: Driver imx-sgtl5000 requests probe deferra

The only way I found to restart the system is power-cycling the board.

Do you know any way I have to follow in order to recover the IC without need power-cycling the board? In addition, which circuit recommendation do you suggest?

Thank you very much for your help and support.

Regards

Joel

0 Kudos
1 Reply

531 Views
jimunozq
Contributor I

Dears

I was working around the issue and I found that when I run:

cat /sys/kernel/debug/regmap/1-000a/registers

The registers 000 has the value XXXX instead of 011. The same behavior can be observerd in the registers 00e and 0036 as you can see in the following lines

cat /sys/kernel/debug/regmap/1-000a/registers

000: XXXX
002: 0063
004: 0013
006: 01b0
00a: 0010
00e: XXXX
010: 6c6c
014: 015f
020: 00cc
022: 0a0a
024: 0022
026: 0008
028: 0120
02a: 0201
02c: 0322
02e: 0404
030: 17bb
032: 8312
034: 0008
036: XXXX
03a: 0000
03c: 0000
100: 0000
102: 0000
104: 0040
106: 051f
108: 0000
10a: 0040
10c: 0000
10e: 0000
110: 0000
116: 002f
118: 002f
11a: 002f
11c: 002f
11e: 002f
120: 8000
122: 0000
124: 0510
126: 1473
128: 0028
12a: 0050
12c: 0000
12e: 0000
130: 0000
132: 0000
134: 0000
136: 0000
138: 0000
13a: 0000

0 Kudos