]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ASoC: Add SND_SOC_DAPM_PRE_POST_PMD event
authorapatard@mandriva.com <apatard@mandriva.com>
Thu, 27 May 2010 12:57:40 +0000 (14:57 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 31 May 2010 11:20:01 +0000 (12:20 +0100)
Some systems codecs need to configure some registers before and after
powering down some of their part. As a convenience add a macro for that.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dapm.h

index 66ff4c124dbdd9c9e38ae103fc6f97343b1cee59..c5d9987bc897adc5ec87a06ec57cadf2fd627471 100644 (file)
 #define SND_SOC_DAPM_POST_PMD  0x8             /* after widget power down */
 #define SND_SOC_DAPM_PRE_REG   0x10    /* before audio path setup */
 #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)
 
 /* convenience event type detection */
 #define SND_SOC_DAPM_EVENT_ON(e)       \