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

Commit 38efdccf authored by Gustavo Solaira's avatar Gustavo Solaira
Browse files

ASoC: mdmcalifornium: Add new mdmcalifornium automotive sound card



Add a new mdmcalifornium automotive sound card driver based on
the mdmcalifornium ASoC driver.

Change-Id: I628697b427ea859258698a19bad53a5dfba8d55c
Signed-off-by: default avatarGustavo Solaira <gustavos@codeaurora.org>
parent 4e5df1a2
Loading
Loading
Loading
Loading
+54 −1
Original line number Diff line number Diff line
@@ -2081,6 +2081,59 @@ Example:
		qcom,aux-codec = <&stub_codec>;
	};

* MDMCALIFORNIUM Automotive ASoC Machine driver

- compatible : "qcom,mdm-audio-auto" for auto codec and
		node is "sound-auto"
- qcom,model : The user-visible name of this sound card.
- asoc-platform: This is phandle list containing the references to platform device
		 nodes that are used as part of the sound card dai-links.
- asoc-platform-names: This property contains list of platform names. The order of
		       the platform names should match to that of the phandle order
		       given in "asoc-platform".
- asoc-cpu: This is phandle list containing the references to cpu dai device nodes
	    that are used as part of the sound card dai-links.
- asoc-cpu-names: This property contains list of cpu dai names. The order of the
		  cpu dai names should match to that of the phandle order given
		  in "asoc-cpu". The cpu names are in the form of "%s.%d" form,
		  where the id (%d) field represents the back-end AFE port id that
		  this CPU dai is associated with.
- asoc-codec: This is phandle list containing the references to codec dai device
	      nodes that are used as part of the sound card dai-links.
- asoc-codec-names: This property contains list of codec dai names. The order of the
		    codec dai names should match to that of the phandle order given
		    in "asoc-codec".

Example:

	sound-auto {
		compatible = "qcom,mdm-audio-auto";
		qcom,model = "mdm-auto-i2s-snd-card";

		asoc-platform = <&pcm0>, <&pcm1>, <&voip>, <&voice>,
				<&loopback>, <&hostless>, <&afe>, <&routing>,
				<&pcm_dtmf>, <&host_pcm>;
		asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
				"msm-voip-dsp", "msm-pcm-voice", "msm-pcm-loopback",
				"msm-pcm-hostless", "msm-pcm-afe",
				"msm-pcm-routing", "msm-pcm-dtmf", "msm-voice-host-pcm";
		asoc-cpu = <&dai_pri_auxpcm>, <&mi2s_prim>, <&dtmf_tx>,
				<&rx_capture_tx>, <&rx_playback_rx>,
				<&tx_capture_tx>, <&tx_playback_rx>,
				<&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>,
				<&afe_proxy_tx>, <&incall_record_rx>,
				<&incall_record_tx>, <&incall_music_rx>;
		asoc-cpu-names = "msm-dai-q6-auxpcm.1", "msm-dai-q6-mi2s.0",
				"msm-dai-stub-dev.4", "msm-dai-stub-dev.5",
				"msm-dai-stub-dev.6", "msm-dai-stub-dev.7",
				"msm-dai-stub-dev.8", "msm-dai-q6-dev.224",
				"msm-dai-q6-dev.225", "msm-dai-q6-dev.241",
				"msm-dai-q6-dev.240", "msm-dai-q6-dev.32771",
				"msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773";
		asoc-codec = <&tlv320aic3x_codec>, <&stub_codec>;
		asoc-codec-names = "tlv320aic3x-codec", "msm-stub-codec.1";
	};

* APQ8096 Automotive ASoC Machine driver

Required properties:
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ config SND_SOC_MDMCALIFORNIUM
        select MSM_QDSP6V2_CODECS
        select SND_SOC_WCD9335
        select SND_SOC_WSA881X
        select SND_SOC_TLV320AIC3X
        select SND_HWDEP
        help
         To add support for SoC audio on MDMCALIFORNIUM.
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ snd-soc-msm8x16-objs += msm8952-slimbus.o msm8952-dai-links.o
obj-$(CONFIG_SND_SOC_MSM8X16) += snd-soc-msm8x16.o

# for MDM Californium sound card driver
snd-soc-mdmcalifornium-objs := mdmcalifornium.o
snd-soc-mdmcalifornium-objs := mdmcalifornium.o mdmcalifornium-auto.o
obj-$(CONFIG_SND_SOC_MDMCALIFORNIUM) += snd-soc-mdmcalifornium.o

# for MDM 9607 sound card driver
+1809 −0

File added.

Preview size limit exceeded, changes collapsed.