All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] ASoC: rename DAI/Component list name
@ 2026-11-26 23:57 Kuninori Morimoto
  2026-11-26 23:57 ` [PATCH 01/11] ASoC: soc-dai: rename list to dai_list Kuninori Morimoto
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:57 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga


Hi Mark

I'm now posting ASoC Capsuling patches.
Current status, and this patch-set postion is below.
This patch-set renames each list name

x: done
o: This patch-set

[x] move DAI functions
[x] add new DAI functions
[x] move Component functions
[x] move Card functions
[x] add new Component functions
[o] rename DAI/Component list name
[ ] move Card functions v2
[ ] add new Card functions
[ ] adjust Test
[ ] use new Card register
[ ] use new functions on all drivers
[ ] Capsule DAI/Component/Card


Kuninori Morimoto (11):
  ASoC: soc-dai: rename list to dai_list
  ASoC: soc-component: rename card_aux_list to aux_list
  ASoC: soc-component: rename list to component_total_list
  ASoC: soc-component: rename card_list to component_list
  ASoC: soc-core: rename list to rtd_list
  ASoC: soc-core: rename list to unbind_list
  ASoC: soc-dapm: rename list to dobj_list
  ASoC: soc-dapm: rename list to widget_list
  ASoC: soc-dapm: rename list to path_list
  ASoC: soc-dapm: rename list to dapm_list
  ASoC: soc-dapm: rename darty to dapm_darty_list

 drivers/staging/greybus/audio_helper.c   | 10 +++---
 include/sound/soc-component.h            | 34 +++++++++----------
 include/sound/soc-dai.h                  |  6 ++--
 include/sound/soc-dapm.h                 |  6 ++--
 include/sound/soc-topology.h             |  2 +-
 include/sound/soc.h                      | 34 +++++++++----------
 sound/soc/codecs/wm8960.c                |  2 +-
 sound/soc/fsl/fsl-asoc-card.c            |  4 +--
 sound/soc/fsl/imx-rpmsg.c                |  4 +--
 sound/soc/intel/atom/sst-atom-controls.c |  4 +--
 sound/soc/soc-card.c                     | 16 ++++-----
 sound/soc/soc-component.c                | 28 ++++++++--------
 sound/soc/soc-core.c                     | 22 ++++++-------
 sound/soc/soc-dai.c                      | 14 ++++----
 sound/soc/soc-dapm.c                     | 38 ++++++++++-----------
 sound/soc/soc-internal.h                 |  4 +--
 sound/soc/soc-topology.c                 | 42 ++++++++++++------------
 17 files changed, 134 insertions(+), 136 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 01/11] ASoC: soc-dai: rename list to dai_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
@ 2026-11-26 23:57 ` Kuninori Morimoto
  2026-11-26 23:57 ` [PATCH 02/11] ASoC: soc-component: rename card_aux_list to aux_list Kuninori Morimoto
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:57 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAI is using "list" to connecting to "dai_list".

It is unclear and confusable naming. Let's rename it as
"dai_list" and "dai_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h | 23 +++++++++++------------
 include/sound/soc-dai.h       |  6 +++---
 sound/soc/soc-component.c     |  6 +++---
 sound/soc/soc-dai.c           | 14 +++++++-------
 4 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 8314a2e8df55f..a5fc083055ce5 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -221,14 +221,13 @@ struct snd_soc_component {
 	struct list_head list;
 	struct list_head card_aux_list; /* for auxiliary bound components */
 	struct list_head card_list;
+	struct list_head dai_list_head;
+	int num_dai;
 
 	struct device_link *card_device_link;
 
 	const struct snd_soc_component_driver *driver;
 
-	struct list_head dai_list;
-	int num_dai;
-
 	struct regmap *regmap;
 
 	struct mutex io_mutex;
@@ -261,16 +260,16 @@ struct snd_soc_component {
 	void *priv;
 };
 
-#define for_each_component_dais(component, dai)				\
-	for (dai = snd_soc_dai_from_list((component)->dai_list.next);	\
-	     snd_soc_dai_to_list(dai) != &(component)->dai_list;	\
-	     dai = snd_soc_dai_from_list(snd_soc_dai_to_list(dai)->next))
+#define for_each_component_dais(component, dai)					\
+	for (dai = snd_soc_dai_from_dai_list((component)->dai_list_head.next);	\
+	     snd_soc_dai_to_dai_list(dai) != &(component)->dai_list_head;	\
+	     dai = snd_soc_dai_from_dai_list(snd_soc_dai_to_dai_list(dai)->next))
 
-#define for_each_component_dais_safe(component, dai, _dai)			\
-	for (dai = snd_soc_dai_from_list((component)->dai_list.next),		\
-	     _dai = snd_soc_dai_from_list(snd_soc_dai_to_list(dai)->next);	\
-	     snd_soc_dai_to_list(dai) != &(component)->dai_list;		\
-	     dai = _dai, _dai = snd_soc_dai_from_list(snd_soc_dai_to_list(_dai)->next))
+#define for_each_component_dais_safe(component, dai, _dai)				\
+	for (dai = snd_soc_dai_from_dai_list((component)->dai_list_head.next),		\
+	     _dai = snd_soc_dai_from_dai_list(snd_soc_dai_to_dai_list(dai)->next);	\
+	     snd_soc_dai_to_dai_list(dai) != &(component)->dai_list_head;		\
+	     dai = _dai, _dai = snd_soc_dai_from_dai_list(snd_soc_dai_to_dai_list(_dai)->next))
 
 struct device *snd_soc_component_to_dev(struct snd_soc_component *component);
 struct snd_soc_dapm_context *snd_soc_component_to_dapm(struct snd_soc_component *component);
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index aeac0de0c4f09..6ccfcd5002371 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -469,7 +469,7 @@ struct snd_soc_dai {
 	/* parent platform/codec */
 	struct snd_soc_component *component;
 
-	struct list_head list;
+	struct list_head dai_list;
 
 	/* function mark */
 	struct snd_pcm_substream *mark_startup;
@@ -548,8 +548,8 @@ struct snd_soc_dai *snd_soc_dai_register(struct snd_soc_component *component,
 					 struct snd_soc_dai_driver *dai_drv,
 					 bool legacy_dai_naming);
 void snd_soc_dai_unregister(struct snd_soc_dai *dai);
-struct snd_soc_dai *snd_soc_dai_from_list(struct list_head *list);
-struct list_head *snd_soc_dai_to_list(struct snd_soc_dai *dai);
+struct snd_soc_dai *snd_soc_dai_from_dai_list(struct list_head *list);
+struct list_head *snd_soc_dai_to_dai_list(struct snd_soc_dai *dai);
 unsigned int snd_soc_dai_get_symmetric_rate(struct snd_soc_dai *dai);
 unsigned int snd_soc_dai_get_symmetric_channels(struct snd_soc_dai *dai);
 unsigned int snd_soc_dai_get_symmetric_sample_bits(struct snd_soc_dai *dai);
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index de3218bb2b2a8..21d6579a6dfd6 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -117,8 +117,8 @@ EXPORT_SYMBOL_GPL(snd_soc_component_num_dai);
 
 void snd_soc_component_connect_dai(struct snd_soc_component *component, struct snd_soc_dai *dai)
 {
-	/* dai->list <-> component->dai_list */
-	list_add_tail(snd_soc_dai_to_list(dai), &component->dai_list);
+	/* dai->dai_list <-> component->dai_list_head */
+	list_add_tail(snd_soc_dai_to_dai_list(dai), &component->dai_list_head);
 	component->num_dai++;
 }
 
@@ -1782,7 +1782,7 @@ struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *
 	component->name = name;
 	component->driver = driver;
 
-	INIT_LIST_HEAD(&component->dai_list);
+	INIT_LIST_HEAD(&component->dai_list_head);
 	INIT_LIST_HEAD(&component->dobj_list);
 	INIT_LIST_HEAD(&component->card_list);
 	INIT_LIST_HEAD(&component->list);
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c
index 73aea7291fa73..6db677df91b60 100644
--- a/sound/soc/soc-dai.c
+++ b/sound/soc/soc-dai.c
@@ -44,17 +44,17 @@ void *snd_soc_dai_to_priv(struct snd_soc_dai *dai)
 }
 EXPORT_SYMBOL_GPL(snd_soc_dai_to_priv);
 
-struct snd_soc_dai *snd_soc_dai_from_list(struct list_head *list)
+struct snd_soc_dai *snd_soc_dai_from_dai_list(struct list_head *list)
 {
-	return list_entry(list, struct snd_soc_dai, list);
+	return list_entry(list, struct snd_soc_dai, dai_list);
 }
-EXPORT_SYMBOL_GPL(snd_soc_dai_from_list);
+EXPORT_SYMBOL_GPL(snd_soc_dai_from_dai_list);
 
-struct list_head *snd_soc_dai_to_list(struct snd_soc_dai *dai)
+struct list_head *snd_soc_dai_to_dai_list(struct snd_soc_dai *dai)
 {
-	return &dai->list;
+	return &dai->dai_list;
 }
-EXPORT_SYMBOL_GPL(snd_soc_dai_to_list);
+EXPORT_SYMBOL_GPL(snd_soc_dai_to_dai_list);
 
 /*
  * We might want to check substream by using list.
@@ -1210,7 +1210,7 @@ void snd_soc_dai_unregister(struct snd_soc_dai *dai)
 	lockdep_assert_held(&client_mutex);
 
 	dev_dbg(dai->dev, "ASoC: Unregistered DAI '%s'\n", dai->name);
-	list_del(&dai->list);
+	list_del(&dai->dai_list);
 }
 EXPORT_SYMBOL_GPL(snd_soc_dai_unregister);
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 02/11] ASoC: soc-component: rename card_aux_list to aux_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
  2026-11-26 23:57 ` [PATCH 01/11] ASoC: soc-dai: rename list to dai_list Kuninori Morimoto
@ 2026-11-26 23:57 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 03/11] ASoC: soc-component: rename list to component_total_list Kuninori Morimoto
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:57 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current Component is using "card_aux_list" to connecting to
"aux_comp_list".

It is unclear and confusable naming. Let's rename it as
"aux_list" and "aux_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h | 2 +-
 include/sound/soc.h           | 6 +++---
 sound/soc/soc-card.c          | 4 ++--
 sound/soc/soc-component.c     | 2 +-
 sound/soc/soc-core.c          | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index a5fc083055ce5..72513e62f7511 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -219,7 +219,7 @@ struct snd_soc_component {
 	unsigned int suspended:1; /* is in suspend PM state */
 
 	struct list_head list;
-	struct list_head card_aux_list; /* for auxiliary bound components */
+	struct list_head aux_list;		/* for auxiliary bound components */
 	struct list_head card_list;
 	struct list_head dai_list_head;
 	int num_dai;
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 5abebfa329b52..0a184462763d5 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1015,7 +1015,7 @@ struct snd_soc_card {
 	 */
 	struct snd_soc_aux_dev *aux_dev;
 	int num_aux_devs;
-	struct list_head aux_comp_list;
+	struct list_head aux_list_head;
 
 	const struct snd_kcontrol_new *controls;
 	int num_controls;
@@ -1080,10 +1080,10 @@ struct snd_soc_card {
 	list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list, list)
 
 #define for_each_card_auxs(card, component)			\
-	list_for_each_entry(component, &card->aux_comp_list, card_aux_list)
+	list_for_each_entry(component, &card->aux_list_head, aux_list)
 #define for_each_card_auxs_safe(card, component, _comp)	\
 	list_for_each_entry_safe(component, _comp,	\
-				 &card->aux_comp_list, card_aux_list)
+				 &card->aux_list_head, aux_list)
 
 #define for_each_card_components(card, component)			\
 	list_for_each_entry(component, &(card)->component_dev_list, card_list)
diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
index 079312216a3b2..e0f617077ee80 100644
--- a/sound/soc/soc-card.c
+++ b/sound/soc/soc-card.c
@@ -248,7 +248,7 @@ static void snd_soc_card_aux_unbind(struct snd_soc_card *card)
 	for_each_card_auxs_safe(card, component, _component) {
 		/* for snd_soc_component_init() */
 		snd_soc_component_set_aux(component, NULL);
-		list_del(&component->card_aux_list);
+		list_del(&component->aux_list);
 	}
 }
 
@@ -267,7 +267,7 @@ static int snd_soc_card_aux_bind(struct snd_soc_card *card)
 		/* for snd_soc_component_init() */
 		snd_soc_component_set_aux(component, aux);
 		/* see for_each_card_auxs */
-		list_add(&component->card_aux_list, &card->aux_comp_list);
+		list_add(&component->aux_list, &card->aux_list_head);
 	}
 	return 0;
 }
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index 21d6579a6dfd6..eedf8a6d312ba 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -1785,8 +1785,8 @@ struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *
 	INIT_LIST_HEAD(&component->dai_list_head);
 	INIT_LIST_HEAD(&component->dobj_list);
 	INIT_LIST_HEAD(&component->card_list);
+	INIT_LIST_HEAD(&component->aux_list);
 	INIT_LIST_HEAD(&component->list);
-	INIT_LIST_HEAD(&component->card_aux_list);
 	mutex_init(&component->io_mutex);
 
 	return component;
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 894a81b2d9836..47a5d71da0fcc 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1279,7 +1279,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	INIT_LIST_HEAD(&card->widgets);
 	INIT_LIST_HEAD(&card->paths);
 	INIT_LIST_HEAD(&card->dapm_list);
-	INIT_LIST_HEAD(&card->aux_comp_list);
+	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_dev_list);
 	INIT_LIST_HEAD(&card->list);
 	INIT_LIST_HEAD(&card->rtd_list);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 03/11] ASoC: soc-component: rename list to component_total_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
  2026-11-26 23:57 ` [PATCH 01/11] ASoC: soc-dai: rename list to dai_list Kuninori Morimoto
  2026-11-26 23:57 ` [PATCH 02/11] ASoC: soc-component: rename card_aux_list to aux_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 04/11] ASoC: soc-component: rename card_list to component_list Kuninori Morimoto
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current Component is using "list" to connecting to "component_list".

It is unclear and confusable naming. Let's rename it as
"component_total_list" and "component_total_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h |  2 +-
 sound/soc/soc-component.c     | 12 ++++++------
 sound/soc/soc-internal.h      |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 72513e62f7511..cb7f5d6c6017e 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -218,7 +218,7 @@ struct snd_soc_component {
 
 	unsigned int suspended:1; /* is in suspend PM state */
 
-	struct list_head list;
+	struct list_head component_total_list;
 	struct list_head aux_list;		/* for auxiliary bound components */
 	struct list_head card_list;
 	struct list_head dai_list_head;
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index eedf8a6d312ba..06e14f368ceb3 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -31,10 +31,10 @@ static inline int _soc_component_ret_reg_rw(struct snd_soc_component *component,
 			   func, component->name, reg);
 }
 
-static LIST_HEAD(component_list);
-struct list_head *snd_soc_component_get_list_head(void)
+static LIST_HEAD(component_total_list_head);
+struct list_head *snd_soc_component_total_list_head(void)
 {
-	return &component_list;
+	return &component_total_list_head;
 }
 
 const char *snd_soc_component_name(struct snd_soc_component *component)
@@ -1786,7 +1786,7 @@ struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *
 	INIT_LIST_HEAD(&component->dobj_list);
 	INIT_LIST_HEAD(&component->card_list);
 	INIT_LIST_HEAD(&component->aux_list);
-	INIT_LIST_HEAD(&component->list);
+	INIT_LIST_HEAD(&component->component_total_list);
 	mutex_init(&component->io_mutex);
 
 	return component;
@@ -1802,7 +1802,7 @@ static void snd_soc_component_unregister_unlocked(struct snd_soc_component *comp
 	if (card)
 		snd_soc_card_unbind(card, true);
 
-	list_del(&component->list);
+	list_del(&component->component_total_list);
 }
 
 void snd_soc_component_unregister(struct snd_soc_component *component)
@@ -1842,7 +1842,7 @@ int snd_soc_component_register(struct snd_soc_component *component,
 	}
 
 	/* see for_each_component */
-	list_add(&component->list, snd_soc_component_get_list_head());
+	list_add(&component->component_total_list, snd_soc_component_total_list_head());
 
 	snd_soc_card_rebind();
 
diff --git a/sound/soc/soc-internal.h b/sound/soc/soc-internal.h
index e713d13543b2d..b6226af38f6d9 100644
--- a/sound/soc/soc-internal.h
+++ b/sound/soc/soc-internal.h
@@ -68,13 +68,13 @@ bool snd_soc_component_matches_dlc(struct snd_soc_component *component,
 				   const struct snd_soc_dai_link_component *dlc);
 void snd_soc_component_remove(struct snd_soc_component *component, int probed);
 int snd_soc_component_probe(struct snd_soc_component *component, struct snd_soc_card *card);
-struct list_head *snd_soc_component_get_list_head(void);
+struct list_head *snd_soc_component_total_list_head(void);
 void snd_soc_component_connect_dai(struct snd_soc_component *component, struct snd_soc_dai *dai);
 void snd_soc_component_active_update(struct snd_soc_component *component, int action);
 void snd_soc_component_device_link_del(struct snd_soc_component *component);
 int snd_soc_component_device_link_add(struct snd_soc_component *component);
 
 #define for_each_component(component)					\
-	list_for_each_entry(component, snd_soc_component_get_list_head(), list)
+	list_for_each_entry(component, snd_soc_component_total_list_head(), component_total_list)
 
 #endif /* __SOC_INTERNAL_H */
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 04/11] ASoC: soc-component: rename card_list to component_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (2 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 03/11] ASoC: soc-component: rename list to component_total_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 05/11] ASoC: soc-core: rename list to rtd_list Kuninori Morimoto
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current Component is using "card_list" to connecting to "component_dev_list".
But it is for Card connected Component list.

It is unclear and confusable naming. Let's rename it as
"component_list" and "component_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h | 2 +-
 include/sound/soc.h           | 4 ++--
 sound/soc/soc-component.c     | 6 +++---
 sound/soc/soc-core.c          | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index cb7f5d6c6017e..875c532034652 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -219,8 +219,8 @@ struct snd_soc_component {
 	unsigned int suspended:1; /* is in suspend PM state */
 
 	struct list_head component_total_list;
+	struct list_head component_list;
 	struct list_head aux_list;		/* for auxiliary bound components */
-	struct list_head card_list;
 	struct list_head dai_list_head;
 	int num_dai;
 
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 0a184462763d5..a08c0e01cfd9a 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1038,7 +1038,7 @@ struct snd_soc_card {
 	int num_of_ignore_suspend_widgets;
 
 	/* lists of probed devices belonging to this card */
-	struct list_head component_dev_list;
+	struct list_head component_list_head;
 	struct list_head list;
 
 	struct list_head widgets;
@@ -1086,7 +1086,7 @@ struct snd_soc_card {
 				 &card->aux_list_head, aux_list)
 
 #define for_each_card_components(card, component)			\
-	list_for_each_entry(component, &(card)->component_dev_list, card_list)
+	list_for_each_entry(component, &(card)->component_list_head, component_list)
 
 #define for_each_card_dapms(card, dapm)					\
 	list_for_each_entry(dapm, &card->dapm_list, list)
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index 06e14f368ceb3..10f9b61fef656 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -1529,7 +1529,7 @@ void snd_soc_component_remove(struct snd_soc_component *component, int probed)
 	if (probed && component->driver->remove)
 		component->driver->remove(component);
 
-	list_del_init(&component->card_list);
+	list_del_init(&component->component_list);
 	snd_soc_dapm_free(snd_soc_component_to_dapm(component));
 	snd_soc_component_debugfs_cleanup(component);
 	component->card = NULL;
@@ -1620,7 +1620,7 @@ int snd_soc_component_probe(struct snd_soc_component *component, struct snd_soc_
 		goto err_probe;
 
 	/* see for_each_card_components */
-	list_add(&component->card_list, &card->component_dev_list);
+	list_add(&component->component_list, &card->component_list_head);
 
 err_probe:
 	if (ret < 0)
@@ -1784,7 +1784,7 @@ struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *
 
 	INIT_LIST_HEAD(&component->dai_list_head);
 	INIT_LIST_HEAD(&component->dobj_list);
-	INIT_LIST_HEAD(&component->card_list);
+	INIT_LIST_HEAD(&component->component_list);
 	INIT_LIST_HEAD(&component->aux_list);
 	INIT_LIST_HEAD(&component->component_total_list);
 	mutex_init(&component->io_mutex);
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 47a5d71da0fcc..2b95a905c711c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1280,7 +1280,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	INIT_LIST_HEAD(&card->paths);
 	INIT_LIST_HEAD(&card->dapm_list);
 	INIT_LIST_HEAD(&card->aux_list_head);
-	INIT_LIST_HEAD(&card->component_dev_list);
+	INIT_LIST_HEAD(&card->component_list_head);
 	INIT_LIST_HEAD(&card->list);
 	INIT_LIST_HEAD(&card->rtd_list);
 	INIT_LIST_HEAD(&card->dapm_dirty);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 05/11] ASoC: soc-core: rename list to rtd_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (3 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 04/11] ASoC: soc-component: rename card_list to component_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 06/11] ASoC: soc-core: rename list to unbind_list Kuninori Morimoto
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current rtd is using "list" to connecting to "rtd_list".

It is unclear and confusable naming. Let's rename it as
"rtd_list" and "rtd_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc.h           | 8 ++++----
 sound/soc/fsl/fsl-asoc-card.c | 4 ++--
 sound/soc/fsl/imx-rpmsg.c     | 4 ++--
 sound/soc/soc-core.c          | 8 ++++----
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index a08c0e01cfd9a..290be882ecab7 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1002,7 +1002,7 @@ struct snd_soc_card {
 	struct snd_soc_dai_link *dai_link;  /* predefined links only */
 	int num_links;  /* predefined links only */
 
-	struct list_head rtd_list;
+	struct list_head rtd_list_head;
 	int num_rtd;
 
 	/* optional codec specific configuration */
@@ -1075,9 +1075,9 @@ struct snd_soc_card {
 	     (i)++)
 
 #define for_each_card_rtds(card, rtd)			\
-	list_for_each_entry(rtd, &(card)->rtd_list, list)
+	list_for_each_entry(rtd, &(card)->rtd_list_head, rtd_list)
 #define for_each_card_rtds_safe(card, rtd, _rtd)	\
-	list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list, list)
+	list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list_head, rtd_list)
 
 #define for_each_card_auxs(card, component)			\
 	list_for_each_entry(component, &card->aux_list_head, aux_list)
@@ -1142,7 +1142,7 @@ struct snd_soc_pcm_runtime {
 #endif
 
 	unsigned int id; /* 0-based and monotonic increasing */
-	struct list_head list; /* rtd list of the soc card */
+	struct list_head rtd_list; /* rtd list of the soc card */
 
 	/* function mark */
 	struct snd_pcm_substream *mark_startup;
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index c2a112506d701..c21bd0da145a2 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -1030,8 +1030,8 @@ static int fsl_asoc_card_late_probe(struct snd_soc_card *card)
 	int ret;
 
 	/* Use the first rtd which carries the CPU+codec DAIs */
-	rtd = list_first_entry(&card->rtd_list,
-			       struct snd_soc_pcm_runtime, list);
+	rtd = list_first_entry(&card->rtd_list_head,
+			       struct snd_soc_pcm_runtime, rtd_list);
 
 	ret = fsl_asoc_card_init_jack(card);
 	if (ret)
diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c
index f6a2633bb812d..31ae8e9feb785 100644
--- a/sound/soc/fsl/imx-rpmsg.c
+++ b/sound/soc/fsl/imx-rpmsg.c
@@ -82,8 +82,8 @@ static const struct snd_soc_ops imx_rpmsg_ops = {
 static int imx_rpmsg_late_probe(struct snd_soc_card *card)
 {
 	struct imx_rpmsg *data = snd_soc_card_get_drvdata(card);
-	struct snd_soc_pcm_runtime *rtd = list_first_entry(&card->rtd_list,
-							   struct snd_soc_pcm_runtime, list);
+	struct snd_soc_pcm_runtime *rtd = list_first_entry(&card->rtd_list_head,
+							   struct snd_soc_pcm_runtime, rtd_list);
 	struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
 	struct device *dev = card->dev;
 	int ret;
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 2b95a905c711c..00d50ef50a3b0 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -297,7 +297,7 @@ static void soc_free_pcm_runtime(struct snd_soc_pcm_runtime *rtd)
 	if (!rtd)
 		return;
 
-	list_del(&rtd->list);
+	list_del(&rtd->rtd_list);
 
 	flush_delayed_work(&rtd->delayed_work);
 	snd_soc_pcm_component_free(rtd);
@@ -375,7 +375,7 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
 	rtd->num_components = 0;
 
 	rtd->dev = dev;
-	INIT_LIST_HEAD(&rtd->list);
+	INIT_LIST_HEAD(&rtd->rtd_list);
 	for_each_pcm_streams(stream) {
 		INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients);
 		INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients);
@@ -410,7 +410,7 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
 	rtd->pmdown_time = pmdown_time;			/* default power off timeout */
 
 	/* see for_each_card_rtds */
-	list_add_tail(&rtd->list, &card->rtd_list);
+	list_add_tail(&rtd->rtd_list, &card->rtd_list_head);
 
 	ret = device_add_groups(dev, soc_dev_attr_groups);
 	if (ret < 0)
@@ -1282,7 +1282,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_list_head);
 	INIT_LIST_HEAD(&card->list);
-	INIT_LIST_HEAD(&card->rtd_list);
+	INIT_LIST_HEAD(&card->rtd_list_head);
 	INIT_LIST_HEAD(&card->dapm_dirty);
 
 	card->instantiated = 0;
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 06/11] ASoC: soc-core: rename list to unbind_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (4 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 05/11] ASoC: soc-core: rename list to rtd_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-27  0:03   ` sashiko-bot
  2026-11-30 22:58   ` Alvin Šipraga
  2026-11-26 23:58 ` [PATCH 07/11] ASoC: soc-dapm: rename list to dobj_list Kuninori Morimoto
                   ` (5 subsequent siblings)
  11 siblings, 2 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current Card is using "list" to connecting to "unbind_card_list".

It is unclear and confusable naming. Let's rename it as
"unbind_list" and "unbind_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc.h  |  3 +--
 sound/soc/soc-card.c | 12 ++++++------
 sound/soc/soc-core.c |  2 +-
 3 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 290be882ecab7..e8e256b7a0fa6 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1039,8 +1039,7 @@ struct snd_soc_card {
 
 	/* lists of probed devices belonging to this card */
 	struct list_head component_list_head;
-	struct list_head list;
-
+	struct list_head unbind_list;
 	struct list_head widgets;
 	struct list_head paths;
 	struct list_head dapm_list;
diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
index e0f617077ee80..951ae9ff13557 100644
--- a/sound/soc/soc-card.c
+++ b/sound/soc/soc-card.c
@@ -17,7 +17,7 @@
 #include <sound/jack.h>
 #include "soc-internal.h"
 
-static LIST_HEAD(unbind_card_list);
+static LIST_HEAD(unbind_list_head);
 
 #define soc_card_ret(dai, ret) _soc_card_ret(dai, __func__, ret)
 static inline int _soc_card_ret(struct snd_soc_card *card,
@@ -898,11 +898,11 @@ void snd_soc_card_unbind(struct snd_soc_card *card, bool reuse)
 		snd_soc_card_cleanup_resources(card);
 
 		if (reuse)
-			list_add(&card->list, &unbind_card_list);
+			list_add(&card->unbind_list, &unbind_list_head);
 	}
 
 	if (!reuse)
-		list_del(&card->list);
+		list_del(&card->unbind_list);
 }
 
 static int snd_soc_card_bind(struct snd_soc_card *card)
@@ -916,7 +916,7 @@ static int snd_soc_card_bind(struct snd_soc_card *card)
 	snd_soc_card_fill_dummy_dai(card);
 
 	snd_soc_dapm_init(dapm, card, NULL);
-	list_del_init(&card->list);
+	list_del_init(&card->unbind_list);
 
 	/* check whether any platform is ignore machine FE and using topology */
 	soc_card_check_tplg_fes(card);
@@ -1081,7 +1081,7 @@ static int snd_soc_card_bind(struct snd_soc_card *card)
 	}
 
 	if (ret == -EPROBE_DEFER) {
-		list_add(&card->list, &unbind_card_list);
+		list_add(&card->unbind_list, &unbind_list_head);
 		ret = 0;
 	}
 	snd_soc_card_mutex_unlock(card);
@@ -1093,7 +1093,7 @@ void snd_soc_card_rebind(void)
 {
 	struct snd_soc_card *card, *c;
 
-	list_for_each_entry_safe(card, c, &unbind_card_list, list)
+	list_for_each_entry_safe(card, c, &unbind_list_head, unbind_list)
 		snd_soc_card_bind_call(card);
 }
 
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 00d50ef50a3b0..7f21fd1e0182f 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1281,7 +1281,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	INIT_LIST_HEAD(&card->dapm_list);
 	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_list_head);
-	INIT_LIST_HEAD(&card->list);
+	INIT_LIST_HEAD(&card->unbind_list);
 	INIT_LIST_HEAD(&card->rtd_list_head);
 	INIT_LIST_HEAD(&card->dapm_dirty);
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 07/11] ASoC: soc-dapm: rename list to dobj_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (5 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 06/11] ASoC: soc-core: rename list to unbind_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 08/11] ASoC: soc-dapm: rename list to widget_list Kuninori Morimoto
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAPM is using "list" to connecting to "donj_list".

It is unclear and confusable naming. Let's rename it as
"dobj_list" and "dobj_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h |  5 ++---
 include/sound/soc-topology.h  |  2 +-
 sound/soc/soc-component.c     |  2 +-
 sound/soc/soc-topology.c      | 42 +++++++++++++++++------------------
 4 files changed, 25 insertions(+), 26 deletions(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 875c532034652..cba4657b0882c 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -221,6 +221,8 @@ struct snd_soc_component {
 	struct list_head component_total_list;
 	struct list_head component_list;
 	struct list_head aux_list;		/* for auxiliary bound components */
+
+	struct list_head dobj_list_head;	/* attached dynamic objects */
 	struct list_head dai_list_head;
 	int num_dai;
 
@@ -232,9 +234,6 @@ struct snd_soc_component {
 
 	struct mutex io_mutex;
 
-	/* attached dynamic objects */
-	struct list_head dobj_list;
-
 	/*
 	 * DO NOT use any of the fields below in drivers, they are temporary and
 	 * are going to be removed again soon. If you use them in driver code
diff --git a/include/sound/soc-topology.h b/include/sound/soc-topology.h
index cf5c9bd1037e2..c46cc2ac68d43 100644
--- a/include/sound/soc-topology.h
+++ b/include/sound/soc-topology.h
@@ -62,7 +62,7 @@ struct snd_soc_dobj_widget {
 struct snd_soc_dobj {
 	enum snd_soc_dobj_type type;
 	unsigned int index;	/* objects can belong in different groups */
-	struct list_head list;
+	struct list_head dobj_list;
 	int (*unload)(struct snd_soc_component *comp, struct snd_soc_dobj *dobj);
 	union {
 		struct snd_soc_dobj_control control;
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index 10f9b61fef656..5dce8af9e7553 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -1783,7 +1783,7 @@ struct snd_soc_component *snd_soc_component_new(struct device *dev, const char *
 	component->driver = driver;
 
 	INIT_LIST_HEAD(&component->dai_list_head);
-	INIT_LIST_HEAD(&component->dobj_list);
+	INIT_LIST_HEAD(&component->dobj_list_head);
 	INIT_LIST_HEAD(&component->component_list);
 	INIT_LIST_HEAD(&component->aux_list);
 	INIT_LIST_HEAD(&component->component_total_list);
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 7e53e84292205..8440438bea80a 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -358,7 +358,7 @@ static void soc_tplg_remove_kcontrol(struct snd_soc_component *comp, struct snd_
 		dobj->unload(comp, dobj);
 
 	snd_ctl_remove(card, dobj->control.kcontrol);
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 }
 
 /* remove a route */
@@ -371,7 +371,7 @@ static void soc_tplg_remove_route(struct snd_soc_component *comp,
 	if (dobj->unload)
 		dobj->unload(comp, dobj);
 
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 }
 
 /* remove a widget and it's kcontrols - routes must be removed first */
@@ -393,7 +393,7 @@ static void soc_tplg_remove_widget(struct snd_soc_component *comp,
 		for (i = 0; i < w->num_kcontrols; i++)
 			snd_ctl_remove(card, w->kcontrols[i]);
 
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 
 	/* widget w is freed by soc-dapm.c */
 }
@@ -416,7 +416,7 @@ static void soc_tplg_remove_dai(struct snd_soc_component *comp,
 		if (dai->driver == dai_drv)
 			snd_soc_unregister_dai(dai);
 
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 }
 
 /* remove link configurations */
@@ -432,7 +432,7 @@ static void soc_tplg_remove_link(struct snd_soc_component *comp,
 	if (dobj->unload)
 		dobj->unload(comp, dobj);
 
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 
 	/* Ignored links do not need to be removed, they are not added */
 	if (!link->ignore)
@@ -456,7 +456,7 @@ static void remove_backend_link(struct snd_soc_component *comp,
 	 * We however need to reset the dobj type to its initial values
 	 */
 	dobj->type = SND_SOC_DOBJ_NONE;
-	list_del(&dobj->list);
+	list_del(&dobj->dobj_list);
 }
 
 /* bind a kcontrol to it's IO handlers */
@@ -890,7 +890,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
 	/* register dynamic object */
 	sbe = (struct soc_bytes_ext *)kc.private_value;
 
-	INIT_LIST_HEAD(&sbe->dobj.list);
+	INIT_LIST_HEAD(&sbe->dobj.dobj_list);
 	sbe->dobj.type = SND_SOC_DOBJ_BYTES;
 	sbe->dobj.index = tplg->index;
 	if (tplg->ops)
@@ -901,7 +901,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
 	if (ret < 0)
 		return ret;
 
-	list_add(&sbe->dobj.list, &tplg->comp->dobj_list);
+	list_add(&sbe->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	return ret;
 }
@@ -924,7 +924,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
 	/* register dynamic object */
 	sm = (struct soc_mixer_control *)kc.private_value;
 
-	INIT_LIST_HEAD(&sm->dobj.list);
+	INIT_LIST_HEAD(&sm->dobj.dobj_list);
 	sm->dobj.type = SND_SOC_DOBJ_MIXER;
 	sm->dobj.index = tplg->index;
 	if (tplg->ops)
@@ -935,7 +935,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
 	if (ret < 0)
 		return ret;
 
-	list_add(&sm->dobj.list, &tplg->comp->dobj_list);
+	list_add(&sm->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	return ret;
 }
@@ -958,7 +958,7 @@ static int soc_tplg_denum_create(struct soc_tplg *tplg, size_t size)
 	/* register dynamic object */
 	se = (struct soc_enum *)kc.private_value;
 
-	INIT_LIST_HEAD(&se->dobj.list);
+	INIT_LIST_HEAD(&se->dobj.dobj_list);
 	se->dobj.type = SND_SOC_DOBJ_ENUM;
 	se->dobj.index = tplg->index;
 	if (tplg->ops)
@@ -969,7 +969,7 @@ static int soc_tplg_denum_create(struct soc_tplg *tplg, size_t size)
 	if (ret < 0)
 		return ret;
 
-	list_add(&se->dobj.list, &tplg->comp->dobj_list);
+	list_add(&se->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	return ret;
 }
@@ -1077,12 +1077,12 @@ static int soc_tplg_dapm_graph_elems_load(struct soc_tplg *tplg,
 			}
 		}
 
-		/* add route dobj to dobj_list */
+		/* add route dobj to dobj_list_head */
 		route->dobj.type = SND_SOC_DOBJ_GRAPH;
 		if (tplg->ops)
 			route->dobj.unload = tplg->ops->dapm_route_unload;
 		route->dobj.index = tplg->index;
-		list_add(&route->dobj.list, &tplg->comp->dobj_list);
+		list_add(&route->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 		ret = soc_tplg_add_route(tplg, route);
 		if (ret < 0) {
@@ -1238,7 +1238,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
 	if (tplg->ops)
 		widget->dobj.unload = tplg->ops->widget_unload;
 	widget->dobj.index = tplg->index;
-	list_add(&widget->dobj.list, &tplg->comp->dobj_list);
+	list_add(&widget->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	ret = soc_tplg_widget_ready(tplg, widget, w);
 	if (ret < 0)
@@ -1438,7 +1438,7 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg,
 	dai_drv->dobj.type = SND_SOC_DOBJ_PCM;
 	if (tplg->ops)
 		dai_drv->dobj.unload = tplg->ops->dai_unload;
-	list_add(&dai_drv->dobj.list, &tplg->comp->dobj_list);
+	list_add(&dai_drv->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	/* register the DAI to the component */
 	dai = snd_soc_register_dai(tplg->comp, dai_drv, false);
@@ -1569,7 +1569,7 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg,
 		goto err;
 	}
 
-	list_add(&link->dobj.list, &tplg->comp->dobj_list);
+	list_add(&link->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	return 0;
 err:
@@ -1804,7 +1804,7 @@ static int soc_tplg_link_config(struct soc_tplg *tplg,
 	link->dobj.type = SND_SOC_DOBJ_BACKEND_LINK;
 	if (tplg->ops)
 		link->dobj.unload = tplg->ops->link_unload;
-	list_add(&link->dobj.list, &tplg->comp->dobj_list);
+	list_add(&link->dobj.dobj_list, &tplg->comp->dobj_list_head);
 
 	return 0;
 }
@@ -2205,8 +2205,8 @@ int snd_soc_tplg_component_remove(struct snd_soc_component *comp)
 	for (pass = SOC_TPLG_PASS_END; pass >= SOC_TPLG_PASS_START; pass--) {
 
 		/* remove mixer controls */
-		list_for_each_entry_safe(dobj, next_dobj, &comp->dobj_list,
-			list) {
+		list_for_each_entry_safe(dobj, next_dobj, &comp->dobj_list_head,
+			dobj_list) {
 
 			switch (dobj->type) {
 			case SND_SOC_DOBJ_BYTES:
@@ -2242,7 +2242,7 @@ int snd_soc_tplg_component_remove(struct snd_soc_component *comp)
 	}
 
 	/* let caller know if FW can be freed when no objects are left */
-	return !list_empty(&comp->dobj_list);
+	return !list_empty(&comp->dobj_list_head);
 }
 EXPORT_SYMBOL_GPL(snd_soc_tplg_component_remove);
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 08/11] ASoC: soc-dapm: rename list to widget_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (6 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 07/11] ASoC: soc-dapm: rename list to dobj_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 09/11] ASoC: soc-dapm: rename list to path_list Kuninori Morimoto
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAPM widget is using "list" to connecting to "widgets".

It is unclear and confusable naming. Let's rename it as
"widget_list" and "widget_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/staging/greybus/audio_helper.c   |  8 ++++----
 include/sound/soc-dapm.h                 |  2 +-
 include/sound/soc.h                      |  7 ++++---
 sound/soc/codecs/wm8960.c                |  2 +-
 sound/soc/intel/atom/sst-atom-controls.c |  4 ++--
 sound/soc/soc-core.c                     |  2 +-
 sound/soc/soc-dapm.c                     | 10 +++++-----
 7 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/drivers/staging/greybus/audio_helper.c b/drivers/staging/greybus/audio_helper.c
index b4873c6d6bed0..0de46577090c0 100644
--- a/drivers/staging/greybus/audio_helper.c
+++ b/drivers/staging/greybus/audio_helper.c
@@ -20,7 +20,7 @@ static void gbaudio_dapm_link_dai_widget(struct snd_soc_dapm_widget *dai_w,
 	struct snd_soc_dai *dai = dai_w->priv;
 
 	/* ...find all widgets with the same stream and link them */
-	list_for_each_entry(w, &card->widgets, list) {
+	list_for_each_entry(w, &card->widget_list_head, widget_list) {
 		if (w->dapm != dai_w->dapm)
 			continue;
 
@@ -62,7 +62,7 @@ int gbaudio_dapm_link_component_dai_widgets(struct snd_soc_card *card,
 	struct snd_soc_dapm_widget *dai_w;
 
 	/* For each DAI widget... */
-	list_for_each_entry(dai_w, &card->widgets, list) {
+	list_for_each_entry(dai_w, &card->widget_list_head, widget_list) {
 		if (dai_w->dapm != dapm)
 			continue;
 		switch (dai_w->id) {
@@ -92,7 +92,7 @@ static void gbaudio_dapm_free_widget(struct snd_soc_dapm_widget *w)
 	struct snd_soc_dapm_path *p, *next_p;
 	enum snd_soc_dapm_direction dir;
 
-	list_del(&w->list);
+	list_del(&w->widget_list);
 	/*
 	 * remove source and sink paths associated to this widget.
 	 * While removing the path, remove reference to it from both
@@ -121,7 +121,7 @@ int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm,
 	for (i = 0; i < num; i++) {
 		/* below logic can be optimized to identify widget pointer */
 		w = NULL;
-		list_for_each_entry(tmp_w, &card->widgets, list) {
+		list_for_each_entry(tmp_w, &card->widget_list_head, widget_list) {
 			if (tmp_w->dapm == dapm &&
 			    !strcmp(tmp_w->name, widget->name)) {
 				w = tmp_w;
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 33c4a3e9c1d4a..ca456e3ac9e56 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -518,7 +518,7 @@ struct snd_soc_dapm_widget {
 	enum snd_soc_dapm_type id;
 	const char *name;			/* widget name */
 	const char *sname;			/* stream name */
-	struct list_head list;
+	struct list_head widget_list;
 	struct snd_soc_dapm_context *dapm;
 
 	void *priv;				/* widget specific data */
diff --git a/include/sound/soc.h b/include/sound/soc.h
index e8e256b7a0fa6..13ad3d4f81e53 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1039,8 +1039,9 @@ struct snd_soc_card {
 
 	/* lists of probed devices belonging to this card */
 	struct list_head component_list_head;
+	struct list_head widget_list_head;
+
 	struct list_head unbind_list;
-	struct list_head widgets;
 	struct list_head paths;
 	struct list_head dapm_list;
 	struct list_head dapm_dirty;
@@ -1091,9 +1092,9 @@ struct snd_soc_card {
 	list_for_each_entry(dapm, &card->dapm_list, list)
 
 #define for_each_card_widgets(card, w)\
-	list_for_each_entry(w, &card->widgets, list)
+	list_for_each_entry(w, &card->widget_list_head, widget_list)
 #define for_each_card_widgets_safe(card, w, _w)	\
-	list_for_each_entry_safe(w, _w, &card->widgets, list)
+	list_for_each_entry_safe(w, _w, &card->widget_list_head, widget_list)
 
 
 static inline int snd_soc_card_is_instantiated(struct snd_soc_card *card)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 7c24c992ffbea..d77397d8efcba 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -518,7 +518,7 @@ static int wm8960_add_widgets(struct snd_soc_component *component)
 	 * list each time to find the desired power state do so now
 	 * and save the result.
 	 */
-	list_for_each_entry(w, &component->card->widgets, list) {
+	list_for_each_entry(w, &component->card->widget_list_head, widget_list) {
 		if (w->dapm != dapm)
 			continue;
 		if (strcmp(w->name, "LOUT1 PGA") == 0)
diff --git a/sound/soc/intel/atom/sst-atom-controls.c b/sound/soc/intel/atom/sst-atom-controls.c
index bac54c6211266..69b98f3a768d1 100644
--- a/sound/soc/intel/atom/sst-atom-controls.c
+++ b/sound/soc/intel/atom/sst-atom-controls.c
@@ -1480,7 +1480,7 @@ static void sst_fill_linked_widgets(struct snd_soc_component *component,
 	struct snd_soc_dapm_widget *w;
 	unsigned int len = strlen(ids->parent_wname);
 
-	list_for_each_entry(w, &component->card->widgets, list) {
+	list_for_each_entry(w, &component->card->widget_list_head, widget_list) {
 		if (!strncmp(ids->parent_wname, w->name, len)) {
 			ids->parent_w = w;
 			break;
@@ -1497,7 +1497,7 @@ static int sst_map_modules_to_pipe(struct snd_soc_component *component)
 	struct snd_soc_dapm_widget *w;
 	int ret = 0;
 
-	list_for_each_entry(w, &component->card->widgets, list) {
+	list_for_each_entry(w, &component->card->widget_list_head, widget_list) {
 		if (is_sst_dapm_widget(w) && (w->priv)) {
 			struct sst_ids *ids = w->priv;
 
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 7f21fd1e0182f..16f1e097dd538 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1276,7 +1276,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 
 	dev_set_drvdata(card->dev, card);
 
-	INIT_LIST_HEAD(&card->widgets);
+	INIT_LIST_HEAD(&card->widget_list_head);
 	INIT_LIST_HEAD(&card->paths);
 	INIT_LIST_HEAD(&card->dapm_list);
 	INIT_LIST_HEAD(&card->aux_list_head);
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 3ef13d2b1f5e9..f2e739ad8f31b 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1023,11 +1023,11 @@ static struct snd_soc_dapm_widget *
 dapm_wcache_lookup(struct snd_soc_dapm_widget *w, const char *name)
 {
 	if (w) {
-		struct list_head *wlist = &w->dapm->card->widgets;
+		struct list_head *wlist = &w->dapm->card->widget_list_head;
 		const int depth = 2;
 		int i = 0;
 
-		list_for_each_entry_from(w, wlist, list) {
+		list_for_each_entry_from(w, wlist, widget_list) {
 			if (!strcmp(name, w->name))
 				return w;
 
@@ -2876,7 +2876,7 @@ void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w)
 	if (!w)
 		return;
 
-	list_del(&w->list);
+	list_del(&w->widget_list);
 	list_del(&w->dirty);
 	/*
 	 * remove source and sink paths associated to this widget.
@@ -3906,10 +3906,10 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
 	}
 
 	w->dapm = dapm;
-	INIT_LIST_HEAD(&w->list);
+	INIT_LIST_HEAD(&w->widget_list);
 	INIT_LIST_HEAD(&w->dirty);
 	/* see for_each_card_widgets */
-	list_add_tail(&w->list, &dapm->card->widgets);
+	list_add_tail(&w->widget_list, &dapm->card->widget_list_head);
 
 	dapm_for_each_direction(dir) {
 		INIT_LIST_HEAD(&w->edges[dir]);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 09/11] ASoC: soc-dapm: rename list to path_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (7 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 08/11] ASoC: soc-dapm: rename list to widget_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 10/11] ASoC: soc-dapm: rename list to dapm_list Kuninori Morimoto
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAPM widget is using "list" to connecting to "paths".

It is unclear and confusable naming. Let's rename it as
"path_list" and "path_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/staging/greybus/audio_helper.c | 2 +-
 include/sound/soc-dapm.h               | 2 +-
 include/sound/soc.h                    | 2 +-
 sound/soc/soc-core.c                   | 2 +-
 sound/soc/soc-dapm.c                   | 8 ++++----
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/greybus/audio_helper.c b/drivers/staging/greybus/audio_helper.c
index 0de46577090c0..e7a6eefb08735 100644
--- a/drivers/staging/greybus/audio_helper.c
+++ b/drivers/staging/greybus/audio_helper.c
@@ -83,7 +83,7 @@ static void gbaudio_dapm_free_path(struct snd_soc_dapm_path *path)
 	list_del(&path->list_node[SND_SOC_DAPM_DIR_IN]);
 	list_del(&path->list_node[SND_SOC_DAPM_DIR_OUT]);
 	list_del(&path->list_kcontrol);
-	list_del(&path->list);
+	list_del(&path->path_list);
 	kfree(path);
 }
 
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index ca456e3ac9e56..1f5bb3a92fe08 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -510,7 +510,7 @@ struct snd_soc_dapm_path {
 
 	struct list_head list_node[2];
 	struct list_head list_kcontrol;
-	struct list_head list;
+	struct list_head path_list;
 };
 
 /* dapm widget */
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 13ad3d4f81e53..fe9712a560c15 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1040,9 +1040,9 @@ struct snd_soc_card {
 	/* lists of probed devices belonging to this card */
 	struct list_head component_list_head;
 	struct list_head widget_list_head;
+	struct list_head path_list_head;
 
 	struct list_head unbind_list;
-	struct list_head paths;
 	struct list_head dapm_list;
 	struct list_head dapm_dirty;
 
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 16f1e097dd538..fa839b33e247b 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1277,7 +1277,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	dev_set_drvdata(card->dev, card);
 
 	INIT_LIST_HEAD(&card->widget_list_head);
-	INIT_LIST_HEAD(&card->paths);
+	INIT_LIST_HEAD(&card->path_list_head);
 	INIT_LIST_HEAD(&card->dapm_list);
 	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_list_head);
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index f2e739ad8f31b..5ccb9e087c6e8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -652,7 +652,7 @@ static int dapm_add_path(
 	path->node[SND_SOC_DAPM_DIR_OUT] = wsink;
 
 	path->connected = connected;
-	INIT_LIST_HEAD(&path->list);
+	INIT_LIST_HEAD(&path->path_list);
 	INIT_LIST_HEAD(&path->list_kcontrol);
 
 	if (wsource->is_supply || wsink->is_supply)
@@ -691,7 +691,7 @@ static int dapm_add_path(
 		}
 	}
 
-	list_add(&path->list, &dapm->card->paths);
+	list_add(&path->path_list, &dapm->card->path_list_head);
 
 	dapm_for_each_direction(dir)
 		list_add(&path->list_node[dir], &path->node[dir]->edges[dir]);
@@ -2857,7 +2857,7 @@ static void dapm_free_path(struct snd_soc_dapm_path *path)
 	list_del(&path->list_node[SND_SOC_DAPM_DIR_IN]);
 	list_del(&path->list_node[SND_SOC_DAPM_DIR_OUT]);
 	list_del(&path->list_kcontrol);
-	list_del(&path->list);
+	list_del(&path->path_list);
 	kfree(path);
 }
 
@@ -3255,7 +3255,7 @@ static int snd_soc_dapm_del_route(struct snd_soc_dapm_context *dapm,
 	}
 
 	path = NULL;
-	list_for_each_entry(p, &dapm->card->paths, list) {
+	list_for_each_entry(p, &dapm->card->path_list_head, path_list) {
 		if (strcmp(p->source->name, source) != 0)
 			continue;
 		if (strcmp(p->sink->name, sink) != 0)
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 10/11] ASoC: soc-dapm: rename list to dapm_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (8 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 09/11] ASoC: soc-dapm: rename list to path_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-26 23:58 ` [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list Kuninori Morimoto
  2026-11-30 22:59 ` [PATCH 00/11] ASoC: rename DAI/Component list name Alvin Šipraga
  11 siblings, 0 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAPM widget is using "list" to connecting to "dapm_list".

It is unclear and confusable naming. Let's rename it as
"dapm_list" and "dapm_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc.h  | 4 ++--
 sound/soc/soc-core.c | 2 +-
 sound/soc/soc-dapm.c | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index fe9712a560c15..c886d2edf46c2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1041,9 +1041,9 @@ struct snd_soc_card {
 	struct list_head component_list_head;
 	struct list_head widget_list_head;
 	struct list_head path_list_head;
+	struct list_head dapm_list_head;
 
 	struct list_head unbind_list;
-	struct list_head dapm_list;
 	struct list_head dapm_dirty;
 
 	/* Generic DAPM context for the card */
@@ -1089,7 +1089,7 @@ struct snd_soc_card {
 	list_for_each_entry(component, &(card)->component_list_head, component_list)
 
 #define for_each_card_dapms(card, dapm)					\
-	list_for_each_entry(dapm, &card->dapm_list, list)
+	list_for_each_entry(dapm, &card->dapm_list_head, dapm_list)
 
 #define for_each_card_widgets(card, w)\
 	list_for_each_entry(w, &card->widget_list_head, widget_list)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index fa839b33e247b..0064fc3a17851 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1278,7 +1278,7 @@ int snd_soc_register_card(struct snd_soc_card *card)
 
 	INIT_LIST_HEAD(&card->widget_list_head);
 	INIT_LIST_HEAD(&card->path_list_head);
-	INIT_LIST_HEAD(&card->dapm_list);
+	INIT_LIST_HEAD(&card->dapm_list_head);
 	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_list_head);
 	INIT_LIST_HEAD(&card->unbind_list);
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 5ccb9e087c6e8..5d6b095030560 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -54,7 +54,7 @@ struct snd_soc_dapm_context {
 
 	/* used during DAPM updates */
 	enum snd_soc_bias_level target_bias_level;
-	struct list_head list;
+	struct list_head dapm_list;
 
 	struct snd_soc_dapm_widget *wcache_sink;
 	struct snd_soc_dapm_widget *wcache_source;
@@ -4962,7 +4962,7 @@ void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm)
 {
 	dapm_debugfs_cleanup(dapm);
 	dapm_free_widgets(dapm);
-	list_del(&dapm->list);
+	list_del(&dapm->dapm_list);
 }
 
 void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
@@ -4976,9 +4976,9 @@ void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
 	if (component)
 		dapm->idle_bias		= component->driver->idle_bias_on;
 
-	INIT_LIST_HEAD(&dapm->list);
+	INIT_LIST_HEAD(&dapm->dapm_list);
 	/* see for_each_card_dapms */
-	list_add(&dapm->list, &card->dapm_list);
+	list_add(&dapm->dapm_list, &card->dapm_list_head);
 }
 
 static void dapm_shutdown(struct snd_soc_dapm_context *dapm)
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (9 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 10/11] ASoC: soc-dapm: rename list to dapm_list Kuninori Morimoto
@ 2026-11-26 23:58 ` Kuninori Morimoto
  2026-11-27  0:05   ` sashiko-bot
  2026-11-30 22:59 ` [PATCH 00/11] ASoC: rename DAI/Component list name Alvin Šipraga
  11 siblings, 1 reply; 16+ messages in thread
From: Kuninori Morimoto @ 2026-11-26 23:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-sound, Alvin Šipraga

Current DAPM widget is using "dapm" to connecting to "dapm_darty".

It is unclear and confusable naming. Let's rename it as
"dapm_darty_list" and "dapm_darty_list_head".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-dapm.h |  2 +-
 include/sound/soc.h      |  2 +-
 sound/soc/soc-core.c     |  2 +-
 sound/soc/soc-dapm.c     | 12 ++++++------
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 1f5bb3a92fe08..9d7bf37798169 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -562,7 +562,7 @@ struct snd_soc_dapm_widget {
 	/* used during DAPM updates */
 	struct list_head work_list;
 	struct list_head power_list;
-	struct list_head dirty;
+	struct list_head dapm_dirty_list;
 	int endpoints[2];
 
 	struct clk *clk;
diff --git a/include/sound/soc.h b/include/sound/soc.h
index c886d2edf46c2..155a077bd27fa 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1042,9 +1042,9 @@ struct snd_soc_card {
 	struct list_head widget_list_head;
 	struct list_head path_list_head;
 	struct list_head dapm_list_head;
+	struct list_head dapm_dirty_list_head;
 
 	struct list_head unbind_list;
-	struct list_head dapm_dirty;
 
 	/* Generic DAPM context for the card */
 	struct snd_soc_dapm_context *dapm;
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 0064fc3a17851..e2a3e63ade1c1 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1279,11 +1279,11 @@ int snd_soc_register_card(struct snd_soc_card *card)
 	INIT_LIST_HEAD(&card->widget_list_head);
 	INIT_LIST_HEAD(&card->path_list_head);
 	INIT_LIST_HEAD(&card->dapm_list_head);
+	INIT_LIST_HEAD(&card->dapm_dirty_list_head);
 	INIT_LIST_HEAD(&card->aux_list_head);
 	INIT_LIST_HEAD(&card->component_list_head);
 	INIT_LIST_HEAD(&card->unbind_list);
 	INIT_LIST_HEAD(&card->rtd_list_head);
-	INIT_LIST_HEAD(&card->dapm_dirty);
 
 	card->instantiated = 0;
 	mutex_init(&card->mutex);
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 5d6b095030560..2f8cd4355e1db 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -219,7 +219,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_to_component);
 
 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w)
 {
-	return !list_empty(&w->dirty);
+	return !list_empty(&w->dapm_dirty_list);
 }
 
 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
@@ -231,7 +231,7 @@ static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason)
 	if (!dapm_dirty_widget(w)) {
 		dev_vdbg(dev, "Marking %s dirty due to %s\n",
 			 w->name, reason);
-		list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty);
+		list_add_tail(&w->dapm_dirty_list, &w->dapm->card->dapm_dirty_list_head);
 	}
 }
 
@@ -2292,7 +2292,7 @@ static int dapm_power_widgets(struct snd_soc_card *card, int event,
 	 * that new widgets may be added to the dirty list while we
 	 * iterate.
 	 */
-	list_for_each_entry(w, &card->dapm_dirty, dirty) {
+	list_for_each_entry(w, &card->dapm_dirty_list_head, dapm_dirty_list) {
 		dapm_power_one_widget(w, &up_list, &down_list);
 	}
 
@@ -2303,7 +2303,7 @@ static int dapm_power_widgets(struct snd_soc_card *card, int event,
 			/* These widgets always need to be powered */
 			break;
 		default:
-			list_del_init(&w->dirty);
+			list_del_init(&w->dapm_dirty_list);
 			break;
 		}
 
@@ -2877,7 +2877,7 @@ void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w)
 		return;
 
 	list_del(&w->widget_list);
-	list_del(&w->dirty);
+	list_del(&w->dapm_dirty_list);
 	/*
 	 * remove source and sink paths associated to this widget.
 	 * While removing the path, remove reference to it from both
@@ -3907,7 +3907,7 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
 
 	w->dapm = dapm;
 	INIT_LIST_HEAD(&w->widget_list);
-	INIT_LIST_HEAD(&w->dirty);
+	INIT_LIST_HEAD(&w->dapm_dirty_list);
 	/* see for_each_card_widgets */
 	list_add_tail(&w->widget_list, &dapm->card->widget_list_head);
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH 06/11] ASoC: soc-core: rename list to unbind_list
  2026-11-26 23:58 ` [PATCH 06/11] ASoC: soc-core: rename list to unbind_list Kuninori Morimoto
@ 2026-11-27  0:03   ` sashiko-bot
  2026-11-30 22:58   ` Alvin Šipraga
  1 sibling, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-27  0:03 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: linux-sound

Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [Critical] ASoC: core: premature devres_destroy() in
  devm_snd_soc_bind_card() [1]
--

commit b28ef687acfb86f7ec423e7fb74b4c460388a35d
Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

ASoC: soc-core: rename list to unbind_list

This commit renames struct snd_soc_card's list member to unbind_list and
unbind_card_list to unbind_list_head to clarify their purpose.

> diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
> index e0f617077ee80..951ae9ff13557 100644
> --- a/sound/soc/soc-card.c
> +++ b/sound/soc/soc-card.c

[ ... ]

> @@ -1093,7 +1093,7 @@ void snd_soc_card_rebind(void)
>  {
>  	struct snd_soc_card *card, *c;
>  
> -	list_for_each_entry_safe(card, c, &unbind_card_list, list)
> +	list_for_each_entry_safe(card, c, &unbind_list_head, unbind_list)
>  		snd_soc_card_bind_call(card);
>  }

[Severity: Critical]
This problem wasn't introduced by this patch, but can a failed
devres_alloc() during rebind leave a devm-registered card on
unbind_list_head without its release callback [1]?

sound/soc/soc-card.c:devm_snd_soc_card_bind() {
    ...
	devres_destroy(dev, devm_snd_soc_card_bind_release, NULL, NULL);

	ptr = devres_alloc(devm_snd_soc_card_bind_release, sizeof(*ptr), GFP_KERNEL);
	if (!ptr)
		return -ENOMEM;

	ret = snd_soc_card_bind(card);
    ...
}

When snd_soc_card_rebind() calls snd_soc_card_bind_call() ->
devm_snd_soc_card_bind() for a card on unbind_list_head, the existing
devm_snd_soc_card_bind_release entry is destroyed before devres_alloc().
If devres_alloc() fails, devm_snd_soc_card_bind() returns -ENOMEM before
snd_soc_card_bind() removes card->unbind_list from unbind_list_head and
without re-adding the release callback.  When the card device is later
unbound and card is freed, snd_soc_unregister_card() is not called, leaving
a dangling entry on unbind_list_head and causing a use-after-free on the
next list traversal.

[1] https://sashiko.dev/#/bug/linux-3f727b31-7250-473d-8b80-c09bf6f2bb4c

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/87v75jqh7j.wl-kuninori.morimoto.gx@renesas.com?part=6

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list
  2026-11-26 23:58 ` [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list Kuninori Morimoto
@ 2026-11-27  0:05   ` sashiko-bot
  0 siblings, 0 replies; 16+ messages in thread
From: sashiko-bot @ 2026-11-27  0:05 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: linux-sound

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: soc-dapm: commit title and message misstate renamed dirty
  list fields
--

commit 853b08aef84d7c42b39243cd553801ada341f30d
Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

> ASoC: soc-dapm: rename darty to dapm_darty_list
>
> Current DAPM widget is using "dapm" to connecting to "dapm_darty".
>
> It is unclear and confusable naming. Let's rename it as
> "dapm_darty_list" and "dapm_darty_list_head".
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

[Severity: Low]
The commit subject and message misspell "dirty" as "darty" throughout and
refer to the old widget field as "dapm" instead of "dirty".  The patch
actually renames struct snd_soc_dapm_widget.dirty to dapm_dirty_list and
struct snd_soc_card.dapm_dirty to dapm_dirty_list_head.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/87v75jqh7j.wl-kuninori.morimoto.gx@renesas.com?part=11

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 06/11] ASoC: soc-core: rename list to unbind_list
  2026-11-26 23:58 ` [PATCH 06/11] ASoC: soc-core: rename list to unbind_list Kuninori Morimoto
  2026-11-27  0:03   ` sashiko-bot
@ 2026-11-30 22:58   ` Alvin Šipraga
  1 sibling, 0 replies; 16+ messages in thread
From: Alvin Šipraga @ 2026-11-30 22:58 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Mark Brown, linux-sound

On Thu, Nov 26, 2026 at 11:58:20PM +0000, Kuninori Morimoto wrote:
> Current Card is using "list" to connecting to "unbind_card_list".
> 
> It is unclear and confusable naming. Let's rename it as
> "unbind_list" and "unbind_list_head".
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  include/sound/soc.h  |  3 +--
>  sound/soc/soc-card.c | 12 ++++++------
>  sound/soc/soc-core.c |  2 +-
>  3 files changed, 8 insertions(+), 9 deletions(-)
> 
> diff --git a/include/sound/soc.h b/include/sound/soc.h
> index 290be882ecab7..e8e256b7a0fa6 100644
> --- a/include/sound/soc.h
> +++ b/include/sound/soc.h
> @@ -1039,8 +1039,7 @@ struct snd_soc_card {
>  
>  	/* lists of probed devices belonging to this card */
>  	struct list_head component_list_head;
> -	struct list_head list;
> -
> +	struct list_head unbind_list;
>  	struct list_head widgets;
>  	struct list_head paths;
>  	struct list_head dapm_list;
> diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
> index e0f617077ee80..951ae9ff13557 100644
> --- a/sound/soc/soc-card.c
> +++ b/sound/soc/soc-card.c
> @@ -17,7 +17,7 @@
>  #include <sound/jack.h>
>  #include "soc-internal.h"
>  
> -static LIST_HEAD(unbind_card_list);
> +static LIST_HEAD(unbind_list_head);

As mentioned here

https://lore.kernel.org/all/auHFjRP6DFG46RTQ@analog.com/

I think it would make more sense to be called unbound_list_head or
similar. But it's not a big deal.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 00/11] ASoC: rename DAI/Component list name
  2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
                   ` (10 preceding siblings ...)
  2026-11-26 23:58 ` [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list Kuninori Morimoto
@ 2026-11-30 22:59 ` Alvin Šipraga
  11 siblings, 0 replies; 16+ messages in thread
From: Alvin Šipraga @ 2026-11-30 22:59 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Mark Brown, linux-sound

On Thu, Nov 26, 2026 at 11:57:22PM +0000, Kuninori Morimoto wrote:
> 
> Hi Mark
> 
> I'm now posting ASoC Capsuling patches.
> Current status, and this patch-set postion is below.
> This patch-set renames each list name
> 
> x: done
> o: This patch-set
> 
> [x] move DAI functions
> [x] add new DAI functions
> [x] move Component functions
> [x] move Card functions
> [x] add new Component functions
> [o] rename DAI/Component list name
> [ ] move Card functions v2
> [ ] add new Card functions
> [ ] adjust Test
> [ ] use new Card register
> [ ] use new functions on all drivers
> [ ] Capsule DAI/Component/Card
> 
> 
> Kuninori Morimoto (11):
>   ASoC: soc-dai: rename list to dai_list
>   ASoC: soc-component: rename card_aux_list to aux_list
>   ASoC: soc-component: rename list to component_total_list
>   ASoC: soc-component: rename card_list to component_list
>   ASoC: soc-core: rename list to rtd_list
>   ASoC: soc-core: rename list to unbind_list
>   ASoC: soc-dapm: rename list to dobj_list
>   ASoC: soc-dapm: rename list to widget_list
>   ASoC: soc-dapm: rename list to path_list
>   ASoC: soc-dapm: rename list to dapm_list
>   ASoC: soc-dapm: rename darty to dapm_darty_list

For the series:

Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>

> 
>  drivers/staging/greybus/audio_helper.c   | 10 +++---
>  include/sound/soc-component.h            | 34 +++++++++----------
>  include/sound/soc-dai.h                  |  6 ++--
>  include/sound/soc-dapm.h                 |  6 ++--
>  include/sound/soc-topology.h             |  2 +-
>  include/sound/soc.h                      | 34 +++++++++----------
>  sound/soc/codecs/wm8960.c                |  2 +-
>  sound/soc/fsl/fsl-asoc-card.c            |  4 +--
>  sound/soc/fsl/imx-rpmsg.c                |  4 +--
>  sound/soc/intel/atom/sst-atom-controls.c |  4 +--
>  sound/soc/soc-card.c                     | 16 ++++-----
>  sound/soc/soc-component.c                | 28 ++++++++--------
>  sound/soc/soc-core.c                     | 22 ++++++-------
>  sound/soc/soc-dai.c                      | 14 ++++----
>  sound/soc/soc-dapm.c                     | 38 ++++++++++-----------
>  sound/soc/soc-internal.h                 |  4 +--
>  sound/soc/soc-topology.c                 | 42 ++++++++++++------------
>  17 files changed, 134 insertions(+), 136 deletions(-)
> 
> -- 
> 2.53.0
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-11-30 23:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 23:57 [PATCH 00/11] ASoC: rename DAI/Component list name Kuninori Morimoto
2026-11-26 23:57 ` [PATCH 01/11] ASoC: soc-dai: rename list to dai_list Kuninori Morimoto
2026-11-26 23:57 ` [PATCH 02/11] ASoC: soc-component: rename card_aux_list to aux_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 03/11] ASoC: soc-component: rename list to component_total_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 04/11] ASoC: soc-component: rename card_list to component_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 05/11] ASoC: soc-core: rename list to rtd_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 06/11] ASoC: soc-core: rename list to unbind_list Kuninori Morimoto
2026-11-27  0:03   ` sashiko-bot
2026-11-30 22:58   ` Alvin Šipraga
2026-11-26 23:58 ` [PATCH 07/11] ASoC: soc-dapm: rename list to dobj_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 08/11] ASoC: soc-dapm: rename list to widget_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 09/11] ASoC: soc-dapm: rename list to path_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 10/11] ASoC: soc-dapm: rename list to dapm_list Kuninori Morimoto
2026-11-26 23:58 ` [PATCH 11/11] ASoC: soc-dapm: rename darty to dapm_darty_list Kuninori Morimoto
2026-11-27  0:05   ` sashiko-bot
2026-11-30 22:59 ` [PATCH 00/11] ASoC: rename DAI/Component list name Alvin Šipraga

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.