2019-06-25 07:55:14

by Oleksandr Suvorov

[permalink] [raw]
Subject: [PATCH v2 5/6] 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.

Signed-off-by: Oleksandr Suvorov <[email protected]>
---

include/sound/soc-dapm.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c00a0b8ade086..6c66941601307 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -353,6 +353,8 @@ struct device;
#define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */
#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) \
--
2.20.1


2019-07-11 10:45:46

by Igor Opaniuk

[permalink] [raw]
Subject: Re: [PATCH v2 5/6] ASoC: Define a set of DAPM pre/post-up events

On Tue, Jun 25, 2019 at 10:55 AM Oleksandr Suvorov
<[email protected]> wrote:
>
> Prepare to use SND_SOC_DAPM_PRE_POST_PMU definition to
> reduce coming code size and make it more readable.
>
> Signed-off-by: Oleksandr Suvorov <[email protected]>
> ---
>
> include/sound/soc-dapm.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
> index c00a0b8ade086..6c66941601307 100644
> --- a/include/sound/soc-dapm.h
> +++ b/include/sound/soc-dapm.h
> @@ -353,6 +353,8 @@ struct device;
> #define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */
> #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) \
> --
> 2.20.1
>

Reviewed-by: Igor Opaniuk <[email protected]>

--
Best regards - Freundliche GrĂ¼sse - Meilleures salutations

Senior Development Engineer,
Igor Opaniuk

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48
00 (main line)