summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-10-14 02:59:14 +0000
committerMark Brown <broonie@kernel.org>2026-10-15 23:13:21 +0100
commit3f78fa38938a972f90fef8d4d2010e5f6fa4557a (patch)
tree985b2e644883e4b9bf76562257cd8c249dcbac71 /include
parent5c904834414c9faa66d507cc3e77ed2197ba6a99 (diff)
ASoC: soc-component: move snd_soc_component_cache_sync() to soc-component.c
struct snd_soc_component will be capsuled soon, its member will not be able to access from non soc-component.c. Move snd_soc_component_cache_sync() to soc-component.c It renames function name - snd_soc_component_cache_sync() + snd_soc_component_regmap_cache_sync() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com> Link: https://patch.msgid.link/87cxtdyol9.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc-component.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 08cb74001fe3..1a5c9d0d386d 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -273,19 +273,6 @@ struct snd_soc_component {
dai = _dai, _dai = snd_soc_dai_from_list(snd_soc_dai_to_list(_dai)->next))
struct snd_soc_dapm_context *snd_soc_component_to_dapm(struct snd_soc_component *component);
-
-/**
- * snd_soc_component_cache_sync() - Sync the register cache with the hardware
- * @component: COMPONENT to sync
- *
- * Note: This function will call regcache_sync()
- */
-static inline int snd_soc_component_cache_sync(
- struct snd_soc_component *component)
-{
- return regcache_sync(component->regmap);
-}
-
struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *name,
const struct snd_soc_component_driver *driver);
int snd_soc_component_register(struct snd_soc_component *component,
@@ -343,6 +330,7 @@ int snd_soc_component_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level);
int snd_soc_component_regmap_val_bytes(struct snd_soc_component *component);
+int snd_soc_component_regmap_cache_sync(struct snd_soc_component *component);
#ifdef CONFIG_REGMAP
void snd_soc_component_init_regmap(struct snd_soc_component *component,
struct regmap *regmap);
@@ -455,4 +443,7 @@ int snd_soc_pcm_component_ack(struct snd_pcm_substream *substream);
void snd_soc_pcm_component_delay(struct snd_pcm_substream *substream,
snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay);
+/* REMOVE ME */
+#define snd_soc_component_cache_sync snd_soc_component_regmap_cache_sync
+
#endif /* __SOC_COMPONENT_H */