[PATCH 03/17] ASoC: soc-dai: add snd_soc_component_activity()
Pierre-Louis Bossart
pierre-louis.bossart at linux.intel.com
Mon May 11 21:07:56 CEST 2020
On 5/11/20 12:56 AM, Kuninori Morimoto wrote:
>
> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> ---
> include/sound/soc-component.h | 1 +
> sound/soc/soc-pcm.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
> index 864983b09846..29b0c2c1d2db 100644
> --- a/include/sound/soc-component.h
> +++ b/include/sound/soc-component.h
> @@ -358,6 +358,7 @@ int snd_soc_component_stream_event(struct snd_soc_component *component,
> int event);
> int snd_soc_component_set_bias_level(struct snd_soc_component *component,
> enum snd_soc_bias_level level);
> +#define snd_soc_component_activity(component) ((component)->active)
this patch would need to be added as patch2, before
snd_soc_component_activity() is used to avoid breaking bisection
>
> #ifdef CONFIG_REGMAP
> void snd_soc_component_init_regmap(struct snd_soc_component *component,
> diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
> index e923e3746fec..420595356111 100644
> --- a/sound/soc/soc-pcm.c
> +++ b/sound/soc/soc-pcm.c
> @@ -267,7 +267,7 @@ static void snd_soc_runtime_action(struct snd_soc_pcm_runtime *rtd,
> for_each_rtd_dais(rtd, i, dai) {
> dai->stream_active[stream] += action;
> dai->active += action;
> - dai->component->active += action;
> + snd_soc_component_activity(dai->component) += action;
> }
> }
>
>
More information about the Alsa-devel
mailing list