Skip to content

Commit df31007

Browse files
Jack Yubroonie
authored andcommitted
ASoC: rt1015: add rt1015 amplifier driver
This is initial amplifier driver for rt1015. Signed-off-by: Jack Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b2333f7 commit df31007

File tree

5 files changed

+1393
-0
lines changed

5 files changed

+1393
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
RT1015 Mono Class D Audio Amplifier
2+
3+
This device supports I2C only.
4+
5+
Required properties:
6+
7+
- compatible : "realtek,rt1015".
8+
9+
- reg : The I2C address of the device.
10+
11+
12+
Example:
13+
14+
rt1015: codec@28 {
15+
compatible = "realtek,rt1015";
16+
reg = <0x28>;
17+
};

sound/soc/codecs/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ config SND_SOC_ALL_CODECS
151151
select SND_SOC_RT286 if I2C
152152
select SND_SOC_RT298 if I2C
153153
select SND_SOC_RT1011 if I2C
154+
select SND_SOC_RT1015 if I2C
154155
select SND_SOC_RT1305 if I2C
155156
select SND_SOC_RT1308 if I2C
156157
select SND_SOC_RT5514 if I2C
@@ -970,6 +971,7 @@ config SND_SOC_RL6231
970971
default y if SND_SOC_RT5677=y
971972
default y if SND_SOC_RT5682=y
972973
default y if SND_SOC_RT1011=y
974+
default y if SND_SOC_RT1015=y
973975
default y if SND_SOC_RT1305=y
974976
default y if SND_SOC_RT1308=y
975977
default m if SND_SOC_RT5514=m
@@ -986,6 +988,7 @@ config SND_SOC_RL6231
986988
default m if SND_SOC_RT5677=m
987989
default m if SND_SOC_RT5682=m
988990
default m if SND_SOC_RT1011=m
991+
default m if SND_SOC_RT1015=m
989992
default m if SND_SOC_RT1305=m
990993
default m if SND_SOC_RT1308=m
991994

@@ -1013,6 +1016,9 @@ config SND_SOC_RT298
10131016
config SND_SOC_RT1011
10141017
tristate
10151018

1019+
config SND_SOC_RT1015
1020+
tristate
1021+
10161022
config SND_SOC_RT1305
10171023
tristate
10181024

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ snd-soc-rk3328-objs := rk3328_codec.o
154154
snd-soc-rl6231-objs := rl6231.o
155155
snd-soc-rl6347a-objs := rl6347a.o
156156
snd-soc-rt1011-objs := rt1011.o
157+
snd-soc-rt1015-objs := rt1015.o
157158
snd-soc-rt1305-objs := rt1305.o
158159
snd-soc-rt1308-objs := rt1308.o
159160
snd-soc-rt1308-sdw-objs := rt1308-sdw.o
@@ -451,6 +452,7 @@ obj-$(CONFIG_SND_SOC_RK3328) += snd-soc-rk3328.o
451452
obj-$(CONFIG_SND_SOC_RL6231) += snd-soc-rl6231.o
452453
obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o
453454
obj-$(CONFIG_SND_SOC_RT1011) += snd-soc-rt1011.o
455+
obj-$(CONFIG_SND_SOC_RT1015) += snd-soc-rt1015.o
454456
obj-$(CONFIG_SND_SOC_RT1305) += snd-soc-rt1305.o
455457
obj-$(CONFIG_SND_SOC_RT1308) += snd-soc-rt1308.o
456458
obj-$(CONFIG_SND_SOC_RT1308_SDW) += snd-soc-rt1308-sdw.o

0 commit comments

Comments
 (0)