Skip to contentSkip to conversation

ASoC: tas2783: Add source files for tas2783 soundwire driver

PATCH New Baojun.Xu 1 participant 1 message Aug 1, 2023

Subsystems (3)
lore
Share & tools
lore

Baojun.Xu

author
#0 lore raw

PATCH 1/2 ASoC: tas2783: Add source files for tas2783 soundwire driver

From: Baojun Xu <[email protected]>

Add source file and header file for tas2783 driver. Update Kconfig and Makefile for tas2783 driver.

---
Change in v1:
- Add tas2783-sdw.c
- Add tas2783.h
- Update Makefile for tas2783 driver.
- Update Kconfig for tas2783 driver.

---
 sound/soc/codecs/Kconfig       |   12 +
 sound/soc/codecs/Makefile      |    2 +
 sound/soc/codecs/tas2783-sdw.c | 1166 ++++++++++++++++++++++++++++++++
 sound/soc/codecs/tas2783.h     |  178 +++++
 4 files changed, 1358 insertions(+)
 create mode 100644 sound/soc/codecs/tas2783-sdw.c
 create mode 100644 sound/soc/codecs/tas2783.h
sound/soc/codecs/Kconfig +12 -0
index c2de4ee72183..318ad867030c 100644
@@ -240,6 +240,7 @@ config SND_SOC_ALL_CODECS
 	imply SND_SOC_TAS2781_COMLIB
 	imply SND_SOC_TAS2781_FMWLIB
 	imply SND_SOC_TAS2781_I2C
+	imply SND_SOC_TAS2783
 	imply SND_SOC_TAS5086
 	imply SND_SOC_TAS571X
 	imply SND_SOC_TAS5720
@@ -1762,6 +1763,17 @@ config SND_SOC_TAS5086
 	tristate "Texas Instruments TAS5086 speaker amplifier"
 	depends on I2C
 
+config SND_SOC_TAS2783
+       tristate "Texas Instruments TAS2781 speaker amplifier (sdw)"
+       depends on SOUNDWIRE
+       select REGMAP
+       select CRC8
+       help
+         Enable support for Texas Instruments TAS2783 Smart Amplifier
+         Digital input mono Class-D and DSP-inside audio power amplifiers.
+         Note the TAS2783 driver implements a flexible and configurable
+         algo coff setting, for one, two, even multiple TAS2783 chips.
+
 config SND_SOC_TAS571X
 	tristate "Texas Instruments TAS571x power amplifiers"
 	depends on I2C
sound/soc/codecs/Makefile +2 -0
index b48a9a323b84..3298dfa3b9d5 100644
@@ -276,6 +276,7 @@ snd-soc-tas2770-objs := tas2770.o
 snd-soc-tas2781-comlib-objs := tas2781-comlib.o
 snd-soc-tas2781-fmwlib-objs := tas2781-fmwlib.o
 snd-soc-tas2781-i2c-objs := tas2781-i2c.o
+snd-soc-tas2783-objs := tas2783-sdw.o
 snd-soc-tfa9879-objs := tfa9879.o
 snd-soc-tfa989x-objs := tfa989x.o
 snd-soc-tlv320adc3xxx-objs := tlv320adc3xxx.o
@@ -648,6 +649,7 @@ obj-$(CONFIG_SND_SOC_TAS2780)	+= snd-soc-tas2780.o
 obj-$(CONFIG_SND_SOC_TAS2781_COMLIB)	+= snd-soc-tas2781-comlib.o
 obj-$(CONFIG_SND_SOC_TAS2781_FMWLIB)	+= snd-soc-tas2781-fmwlib.o
 obj-$(CONFIG_SND_SOC_TAS2781_I2C)	+= snd-soc-tas2781-i2c.o
+obj-$(CONFIG_SND_SOC_TAS2783)	+= snd-soc-tas2783.o
 obj-$(CONFIG_SND_SOC_TAS5086)	+= snd-soc-tas5086.o
 obj-$(CONFIG_SND_SOC_TAS571X)	+= snd-soc-tas571x.o
 obj-$(CONFIG_SND_SOC_TAS5720)	+= snd-soc-tas5720.o
sound/soc/codecs/tas2783-sdw.c new file +1165 -0

1,165 lines not on this page · raw message

sound/soc/codecs/tas2783.h new file +178 -0

178 lines not on this page · raw message

Signature · 1 line
2.34.1