Skip to content

Commit 4155a82

Browse files
lucaceresolibroonie
authored andcommitted
ASoC: doc: dapm: update event types
Some new event types now exist, so update the code fragment. Reviewed-by: Alexandre Belloni <[email protected]> Signed-off-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ce5a4f1 commit 4155a82

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Documentation/sound/soc/dapm.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,16 @@ See soc-dapm.h for all other widgets that support events.
404404
Event types
405405
-----------
406406

407-
The following event types are supported by event widgets.
408-
::
407+
The following event types are supported by event widgets::
409408

410409
/* dapm event types */
411-
#define SND_SOC_DAPM_PRE_PMU 0x1 /* before widget power up */
412-
#define SND_SOC_DAPM_POST_PMU 0x2 /* after widget power up */
413-
#define SND_SOC_DAPM_PRE_PMD 0x4 /* before widget power down */
414-
#define SND_SOC_DAPM_POST_PMD 0x8 /* after widget power down */
415-
#define SND_SOC_DAPM_PRE_REG 0x10 /* before audio path setup */
416-
#define SND_SOC_DAPM_POST_REG 0x20 /* after audio path setup */
410+
#define SND_SOC_DAPM_PRE_PMU 0x1 /* before widget power up */
411+
#define SND_SOC_DAPM_POST_PMU 0x2 /* after widget power up */
412+
#define SND_SOC_DAPM_PRE_PMD 0x4 /* before widget power down */
413+
#define SND_SOC_DAPM_POST_PMD 0x8 /* after widget power down */
414+
#define SND_SOC_DAPM_PRE_REG 0x10 /* before audio path setup */
415+
#define SND_SOC_DAPM_POST_REG 0x20 /* after audio path setup */
416+
#define SND_SOC_DAPM_WILL_PMU 0x40 /* called at start of sequence */
417+
#define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */
418+
#define SND_SOC_DAPM_PRE_POST_PMD (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)
419+
#define SND_SOC_DAPM_PRE_POST_PMU (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU)

0 commit comments

Comments
 (0)