]> Gentwo Git Trees - linux/.git/commit
ASoC: soc-dapm: rename snd_soc_kcontrol_component() to snd_soc_kcontrol_to_component()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 26 Aug 2025 06:22:26 +0000 (06:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2025 12:37:59 +0000 (13:37 +0100)
commit8a9772ec08f87c9e45ab1ad2c8d2b8c1763836eb
treee9305e861bff9a1139812b8260011f4e3b894928
parentf6883f0f03575ecc8c4c5d2a04339bac91eb33d7
ASoC: soc-dapm: rename snd_soc_kcontrol_component() to snd_soc_kcontrol_to_component()

We have 2 similar functions, both converts date from snd_kcontrol to
snd_soc_component.

(A) snd_soc_kcontrol_component()
(B) snd_soc_dapm_kcontrol_component()

(A) is just wrapper for snd_kcontrol_chip().
(B) is for more complex conversion.

Having similar functions is confusable. So (A) will be replaced to
original snd_kcontrol_chip(). (B) will be stay, but the function
name should be xx_to_xx().

And it is defined at soc-component.h. It should be implemented at
soc-dapm.c.

This patch renames it to snd_soc_dapm_kcontrol_to_component(), and
move to soc-dapm.c.

This patch keeps compatible by using define, but old name will be replaced
on each drivers and removed from ASoC in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/871poyy53x.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h
include/sound/soc-dapm.h
sound/soc/soc-dapm.c