From b03e82dedac5cb6f021181293c700d175e6da890 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Tue, 5 Nov 2019 13:35:01 +0530 Subject: [PATCH] asoc: bolero: Update tx swr clk widget for bolero 2.0 TX_SWR_CLK widget is not needed for bolero 2.1. Update it to retain for bolero 2.0. Change-Id: I2b38fb807460ca31d1e968e0eb69a24ce46a531e Signed-off-by: Laxminath Kasam --- asoc/codecs/bolero/tx-macro.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/asoc/codecs/bolero/tx-macro.c b/asoc/codecs/bolero/tx-macro.c index d27a5cf9f039..7a8497139cb5 100644 --- a/asoc/codecs/bolero/tx-macro.c +++ b/asoc/codecs/bolero/tx-macro.c @@ -1475,10 +1475,6 @@ static const struct snd_soc_dapm_widget tx_macro_dapm_widgets_v2[] = { SND_SOC_DAPM_MIXER("TX_AIF3_CAP Mixer", SND_SOC_NOPM, TX_MACRO_AIF3_CAP, 0, tx_aif3_cap_mixer_v2, ARRAY_SIZE(tx_aif3_cap_mixer_v2)), - - SND_SOC_DAPM_SUPPLY_S("TX_SWR_CLK", 0, SND_SOC_NOPM, 0, 0, - tx_macro_tx_swr_clk_event, - SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), }; static const struct snd_soc_dapm_widget tx_macro_dapm_widgets_v3[] = { @@ -1528,6 +1524,10 @@ static const struct snd_soc_dapm_widget tx_macro_dapm_widgets_v3[] = { SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD), + SND_SOC_DAPM_SUPPLY_S("TX_SWR_CLK", 0, SND_SOC_NOPM, 0, 0, + tx_macro_tx_swr_clk_event, + SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), + SND_SOC_DAPM_SUPPLY_S("VA_SWR_CLK", 0, SND_SOC_NOPM, 0, 0, tx_macro_va_swr_clk_event, SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), @@ -1921,6 +1921,15 @@ static const struct snd_soc_dapm_route tx_audio_map_v3[] = { {"TX SMIC MUX7", "SWR_MIC9", "TX SWR_MIC9"}, {"TX SMIC MUX7", "SWR_MIC10", "TX SWR_MIC10"}, {"TX SMIC MUX7", "SWR_MIC11", "TX SWR_MIC11"}, + + {"TX SMIC MUX0", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX1", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX2", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX3", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX4", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX5", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX6", NULL, "TX_SWR_CLK"}, + {"TX SMIC MUX7", NULL, "TX_SWR_CLK"}, }; static const struct snd_soc_dapm_route tx_audio_map[] = {