Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7b4aa79 authored by Yeleswarapu Nagaradhesh's avatar Yeleswarapu Nagaradhesh
Browse files

ASoC: wcd934x: add wcd934x audio codec driver



Add changes to support wcd934x audio codec.
This driver registers to ALSA framework, supports
basic codec operations like playback and record.

CRs-Fixed: 1041199
Change-Id: I62c53d98b6cd8e750a040f692b164b9bfcf44799
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: default avatarYeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
parent eb8519c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1986,9 +1986,11 @@ Example:
* MSMCOBALT ASoC Machine driver

Required properties:
- compatible : "qcom,msmcobalt-asoc-snd-tasha"
- compatible : "qcom,msmcobalt-asoc-snd-tasha" for tasha codec,
		"qcom,msmcobalt-asoc-snd-tavil" for tavil codec.
- qcom,model : The user-visible name of this sound card.
- qcom,tasha-mclk-clk-freq : MCLK frequency value for tasha codec
- qcom,tavil-mclk-clk-freq : MCLK frequency value for tavil codec
- qcom,audio-routing : A list of the connections between audio components.
- asoc-platform: This is phandle list containing the references to platform device
		 nodes that are used as part of the sound card dai-links.
+3 −4
Original line number Diff line number Diff line
taiko audio CODEC
WCD audio CODEC

Required properties:

 - compatible : "qcom,taiko-slim-pgd" or "qcom,tapan-slim-pgd" for Tapan codec
		or "qcom,tomtom-slim-pgd" for the Tomtom codec
		or "qcom,tasha-slim-pgd" or "qcom,tasha-i2c-pgd" for Tasha Codec
 - compatible : "qcom,tasha-slim-pgd" or "qcom,tasha-i2c-pgd" for Tasha Codec
		or "qcom,tavil-slim-pgd" for Tavil Codec
 - elemental-addr: codec slimbus slave PGD enumeration address.(48 bits)

 - qcom,cdc-reset-gpio: gpio used for codec SOC reset.
+16 −0
Original line number Diff line number Diff line
@@ -1563,6 +1563,22 @@ config WCD9335_CODEC
	  The WCD9335 codec support either I2C/I2S or Slimbus for
	  control and data exchnage with master processor.

config WCD934X_CODEC
	tristate "WCD934X Codec"
	depends on SLIMBUS
	select SOUNDWIRE_WCD_CTRL
	select MFD_CORE
	select WCD9XXX_CODEC_UTIL
	select MSM_CDC_SUPPLY
	select MSM_CDC_PINCTRL
	select REGMAP_ALLOW_WRITE_DEBUGFS
	help
	  Enables the WCD9xxx codec core driver. The core driver provides
	  read/write capability to registers which are part of the
	  WCD934X core and gives the ability to use the WCD934X codec.
	  The WCD934X codec supports either I2C/I2S or Slimbus for
	  control and data exchange with master processor.

menu "Multimedia Capabilities Port drivers"
	depends on ARCH_SA1100

+2 −0
Original line number Diff line number Diff line
@@ -197,6 +197,8 @@ obj-$(CONFIG_WCD9330_CODEC) += wcd9xxx-core.o wcd9xxx-irq.o wcd9xxx-slimslave.o\
						wcd9330-regmap.o
obj-$(CONFIG_WCD9335_CODEC)	+= wcd9xxx-core.o wcd9xxx-irq.o wcd9xxx-slimslave.o\
					wcd9335-regmap.o wcd9335-tables.o
obj-$(CONFIG_WCD934X_CODEC)	+= wcd9xxx-core.o wcd9xxx-irq.o wcd9xxx-slimslave.o\
					wcd934x-regmap.o wcd934x-tables.o
intel-soc-pmic-objs		:= intel_soc_pmic_core.o intel_soc_pmic_crc.o
intel-soc-pmic-$(CONFIG_INTEL_PMC_IPC)	+= intel_soc_pmic_bxtwc.o
obj-$(CONFIG_INTEL_SOC_PMIC)	+= intel-soc-pmic.o
+1860 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading