aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/nau8315.c
diff options
context:
space:
mode:
authorDavid Lin <CTLIN0@nuvoton.com>2020-11-10 17:58:25 +0800
committerMark Brown <broonie@kernel.org>2020-11-10 14:30:06 +0000
commit9352d45a6e4588b8c7ddded871e08d89e0e6b79f (patch)
tree5d120793c346d022e95d460c80a50dde8802992d /sound/soc/codecs/nau8315.c
parentASoC: nau8315: add codec driver (diff)
downloadwireguard-linux-9352d45a6e4588b8c7ddded871e08d89e0e6b79f.tar.xz
wireguard-linux-9352d45a6e4588b8c7ddded871e08d89e0e6b79f.zip
ASoC: nau8315: revise the power event of EN_PIN dapm widget for symmetry
This patch is to revise the power event of EN_PIN dapm widget for symmetry. Signed-off-by: David Lin <CTLIN0@nuvoton.com> Link: https://lore.kernel.org/r/20201110095823.3512447-1-CTLIN0@nuvoton.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8315.c')
-rw-r--r--sound/soc/codecs/nau8315.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/nau8315.c b/sound/soc/codecs/nau8315.c
index e6bc5c0a5036..2b66e3f7a8b7 100644
--- a/sound/soc/codecs/nau8315.c
+++ b/sound/soc/codecs/nau8315.c
@@ -65,7 +65,7 @@ static int nau8315_enpin_event(struct snd_soc_dapm_widget *w,
struct nau8315_priv *nau8315 =
snd_soc_component_get_drvdata(component);
- if (event & SND_SOC_DAPM_POST_PMU)
+ if (event & SND_SOC_DAPM_PRE_PMU)
nau8315->enpin_switch = 1;
else if (event & SND_SOC_DAPM_POST_PMD)
nau8315->enpin_switch = 0;
@@ -77,7 +77,7 @@ static const struct snd_soc_dapm_widget nau8315_dapm_widgets[] = {
SND_SOC_DAPM_OUTPUT("Speaker"),
SND_SOC_DAPM_OUT_DRV_E("EN_Pin", SND_SOC_NOPM, 0, 0, NULL, 0,
nau8315_enpin_event,
- SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
};
static const struct snd_soc_dapm_route nau8315_dapm_routes[] = {