Skip to content

Commit 31c26e8

Browse files
test-rp1-audio-out overlay: Adapt for ASOC with dummy codec and card. DO NOT MERGE.
1 parent 345f461 commit 31c26e8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

arch/arm/boot/dts/overlays/test-rp1-audio-out-overlay.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,39 @@
1414
status = "ok";
1515
};
1616
};
17+
18+
fragment@1 {
19+
target-path = "/";
20+
__overlay__ {
21+
22+
dummy_codec: audio-codec {
23+
compatible = "linux,spdif-dit";
24+
#sound-dai-cells = <0>;
25+
status = "ok";
26+
};
27+
28+
audio_out {
29+
compatible = "simple-audio-card";
30+
simple-audio-card,name = "RP1-PWM-Audio-Out";
31+
#address-cells = <1>;
32+
#size-cells = <0>;
33+
status = "ok";
34+
35+
simple-audio-card,dai-link@0 {
36+
reg = <0>;
37+
format = "left_j";
38+
bitclock-master = <&sndcpu0>;
39+
frame-master = <&sndcpu0>;
40+
41+
sndcpu0: cpu {
42+
sound-dai = <&rp1_audio_out>;
43+
};
44+
45+
codec {
46+
sound-dai = <&dummy_codec>;
47+
};
48+
};
49+
};
50+
};
51+
};
1752
};

0 commit comments

Comments
 (0)