| From f1ebe890b6076434fbe71890ebc10a64fa2edd57 Mon Sep 17 00:00:00 2001 |
| From: Maso Huang <maso.huang@mediatek.com> |
| Date: Wed, 15 Nov 2023 13:37:38 +0800 |
| Subject: [PATCH] sound add si3218x spi driver |
| |
| --- |
| sound/soc/codecs/Kconfig | 9 +++++++++ |
| sound/soc/codecs/Makefile | 5 +++++ |
| 2 files changed, 14 insertions(+) |
| |
| diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig |
| index dfc536c..b5a7b2a 100644 |
| --- a/sound/soc/codecs/Kconfig |
| +++ b/sound/soc/codecs/Kconfig |
| @@ -127,6 +127,7 @@ config SND_SOC_ALL_CODECS |
| select SND_SOC_NAU8822 if I2C |
| select SND_SOC_NAU8824 if I2C |
| select SND_SOC_NAU8825 if I2C |
| + select SND_SOC_SI3218X_SPI |
| select SND_SOC_HDMI_CODEC |
| select SND_SOC_PCM1681 if I2C |
| select SND_SOC_PCM1789_I2C if I2C |
| @@ -1488,6 +1489,14 @@ config SND_SOC_NAU8824 |
| config SND_SOC_NAU8825 |
| tristate |
| |
| +#config SND_SOC_SI3218X |
| +# tristate |
| + |
| +config SND_SOC_SI3218X_SPI |
| + tristate "Proslic SI3218X CODEC - SPI" |
| + depends on SPI |
| +# select SND_SOC_SI3218X |
| + |
| config SND_SOC_TPA6130A2 |
| tristate "Texas Instruments TPA6130A2 headphone amplifier" |
| depends on I2C |
| diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile |
| index c498373..dbd437e 100644 |
| --- a/sound/soc/codecs/Makefile |
| +++ b/sound/soc/codecs/Makefile |
| @@ -176,6 +176,7 @@ snd-soc-alc5632-objs := alc5632.o |
| snd-soc-sigmadsp-objs := sigmadsp.o |
| snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o |
| snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o |
| +snd-soc-si3218x-spi-objs := si3218x-spi.o |
| snd-soc-si476x-objs := si476x.o |
| snd-soc-sirf-audio-codec-objs := sirf-audio-codec.o |
| snd-soc-spdif-tx-objs := spdif_transmitter.o |
| @@ -563,3 +564,7 @@ obj-$(CONFIG_SND_SOC_MAX9877) += snd-soc-max9877.o |
| obj-$(CONFIG_SND_SOC_MAX98504) += snd-soc-max98504.o |
| obj-$(CONFIG_SND_SOC_SIMPLE_AMPLIFIER) += snd-soc-simple-amplifier.o |
| obj-$(CONFIG_SND_SOC_TPA6130A2) += snd-soc-tpa6130a2.o |
| + |
| +# Proslic si3218x |
| +#obj-$(CONFIG_SND_SOC_SI3218X) += si3218x/ |
| +obj-$(CONFIG_SND_SOC_SI3218X_SPI) += snd-soc-si3218x-spi.o |
| -- |
| 2.18.0 |
| |