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

Commit 8c78e6bc authored by Aviral Gupta's avatar Aviral Gupta
Browse files

ASoC: msm: Update the mpq8092 machine driver with the FE and BE



Add the mpq8092 machine driver and add sound card FE and BE

Change-Id: If08ada4a0b7d88761b3f040983f883f670e288bf
Signed-off-by: default avatarAviral Gupta <aviralg@codeaurora.org>
parent e0a9177d
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -799,3 +799,40 @@ sound {
		"DMIC4", "MIC BIAS3 External",
		"MIC BIAS3 External", "Digital Mic4",
};

* MPQ8092 ASoC Machine driver

Required properties:
- compatible : "qti,mpq8092-audio-tabla"
- qti,model : The user-visible name of this sound card.
- qti,audio-routing : A list of the connections between audio components.
  Each entry is a pair of strings, the first being the connection's sink,
  the second being the connection's source.
- qti,cdc-mclk-gpios : GPIO on which mclk signal is comming.
- qti,tabla-mclk-clk-freq : Tabla mclk Freq in Hz.
Optional properties:
- qti,hdmi-audio-rx: specifies if HDMI audio support is enabled or not.

Example:

	sound {
		compatible = "qti,mpq8092-audio-tabla";
		qti,model = "mpq8092-tabla-snd-card";

		qti,audio-routing =
			"RX_BIAS", "MCLK",
			"LDO_H", "MCLK",
			"AMIC1", "MIC BIAS1 External",
			"MIC BIAS1 External", "Handset Mic",
			"AMIC2", "MIC BIAS2 External",
			"MIC BIAS2 External", "Headset Mic",
			"AMIC3", "MIC BIAS3 External",
			"MIC BIAS3 Eternal", "ANCRight Headset Mic",
			"AMIC4", "MIC BIAS1 External",
			"MIC BIAS1 External", "ANCLeft Headset Mic",
                        "HEADPHONE", "LDO_H";

		qti,cdc-mclk-gpios = <&msmgpio 42 0>;
		qti,tabla-mclk-clk-freq = <12288000>;
		qti,hdmi-audio-rx;
	};
+16 −0
Original line number Diff line number Diff line
@@ -168,6 +168,22 @@ config SND_SOC_MSM8660_APQ
        help
         To add support for SoC audio on APQ8060 board

config SND_SOC_MPQ8092
	tristate "SoC Machine driver for MPQ8092 boards"
	depends on ARCH_MPQ8092
	select SND_SOC_QDSP6V2
	select SND_SOC_MSM_STUB
	select SND_SOC_MSM_HOSTLESS_PCM
	select SND_SOC_WCD9310
	select SND_DYNAMIC_MINORS
	select AUDIO_OCMEM
	help
	 To add support for SoC audio on MPQ8092.
	 This will enable sound soc drivers which
	 interfaces with DSP, also it will enable
	 the machine drivers and the corresponding
	 DAI-links.

config SND_SOC_APQ8084
	tristate "SoC Machine driver for APQ8084 boards"
	depends on ARCH_APQ8084
+6 −0
Original line number Diff line number Diff line
@@ -65,6 +65,12 @@ obj-$(CONFIG_SND_SOC_MSM_QDSP6V2_INTF) += qdsp6v2/
snd-soc-msm8x10-objs := msm8x10.o
obj-$(CONFIG_SND_SOC_MSM8X10) += snd-soc-msm8x10.o


# for MPQ 8092 sound card driver
obj-$(CONFIG_SND_SOC_MSM_QDSP6V2_INTF) += qdsp6v2/
snd-soc-mpq8092-objs := mpq8092.o
obj-$(CONFIG_SND_SOC_MPQ8092) += snd-soc-mpq8092.o

#for APQ 8084 sound card driver
snd-soc-apq8084-objs := apq8084.o
obj-$(CONFIG_SND_SOC_APQ8084) += snd-soc-apq8084.o
+1353 −0

File added.

Preview size limit exceeded, changes collapsed.