mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
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] commitc64bfc9066("ASoC: soc-core: add new pcm_construct/pcmdestruct") [2] commite9067bb502("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/87o6kojyqf.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
7fce3691e1
commit
6f3658d6ee
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user