Hello, I connected the codec SGTL5000 on i2s4 interface
Playing audio is normal, but not recording sound
My use of an Internal Loopback is normal:
amixer -c APE cset name="I2S4 Mux" "ADMAIF1"
amixer -c APE cset name="ADMAIF1 Mux" "I2S4"
amixer -c APE cset name="I2S4 Loopback" "on"
aplay -D hw:APE,0 a.wav &
arecord -d 10 -D hw:APE,0 -c 2 -r 48000 -f S16_LE test.wav
But I short-circuited I2S4_SDATA_OUT and I2S4_SDATA_IN,recorded without sound
amixer -c APE cset name="I2S4 Mux" "ADMAIF1"
amixer -c APE cset name="ADMAIF1 Mux" "I2S4"
amixer -c APE cset name="I2S4 Loopback" "off"
aplay -D hw:APE,0 a.wav &
arecord -d 10 -D hw:APE,0 -c 2 -r 48000 -f S16_LE test.wav
I used an oscilloscope to measure that the I2S4_SDATA_IN has a normal signal
This is the configuration of pinmux:
147 (dap4_sclk_pa4):
pull=0
tristate=0
enable-input=1
open-drain=0
io-reset=0
rcv-sel=0
io-hv=0
schmitt=1
pull-down-strength=31
pull-up-strength=31
drive-type=0
gpio-mode=1
function=i2s4
148 (dap4_dout_pa5):
pull=0
tristate=0
enable-input=0
open-drain=0
io-reset=0
rcv-sel=0
io-hv=0
schmitt=0
pull-down-strength=31
pull-up-strength=31
drive-type=0
gpio-mode=1
function=i2s4
149 (dap4_din_pa6):
pull=2
tristate=1
enable-input=1
open-drain=0
io-reset=0
rcv-sel=0
io-hv=0
schmitt=1
pull-down-strength=31
pull-up-strength=31
drive-type=0
gpio-mode=1
function=i2s4
150 (dap4_fs_pa7):
pull=0
tristate=0
enable-input=1
open-drain=0
io-reset=0
rcv-sel=0
io-hv=0
schmitt=1
pull-down-strength=31
pull-up-strength=31
drive-type=0
gpio-mode=1
function=i2s4
Here is the device tree:
tegra234-p3768-0000+p3767-0000-nv.dts.txt (4.6 KB)