]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: amd: name back to pcm_new()/pcm_free()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 16 Mar 2026 02:24:51 +0000 (02:24 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 13:37:42 +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/pcm_destruct")
[2] commit e9067bb50278 ("ASoC: soc-component: remove snd_pcm_ops fromcomponent driver")

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/878qbslddx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c
sound/soc/amd/acp/acp-platform.c
sound/soc/amd/ps/ps-pdm-dma.c
sound/soc/amd/ps/ps-sdw-dma.c
sound/soc/amd/raven/acp3x-pcm-dma.c
sound/soc/amd/renoir/acp3x-pdm-dma.c
sound/soc/amd/vangogh/acp5x-pcm-dma.c
sound/soc/amd/yc/acp6x-pdm-dma.c

index c76a4bcc964592ba88ae5fd852952580a517683e..6ad70aa0ea8376c5f82e001d2387182d06a0057a 100644 (file)
@@ -1252,7 +1252,7 @@ static const struct snd_soc_component_driver acp_asoc_platform = {
        .pointer        = acp_dma_pointer,
        .delay          = acp_dma_delay,
        .prepare        = acp_dma_prepare,
-       .pcm_construct  = acp_dma_new,
+       .pcm_new        = acp_dma_new,
 };
 
 static int acp_audio_probe(struct platform_device *pdev)
index 88613569fd64f1a268c6c9c1f25921c54896ecfc..6b1e18b31c1c695f70be0868efe8524af5da1c1f 100644 (file)
@@ -321,7 +321,7 @@ static const struct snd_soc_component_driver acp_pcm_component = {
        .close                  = acp_dma_close,
        .hw_params              = acp_dma_hw_params,
        .pointer                = acp_dma_pointer,
-       .pcm_construct          = acp_dma_new,
+       .pcm_new                = acp_dma_new,
        .legacy_dai_naming      = 1,
 };
 
index 7c529fc6ba99769eb1efa3afae26a090fc4c73b0..c6cd844d458c87d71d42471ad225f857bd0c8a75 100644 (file)
@@ -351,7 +351,7 @@ static const struct snd_soc_component_driver acp63_pdm_component = {
        .close          = acp63_pdm_dma_close,
        .hw_params      = acp63_pdm_dma_hw_params,
        .pointer        = acp63_pdm_dma_pointer,
-       .pcm_construct  = acp63_pdm_dma_new,
+       .pcm_new        = acp63_pdm_dma_new,
 };
 
 static int acp63_pdm_audio_probe(struct platform_device *pdev)
index 366d7c4bb07e94241123ba6592ede957353468ee..f27ebbd213798b55b6f4b70c5b4dc8d5580eac69 100644 (file)
@@ -634,7 +634,7 @@ static const struct snd_soc_component_driver acp63_sdw_component = {
        .hw_params      = acp63_sdw_dma_hw_params,
        .trigger        = acp63_sdw_dma_trigger,
        .pointer        = acp63_sdw_dma_pointer,
-       .pcm_construct  = acp63_sdw_dma_new,
+       .pcm_new        = acp63_sdw_dma_new,
        .use_dai_pcm_id = true,
 
 };
index 4529404ebd9351a50458e2a2acf7e4e930fee2db..37ea5c572eb948bd71818371a98d89a33e8bf53d 100644 (file)
@@ -363,7 +363,7 @@ static const struct snd_soc_component_driver acp3x_i2s_component = {
        .close          = acp3x_dma_close,
        .hw_params      = acp3x_dma_hw_params,
        .pointer        = acp3x_dma_pointer,
-       .pcm_construct  = acp3x_dma_new,
+       .pcm_new        = acp3x_dma_new,
 };
 
 static int acp3x_audio_probe(struct platform_device *pdev)
index e832c7c4b96fac18f18f34a2aaa0bd6f2c81a7cc..e60e3821703ccb63e956ed77ae84908014c9588c 100644 (file)
@@ -376,7 +376,7 @@ static const struct snd_soc_component_driver acp_pdm_component = {
        .close                  = acp_pdm_dma_close,
        .hw_params              = acp_pdm_dma_hw_params,
        .pointer                = acp_pdm_dma_pointer,
-       .pcm_construct          = acp_pdm_dma_new,
+       .pcm_new                = acp_pdm_dma_new,
        .legacy_dai_naming      = 1,
 };
 
index 6ce82cd8859b8dec6a3e259a1e88c12d105793a6..831e30e9b04263553982f855f351adab5101145b 100644 (file)
@@ -357,7 +357,7 @@ static const struct snd_soc_component_driver acp5x_i2s_component = {
        .close          = acp5x_dma_close,
        .hw_params      = acp5x_dma_hw_params,
        .pointer        = acp5x_dma_pointer,
-       .pcm_construct  = acp5x_dma_new,
+       .pcm_new        = acp5x_dma_new,
 };
 
 static int acp5x_audio_probe(struct platform_device *pdev)
index 1c8aad8499164490ce7c0aedc36f5ec7494afeb9..710db721ffa480b4ec7aa7d4b2726d8688efd0c7 100644 (file)
@@ -346,7 +346,7 @@ static const struct snd_soc_component_driver acp6x_pdm_component = {
        .close                  = acp6x_pdm_dma_close,
        .hw_params              = acp6x_pdm_dma_hw_params,
        .pointer                = acp6x_pdm_dma_pointer,
-       .pcm_construct          = acp6x_pdm_dma_new,
+       .pcm_new                = acp6x_pdm_dma_new,
        .legacy_dai_naming      = 1,
 };