summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongjun Tan <tanzhongjun@coolpad.com>2022-07-08 10:46:51 +0800
committerMark Brown <broonie@kernel.org>2022-07-11 12:06:28 +0100
commit19bb587f3ffcb9c166bac2debdc3b08fb362c0b7 (patch)
tree1486981753c55ecff88f80943edef45dc419d45e
parent7d596d9bb2ae4d0a7a59199792c13ea02f0d2c76 (diff)
downloadlinux-19bb587f3ffcb9c166bac2debdc3b08fb362c0b7.tar.gz
linux-19bb587f3ffcb9c166bac2debdc3b08fb362c0b7.tar.bz2
linux-19bb587f3ffcb9c166bac2debdc3b08fb362c0b7.zip
ASoC: mediatek: mt8186: Remove condition with no effect
Remove condition with no effect Signed-off-by: Zhongjun Tan <tanzhongjun@coolpad.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220708024651.42999-1-hbut_tan@163.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/mediatek/mt8186/mt8186-dai-adda.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
index db71b032770d..6be6d4f3b585 100644
--- a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
+++ b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c
@@ -295,8 +295,6 @@ static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w,
case SND_SOC_DAPM_PRE_PMU:
if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2)
regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x39);
- else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)
- regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x31);
else
regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x31);
break;