Skip to content

Commit 154129a

Browse files
Oleksandr Suvorovgregkh
authored andcommitted
ASoC: Define a set of DAPM pre/post-up events
commit cfc8f56 upstream. Prepare to use SND_SOC_DAPM_PRE_POST_PMU definition to reduce coming code size and make it more readable. Cc: [email protected] Signed-off-by: Oleksandr Suvorov <[email protected]> Reviewed-by: Marcel Ziswiler <[email protected]> Reviewed-by: Igor Opaniuk <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent db074ca commit 154129a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/sound/soc-dapm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ struct device;
339339
#define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */
340340
#define SND_SOC_DAPM_PRE_POST_PMD \
341341
(SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)
342+
#define SND_SOC_DAPM_PRE_POST_PMU \
343+
(SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU)
342344

343345
/* convenience event type detection */
344346
#define SND_SOC_DAPM_EVENT_ON(e) \

0 commit comments

Comments
 (0)