Skip to contentSkip to conversation

ALSA: hda/tas2781: Add tas2781 HDA driver

PATCH Superseded Shenghao Ding 1 participant 1 message May 2, 2023 Sound

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 ALSA: hda/tas2781: Add tas2781 HDA driver

Create tas2781 HDA driver.

---
Changes in v1:
- Initial
Changes to be committed:

	modified:   sound/pci/hda/Kconfig
	modified:   sound/pci/hda/Makefile
	modified:   sound/pci/hda/patch_realtek.c
	new file:   sound/pci/hda/tas2781_hda_i2c.c
---
 sound/pci/hda/Kconfig           |  15 +
 sound/pci/hda/Makefile          |   2 +
 sound/pci/hda/patch_realtek.c   | 106 ++++-
 sound/pci/hda/tas2781_hda_i2c.c | 805 ++++++++++++++++++++++++++++++++
 4 files changed, 925 insertions(+), 3 deletions(-)
 create mode 100644 sound/pci/hda/tas2781_hda_i2c.c
sound/pci/hda/Kconfig +15 -0
index 886255a03e8b..3cd8358cbf38 100644
@@ -130,6 +130,21 @@ config SND_HDA_SCODEC_CS35L41_SPI
 comment "Set to Y if you want auto-loading the side codec driver"
 	depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
 
+config SND_HDA_SCODEC_TAS2781_I2C
+	tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
+	depends on I2C
+	depends on ACPI
+	depends on SND_SOC
+	select SND_SOC_TAS2781_LIB
+	select FW_TASDEVICE
+	select CRC32_SARWATE
+	help
+	  Say Y or M here to include TAS2781 I2C HD-audio side codec support
+	  in snd-hda-intel driver, such as ALC287.
+
+comment "Set to Y if you want auto-loading the side codec driver"
+	depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
+
 config SND_HDA_CODEC_REALTEK
 	tristate "Build Realtek HD-audio codec support"
 	select SND_HDA_GENERIC
sound/pci/hda/Makefile +2 -0
index 00d306104484..1c76609690d6 100644
@@ -32,6 +32,7 @@ snd-hda-scodec-cs35l41-objs :=		cs35l41_hda.o
 snd-hda-scodec-cs35l41-i2c-objs :=	cs35l41_hda_i2c.o
 snd-hda-scodec-cs35l41-spi-objs :=	cs35l41_hda_spi.o
 snd-hda-cs-dsp-ctls-objs :=		hda_cs_dsp_ctl.o
+snd-hda-scodec-tas2781-i2c-objs :=	tas2781_hda_i2c.o
 
 # common driver
 obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
@@ -56,6 +57,7 @@ obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o
 obj-$(CONFIG_SND_HDA_CS_DSP_CONTROLS) += snd-hda-cs-dsp-ctls.o
+obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o
 
 # this must be the last entry after codec drivers;
 # otherwise the codec patches won't be hooked before the PCI probe
sound/pci/hda/patch_realtek.c +103 -3

159 lines not on this page · raw message

sound/pci/hda/tas2781_hda_i2c.c new file +805 -0

805 lines not on this page · raw message

Signature · 1 line
2.34.1