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-09-09 13:31:23 +0300
commitc299ce7d7cb3859ffab664eee4107f749df1a5ba (patch)
treedbf9c6d2d4deaaaeade816c2fddc6917036ecfed
parent37b9f033652bc7493a4903e0ad7c1bfa17b55cc8 (diff)
ASoC: Define a set of DAPM pre/post-up events
Prepare to use SND_SOC_DAPM_PRE_POST_PMU definition to reduce coming code size and make it more readable. Cc: stable@vger.kernel.org Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Patch-cc: stable Patch-cc: Sasha Levin <sashal@kernel.org> Series-changes: 5 - Add explicit stable tag Series-changes: 4 - CC the patch to kernel-stable Series-changes: 2 - Fix patch formatting
-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 3bfd6e58..79e4bff 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -303,6 +303,8 @@
#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) \