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

Commit 181100ae authored by Siddartha Shaik's avatar Siddartha Shaik Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm8998: Add dai entries to support loopback



Add required playback and capture DAIs to support
transcode loopback.

CRs-Fixed: 2049714
Change-Id: I1494f1895485ecb8691b8e3fa2cf38e1c1a2d400
Signed-off-by: default avatarSiddartha Shaik <sshaik@codeaurora.org>
parent 362017e0
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -5498,6 +5498,37 @@ static struct snd_soc_dai_link msm_common_misc_fe_dai_links[] = {
		.codec_dai_name = "snd-soc-dummy-dai",
		.codec_name = "snd-soc-dummy",
	},
	{
		.name = MSM_DAILINK_NAME(Transcode Loopback Playback),
		.stream_name = "Transcode Loopback Playback",
		.cpu_dai_name = "MultiMedia14",
		.platform_name = "msm-transcode-loopback",
		.dynamic = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
		.codec_dai_name = "snd-soc-dummy-dai",
		.codec_name = "snd-soc-dummy",
		.ignore_suspend = 1,
		.ignore_pmdown_time = 1,
		 /* this dainlink has playback support */
		.be_id = MSM_FRONTEND_DAI_MULTIMEDIA14,
	},
	{
		.name = MSM_DAILINK_NAME(Transcode Loopback Capture),
		.stream_name = "Transcode Loopback Capture",
		.cpu_dai_name = "MultiMedia18",
		.platform_name = "msm-transcode-loopback",
		.dynamic = 1,
		.dpcm_capture = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
		.codec_dai_name = "snd-soc-dummy-dai",
		.codec_name = "snd-soc-dummy",
		.ignore_suspend = 1,
		.ignore_pmdown_time = 1,
		.be_id = MSM_FRONTEND_DAI_MULTIMEDIA18,
	},
};

static struct snd_soc_dai_link msm_common_be_dai_links[] = {