Skip to content

Commit ecad4b8

Browse files
authored
Add support for the AudioInjector.net bare i2s sound card
Signed-off-by: Matt Flax <[email protected]>
1 parent 16a6cbd commit ecad4b8

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
2525
applepi-dac.dtbo \
2626
at86rf233.dtbo \
2727
audioinjector-addons.dtbo \
28+
audioinjector-bare-i2s.dtbo \
2829
audioinjector-isolated-soundcard.dtbo \
2930
audioinjector-ultra.dtbo \
3031
audioinjector-wm8731-audio.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,12 @@ Params: non-stop-clocks Keeps the clocks running even when the stream
601601
is paused or stopped (default off)
602602

603603

604+
Name: audioinjector-bare-i2s
605+
Info: Configures the audioinjector.net audio bare i2s soundcard
606+
Load: dtoverlay=audioinjector-bare-i2s
607+
Params: <None>
608+
609+
604610
Name: audioinjector-isolated-soundcard
605611
Info: Configures the audioinjector.net isolated soundcard
606612
Load: dtoverlay=audioinjector-isolated-soundcard
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Definitions for audioinjector.net audio soundcard
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2835";
7+
8+
fragment@0 {
9+
target = <&i2s>;
10+
__overlay__ {
11+
status = "okay";
12+
};
13+
};
14+
15+
fragment@1 {
16+
target-path = "/";
17+
__overlay__ {
18+
codec_bare: codec_bare {
19+
compatible = "linux,spdif-dit";
20+
#sound-dai-cells = <0>;
21+
status = "okay";
22+
};
23+
};
24+
};
25+
26+
fragment@2 {
27+
target = <&sound>;
28+
__overlay__ {
29+
compatible = "simple-audio-card";
30+
i2s-controller = <&i2s>;
31+
status = "okay";
32+
33+
simple-audio-card,name = "audioinjector-bare";
34+
simple-audio-card,format = "i2s";
35+
36+
simple-audio-card,bitclock-master = <&dailink0_master>;
37+
simple-audio-card,frame-master = <&dailink0_master>;
38+
39+
dailink0_master: simple-audio-card,cpu {
40+
sound-dai = <&i2s>;
41+
dai-tdm-slot-num = <2>;
42+
dai-tdm-slot-width = <32>;
43+
};
44+
45+
snd_codec: simple-audio-card,codec {
46+
sound-dai = <&codec_bare>;
47+
};
48+
};
49+
};
50+
};

0 commit comments

Comments
 (0)