Dear all,
We have I2S0 & I2S1 connected to audio codec ALC5640
Below is the hardware schematic:
I’ve modified tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi & tegra234-mb1-bct-gpio-p3767-hdmi-a03.dtsi.
Do I need to add following nodes on tegra-sound? Could you please share me an example on how to modify the audio codec settings in tegra234-p3767-common-audio.dtsi?
nvidia-audio-card,widgets
nvidia-audio-card,routing
tegra234-mb1-bct-pinmux-p3767-hdmi-a03.zip (4.9 KB)
tegra234-mb1-bct-gpio-p3767-hdmi-a03.zip (1.6 KB)
I also added this in tegra234-p3767-common-audio.dtsi
On the system, i can detect 0x1c on i2c-0.
Thanks.
Yes, it is required to add in sound node. Add them like below:
sound {
nvidia-audio-card,widgets =
"Headphone", "CVB-RT Headphone Jack",
"Microphone", "CVB-RT Mic Jack",
"Speaker", "CVB-RT Int Spk",
"Microphone", "CVB-RT Int Mic";
nvidia-audio-card,routing =
"CVB-RT Headphone Jack", "CVB-RT HPOL",
"CVB-RT Headphone Jack", "CVB-RT HPOR",
"CVB-RT IN1P", "CVB-RT Mic Jack",
"CVB-RT IN2P", "CVB-RT Mic Jack",
"CVB-RT Int Spk", "CVB-RT SPOLP",
"CVB-RT Int Spk", "CVB-RT SPORP",
"CVB-RT DMIC1", "CVB-RT Int Mic",
"CVB-RT DMIC2", "CVB-RT Int Mic";
}
4nila97
September 2, 2024, 5:44am
4
Hi Sheetal.G
Thanks for your reply.
I added the sound node and created dai-link.
DTS as below.
tegra234-p3767-common-audio.zip (2.4 KB)
I can measured I2S0_DOUT signal with an oscilloscope when i use test sound in settings, but still no sound comes out from speaker.
I also run below command.
amixer -c APE -cset name="I2S2 Mux" "ADMAIF1"
amixer -c APE -cset name="ADMAIF1 Mux" "I2S2"
Is there anything wrong in my command?
As mentioned here, you need to setup codec route. Incase, you did it already, please share the output of amixer -c APE contents
4nila97
September 2, 2024, 6:59am
6
Here is the output:
amixercontents.zip (216 Bytes)
Hi,
Attached file seems empty, please attach again.
4nila97
September 2, 2024, 9:13am
8
Please see below attached file.
amixercontents.zip (26.9 KB)
Hi,
Please provide below details,
I2S0 is connected to tegra I2S2/ I2S4?
Share the playback command.
Speaker is connected to HP or SPO of codec?
The route mentioned above is for HP, please change it to SPO. You can refer from here “The audio ALC5640 can't work on I2S0 and I2C2 for Xaiver NX - #16 by mkumard ”
I2S0 is connected to I2S2, but in DT dai-link is created for i2s4. Please update it to i2s2.
&i2s4_to_codec {
link-name = "rt5640-playback";
//bit-format = "s16_le";
//srate = <48000>;
//num-channel = <2>;
codec {
sound-dai = <&rt5640 0>;
prefix = "CVB-RT";
};
};
I2S1 Mux is also connected to ADMAIF1, please reset it to 0.
Incase still its not working please share below data,
dmesg
amixer -c APE scontents
updated DT
aplay command behavior like does it run for duration of wav file and terminal output.
codec regdump → cat /sys/kernel/debug/regmap/-001c/registers
pinmux dump → cat /sys/kernel/debug/pinctrl/.pinmux/pinconf-groups
system
Closed
October 9, 2024, 4:45am
13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.