Skip to content

Commit a61f3b4

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
ASoC: wcd934x: add support to wcd9340/wcd9341 codec
Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC, It supports both I2S/I2C and SLIMbus audio interfaces. On slimbus interface it supports two data lanes; 16 Tx ports and 8 Rx ports. It has Five DACs and seven dedicated interpolators, Seven (six audio ADCs, and one VBAT ADC), Multibutton headset control (MBHC), Active noise cancellation, Sidetone paths, MAD (mic activity detection) and codec processing engine. It supports Class-H differential earpiece out and stereo single ended headphones out. This codec also has integrated SoundWire controller. This patchset adds very basic support for playback and capture via the interpolators and ADC respectively. Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent a6b7487 commit a61f3b4

File tree

3 files changed

+1601
-0
lines changed

3 files changed

+1601
-0
lines changed

sound/soc/codecs/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ config SND_SOC_ALL_CODECS
207207
select SND_SOC_UDA134X
208208
select SND_SOC_UDA1380 if I2C
209209
select SND_SOC_WCD9335 if SLIMBUS
210+
select SND_SOC_WCD934X if MFD_WCD934X
210211
select SND_SOC_WL1273 if MFD_WL1273_CORE
211212
select SND_SOC_WM0010 if SPI_MASTER
212213
select SND_SOC_WM1250_EV1 if I2C
@@ -1275,6 +1276,13 @@ config SND_SOC_WCD9335
12751276
Qualcomm Technologies, Inc. (QTI) multimedia solutions,
12761277
including the MSM8996, MSM8976, and MSM8956 chipsets.
12771278

1279+
config SND_SOC_WCD934X
1280+
tristate "WCD9340/WCD9341 Codec"
1281+
depends on MFD_WCD934X
1282+
help
1283+
The WCD9340/9341 is a audio codec IC Integrated in
1284+
Qualcomm SoCs like SDM845.
1285+
12781286
config SND_SOC_WL1273
12791287
tristate
12801288

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ snd-soc-uda1334-objs := uda1334.o
220220
snd-soc-uda134x-objs := uda134x.o
221221
snd-soc-uda1380-objs := uda1380.o
222222
snd-soc-wcd9335-objs := wcd-clsh-v2.o wcd9335.o
223+
snd-soc-wcd934x-objs := wcd-clsh-v2.o wcd934x.o
223224
snd-soc-wl1273-objs := wl1273.o
224225
snd-soc-wm-adsp-objs := wm_adsp.o
225226
snd-soc-wm0010-objs := wm0010.o
@@ -509,6 +510,7 @@ obj-$(CONFIG_SND_SOC_UDA1334) += snd-soc-uda1334.o
509510
obj-$(CONFIG_SND_SOC_UDA134X) += snd-soc-uda134x.o
510511
obj-$(CONFIG_SND_SOC_UDA1380) += snd-soc-uda1380.o
511512
obj-$(CONFIG_SND_SOC_WCD9335) += snd-soc-wcd9335.o
513+
obj-$(CONFIG_SND_SOC_WCD934X) += snd-soc-wcd934x.o
512514
obj-$(CONFIG_SND_SOC_WL1273) += snd-soc-wl1273.o
513515
obj-$(CONFIG_SND_SOC_WM0010) += snd-soc-wm0010.o
514516
obj-$(CONFIG_SND_SOC_WM1250_EV1) += snd-soc-wm1250-ev1.o

0 commit comments

Comments
 (0)