]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: tegra: name back to pcm_new()/pcm_free()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 16 Mar 2026 02:27:33 +0000 (02:27 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 13:38:04 +0000 (13:38 +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/87bjgojyoy.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_admaif.c
sound/soc/tegra/tegra_pcm.c
sound/soc/tegra/tegra_pcm.h

index 0976779d29f286617fae249d4553831e22c15eb3..ecb09552666289d38dc021c751abb3a61dcb6354 100644 (file)
@@ -839,7 +839,7 @@ static struct snd_kcontrol_new tegra264_admaif_controls[] = {
 static const struct snd_soc_component_driver tegra210_admaif_cmpnt = {
        .controls               = tegra210_admaif_controls,
        .num_controls           = ARRAY_SIZE(tegra210_admaif_controls),
-       .pcm_construct          = tegra_pcm_construct,
+       .pcm_new                = tegra_pcm_new,
        .open                   = tegra_pcm_open,
        .close                  = tegra_pcm_close,
        .hw_params              = tegra_pcm_hw_params,
@@ -849,7 +849,7 @@ static const struct snd_soc_component_driver tegra210_admaif_cmpnt = {
 static const struct snd_soc_component_driver tegra186_admaif_cmpnt = {
        .controls               = tegra186_admaif_controls,
        .num_controls           = ARRAY_SIZE(tegra186_admaif_controls),
-       .pcm_construct          = tegra_pcm_construct,
+       .pcm_new                = tegra_pcm_new,
        .open                   = tegra_pcm_open,
        .close                  = tegra_pcm_close,
        .hw_params              = tegra_pcm_hw_params,
@@ -859,7 +859,7 @@ static const struct snd_soc_component_driver tegra186_admaif_cmpnt = {
 static const struct snd_soc_component_driver tegra264_admaif_cmpnt = {
        .controls               = tegra264_admaif_controls,
        .num_controls           = ARRAY_SIZE(tegra264_admaif_controls),
-       .pcm_construct          = tegra_pcm_construct,
+       .pcm_new                = tegra_pcm_new,
        .open                   = tegra_pcm_open,
        .close                  = tegra_pcm_close,
        .hw_params              = tegra_pcm_hw_params,
index 05d59e03b1c5e46d766d07606d2bc7299b0f9b17..c490a9e6685863c287cc3a2072601c4b232a1d17 100644 (file)
@@ -204,8 +204,8 @@ static int tegra_pcm_dma_allocate(struct device *dev, struct snd_soc_pcm_runtime
        return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_WC, dev, size);
 }
 
-int tegra_pcm_construct(struct snd_soc_component *component,
-                       struct snd_soc_pcm_runtime *rtd)
+int tegra_pcm_new(struct snd_soc_component *component,
+                 struct snd_soc_pcm_runtime *rtd)
 {
        struct device *dev = component->dev;
 
@@ -218,7 +218,7 @@ int tegra_pcm_construct(struct snd_soc_component *component,
 
        return tegra_pcm_dma_allocate(dev, rtd, tegra_pcm_hardware.buffer_bytes_max);
 }
-EXPORT_SYMBOL_GPL(tegra_pcm_construct);
+EXPORT_SYMBOL_GPL(tegra_pcm_new);
 
 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
 MODULE_DESCRIPTION("Tegra PCM ASoC driver");
index 2a36eea1740dd68d50f00836f552e15cf0d95e8c..ad69ca9233da0d58157c107c863b706e57612824 100644 (file)
@@ -20,8 +20,8 @@
 #include <sound/dmaengine_pcm.h>
 #include <sound/asound.h>
 
-int tegra_pcm_construct(struct snd_soc_component *component,
-                       struct snd_soc_pcm_runtime *rtd);
+int tegra_pcm_new(struct snd_soc_component *component,
+                 struct snd_soc_pcm_runtime *rtd);
 int tegra_pcm_open(struct snd_soc_component *component,
                   struct snd_pcm_substream *substream);
 int tegra_pcm_close(struct snd_soc_component *component,