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

Commit 8fdb762e authored by dojha's avatar dojha Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: modify dai link according to the dai driver



The Listen1 dai link has playback capability set. It does not
match the widget configuration in driver, results in page fault
for playback usecase. So remove the playback capability from
dai links. Remove all undefined capabilities for internal and
external codec dai links.

Change-Id: I64935e89fbc11049049cec579c843af74e7b2035
CRs-Fixed: 1035194
Signed-off-by: default avatardojha <dojha@codeaurora.org>
parent 05a0c86d
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -85,7 +85,6 @@ static struct snd_soc_dai_link msm8952_tasha_fe_dai[] = {
		.codec_dai_name = "tasha_rx2",
		.ignore_suspend = 1,
		.dpcm_playback = 1,
		.dpcm_capture = 1,
		.no_host_mode = SND_SOC_DAI_LINK_NO_HOST,
		.ops = &msm8952_slimbus_2_be_ops,
	},
@@ -225,7 +224,6 @@ static struct snd_soc_dai_link msm8952_tasha_be_dai[] = {
		.codec_dai_name = "tasha_tx1",
		.no_pcm = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.be_id = MSM_BACKEND_DAI_SLIMBUS_3_TX,
		.be_hw_params_fixup = msm_slim_0_tx_be_hw_params_fixup,
		.ops = &msm8952_slimbus_be_ops,
@@ -855,7 +853,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name   = "MultiMedia7",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.codec_dai_name = "snd-soc-dummy-dai",
		.codec_name = "snd-soc-dummy",
@@ -920,7 +917,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia10",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -937,7 +933,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia11",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -954,7 +949,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia12",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -971,7 +965,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia13",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -988,7 +981,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia14",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -1005,7 +997,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia15",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
@@ -1022,7 +1013,6 @@ static struct snd_soc_dai_link msm8952_common_fe_dai[] = {
		.cpu_dai_name	= "MultiMedia16",
		.platform_name  = "msm-compress-dsp",
		.dynamic = 1,
		.dpcm_capture = 1,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			 SND_SOC_DPCM_TRIGGER_POST},
+0 −1
Original line number Diff line number Diff line
@@ -1954,7 +1954,6 @@ static struct snd_soc_dai_link msm8952_dai[] = {
		.cpu_dai_name = "LSM1",
		.platform_name = "msm-lsm-client",
		.dynamic = 1,
		.dpcm_playback = 1,
		.dpcm_capture = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			SND_SOC_DPCM_TRIGGER_POST },