Hello NVIDIA engineers.
I am having a problem with the SGTL5000 audio chip:
After configuring the device tree according to the documentation, the headphone output is only current sound, no audio output. Do you have any suggestions for modification?
log.txt (79.6 KB)
tegra234-p3767-common-audio.dtsi.txt (2.8 KB)
- root@nvidia:/sys/kernel/debug/regmap/0-000a# cat registers
000: a011
002: 0070
004: 0008
006: 0080
00a: 0010
00e: 0200
010: 3c3c
014: 015f
020: 0000
022: 1818
024: 0133
026: 0068
028: 01f1
02a: 0170
02c: 0322
02e: 0d0d
030: 72fb
032: 5000
034: 0000
036: 0017
03a: 0000
03c: 0000
100: 0011
102: 0000
104: 0040
106: 051f
108: 0003
10a: 0040
10c: 0000
10e: 0000
110: 0000
116: 002f
118: 002f
11a: 002f
11c: 002f
11e: 002f
120: 8000
122: 0000
124: 5100
126: 1473
128: 0028
12a: 0050
12c: 0000
12e: 0000
130: 0000
132: 0000
134: 0000
136: 0000
138: 0000
13a: 0000
Then I tried to configure the headphone output, but no effect:
root@nvidia:/sys/kernel/debug/regmap/0-000a# amixer controls | grep H40
numid=451,iface=MIXER,name=‘H40-SGTL AVC Hard Limiter Switch’
numid=453,iface=MIXER,name=‘H40-SGTL AVC Integrator Response’
numid=452,iface=MIXER,name=‘H40-SGTL AVC Max Gain Volume’
numid=450,iface=MIXER,name=‘H40-SGTL AVC Switch’
numid=454,iface=MIXER,name=‘H40-SGTL AVC Threshold Volume’
numid=455,iface=MIXER,name=‘H40-SGTL BASS 0’
numid=456,iface=MIXER,name=‘H40-SGTL BASS 1’
numid=457,iface=MIXER,name=‘H40-SGTL BASS 2’
numid=458,iface=MIXER,name=‘H40-SGTL BASS 3’
numid=459,iface=MIXER,name=‘H40-SGTL BASS 4’
numid=439,iface=MIXER,name=‘H40-SGTL Capture Attenuate Switch (-6dB)’
numid=1497,iface=MIXER,name=‘H40-SGTL Capture Mux’
numid=441,iface=MIXER,name=‘H40-SGTL Capture Switch’
numid=438,iface=MIXER,name=‘H40-SGTL Capture Volume’
numid=440,iface=MIXER,name=‘H40-SGTL Capture ZC Switch’
numid=1501,iface=MIXER,name=‘H40-SGTL DAP MIX Mux’
numid=448,iface=MIXER,name=‘H40-SGTL DAP Main channel’
numid=449,iface=MIXER,name=‘H40-SGTL DAP Mix channel’
numid=1500,iface=MIXER,name=‘H40-SGTL DAP Mux’
numid=1499,iface=MIXER,name=‘H40-SGTL Digital Input Mux’
numid=1498,iface=MIXER,name=‘H40-SGTL Headphone Mux’
numid=443,iface=MIXER,name=‘H40-SGTL Headphone Playback Switch’
numid=442,iface=MIXER,name=‘H40-SGTL Headphone Playback Volume’
numid=444,iface=MIXER,name=‘H40-SGTL Headphone Playback ZC Switch’
numid=447,iface=MIXER,name=‘H40-SGTL Lineout Playback Switch’
numid=446,iface=MIXER,name=‘H40-SGTL Lineout Playback Volume’
numid=445,iface=MIXER,name=‘H40-SGTL Mic Volume’
numid=437,iface=MIXER,name=‘H40-SGTL PCM Playback Volume’
root@nvidia:/sys/kernel/debug/regmap/0-000a#
root@nvidia:/sys/kernel/debug/regmap/0-000a#
root@nvidia:/sys/kernel/debug/regmap/0-000a# amixer cset numid=443 1
numid=443,iface=MIXER,name=‘H40-SGTL Headphone Playback Switch’
; type=BOOLEAN,access=rw------,values=1
: values=on
root@nvidia:/sys/kernel/debug/regmap/0-000a# amixer cset numid=442 30
numid=442,iface=MIXER,name=‘H40-SGTL Headphone Playback Volume’
; type=INTEGER,access=rw—R–,values=2,min=0,max=127,step=0
: values=30,30
| dBscale-min=-51.50dB,step=0.50dB,mute=0
root@nvidia:/sys/kernel/debug/regmap/0-000a# cat registers
000: a011
002: 0070
004: 0008
006: 0080
00a: 0010
00e: 0200
010: 3c3c
014: 015f
020: 0000
022: 6161
024: 0123