* [PATCH] ASoC: mediatek: mt8192: Simplify if else codes
@ 2021-06-25 12:31 ` 13145886936
0 siblings, 0 replies; 3+ messages in thread
From: 13145886936 @ 2021-06-25 12:31 UTC (permalink / raw)
To: perex, tiwai, matthias.bgg, alsa-devel, linux-arm-kernel, linux-mediatek
Cc: linux-kernel, gushengxian
From: gushengxian <gushengxian@yulong.com>
Simplify if else codes.
Signed-off-by: gushengxian <gushengxian@yulong.com>
---
sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
index f040dce85da5..f8c73e8624df 100644
--- a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
+++ b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
@@ -413,8 +413,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, 0x38);
- else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)
- regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
else
regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ASoC: mediatek: mt8192: Simplify if else codes
@ 2021-06-25 12:31 ` 13145886936
0 siblings, 0 replies; 3+ messages in thread
From: 13145886936 @ 2021-06-25 12:31 UTC (permalink / raw)
To: perex, tiwai, matthias.bgg, alsa-devel, linux-arm-kernel, linux-mediatek
Cc: linux-kernel, gushengxian
From: gushengxian <gushengxian@yulong.com>
Simplify if else codes.
Signed-off-by: gushengxian <gushengxian@yulong.com>
---
sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
index f040dce85da5..f8c73e8624df 100644
--- a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
+++ b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
@@ -413,8 +413,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, 0x38);
- else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)
- regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
else
regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
break;
--
2.25.1
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ASoC: mediatek: mt8192: Simplify if else codes
@ 2021-06-25 12:31 ` 13145886936
0 siblings, 0 replies; 3+ messages in thread
From: 13145886936 @ 2021-06-25 12:31 UTC (permalink / raw)
To: perex, tiwai, matthias.bgg, alsa-devel, linux-arm-kernel, linux-mediatek
Cc: linux-kernel, gushengxian
From: gushengxian <gushengxian@yulong.com>
Simplify if else codes.
Signed-off-by: gushengxian <gushengxian@yulong.com>
---
sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
index f040dce85da5..f8c73e8624df 100644
--- a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
+++ b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c
@@ -413,8 +413,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, 0x38);
- else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)
- regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
else
regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30);
break;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-25 12:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 12:31 [PATCH] ASoC: mediatek: mt8192: Simplify if else codes 13145886936
2021-06-25 12:31 ` 13145886936
2021-06-25 12:31 ` 13145886936
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.