mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
ASoC: tas2781: Add tas2781 driver
Create tas2781 driver. Signed-off-by: Shenghao Ding <13916275206@139.com> Link: https://lore.kernel.org/r/20230618122819.23143-3-13916275206@139.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
915f5eadeb
commit
ef3bcde75d
@@ -237,6 +237,9 @@ config SND_SOC_ALL_CODECS
|
||||
imply SND_SOC_TAS2764
|
||||
imply SND_SOC_TAS2770
|
||||
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_TAS571X
|
||||
imply SND_SOC_TAS5720
|
||||
@@ -1730,6 +1733,28 @@ config SND_SOC_TAS2780
|
||||
Enable support for Texas Instruments TAS2780 high-efficiency
|
||||
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
|
||||
tristate "Texas Instruments TAS5086 speaker amplifier"
|
||||
depends on I2C
|
||||
|
||||
@@ -273,6 +273,9 @@ snd-soc-tas5805m-objs := tas5805m.o
|
||||
snd-soc-tas6424-objs := tas6424.o
|
||||
snd-soc-tda7419-objs := tda7419.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-tfa989x-objs := tfa989x.o
|
||||
snd-soc-tlv320adc3xxx-objs := tlv320adc3xxx.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_TAS2764) += snd-soc-tas2764.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_TAS571X) += snd-soc-tas571x.o
|
||||
obj-$(CONFIG_SND_SOC_TAS5720) += snd-soc-tas5720.o
|
||||
|
||||
534
sound/soc/codecs/tas2781-comlib.c
Normal file
534
sound/soc/codecs/tas2781-comlib.c
Normal file
File diff suppressed because it is too large
Load Diff
763
sound/soc/codecs/tas2781-i2c.c
Normal file
763
sound/soc/codecs/tas2781-i2c.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user