Skip to content

Commit 6eebf35

Browse files
oder-chioubroonie
authored andcommitted
ASoC: rt5514: add rt5514 SPI driver
The device has multiple control interfaces, I2C and SPI. The I2C interface mainly controls the register settings of codec. The SPI interface is in order to provide the high speed transmission of data. For example, high bandwidth memory read/write of DSP. The patch adds the rt5514 SPI driver for loading the firmware of DSP and retrieving the voice data from DSP after the system is waked up by specific voice. Signed-off-by: Oder Chiou <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 1a695a9 commit 6eebf35

File tree

6 files changed

+640
-2
lines changed

6 files changed

+640
-2
lines changed

sound/soc/codecs/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ config SND_SOC_RT298
643643
config SND_SOC_RT5514
644644
tristate
645645

646+
config SND_SOC_RT5514_SPI
647+
tristate
648+
646649
config SND_SOC_RT5616
647650
tristate "Realtek RT5616 CODEC"
648651
depends on I2C

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ snd-soc-rl6347a-objs := rl6347a.o
100100
snd-soc-rt286-objs := rt286.o
101101
snd-soc-rt298-objs := rt298.o
102102
snd-soc-rt5514-objs := rt5514.o
103+
snd-soc-rt5514-spi-objs := rt5514-spi.o
103104
snd-soc-rt5616-objs := rt5616.o
104105
snd-soc-rt5631-objs := rt5631.o
105106
snd-soc-rt5640-objs := rt5640.o
@@ -314,6 +315,7 @@ obj-$(CONFIG_SND_SOC_RL6347A) += snd-soc-rl6347a.o
314315
obj-$(CONFIG_SND_SOC_RT286) += snd-soc-rt286.o
315316
obj-$(CONFIG_SND_SOC_RT298) += snd-soc-rt298.o
316317
obj-$(CONFIG_SND_SOC_RT5514) += snd-soc-rt5514.o
318+
obj-$(CONFIG_SND_SOC_RT5514_SPI) += snd-soc-rt5514-spi.o
317319
obj-$(CONFIG_SND_SOC_RT5616) += snd-soc-rt5616.o
318320
obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o
319321
obj-$(CONFIG_SND_SOC_RT5640) += snd-soc-rt5640.o

0 commit comments

Comments
 (0)