I was able to get the SGTL5000 codec to load correctly with the corrections in my previous topic but now I am having issues playing sound. I do not have any errors appearing on dmesg
but trying to play any sound gives an error.
I have already run:
$ alsactl init tegrasndt210ref
$ amixer -c tegrasndt210ref sset "ADMAIF1 Mux" "I2S4"
but when I try running:
$ speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500
I get the error:
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error
Additionally, I am unable to see any output on the physical DOUT line on my oscilloscope. I can verify that the LRCLK and the SCLK lines are working as expected since the codec is the master.
I’ve tried various debugging tips from other threads:
$ sudo cat /sys/kernel/debug/tegra_gpio
...
B: 0:1 00 00 00 00 00 00 000000
J: 2:1 00 00 00 00 00 00 000000
...
$ sudo cat /sudo cat /sys/kernel/debug/gpio
...
gpio-76 (I2S0_FS)
gpio-77 (I2S0_DIN)
gpio-78 (I2S0_DOUT)
gpio-79 (I2S0_SCLK)
...
$ cat /proc/device-tree/sound/nvidia,dai-link-1/link-name
fe-pi-audio-z-v2
$ sudo cat /sys/kernel/debug/asoc/codecs
...
sgtl5000.2-000a
$ sudo grep dap4 /sys/kernel/debug/tegra_pinctrl_reg
Bank: 1 Reg: 0x70003144 Val: 0x00000040 -> dap4_fs_pj4
Bank: 1 Reg: 0x70003147 Val: 0x00000040 -> dap4_din_pj5
Bank: 1 Reg: 0x7000314c Val: 0x00000040 -> dap4_dout_pj6
Bank: 1 Reg: 0x70003150 Val: 0x00000040 -> dap4_sclk_pj7
Please let me know any further debugging steps I can take to help resolve this. Thanks!!