Skip to content

Commit

Permalink
ASoC: Add support for CS35L41 in HDA systems
Browse files Browse the repository at this point in the history
Merge series from Lucas Tanure <tanureal@opensource.cirrus.com>:

Initial refactoring to support use of cs35l41 from the HDA driver stack.
  • Loading branch information
Mark Brown committed Dec 31, 2021
2 parents 8b974c1 + e8e4fcc commit 85b57de
Show file tree
Hide file tree
Showing 8 changed files with 1,109 additions and 1,096 deletions.
739 changes: 739 additions & 0 deletions include/sound/cs35l41.h

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -624,21 +624,24 @@ config SND_SOC_CS35L36
tristate "Cirrus Logic CS35L36 CODEC"
depends on I2C

config SND_SOC_CS35L41_LIB
tristate

config SND_SOC_CS35L41
tristate
default y if SND_SOC_CS35L41_SPI=y
default y if SND_SOC_CS35L41_I2C=y
default m if SND_SOC_CS35L41_SPI=m
default m if SND_SOC_CS35L41_I2C=m

config SND_SOC_CS35L41_SPI
tristate "Cirrus Logic CS35L41 CODEC (SPI)"
depends on SPI_MASTER
select SND_SOC_CS35L41_LIB
select SND_SOC_CS35L41
select REGMAP_SPI

config SND_SOC_CS35L41_I2C
tristate "Cirrus Logic CS35L41 CODEC (I2C)"
depends on I2C
select SND_SOC_CS35L41_LIB
select SND_SOC_CS35L41
select REGMAP_I2C

config SND_SOC_CS42L42
Expand Down
4 changes: 3 additions & 1 deletion sound/soc/codecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ snd-soc-cs35l33-objs := cs35l33.o
snd-soc-cs35l34-objs := cs35l34.o
snd-soc-cs35l35-objs := cs35l35.o
snd-soc-cs35l36-objs := cs35l36.o
snd-soc-cs35l41-objs := cs35l41.o cs35l41-tables.o
snd-soc-cs35l41-lib-objs := cs35l41-lib.o
snd-soc-cs35l41-objs := cs35l41.o
snd-soc-cs35l41-spi-objs := cs35l41-spi.o
snd-soc-cs35l41-i2c-objs := cs35l41-i2c.o
snd-soc-cs42l42-objs := cs42l42.o
Expand Down Expand Up @@ -396,6 +397,7 @@ obj-$(CONFIG_SND_SOC_CS35L34) += snd-soc-cs35l34.o
obj-$(CONFIG_SND_SOC_CS35L35) += snd-soc-cs35l35.o
obj-$(CONFIG_SND_SOC_CS35L36) += snd-soc-cs35l36.o
obj-$(CONFIG_SND_SOC_CS35L41) += snd-soc-cs35l41.o
obj-$(CONFIG_SND_SOC_CS35L41_LIB) += snd-soc-cs35l41-lib.o
obj-$(CONFIG_SND_SOC_CS35L41_SPI) += snd-soc-cs35l41-spi.o
obj-$(CONFIG_SND_SOC_CS35L41_I2C) += snd-soc-cs35l41-i2c.o
obj-$(CONFIG_SND_SOC_CS42L42) += snd-soc-cs42l42.o
Expand Down
1 change: 0 additions & 1 deletion sound/soc/codecs/cs35l41-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/platform_device.h>
#include <linux/slab.h>

#include <sound/cs35l41.h>
#include "cs35l41.h"

static const struct i2c_device_id cs35l41_id_i2c[] = {
Expand Down
Loading

0 comments on commit 85b57de

Please sign in to comment.