summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-03-16 05:26:04 +0300
committerMark Brown <broonie@kernel.org>2026-03-16 16:37:51 +0300
commit2905b2266ac6a6bb99c9dcdb122fcf2b89b829dc (patch)
tree3b5eab183e6d53e4c5ede8beda5f27f85ddd8867
parentfe8112d6d2a62eac923a6fdde274b848021e94b6 (diff)
downloadlinux-2905b2266ac6a6bb99c9dcdb122fcf2b89b829dc.tar.xz
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 c64bfc906600 ("ASoC: soc-core: add new pcm_construct/pcmdestruct") [2] commit e9067bb50278 ("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>
-rw-r--r--sound/soc/generic/test-component.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/generic/test-component.c b/sound/soc/generic/test-component.c
index 2e49066dedd4..fc40d024152e 100644
--- a/sound/soc/generic/test-component.c
+++ b/sound/soc/generic/test-component.c
@@ -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;