Skip to contentSkip to conversation

ASoC: rt700: add rt700 codec driver

PATCH In review [email protected] 3 participants 3 messages Jan 10, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: rt700: add rt700 codec driver

From: Shuming Fan <[email protected]>

This is the initial codec driver for rt700.

---
 sound/soc/codecs/Kconfig     |   10 +
 sound/soc/codecs/Makefile    |    2 +
 sound/soc/codecs/rt700-sdw.c |  551 +++++++++++++++
 sound/soc/codecs/rt700-sdw.h |  335 +++++++++
 sound/soc/codecs/rt700.c     | 1238 ++++++++++++++++++++++++++++++++++
 sound/soc/codecs/rt700.h     |  174 +++++
 6 files changed, 2310 insertions(+)
 create mode 100644 sound/soc/codecs/rt700-sdw.c
 create mode 100644 sound/soc/codecs/rt700-sdw.h
 create mode 100644 sound/soc/codecs/rt700.c
 create mode 100644 sound/soc/codecs/rt700.h
sound/soc/codecs/Kconfig +10 -0
index 65b81888ca3d..7761aeec4d07 100644
@@ -165,6 +165,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_RT5670 if I2C
 	select SND_SOC_RT5677 if I2C && SPI_MASTER
 	select SND_SOC_RT5682 if I2C
+	select SND_SOC_RT700_SDW if SOUNDWIRE
 	select SND_SOC_RT711_SDW if SOUNDWIRE
 	select SND_SOC_SGTL5000 if I2C
 	select SND_SOC_SI476X if MFD_SI476X_CORE
@@ -1060,6 +1061,15 @@ config SND_SOC_RT5677_SPI
 config SND_SOC_RT5682
 	tristate
 
+config SND_SOC_RT700
+	tristate
+
+config SND_SOC_RT700_SDW
+	tristate "Realtek RT700 Codec - SDW"
+	depends on SOUNDWIRE
+	select SND_SOC_RT700
+	select REGMAP_SOUNDWIRE
+
 config SND_SOC_RT711
 	tristate
 
sound/soc/codecs/Makefile +2 -0
index f4dfe033d120..288b7af354a0 100644
@@ -173,6 +173,7 @@ snd-soc-rt5670-objs := rt5670.o
 snd-soc-rt5677-objs := rt5677.o
 snd-soc-rt5677-spi-objs := rt5677-spi.o
 snd-soc-rt5682-objs := rt5682.o
+snd-soc-rt700-objs := rt700.o rt700-sdw.o
 snd-soc-rt711-objs := rt711.o rt711-sdw.o
 snd-soc-sgtl5000-objs := sgtl5000.o
 snd-soc-alc5623-objs := alc5623.o
@@ -466,6 +467,7 @@ obj-$(CONFIG_SND_SOC_RT5670)	+= snd-soc-rt5670.o
 obj-$(CONFIG_SND_SOC_RT5677)	+= snd-soc-rt5677.o
 obj-$(CONFIG_SND_SOC_RT5677_SPI)	+= snd-soc-rt5677-spi.o
 obj-$(CONFIG_SND_SOC_RT5682)	+= snd-soc-rt5682.o
+obj-$(CONFIG_SND_SOC_RT700)     += snd-soc-rt700.o
 obj-$(CONFIG_SND_SOC_RT711)     += snd-soc-rt711.o
 obj-$(CONFIG_SND_SOC_SGTL5000)  += snd-soc-sgtl5000.o
 obj-$(CONFIG_SND_SOC_SIGMADSP)	+= snd-soc-sigmadsp.o
sound/soc/codecs/rt700-sdw.c new file +551 -0

551 lines not on this page · raw message

sound/soc/codecs/rt700-sdw.h new file +335 -0

335 lines not on this page · raw message

sound/soc/codecs/rt700.c new file +1238 -0

1,238 lines not on this page · raw message

sound/soc/codecs/rt700.h new file +174 -0

174 lines not on this page · raw message

Signature · 6 lines
2.24.1

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Tested-by on v1 1/2
#1 lore raw
Quoted 5 lines · On 1/9/20 7:45 PM, [email protected] wrote:

From: Shuming Fan <[email protected]>

This is the initial codec driver for rt700.

This driver has been extensively tested by Intel on all CNL/CML/ICL reference boards, so:

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

maintainer
#2 lore raw

[alsa-devel] Applied "ASoC: rt700: add rt700 codec driver" to the asoc tree

In reply to [email protected]

The patch

ASoC: rt700: add rt700 codec driver

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

From 7d2a5f9ae41e3d3b50cd32b9fb307fab88064daf Mon Sep 17 00:00:00 2001
From: Shuming Fan <[email protected]>
Date: Fri, 10 Jan 2020 09:45:52 +0800
Subject: [PATCH] ASoC: rt700: add rt700 codec driver

This is the initial codec driver for rt700.

---
 sound/soc/codecs/Kconfig     |   10 +
 sound/soc/codecs/Makefile    |    2 +
 sound/soc/codecs/rt700-sdw.c |  551 +++++++++++++++
 sound/soc/codecs/rt700-sdw.h |  335 +++++++++
 sound/soc/codecs/rt700.c     | 1238 ++++++++++++++++++++++++++++++++++
 sound/soc/codecs/rt700.h     |  174 +++++
 6 files changed, 2310 insertions(+)
 create mode 100644 sound/soc/codecs/rt700-sdw.c
 create mode 100644 sound/soc/codecs/rt700-sdw.h
 create mode 100644 sound/soc/codecs/rt700.c
 create mode 100644 sound/soc/codecs/rt700.h
sound/soc/codecs/Kconfig +10 -0
index 65b81888ca3d..7761aeec4d07 100644
@@ -165,6 +165,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_RT5670 if I2C
 	select SND_SOC_RT5677 if I2C && SPI_MASTER
 	select SND_SOC_RT5682 if I2C
+	select SND_SOC_RT700_SDW if SOUNDWIRE
 	select SND_SOC_RT711_SDW if SOUNDWIRE
 	select SND_SOC_SGTL5000 if I2C
 	select SND_SOC_SI476X if MFD_SI476X_CORE
@@ -1060,6 +1061,15 @@ config SND_SOC_RT5677_SPI
 config SND_SOC_RT5682
 	tristate
 
+config SND_SOC_RT700
+	tristate
+
+config SND_SOC_RT700_SDW
+	tristate "Realtek RT700 Codec - SDW"
+	depends on SOUNDWIRE
+	select SND_SOC_RT700
+	select REGMAP_SOUNDWIRE
+
 config SND_SOC_RT711
 	tristate
 
sound/soc/codecs/Makefile +2 -0
index f4dfe033d120..288b7af354a0 100644
@@ -173,6 +173,7 @@ snd-soc-rt5670-objs := rt5670.o
 snd-soc-rt5677-objs := rt5677.o
 snd-soc-rt5677-spi-objs := rt5677-spi.o
 snd-soc-rt5682-objs := rt5682.o
+snd-soc-rt700-objs := rt700.o rt700-sdw.o
 snd-soc-rt711-objs := rt711.o rt711-sdw.o
 snd-soc-sgtl5000-objs := sgtl5000.o
 snd-soc-alc5623-objs := alc5623.o
@@ -466,6 +467,7 @@ obj-$(CONFIG_SND_SOC_RT5670)	+= snd-soc-rt5670.o
 obj-$(CONFIG_SND_SOC_RT5677)	+= snd-soc-rt5677.o
 obj-$(CONFIG_SND_SOC_RT5677_SPI)	+= snd-soc-rt5677-spi.o
 obj-$(CONFIG_SND_SOC_RT5682)	+= snd-soc-rt5682.o
+obj-$(CONFIG_SND_SOC_RT700)     += snd-soc-rt700.o
 obj-$(CONFIG_SND_SOC_RT711)     += snd-soc-rt711.o
 obj-$(CONFIG_SND_SOC_SGTL5000)  += snd-soc-sgtl5000.o
 obj-$(CONFIG_SND_SOC_SIGMADSP)	+= snd-soc-sigmadsp.o
sound/soc/codecs/rt700-sdw.c new file +551 -0

551 lines not on this page · raw message

sound/soc/codecs/rt700-sdw.h new file +335 -0

335 lines not on this page · raw message

sound/soc/codecs/rt700.c new file +1238 -0

1,238 lines not on this page · raw message

sound/soc/codecs/rt700.h new file +174 -0

174 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel