Linux Sound subsystem development
 help / color / mirror / Atom feed
From: "Alvin Šipraga" <alvin.sipraga@analog.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Mark Brown <broonie@kernel.org>, linux-sound@vger.kernel.org
Subject: Re: [PATCH 14/15] ASoC: soc-card: make unbind_card_list static
Date: Wed, 28 Oct 2026 10:59:23 +0100	[thread overview]
Message-ID: <auHFjRP6DFG46RTQ@analog.com> (raw)
In-Reply-To: <87qzhasezm.wl-kuninori.morimoto.gx@renesas.com>

On Wed, Oct 28, 2026 at 03:03:57AM +0000, Kuninori Morimoto wrote:
> struct snd_soc_card will be capsuled soon, its member will not be
> able to access from non soc-card.c.
> 
> Update snd_soc_card_unbind() and makes unbind_card_list static in
> soc-card.c
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  sound/soc/soc-card.c     | 10 ++++++++--
>  sound/soc/soc-core.c     | 12 +++---------
>  sound/soc/soc-internal.h |  3 +--
>  3 files changed, 12 insertions(+), 13 deletions(-)
> 
> diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
> index f6ff99bf8a601..959b56be0eedf 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"
>  
> -LIST_HEAD(unbind_card_list);
> +static LIST_HEAD(unbind_card_list);

A bit irrelevant to capsuling, but I think it would make more sense for
the list to be called unbound_card_list. It would make this part more
understandable:

int snd_soc_component_register(struct snd_soc_component *component,
			       struct snd_soc_dai_driver *dai_drv,
			       int num_dai)
{
	struct snd_soc_card *card, *c;

	...

	/* Alvin's comment: retry binding any unbound cards in case this
	 * component completes them
	 */
	list_for_each_entry_safe(card, c, &unbind_card_list, list)
		snd_soc_card_bind_call(card);

	...
}

But feel free to ignore :)

Kind regards,
Alvin

  reply	other threads:[~2026-10-28  9:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28  2:42 [PATCH 00/15] ASoC: soc-card: move snd_soc_card_xxx() to soc-card.c Kuninori Morimoto
2026-10-28  3:02 ` [PATCH 01/15] ASoC: soc-core: fixup snd_soc_dai_compress_new() return Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 02/15] ASoC: soc-card: move snd_soc_add_card_controls() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 03/15] ASoC: soc-card: move snd_soc_card_debugfs_xxx() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 04/15] ASoC: soc-card: move snd_soc_card_resume_init() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 05/15] ASoC: soc-card: move snd_soc_card_fill_dummy_dai() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 06/15] ASoC: soc-card: move snd_soc_card_init_pcm_runtime() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 07/15] ASoC: soc-card: move snd_soc_card_link_dais_xxx() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 08/15] ASoC: soc-card: move snd_soc_card_link_components_xxx() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 09/15] ASoC: soc-card: move snd_soc_card_aux_[un]bind() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 10/15] ASoC: soc-card: move snd_soc_card_aux_{remove/probe}() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 11/15] ASoC: soc-card: move snd_soc_card_set_dmi_name() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 12/15] ASoC: soc-card: move snd_soc_card_bind_call() Kuninori Morimoto
2026-10-28  9:41   ` Alvin Šipraga
2026-10-28 23:49     ` Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 13/15] ASoC: soc-card: add snd_soc_card_rebind() Kuninori Morimoto
2026-10-28  3:03 ` [PATCH 14/15] ASoC: soc-card: make unbind_card_list static Kuninori Morimoto
2026-10-28  9:59   ` Alvin Šipraga [this message]
2026-10-28  3:04 ` [PATCH 15/15] ASoC: soc-internal: remove temporary funciton defines Kuninori Morimoto
2026-10-28 10:00 ` [PATCH 00/15] ASoC: soc-card: move snd_soc_card_xxx() to soc-card.c Alvin Šipraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auHFjRP6DFG46RTQ@analog.com \
    --to=alvin.sipraga@analog.com \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox