Hi,
Sorry for late reply.
Belows are DTS sound node that I modified.
/ {
bus@0 {
aconnect@2900000 {
ahub@2900800 {
- i2s@2901100 {
+ i2s@2901000 {
ports {
port@1 {
hdr40_snd_i2s_dap_ep: endpoint {
+ dai-format = "i2s";
+ remote-endpoint = <&wm8904_ep>;
};
};
};
};
};
};
};
tegra_sound_graph: tegra_sound: sound {
compatible = "nvidia,tegra186-audio-graph-card",
"nvidia,tegra186-ape";
clocks = <&bpmp TEGRA234_CLK_PLLA>,
<&bpmp TEGRA234_CLK_PLLA_OUT0>,
<&bpmp TEGRA234_CLK_AUD_MCLK>;
clock-names = "pll_a", "plla_out0", "extern1";
assigned-clocks = <&bpmp TEGRA234_CLK_AUD_MCLK>;
assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLA_OUT0>;
+ assigned-clock-rates = <11289600>;
nvidia-audio-card,name = "NVIDIA Jetson Orin NX APE";
- hdr40_snd_link_i2s: nvidia-audio-card,dai-link@77 { };
+ hdr40_snd_link_i2s: nvidia-audio-card,dai-link@76 { };
};
};
+ sound {
+ nvidia-audio-card,widgets =
+ "Headphone", "WM Headphone Jack",
+ "Microphone", "WM Mic Jack";
+
+ nvidia-audio-card,routing =
+ "WM Headphone Jack", "WM HPOUTL",
+ "WM Headphone Jack", "WM HPOUTR",
+ "WM Mic Jack", "WM MICBIAS",
+ "WM IN2R", "WM Mic Jack";
+
+ nvidia-audio-card,dai-link@76 {
+ link-name = "wm8904-playback";
+ bitclock-master;
+ frame-master;
+
+ codec {
+ sound-dai = <&wm8904 0>;
+ prefix = "WM";
+ };
+ };
+ };
+ i2c@3160000 {
+ status = "okay";
+ wm8904: wm8904_codec@1a {
+ compatible = "wlf,wm8904";
+ #sound-dai-cells = <1>;
+ status ="okay";
+ reg = <0x1a>;
+ clocks = <&bpmp TEGRA234_CLK_AUD_MCLK>;
+ clock-frequency = <11289600>;
+ clock-names = "mclk";
+
+ port {
+ wm8904_ep: endpoint {
+ remote-endpoint = <&i2s1_dap>;
+ mclk-fs = <256>;
+ link-name = "wm8904-playback";
+ };
+ };
+ };
+ };
And I have one more question.
How to change default interface from “I2S2” to “I2S1”?
After booting, I checked with the amixer command and found that all playback/capture interfaces set in ADMAIF1 are “I2S2”.
u@tegra-ubuntu:~$ amixer -c APE cget name="ADMAIF1 Mux"
numid=1158,iface=MIXER,name='ADMAIF1 Mux'
; type=ENUMERATED,access=rw------,values=1,items=81
; Item #0 'None'
; Item #1 'ADMAIF1'
; Item #2 'ADMAIF2'
; Item #3 'ADMAIF3'
; Item #4 'ADMAIF4'
; Item #5 'ADMAIF5'
; Item #6 'ADMAIF6'
; Item #7 'ADMAIF7'
; Item #8 'ADMAIF8'
; Item #9 'ADMAIF9'
; Item #10 'ADMAIF10'
; Item #11 'ADMAIF11'
; Item #12 'ADMAIF12'
; Item #13 'ADMAIF13'
; Item #14 'ADMAIF14'
; Item #15 'ADMAIF15'
; Item #16 'ADMAIF16'
; Item #17 'I2S1'
; Item #18 'I2S2'
; Item #19 'I2S3'
; Item #20 'I2S4'
; Item #21 'I2S5'
; Item #22 'I2S6'
; Item #23 'SFC1'
; Item #24 'SFC2'
; Item #25 'SFC3'
; Item #26 'SFC4'
; Item #27 'MIXER1 TX1'
; Item #28 'MIXER1 TX2'
; Item #29 'MIXER1 TX3'
; Item #30 'MIXER1 TX4'
; Item #31 'MIXER1 TX5'
; Item #32 'AMX1'
; Item #33 'AMX2'
; Item #34 'AMX3'
; Item #35 'AMX4'
; Item #36 'ARAD1'
; Item #37 'AFC1'
; Item #38 'AFC2'
; Item #39 'AFC3'
; Item #40 'AFC4'
; Item #41 'AFC5'
; Item #42 'AFC6'
; Item #43 'OPE1'
; Item #44 'SPKPROT1'
; Item #45 'MVC1'
; Item #46 'MVC2'
; Item #47 'IQC1-1'
; Item #48 'IQC1-2'
; Item #49 'IQC2-1'
; Item #50 'IQC2-2'
; Item #51 'DMIC1'
; Item #52 'DMIC2'
; Item #53 'DMIC3'
; Item #54 'DMIC4'
; Item #55 'ADX1 TX1'
; Item #56 'ADX1 TX2'
; Item #57 'ADX1 TX3'
; Item #58 'ADX1 TX4'
; Item #59 'ADX2 TX1'
; Item #60 'ADX2 TX2'
; Item #61 'ADX2 TX3'
; Item #62 'ADX2 TX4'
; Item #63 'ADX3 TX1'
; Item #64 'ADX3 TX2'
; Item #65 'ADX3 TX3'
; Item #66 'ADX3 TX4'
; Item #67 'ADX4 TX1'
; Item #68 'ADX4 TX2'
; Item #69 'ADX4 TX3'
; Item #70 'ADX4 TX4'
; Item #71 'ADMAIF17'
; Item #72 'ADMAIF18'
; Item #73 'ADMAIF19'
; Item #74 'ADMAIF20'
; Item #75 'ASRC1 TX1'
; Item #76 'ASRC1 TX2'
; Item #77 'ASRC1 TX3'
; Item #78 'ASRC1 TX4'
; Item #79 'ASRC1 TX5'
; Item #80 'ASRC1 TX6'
: values=18
u@tegra-ubuntu:~$ amixer -c APE cget name="I2S2 Mux"
numid=1169,iface=MIXER,name='I2S2 Mux'
; type=ENUMERATED,access=rw------,values=1,items=81
; Item #0 'None'
; Item #1 'ADMAIF1'
; Item #2 'ADMAIF2'
; Item #3 'ADMAIF3'
; Item #4 'ADMAIF4'
; Item #5 'ADMAIF5'
; Item #6 'ADMAIF6'
; Item #7 'ADMAIF7'
; Item #8 'ADMAIF8'
; Item #9 'ADMAIF9'
; Item #10 'ADMAIF10'
; Item #11 'ADMAIF11'
; Item #12 'ADMAIF12'
; Item #13 'ADMAIF13'
; Item #14 'ADMAIF14'
; Item #15 'ADMAIF15'
; Item #16 'ADMAIF16'
; Item #17 'I2S1'
; Item #18 'I2S2'
; Item #19 'I2S3'
; Item #20 'I2S4'
; Item #21 'I2S5'
; Item #22 'I2S6'
; Item #23 'SFC1'
; Item #24 'SFC2'
; Item #25 'SFC3'
; Item #26 'SFC4'
; Item #27 'MIXER1 TX1'
; Item #28 'MIXER1 TX2'
; Item #29 'MIXER1 TX3'
; Item #30 'MIXER1 TX4'
; Item #31 'MIXER1 TX5'
; Item #32 'AMX1'
; Item #33 'AMX2'
; Item #34 'AMX3'
; Item #35 'AMX4'
; Item #36 'ARAD1'
; Item #37 'AFC1'
; Item #38 'AFC2'
; Item #39 'AFC3'
; Item #40 'AFC4'
; Item #41 'AFC5'
; Item #42 'AFC6'
; Item #43 'OPE1'
; Item #44 'SPKPROT1'
; Item #45 'MVC1'
; Item #46 'MVC2'
; Item #47 'IQC1-1'
; Item #48 'IQC1-2'
; Item #49 'IQC2-1'
; Item #50 'IQC2-2'
; Item #51 'DMIC1'
; Item #52 'DMIC2'
; Item #53 'DMIC3'
; Item #54 'DMIC4'
; Item #55 'ADX1 TX1'
; Item #56 'ADX1 TX2'
; Item #57 'ADX1 TX3'
; Item #58 'ADX1 TX4'
; Item #59 'ADX2 TX1'
; Item #60 'ADX2 TX2'
; Item #61 'ADX2 TX3'
; Item #62 'ADX2 TX4'
; Item #63 'ADX3 TX1'
; Item #64 'ADX3 TX2'
; Item #65 'ADX3 TX3'
; Item #66 'ADX3 TX4'
; Item #67 'ADX4 TX1'
; Item #68 'ADX4 TX2'
; Item #69 'ADX4 TX3'
; Item #70 'ADX4 TX4'
; Item #71 'ADMAIF17'
; Item #72 'ADMAIF18'
; Item #73 'ADMAIF19'
; Item #74 'ADMAIF20'
; Item #75 'ASRC1 TX1'
; Item #76 'ASRC1 TX2'
; Item #77 'ASRC1 TX3'
; Item #78 'ASRC1 TX4'
; Item #79 'ASRC1 TX5'
; Item #80 'ASRC1 TX6'
: values=1
If I set “I2S2 Mux” to “None” in audio setting GUI, all audio signal is off.
Please check it also.
Thanks.