diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2026-08-31 06:38:51 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-09 16:42:38 +0100 |
| commit | 5ffa1b3d7f0450ce830d9a438efeea55b551db25 (patch) | |
| tree | c4cdaacb0b277e3f417f3e89728911e47c26cb7a | |
| parent | b006e4d060b2f92400fc91ecd6c2bc365ba42b3a (diff) | |
| download | linux-next-5ffa1b3d7f0450ce830d9a438efeea55b551db25.tar.gz linux-next-5ffa1b3d7f0450ce830d9a438efeea55b551db25.zip | |
ASoC: soc-dai: move snd_soc_dai_stream_active() to soc-dai.c
DAI parameter will be capsuled soon, will be not enable to access from
soc-dai.h. Move it to soc-dai.c
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87jyp6ssjo.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | include/sound/soc-dai.h | 7 | ||||
| -rw-r--r-- | sound/soc/soc-dai.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index b50368ca6cbf..e7d86c97da75 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -538,12 +538,7 @@ static inline void snd_soc_dai_stream_dma_data_set_s(struct snd_soc_dai *dai, st unsigned int snd_soc_dai_stream_tdm_mask_get(const struct snd_soc_dai *dai, int stream); void snd_soc_dai_stream_tdm_mask_set(struct snd_soc_dai *dai, int stream, unsigned int tdm_mask); -static inline unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai, - int stream) -{ - /* see snd_soc_dai_action() for setup */ - return dai->stream[stream].active; -} +unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai, int stream); static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai, void *data) diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index 125f2103a907..77fd457a94f6 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -1117,6 +1117,13 @@ void snd_soc_dai_stream_tdm_mask_set(struct snd_soc_dai *dai, int stream, unsign } EXPORT_SYMBOL_GPL(snd_soc_dai_stream_tdm_mask_set); +unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai, int stream) +{ + /* see snd_soc_dai_action() for setup */ + return dai->stream[stream].active; +} +EXPORT_SYMBOL_GPL(snd_soc_dai_stream_active); + void snd_soc_dai_unregister(struct snd_soc_dai *dai) { lockdep_assert_held(&client_mutex); |
