summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-05-14 18:28:29 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-05-14 18:42:44 +0300
commitaebc126e35025886ac20012f6602c870660a5a07 (patch)
treecafa01b89a1e3b64dd0f23376c5ad73ce9feb4a7
parent60f67ac489323fff175a9eeef595ea2c15f47518 (diff)
ASoC: Add definition for DAPM up pre/post events set
Define SND_SOC_DAPM_PRE_POST_PMU to reduce code. Related to: #48500 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--include/sound/soc-dapm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 385c6329a967..da9b0a4617ab 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -313,6 +313,8 @@ struct device;
#define SND_SOC_DAPM_POST_REG 0x20 /* after audio path setup */
#define SND_SOC_DAPM_PRE_POST_PMD \
(SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)
+#define SND_SOC_DAPM_PRE_POST_PMU \
+ (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU)
/* convenience event type detection */
#define SND_SOC_DAPM_EVENT_ON(e) \