[alsa-devel] [PATCH] ASoC: soc-core: rename snd_soc_rtdcom_add() to snd_soc_rtd_add_component()

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Dec 18 06:30:30 CET 2019


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

We don't have snd_soc_rtdcom_list anymore.
Let's rename snd_soc_rtdcom_add() to more understandable
snd_soc_rtd_add_component()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
This is based on my previous soc-core cleanup patch-set.

 sound/soc/soc-core.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index f0217b8..554409d 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -257,8 +257,8 @@ static inline void snd_soc_debugfs_exit(void)
 
 #endif
 
-static int snd_soc_rtdcom_add(struct snd_soc_pcm_runtime *rtd,
-			      struct snd_soc_component *component)
+static int snd_soc_rtd_add_component(struct snd_soc_pcm_runtime *rtd,
+				     struct snd_soc_component *component)
 {
 	struct snd_soc_component *comp;
 	int i;
@@ -1010,7 +1010,7 @@ int snd_soc_add_pcm_runtime(struct snd_soc_card *card,
 				 cpu->dai_name);
 			goto _err_defer;
 		}
-		snd_soc_rtdcom_add(rtd, asoc_cpu_dai(rtd, i)->component);
+		snd_soc_rtd_add_component(rtd, asoc_cpu_dai(rtd, i)->component);
 	}
 
 	/* Find CODEC from registered CODECs */
@@ -1022,7 +1022,7 @@ int snd_soc_add_pcm_runtime(struct snd_soc_card *card,
 			goto _err_defer;
 		}
 
-		snd_soc_rtdcom_add(rtd, asoc_codec_dai(rtd, i)->component);
+		snd_soc_rtd_add_component(rtd, asoc_codec_dai(rtd, i)->component);
 	}
 
 	/* Find PLATFORM from registered PLATFORMs */
@@ -1031,7 +1031,7 @@ int snd_soc_add_pcm_runtime(struct snd_soc_card *card,
 			if (!snd_soc_is_matching_component(platform, component))
 				continue;
 
-			snd_soc_rtdcom_add(rtd, component);
+			snd_soc_rtd_add_component(rtd, component);
 		}
 	}
 
-- 
2.7.4



More information about the Alsa-devel mailing list