diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2026-09-18 01:46:17 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-28 13:33:42 +0100 |
| commit | 885ce49a700c91eb6e173755fdf5dbcd88befa33 (patch) | |
| tree | 7d210fa1ec6612e06c46517f5c2e6421227ab4c3 /include | |
| parent | d47f591c9a8d39b79cbce24055f78dfa8153bf11 (diff) | |
| download | linux-885ce49a700c91eb6e173755fdf5dbcd88befa33.tar.gz linux-885ce49a700c91eb6e173755fdf5dbcd88befa33.zip | |
ASoC: soc-dai: rename snd_soc_dai_action() to snd_soc_dai_active_update()
We have snd_soc_dai_action() to update .active. and in the same time,
we have snd_soc_dai_active() to get .active.
They are confusing name. Let's rename _action() to _active_update().
And in the same time, we have snd_soc_dai_action() and has its wrapper
macro _activate/deactivate(). But callers are using both original/wrapper.
Let's remove wrapper to remove confusion.
It is used only from ASoC framework, let's move it to soc-internal.h
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/87cxubjpqu.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc-dai.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index be4781b61989..c044909ef10d 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -231,18 +231,7 @@ void snd_soc_dai_suspend(struct snd_soc_dai *dai); void snd_soc_dai_resume(struct snd_soc_dai *dai); int snd_soc_dai_compress_new(struct snd_soc_dai *dai, struct snd_soc_pcm_runtime *rtd); bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int stream); -void snd_soc_dai_action(struct snd_soc_dai *dai, - int stream, int action); -static inline void snd_soc_dai_activate(struct snd_soc_dai *dai, - int stream) -{ - snd_soc_dai_action(dai, stream, 1); -} -static inline void snd_soc_dai_deactivate(struct snd_soc_dai *dai, - int stream) -{ - snd_soc_dai_action(dai, stream, -1); -} + int snd_soc_dai_active(const struct snd_soc_dai *dai); int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order); |
