Unverified Commit 6f3658d6 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: mediatek: 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 c64bfc90 ("ASoC: soc-core: add new pcm_construct/pcmdestruct")
[2] commit e9067bb5 ("ASoC: soc-component: remove snd_pcm_ops from component driver")

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87o6kojyqf.wl-kuninori.morimoto.gx@renesas.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7fce3691
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ static int mtk_afe_component_probe(struct snd_soc_component *component)
const struct snd_soc_component_driver mtk_afe_pcm_platform = {
	.name		= AFE_PCM_NAME,
	.pointer	= mtk_afe_pcm_pointer,
	.pcm_construct	= mtk_afe_pcm_new,
	.pcm_new	= mtk_afe_pcm_new,
	.probe		= mtk_afe_component_probe,
};
EXPORT_SYMBOL_GPL(mtk_afe_pcm_platform);
+1 −1
Original line number Diff line number Diff line
@@ -2773,7 +2773,7 @@ static int mt8186_afe_component_probe(struct snd_soc_component *component)

static const struct snd_soc_component_driver mt8186_afe_component = {
	.name = AFE_PCM_NAME,
	.pcm_construct = mtk_afe_pcm_new,
	.pcm_new = mtk_afe_pcm_new,
	.pointer = mtk_afe_pcm_pointer,
	.probe = mt8186_afe_component_probe,
};
+2 −2
Original line number Diff line number Diff line
@@ -2378,8 +2378,8 @@ static void mt8189_afe_pcm_free(struct snd_soc_component *component,
static const struct snd_soc_component_driver mt8189_afe_component = {
	.name = AFE_PCM_NAME,
	.probe = mt8189_afe_component_probe,
	.pcm_construct = mtk_afe_pcm_new,
	.pcm_destruct = mt8189_afe_pcm_free,
	.pcm_new = mtk_afe_pcm_new,
	.pcm_free = mt8189_afe_pcm_free,
	.open = mt8189_afe_pcm_open,
	.pointer = mtk_afe_pcm_pointer,
};