From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>,
"Bard Liao" <yung-chuan.liao@linux.intel.com>,
"bui duc phuc" <phucduc.bui@gmail.com>,
"Fabio Estevam" <festevam@gmail.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Kai Vehmanen" <kai.vehmanen@linux.intel.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Liam Girdwood" <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, "Mark Brown" <broonie@kernel.org>,
"Nicolin Chen" <nicoleotsuka@gmail.com>,
"Peter Ujfalusi" <peter.ujfalusi@linux.intel.com>,
"Pierre-Louis Bossart" <pierre-louis.bossart@linux.dev>,
"Shengjiu Wang" <shengjiu.wang@gmail.com>,
"Takashi Iwai" <tiwai@suse.com>, "Xiubo Li" <Xiubo.Lee@gmail.com>
Subject: Re: [PATCH v3 00/12] ASoC: add and use new snd_soc_register_component()
Date: Mon, 6 Jul 2026 11:01:27 +0200 [thread overview]
Message-ID: <77e7ae97-a89c-4fce-8928-8a03177160fd@intel.com> (raw)
In-Reply-To: <87zf04c1w5.wl-kuninori.morimoto.gx@renesas.com>
On 7/6/2026 4:01 AM, Kuninori Morimoto wrote:
> Hi
>
> Current component has component->name. But snd_soc_register_component()
> user can't setup it, because component itself is alloced in that function.
>
> So, to setup it, user need to use snd_soc_component_initialize() /
> snd_soc_add_component() directly instead of using
> snd_soc_register_component().
>
> In the same time, Component will be capsuled soon.
>
> Let's tidyup around here.
> All strange code can be gone if we have both below style.
>
> Normal case
> snd_soc_register_component(dev, ...);
>
> Want to setup case
> component = snd_soc_component_alloc(...);
>
> snd_soc_component_set_xxx(component, ...);
> snd_soc_component_set_xxx(component, ...);
>
> (A) snd_soc_register_component(component, ...);
>
> This patch-set adds new snd_soc_register_component() which allows to use
> component (A).
>
> Originally, this patch-set was posted as
> v1: ASoC: intel: use component_name for Component name
> v2: ASoC: add [devm_]snd_soc_register_component_with_name()
>
> Link: https://lore.kernel.org/r/87fr29esth.wl-kuninori.morimoto.gx@renesas.com
> Link: https://lore.kernel.org/r/87v7ayxk3s.wl-kuninori.morimoto.gx@renesas.com
Thank you for good discussion, addressing some and providing technical
arguments for those comments we didn't square on. I've spent quite a
while analyzing the subject and the outcome is: Is there something I
can help with, to make the conversion easier?
And obviously:
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
next prev parent reply other threads:[~2026-07-06 9:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 2:01 [PATCH v3 00/12] ASoC: add and use new snd_soc_register_component() Kuninori Morimoto
2026-07-03 1:19 ` [PATCH v3 01/12] ASoC: soc-component: move soc_component_field_shift() Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 02/12] ASoC: soc-component: add snd_soc_component_alloc() Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 03/12] ASoC: soc-component: add snd_soc_register_component_{c/d}() Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 04/12] ASoC: soc-component: add snd_soc_component_{set_}name() Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 05/12] ASoC: soc-component: add snd_soc_component_{set/to}_priv() Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 06/12] ASoC: intel: avs: use snd_soc_register_component() Kuninori Morimoto
2026-07-06 8:55 ` Cezary Rojewski
2026-07-06 2:02 ` [PATCH v3 07/12] ASoC: intel: avs: probes: " Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 08/12] ASoC: intel: catpt: pcm: " Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 09/12] ASoC: soc-generic-dmaengine-pcm: " Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 10/12] ASoC: soc-topology-test: " Kuninori Morimoto
2026-07-06 2:02 ` [PATCH v3 11/12] ASoC: soc-core: makes snd_soc_component_initialize() / snd_soc_add_component() local Kuninori Morimoto
2026-07-06 2:03 ` [PATCH v3 12/12] ASoC: soc-core: remove dev from soc_component_initialize() Kuninori Morimoto
2026-07-06 9:01 ` Cezary Rojewski [this message]
2026-07-06 23:11 ` [PATCH v3 00/12] ASoC: add and use new snd_soc_register_component() Kuninori Morimoto
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=77e7ae97-a89c-4fce-8928-8a03177160fd@intel.com \
--to=cezary.rojewski@intel.com \
--cc=Xiubo.Lee@gmail.com \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=nicoleotsuka@gmail.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=phucduc.bui@gmail.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=shengjiu.wang@gmail.com \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.com \
/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