ASoC: generic: name back to pcm_new()/pcm_free()

We have been used pcm_new()/pcm_free(), but switched to
pcm_construct()/pcm_destruct() to use extra parameters [1].

pcm_new()/free() had been removed [2], but each drivers are still
using such function naming. Let's name back to pcm_new()/pcm_free()
again.

[1] commit c64bfc9066 ("ASoC: soc-core: add new pcm_construct/pcmdestruct")
[2] commit e9067bb502 ("ASoC: soc-component: remove snd_pcm_ops from component driver")

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87v7ewjyrf.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2026-03-16 02:26:04 +00:00 committed by Mark Brown
parent fe8112d6d2
commit 2905b2266a
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -273,8 +273,8 @@ static int test_component_resume(struct snd_soc_component *component)
}
#define PREALLOC_BUFFER (32 * 1024)
static int test_component_pcm_construct(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd)
static int test_component_pcm_new(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd)
{
mile_stone(component);
@ -287,8 +287,8 @@ static int test_component_pcm_construct(struct snd_soc_component *component,
return 0;
}
static void test_component_pcm_destruct(struct snd_soc_component *component,
struct snd_pcm *pcm)
static void test_component_pcm_free(struct snd_soc_component *component,
struct snd_pcm *pcm)
{
mile_stone(component);
}
@ -562,7 +562,7 @@ static int test_driver_probe(struct platform_device *pdev)
if (adata->is_cpu) {
cdriv->name = "test_cpu";
cdriv->pcm_construct = test_component_pcm_construct;
cdriv->pcm_new = test_component_pcm_new;
cdriv->pointer = test_component_pointer;
cdriv->trigger = test_component_trigger;
cdriv->legacy_dai_naming = 1;
@ -597,7 +597,7 @@ static int test_driver_probe(struct platform_device *pdev)
cdriv->be_hw_params_fixup = test_component_be_hw_params_fixup;
if (adata->is_cpu)
cdriv->pcm_destruct = test_component_pcm_destruct;
cdriv->pcm_free = test_component_pcm_free;
}
i = 0;