Commit ef3bcde7 authored by Shenghao Ding's avatar Shenghao Ding Committed by Mark Brown

ASoC: tas2781: Add tas2781 driver

Create tas2781 driver.
Signed-off-by: default avatarShenghao Ding <13916275206@139.com>
Link: https://lore.kernel.org/r/20230618122819.23143-3-13916275206@139.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 915f5ead
...@@ -237,6 +237,9 @@ config SND_SOC_ALL_CODECS ...@@ -237,6 +237,9 @@ config SND_SOC_ALL_CODECS
imply SND_SOC_TAS2764 imply SND_SOC_TAS2764
imply SND_SOC_TAS2770 imply SND_SOC_TAS2770
imply SND_SOC_TAS2780 imply SND_SOC_TAS2780
imply SND_SOC_TAS2781_COMLIB
imply SND_SOC_TAS2781_FMWLIB
imply SND_SOC_TAS2781_I2C
imply SND_SOC_TAS5086 imply SND_SOC_TAS5086
imply SND_SOC_TAS571X imply SND_SOC_TAS571X
imply SND_SOC_TAS5720 imply SND_SOC_TAS5720
...@@ -1730,6 +1733,28 @@ config SND_SOC_TAS2780 ...@@ -1730,6 +1733,28 @@ config SND_SOC_TAS2780
Enable support for Texas Instruments TAS2780 high-efficiency Enable support for Texas Instruments TAS2780 high-efficiency
digital input mono Class-D audio power amplifiers. digital input mono Class-D audio power amplifiers.
config SND_SOC_TAS2781_COMLIB
depends on I2C
select CRC8
select REGMAP_I2C
tristate
config SND_SOC_TAS2781_FMWLIB
tristate
default n
config SND_SOC_TAS2781_I2C
tristate "Texas Instruments TAS2781 speaker amplifier based on I2C"
depends on I2C
select SND_SOC_TAS2781_COMLIB
select SND_SOC_TAS2781_FMWLIB
help
Enable support for Texas Instruments TAS2781 Smart Amplifier
Digital input mono Class-D and DSP-inside audio power amplifiers.
Note the TAS2781 driver implements a flexible and configurable
algo coefficient setting, for one, two or even multiple TAS2781
chips.
config SND_SOC_TAS5086 config SND_SOC_TAS5086
tristate "Texas Instruments TAS5086 speaker amplifier" tristate "Texas Instruments TAS5086 speaker amplifier"
depends on I2C depends on I2C
......
...@@ -273,6 +273,9 @@ snd-soc-tas5805m-objs := tas5805m.o ...@@ -273,6 +273,9 @@ snd-soc-tas5805m-objs := tas5805m.o
snd-soc-tas6424-objs := tas6424.o snd-soc-tas6424-objs := tas6424.o
snd-soc-tda7419-objs := tda7419.o snd-soc-tda7419-objs := tda7419.o
snd-soc-tas2770-objs := tas2770.o 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-tfa9879-objs := tfa9879.o snd-soc-tfa9879-objs := tfa9879.o
snd-soc-tfa989x-objs := tfa989x.o snd-soc-tfa989x-objs := tfa989x.o
snd-soc-tlv320adc3xxx-objs := tlv320adc3xxx.o snd-soc-tlv320adc3xxx-objs := tlv320adc3xxx.o
...@@ -641,6 +644,9 @@ obj-$(CONFIG_SND_SOC_TAS2552) += snd-soc-tas2552.o ...@@ -641,6 +644,9 @@ obj-$(CONFIG_SND_SOC_TAS2552) += snd-soc-tas2552.o
obj-$(CONFIG_SND_SOC_TAS2562) += snd-soc-tas2562.o obj-$(CONFIG_SND_SOC_TAS2562) += snd-soc-tas2562.o
obj-$(CONFIG_SND_SOC_TAS2764) += snd-soc-tas2764.o obj-$(CONFIG_SND_SOC_TAS2764) += snd-soc-tas2764.o
obj-$(CONFIG_SND_SOC_TAS2780) += snd-soc-tas2780.o 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_TAS5086) += snd-soc-tas5086.o obj-$(CONFIG_SND_SOC_TAS5086) += snd-soc-tas5086.o
obj-$(CONFIG_SND_SOC_TAS571X) += snd-soc-tas571x.o obj-$(CONFIG_SND_SOC_TAS571X) += snd-soc-tas571x.o
obj-$(CONFIG_SND_SOC_TAS5720) += snd-soc-tas5720.o obj-$(CONFIG_SND_SOC_TAS5720) += snd-soc-tas5720.o
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment