Skip to content

Commit 7b2f3eb

Browse files
Lucas Tanuretiwai
authored andcommitted
ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems
Add support for CS35L41 using a new separated driver that can be used in all upcoming designs Signed-off-by: Lucas Tanure <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 2aac550 commit 7b2f3eb

File tree

8 files changed

+786
-0
lines changed

8 files changed

+786
-0
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4511,10 +4511,12 @@ F: drivers/media/cec/i2c/ch7322.c
45114511
CIRRUS LOGIC AUDIO CODEC DRIVERS
45124512
M: James Schulman <[email protected]>
45134513
M: David Rhodes <[email protected]>
4514+
M: Lucas Tanure <[email protected]>
45144515
L: [email protected] (moderated for non-subscribers)
45154516
45164517
S: Maintained
45174518
F: Documentation/devicetree/bindings/sound/cirrus,cs*
4519+
F: sound/pci/hda/cs*
45184520
F: sound/soc/codecs/cs*
45194521

45204522
CIRRUS LOGIC DSP FIRMWARE DRIVER

sound/pci/hda/Kconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,35 @@ config SND_HDA_PATCH_LOADER
9191
start up. The "patch" file can be specified via patch module
9292
option, such as patch=hda-init.
9393

94+
config SND_HDA_SCODEC_CS35L41
95+
tristate
96+
97+
config SND_HDA_SCODEC_CS35L41_I2C
98+
tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
99+
depends on ACPI
100+
select SND_HDA_GENERIC
101+
select SND_SOC_CS35L41_LIB
102+
select SND_HDA_SCODEC_CS35L41
103+
help
104+
Say Y or M here to include CS35L41 I2C HD-audio side codec support
105+
in snd-hda-intel driver, such as ALC287.
106+
107+
comment "Set to Y if you want auto-loading the side codec driver"
108+
depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
109+
110+
config SND_HDA_SCODEC_CS35L41_SPI
111+
tristate "Build CS35L41 HD-audio codec support for SPI Bus"
112+
depends on ACPI
113+
select SND_HDA_GENERIC
114+
select SND_SOC_CS35L41_LIB
115+
select SND_HDA_SCODEC_CS35L41
116+
help
117+
Say Y or M here to include CS35L41 SPI HD-audio side codec support
118+
in snd-hda-intel driver, such as ALC287.
119+
120+
comment "Set to Y if you want auto-loading the side codec driver"
121+
depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
122+
94123
config SND_HDA_CODEC_REALTEK
95124
tristate "Build Realtek HD-audio codec support"
96125
select SND_HDA_GENERIC

sound/pci/hda/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ snd-hda-codec-conexant-objs := patch_conexant.o
2727
snd-hda-codec-via-objs := patch_via.o
2828
snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o
2929

30+
# side codecs
31+
snd-hda-scodec-cs35l41-objs := cs35l41_hda.o
32+
snd-hda-scodec-cs35l41-i2c-objs := cs35l41_hda_i2c.o
33+
snd-hda-scodec-cs35l41-spi-objs := cs35l41_hda_spi.o
34+
3035
# common driver
3136
obj-$(CONFIG_SND_HDA) := snd-hda-codec.o
3237

@@ -45,6 +50,11 @@ obj-$(CONFIG_SND_HDA_CODEC_CONEXANT) += snd-hda-codec-conexant.o
4550
obj-$(CONFIG_SND_HDA_CODEC_VIA) += snd-hda-codec-via.o
4651
obj-$(CONFIG_SND_HDA_CODEC_HDMI) += snd-hda-codec-hdmi.o
4752

53+
# side codecs
54+
obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
55+
obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
56+
obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o
57+
4858
# this must be the last entry after codec drivers;
4959
# otherwise the codec patches won't be hooked before the PCI probe
5060
# when built in kernel

0 commit comments

Comments
 (0)