Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5be27f1

Browse files
Shenghao-Dingtiwai
authored andcommitted
ALSA: hda/tas2781: Add tas2781 HDA driver
Create tas2781 side codec HDA driver for Lenovo Laptops. The quantity of the speakers has been define in ACPI. All of the tas2781s in the laptop will be aggregated as one audio speaker. The code supports realtek codec as the primary codec. Code offers several controls for digtial/analog gain setting during playback, and other for eq params setting in case of different audio profiles, such as music, voice, movie, etc. [ adjusted patch to be applied to the latest for-next branch -- tiwai ] Signed-off-by: Shenghao Ding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3babae9 commit 5be27f1

File tree

3 files changed

+875
-0
lines changed

3 files changed

+875
-0
lines changed

sound/pci/hda/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@ config SND_HDA_SCODEC_CS35L56_SPI
161161
Say Y or M here to include CS35L56 amplifier support with
162162
SPI control.
163163

164+
config SND_HDA_SCODEC_TAS2781_I2C
165+
tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
166+
depends on I2C
167+
depends on ACPI
168+
depends on SND_SOC
169+
select SND_SOC_TAS2781_COMLIB
170+
select SND_SOC_TAS2781_FMWLIB
171+
select CRC32_SARWATE
172+
help
173+
Say Y or M here to include TAS2781 I2C HD-audio side codec support
174+
in snd-hda-intel driver, such as ALC287.
175+
176+
comment "Set to Y if you want auto-loading the side codec driver"
177+
depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
178+
164179
config SND_HDA_CODEC_REALTEK
165180
tristate "Build Realtek HD-audio codec support"
166181
select SND_HDA_GENERIC

sound/pci/hda/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ snd-hda-scodec-cs35l56-objs := cs35l56_hda.o
3535
snd-hda-scodec-cs35l56-i2c-objs := cs35l56_hda_i2c.o
3636
snd-hda-scodec-cs35l56-spi-objs := cs35l56_hda_spi.o
3737
snd-hda-cs-dsp-ctls-objs := hda_cs_dsp_ctl.o
38+
snd-hda-scodec-tas2781-i2c-objs := tas2781_hda_i2c.o
3839

3940
# common driver
4041
obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
@@ -62,6 +63,7 @@ obj-$(CONFIG_SND_HDA_SCODEC_CS35L56) += snd-hda-scodec-cs35l56.o
6263
obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_I2C) += snd-hda-scodec-cs35l56-i2c.o
6364
obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_SPI) += snd-hda-scodec-cs35l56-spi.o
6465
obj-$(CONFIG_SND_HDA_CS_DSP_CONTROLS) += snd-hda-cs-dsp-ctls.o
66+
obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o
6567

6668
# this must be the last entry after codec drivers;
6769
# otherwise the codec patches won't be hooked before the PCI probe

0 commit comments

Comments
 (0)