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 12/15] ASoC: soc-card: move snd_soc_card_bind_call()
Date: Wed, 28 Oct 2026 10:41:17 +0100	[thread overview]
Message-ID: <auHClTwz7trKo2ps@analog.com> (raw)
In-Reply-To: <87tsm6sezt.wl-kuninori.morimoto.gx@renesas.com>

On Wed, Oct 28, 2026 at 03:03:50AM +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.
> 
> It has too many local function dependencies.
> This patch uses temporary funciton define at soc-internal.h. It will be
> removed all funciton were moved.
> 
> It renames function name
> -	call_soc_bind_card()
> -	snd_soc_bind_card()
> -	snd_soc_unbind_card()
> +	snd_soc_card_bind_call()
> +	snd_soc_card_bind()
> +	snd_soc_card_unbind()
> 
> Below function is used on above functions. Add them at soc-internal.h
> +	snd_soc_flush_all_delayed_work()
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  sound/soc/soc-card.c     | 411 +++++++++++++++++++++++++++++++++++++-
>  sound/soc/soc-core.c     | 419 +--------------------------------------
>  sound/soc/soc-internal.h |   8 +
>  3 files changed, 422 insertions(+), 416 deletions(-)
> 
> diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c
> index c64c9d425bcf9..72b40f842bd43 100644
> --- a/sound/soc/soc-card.c
> +++ b/sound/soc/soc-card.c
> @@ -9,12 +9,16 @@
>  #include <linux/debugfs.h>
>  #include <linux/dmi.h>
>  #include <linux/lockdep.h>
> +#include <linux/pinctrl/consumer.h>
>  #include <linux/rwsem.h>
> +#include <sound/initval.h>
>  #include <sound/soc.h>
>  #include <sound/soc-link.h>
>  #include <sound/jack.h>
>  #include "soc-internal.h"
>  
> +LIST_HEAD(unbind_card_list);
> +
>  #define soc_card_ret(dai, ret) _soc_card_ret(dai, __func__, ret)
>  static inline int _soc_card_ret(struct snd_soc_card *card,
>  				const char *func, int ret)
> @@ -465,6 +469,157 @@ int snd_soc_card_set_dmi_name(struct snd_soc_card *card)
>  }
>  #endif /* CONFIG_DMI */
>  
> +static void soc_card_check_tplg_fes(struct snd_soc_card *card)

Don't you want the snd_ prefix here too, since you're renaming anyway?

> +{
> +	struct snd_soc_component *component;
> +	struct snd_soc_dai_link *dai_link;
> +	int i;
> +
> +	for_each_component(component) {

[...]

> +
> +#define soc_card_setup_name(card, name, name1, name2)			\
> +	__soc_card_setup_name(card, name, sizeof(name), name1, name2)
> +static void __soc_card_setup_name(struct snd_soc_card *card,
> +				  char *name, int len,
> +				  const char *name1, const char *name2)

snd_ prefix here too?

> +{
> +	const char *src = name1 ? name1 : name2;
> +	int i;
> +
> +	snprintf(name, len, "%s", src);
> +
> +	if (name != card->snd_card->driver)
> +		return;
> +

[...]

Kind regards,
Alvin

  reply	other threads:[~2026-10-28  9:41 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 [this message]
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
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=auHClTwz7trKo2ps@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