]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: mediatek: mt8186: Remove condition with no effect
authorZhongjun Tan <tanzhongjun@coolpad.com>
Fri, 8 Jul 2022 02:46:51 +0000 (10:46 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 11 Jul 2022 11:06:28 +0000 (12:06 +0100)
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>
sound/soc/mediatek/mt8186/mt8186-dai-adda.c

index db71b032770dd85c55a3a593cf69b4487bbb3b28..6be6d4f3b585069905d70f0c5b55590bacebf553 100644 (file)
@@ -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;