From 83e6ee1c40c74fd1f3f2986a108a9498d0ec7da9 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Fri, 30 Nov 2018 18:58:31 +0530 Subject: [PATCH] asoc: sm6150: Add TX_CDC_DMA_TX_0 backend dailink TX_CDC_DMA_TX_0 supports three channels, therefore it can be used for rx_macro_echo. Add required backend dailink. Also remove AMIC4 from ignore_suspend as it is not used for talos. Change-Id: I74b7adca9fa4001866232c1a9173e865c2a169c4 Signed-off-by: Vatsal Bucha --- asoc/sm6150.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/asoc/sm6150.c b/asoc/sm6150.c index 02f8fc5eae12..c7dc1f21e062 100644 --- a/asoc/sm6150.c +++ b/asoc/sm6150.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */ #include @@ -7398,6 +7398,20 @@ static struct snd_soc_dai_link msm_rx_tx_cdc_dma_be_dai_links[] = { .ops = &msm_cdc_dma_be_ops, }, /* TX CDC DMA Backend DAI Links */ + { + .name = LPASS_BE_TX_CDC_DMA_TX_0, + .stream_name = "TX CDC DMA0 Capture", + .cpu_dai_name = "msm-dai-cdc-dma-dev.45105", + .platform_name = "msm-pcm-routing", + .codec_name = "bolero_codec", + .codec_dai_name = "rx_macro_echo", + .no_pcm = 1, + .dpcm_capture = 1, + .id = MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, + .be_hw_params_fixup = msm_be_hw_params_fixup, + .ignore_suspend = 1, + .ops = &msm_cdc_dma_be_ops, + }, { .name = LPASS_BE_TX_CDC_DMA_TX_3, .stream_name = "TX CDC DMA3 Capture", @@ -7953,7 +7967,6 @@ static int msm_aux_codec_init(struct snd_soc_component *component) snd_soc_dapm_ignore_suspend(dapm, "AMIC1"); snd_soc_dapm_ignore_suspend(dapm, "AMIC2"); snd_soc_dapm_ignore_suspend(dapm, "AMIC3"); - snd_soc_dapm_ignore_suspend(dapm, "AMIC4"); snd_soc_dapm_sync(dapm); pdata = snd_soc_card_get_drvdata(component->card);