Skip to content

Commit a7a8047

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: odroid-n2: enable audio loopback
Add capture pcm interfaces and loopback routes to the odroid-n2 Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f1bb924 commit a7a8047

File tree

1 file changed

+61
-4
lines changed

1 file changed

+61
-4
lines changed

arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,28 @@
209209
sound {
210210
compatible = "amlogic,axg-sound-card";
211211
model = "G12B-ODROID-N2";
212-
audio-aux-devs = <&tdmout_b>;
212+
audio-aux-devs = <&tdmout_b>, <&tdmin_a>, <&tdmin_b>,
213+
<&tdmin_c>, <&tdmin_lb>;
213214
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
214215
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
215216
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
216-
"TDM_B Playback", "TDMOUT_B OUT";
217+
"TDM_B Playback", "TDMOUT_B OUT",
218+
"TDMIN_A IN 4", "TDM_B Loopback",
219+
"TDMIN_B IN 4", "TDM_B Loopback",
220+
"TDMIN_C IN 4", "TDM_B Loopback",
221+
"TDMIN_LB IN 1", "TDM_B Loopback",
222+
"TODDR_A IN 0", "TDMIN_A OUT",
223+
"TODDR_B IN 0", "TDMIN_A OUT",
224+
"TODDR_C IN 0", "TDMIN_A OUT",
225+
"TODDR_A IN 1", "TDMIN_B OUT",
226+
"TODDR_B IN 1", "TDMIN_B OUT",
227+
"TODDR_C IN 1", "TDMIN_B OUT",
228+
"TODDR_A IN 2", "TDMIN_C OUT",
229+
"TODDR_B IN 2", "TDMIN_C OUT",
230+
"TODDR_C IN 2", "TDMIN_C OUT",
231+
"TODDR_A IN 6", "TDMIN_LB OUT",
232+
"TODDR_B IN 6", "TDMIN_LB OUT",
233+
"TODDR_C IN 6", "TDMIN_LB OUT";
217234

218235
assigned-clocks = <&clkc CLKID_MPLL2>,
219236
<&clkc CLKID_MPLL0>,
@@ -236,8 +253,20 @@
236253
sound-dai = <&frddr_c>;
237254
};
238255

239-
/* 8ch hdmi interface */
240256
dai-link-3 {
257+
sound-dai = <&toddr_a>;
258+
};
259+
260+
dai-link-4 {
261+
sound-dai = <&toddr_b>;
262+
};
263+
264+
dai-link-5 {
265+
sound-dai = <&toddr_c>;
266+
};
267+
268+
/* 8ch hdmi interface */
269+
dai-link-6 {
241270
sound-dai = <&tdmif_b>;
242271
dai-format = "i2s";
243272
dai-tdm-slot-tx-mask-0 = <1 1>;
@@ -252,7 +281,7 @@
252281
};
253282

254283
/* hdmi glue */
255-
dai-link-4 {
284+
dai-link-7 {
256285
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
257286

258287
codec {
@@ -476,6 +505,22 @@
476505
status = "okay";
477506
};
478507

508+
&tdmin_a {
509+
status = "okay";
510+
};
511+
512+
&tdmin_b {
513+
status = "okay";
514+
};
515+
516+
&tdmin_c {
517+
status = "okay";
518+
};
519+
520+
&tdmin_lb {
521+
status = "okay";
522+
};
523+
479524
&tdmout_b {
480525
status = "okay";
481526
};
@@ -484,6 +529,18 @@
484529
status = "okay";
485530
};
486531

532+
&toddr_a {
533+
status = "okay";
534+
};
535+
536+
&toddr_b {
537+
status = "okay";
538+
};
539+
540+
&toddr_c {
541+
status = "okay";
542+
};
543+
487544
&uart_AO {
488545
status = "okay";
489546
pinctrl-0 = <&uart_ao_a_pins>;

0 commit comments

Comments
 (0)