Integration audio codec max9867 jetpack 4.6.1

We ask your help to connect the max9867 audio controller via the i2c bus for AGX Xavier module JetPack 4.6.1 instead of the rt5659 audio controller.
The max9867 driver is installed.
The following changes were made to dtsi for audio:

i2c7: i2c@c250000 {
max9867: max9867@0x18 {
compatible = “maxim,max9867”;
reg = <0x18>;
status = “okay”;
};
};
sound {
nvidia,dai-link-2 {
link-name = “max9867-playback”;
cpu-dai = <&tegra_i2s1>;
codec-dai = <&max9867_codec>;
cpu-dai-name = “I2S1”;
codec-dai-name = “max9867-hifi”;
format = “i2s”;
bitclock-slave;
frame-slave;
bit-format = “s16_le”;
name-prefix = “z”;
};
};
After loading in dmesg we see “max9867 7-0018: device revision: 42”
The device is not defined as a sound device, in the audio settings we see only HDMI audio, max9867 as audio controller is not listed.
Please tell me what other changes need to be made to define max9867 as a device for audio output and a stereo microphone.

Please refer to Troubleshooting at L4T doc: NVIDIA Jetson Linux Driver Package Software Features : Audio Setup and Development | NVIDIA Docs

We made changes to the DTSI using the information from the link you provided, unfortunately max9867 is not recognized as an audio device. Please check the DTSI file with the changes made
tegra194-audio-p2822-0000.dtsi (3.7 KB)

tegra194-p2888-0001-p2822-0000-common.dtsi (8.4 KB)

tegra_machine_driver_mobile.c (22.8 KB)

Sorry for the late response, our team will do the investigation and provide suggestions soon. Thanks

Hi Mvizionuz,
I see couple of issues on your DT entries. Please replace with the below fix.

codec-dai-name = "max9867-aif1";
Remove below entry from "nvidia,audio-routing ="
			"x Headphone Jack",     "x HPO L Playback",
			"x Headphone Jack",     "x HPO R Playback",
			"x IN1P",               "x Mic Jack",
			"x IN2P",               "x Mic Jack",
			"x Int Spk",            "x SPO Playback",
			"x DMIC L1",            "x Int Mic",
			"x DMIC L2",            "x Int Mic",
			"x DMIC R1",            "x Int Mic",
			"x DMIC R2",            "x Int Mic",
Replace with 
             "x Headphone Jack",     "x HPOUT",
             "x LINE_IN",               "x Mic Jack",

If the issue still exists, please provide the Kernel log (dmesg)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.