]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: generic: name back to pcm_new()/pcm_free()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 16 Mar 2026 02:26:04 +0000 (02:26 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 13:37:51 +0000 (13:37 +0000)
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>
sound/soc/generic/test-component.c

index 2e49066dedd41ba96fc2c05b128e012990aea6de..fc40d024152e6270024ee473350ce8dcec45b2e5 100644 (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;