Skip to content

Commit 5d30e4f

Browse files
committed
Add vanilla Audio Injector Octo driver files to source tree
1 parent 1a0fdaf commit 5d30e4f

File tree

5 files changed

+402
-0
lines changed

5 files changed

+402
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
2424
mcp2515-can0.dtbo \
2525
googlevoicehat-soundcard.dtbo \
2626
ads7846-tinker.dtbo \
27+
audioinjector-addons.dtbo \
2728
camera-ov5647.dtbo
2829

2930
targets += dtbs dtbs_install
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Definitions for audioinjector.net audio add on soundcard
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2708";
7+
8+
fragment@0 {
9+
target = <&i2s>;
10+
__overlay__ {
11+
status = "okay";
12+
};
13+
};
14+
15+
fragment@1 {
16+
target = <&i2c1>;
17+
__overlay__ {
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
status = "okay";
21+
22+
cs42448: cs42448@48 {
23+
#sound-dai-cells = <0>;
24+
compatible = "cirrus,cs42448";
25+
reg = <0x48>;
26+
clocks = <&cs42448_mclk>;
27+
clock-names = "mclk";
28+
status = "okay";
29+
};
30+
31+
cs42448_mclk: codec-mclk {
32+
compatible = "fixed-clock";
33+
#clock-cells = <0>;
34+
clock-frequency = <49152000>;
35+
};
36+
};
37+
};
38+
39+
fragment@2 {
40+
target = <&sound>;
41+
snd: __overlay__ {
42+
compatible = "ai,audioinjector-octo-soundcard";
43+
mult-gpios = <&gpio 27 0>, <&gpio 22 0>, <&gpio 23 0>,
44+
<&gpio 24 0>;
45+
reset-gpios = <&gpio 5 0>;
46+
i2s-controller = <&i2s>;
47+
codec = <&cs42448>;
48+
status = "okay";
49+
};
50+
};
51+
52+
__overrides__ {
53+
non-stop-clocks = <&snd>, "non-stop-clocks?";
54+
};
55+
};

sound/soc/bcm/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ config SND_BCM2835_SOC_I2S
77
Say Y or M if you want to add support for codecs attached to
88
the BCM2835 I2S interface. You will also need
99
to select the audio interfaces to support below.
10+
11+
config SND_AUDIOINJECTOR_OCTO_SOUNDCARD
12+
tristate "Support for audioinjector.net Octo channel (Hat) soundcard"
13+
depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
14+
select SND_SOC_CS42XX8_I2C
15+
help
16+
Say Y or M if you want to add support for audioinjector.net octo add on

sound/soc/bcm/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ snd-soc-bcm2835-i2s-objs := bcm2835-i2s.o
33

44
obj-$(CONFIG_SND_BCM2835_SOC_I2S) += snd-soc-bcm2835-i2s.o
55

6+
snd-soc-audioinjector-octo-soundcard-objs := audioinjector-octo-soundcard.o
7+
8+
obj-$(CONFIG_SND_AUDIOINJECTOR_OCTO_SOUNDCARD) += snd-soc-audioinjector-octo-soundcard.o

0 commit comments

Comments
 (0)