diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-10-16 04:35:27 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-10-17 14:13:08 +0300 |
| commit | 0d3039f4d2f4a79798d97f2ac1a9656b055b561f (patch) | |
| tree | d9042b7a204f4b44dbe60b5406bb7ed1d7ec73ba /include | |
| parent | cab655772416379a925af9ea85769a9d3eecdba0 (diff) | |
| download | linux-0d3039f4d2f4a79798d97f2ac1a9656b055b561f.tar.xz | |
ASoC: makes snd_soc_set_runtime_hwparams() inline
snd_soc_set_runtime_hwparams() is now doing very simple things.
We can makes it simply inline function, without having EXPORT_SYMBOL_GPL()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87cyk0eso0.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index e6e359c1a2ac..8a1db45988ba 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -541,8 +541,13 @@ int snd_soc_tdm_params_to_bclk(const struct snd_pcm_hw_params *params, int tdm_width, int tdm_slots, int slot_multiple); /* set runtime hw params */ -int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream, - const struct snd_pcm_hardware *hw); +static inline int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream, + const struct snd_pcm_hardware *hw) +{ + substream->runtime->hw = *hw; + + return 0; +} struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component); struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component, |
