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

Commit 15409212 authored by Dhananjay Kumar's avatar Dhananjay Kumar Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm8952: Add more dai links to support compress capture



Add two more dai links to support upto five compress capture streams.

Change-Id: Ibdc06ea343ebd9fe20eb3260be9c932c684315e1
Signed-off-by: default avatarDhananjay Kumar <dhakumar@codeaurora.org>
parent d9b682f0
Loading
Loading
Loading
Loading
+33 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static struct snd_soc_dai_link msm8952_tasha_fe_dai[] = {
		.codec_name = "snd-soc-dummy",
	},
	/* QCHAT */
	{/* hw:x,42 */
	{/* hw:x,45 */
		.name = "QCHAT",
		.stream_name = "QCHAT",
		.cpu_dai_name = "QCHAT",
@@ -158,6 +158,38 @@ static struct snd_soc_dai_link msm8952_tasha_fe_dai[] = {
		.codec_name = "snd-soc-dummy",
		.be_id = MSM_FRONTEND_DAI_QCHAT,
	},
	{/* hw:x,46 */
		.name = "MSM8X16 Compress13",
		.stream_name = "Compress13",
		.cpu_dai_name	= "MultiMedia28",
		.platform_name  = "msm-compress-dsp",
		.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,
		 /* this dai link has capture support */
		.be_id = MSM_FRONTEND_DAI_MULTIMEDIA28,
	},
	{/* hw:x,47 */
		.name = "MSM8X16 Compress14",
		.stream_name = "Compress14",
		.cpu_dai_name	= "MultiMedia29",
		.platform_name  = "msm-compress-dsp",
		.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,
		 /* this dai link has capture support */
		.be_id = MSM_FRONTEND_DAI_MULTIMEDIA29,
	},
};

static struct snd_soc_dai_link msm8952_tasha_be_dai[] = {
+31 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2333,6 +2333,36 @@ static struct snd_soc_dai_link msm8952_dai[] = {
		.ignore_pmdown_time = 1,
		.be_id = MSM_FRONTEND_DAI_MULTIMEDIA19,
	},
	{/* hw:x,41 */
		.name = "MSM8X16 Compress13",
		.stream_name = "Compress13",
		.cpu_dai_name	= "MultiMedia28",
		.platform_name  = "msm-compress-dsp",
		.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_MULTIMEDIA28,
	},
	{/* hw:x,42 */
		.name = "MSM8X16 Compress14",
		.stream_name = "Compress14",
		.cpu_dai_name	= "MultiMedia29",
		.platform_name  = "msm-compress-dsp",
		.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_MULTIMEDIA29,
	},
	/* Backend I2S DAI Links */
	{
		.name = LPASS_BE_PRI_MI2S_RX,