diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2026-10-14 02:59:28 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-15 23:13:22 +0100 |
| commit | 19224d29ffb4e341400cbfcafe07b19a2af97b72 (patch) | |
| tree | 0f6ce910adeaacbf271561b6fd911ad566fc7d51 | |
| parent | 1fec554d55aa41830d7a3c54fce904bbff7e056f (diff) | |
ASoC: soc-component: rename snd_soc_component_async_complete()
snd_soc_component_async_complete() is regmap related function.
Let's add _regmap_ on function name.
It renames function name
- snd_soc_component_async_complete()
+ snd_soc_component_regmap_async_complete()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/877bjlyokw.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | include/sound/soc-component.h | 3 | ||||
| -rw-r--r-- | sound/soc/soc-component.c | 28 |
2 files changed, 16 insertions, 15 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index c287ec6f458e..0839f137a77e 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -305,7 +305,6 @@ int snd_soc_component_update_bits(struct snd_soc_component *component, int snd_soc_component_update_bits_async(struct snd_soc_component *component, unsigned int reg, unsigned int mask, unsigned int val); -void snd_soc_component_async_complete(struct snd_soc_component *component); int snd_soc_component_test_bits(struct snd_soc_component *component, unsigned int reg, unsigned int mask, unsigned int value); @@ -336,6 +335,7 @@ int snd_soc_component_set_bias_level(struct snd_soc_component *component, int snd_soc_component_regmap_val_bytes(struct snd_soc_component *component); int snd_soc_component_regmap_cache_sync(struct snd_soc_component *component); +void snd_soc_component_regmap_async_complete(struct snd_soc_component *component); #ifdef CONFIG_REGMAP void snd_soc_component_init_regmap(struct snd_soc_component *component, struct regmap *regmap); @@ -446,6 +446,7 @@ void snd_soc_pcm_component_delay(struct snd_pcm_substream *substream, /* REMOVE ME */ #define snd_soc_component_cache_sync snd_soc_component_regmap_cache_sync +#define snd_soc_component_async_complete snd_soc_component_regmap_async_complete #define snd_soc_lookup_component_nolocked snd_soc_component_lookup_nolock #define snd_soc_lookup_component snd_soc_component_lookup #define snd_soc_lookup_component_by_name snd_soc_component_lookup_by_name diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 4c2d2dc62f86..07d709385582 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -418,6 +418,20 @@ int snd_soc_component_regmap_cache_sync(struct snd_soc_component *component) } EXPORT_SYMBOL_GPL(snd_soc_component_regmap_cache_sync); +/** + * snd_soc_component_regmap_async_complete() - Ensure asynchronous I/O has completed + * @component: Component for which to wait + * + * This function blocks until all asynchronous I/O which has previously been + * scheduled using snd_soc_component_update_bits_async() has completed. + */ +void snd_soc_component_regmap_async_complete(struct snd_soc_component *component) +{ + if (component->regmap) + regmap_async_complete(component->regmap); +} +EXPORT_SYMBOL_GPL(snd_soc_component_regmap_async_complete); + #ifdef CONFIG_REGMAP /** @@ -923,20 +937,6 @@ int snd_soc_component_write_field(struct snd_soc_component *component, EXPORT_SYMBOL_GPL(snd_soc_component_write_field); /** - * snd_soc_component_async_complete() - Ensure asynchronous I/O has completed - * @component: Component for which to wait - * - * This function blocks until all asynchronous I/O which has previously been - * scheduled using snd_soc_component_update_bits_async() has completed. - */ -void snd_soc_component_async_complete(struct snd_soc_component *component) -{ - if (component->regmap) - regmap_async_complete(component->regmap); -} -EXPORT_SYMBOL_GPL(snd_soc_component_async_complete); - -/** * snd_soc_component_test_bits - Test register for change * @component: component * @reg: Register to test |
