My environment is : Orin NX 8GB module and customized carried board.
The resource is I2S2 and I2C0 (the same as 40-pin header)
I have success config es8316 codec in dts and driver.
When I try to play music,
SCLK LRCK and SDO output normal,
but MCLK always power on whether or not I play music, That is strange.
pinmux:
I use jetson-io to config pinmux temporarily, and it works fine:
What’s more, This is my widgets and routes contents: contents.txt (789.9 KB)
I guess I should config route manually,
I running these command, but there is no music play
amixer -c 1 sset ‘I2S2 Mux’ ‘ADMAIF1’
amixer -c APE cset name="ES Left Hp mixer Left DAC Switch" 1
amixer -c APE cset name="ES Right Hp mixer Right DAC Switch" 1
aplay -D hw:1,0 1.wav
What is the behavior or error do you see during the playback of audio?.
Are you playing the audio with aplay command line util or on ubuntu gui apps?. Can you confirm with aplay whether the audio plays for right duration for e.g 10second wavefile should run aplay for 10 second if the DAPM connetions are proper. This will give some clue on the issue.
Ok, this confirms DAPM path is proper. As your first comment states SCLK, LRCK and SDOUT is proper that means data is sent out of Tegra to Codec es8316. Is the codec mixer control config is same as the one which is working on 32.7.3?
We need to put our effort on codec controls to see if anything missing there. Would it be possible to compare the regmap dump of codec registers on working 32.7.3 and r35.2.1
amixer -c APE sset "I2S2 Mux" "ADMAIF1"
amixer -c APE cset name="ES Left Hp mixer Left DAC Switch" 1
amixer -c APE cset name="ES Left Hp mixer Left DAC Switch" 1
aplay -D hw:1,0 1.wav &
cat /sys/kernel/debug/clk/clk_summary > clk_summary.log