Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 00/12] ASoC: add and use new snd_soc_register_component()
@ 2026-07-06  2:01 Kuninori Morimoto
  2026-07-03  1:19 ` [PATCH v3 01/12] ASoC: soc-component: move soc_component_field_shift() Kuninori Morimoto
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Kuninori Morimoto @ 2026-07-06  2:01 UTC (permalink / raw)
  To: "Amadeusz Sławiński", Bard Liao, bui duc phuc,
	Cezary Rojewski, Fabio Estevam, Jaroslav Kysela, Kai Vehmanen,
	Lars-Peter Clausen, Liam Girdwood, linux-sound, Mark Brown,
	Nicolin Chen, Peter Ujfalusi, Pierre-Louis Bossart, Shengjiu Wang,
	Takashi Iwai, Xiubo Li

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

Kuninori Morimoto (12):
  ASoC: soc-component: move soc_component_field_shift()
  ASoC: soc-component: add snd_soc_component_alloc()
  ASoC: soc-component: add snd_soc_register_component_{c/d}()
  ASoC: soc-component: add snd_soc_component_{set_}name()
  ASoC: soc-component: add snd_soc_component_{set/to}_priv()
  ASoC: intel: avs: use snd_soc_register_component()
  ASoC: intel: avs: probes: use snd_soc_register_component()
  ASoC: intel: catpt: pcm: use snd_soc_register_component()
  ASoC: soc-generic-dmaengine-pcm: use snd_soc_register_component()
  ASoC: soc-topology-test: use snd_soc_register_component()
  ASoC: soc-core: makes snd_soc_component_initialize() / snd_soc_add_component() local
  ASoC: soc-core: remove dev from soc_component_initialize()

 include/sound/dmaengine_pcm.h         |   6 --
 include/sound/soc-component.h         |  11 ++
 include/sound/soc.h                   |  15 +--
 sound/soc/fsl/fsl_asrc_dma.c          |   4 +-
 sound/soc/intel/avs/avs.h             |   5 +-
 sound/soc/intel/avs/ipc.c             |   2 +-
 sound/soc/intel/avs/pcm.c             |  18 +++-
 sound/soc/intel/avs/probes.c          |  16 +--
 sound/soc/intel/catpt/pcm.c           |  14 +--
 sound/soc/soc-component.c             |  53 ++++++++--
 sound/soc/soc-core.c                  |  44 ++++----
 sound/soc/soc-generic-dmaengine-pcm.c |  30 +++---
 sound/soc/soc-topology-test.c         | 144 ++++++++++++++++----------
 13 files changed, 230 insertions(+), 132 deletions(-)

-- 
2.53.0


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

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v3 00/12] ASoC: add and use new snd_soc_register_component() Cezary Rojewski
2026-07-06 23:11   ` Kuninori Morimoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox