Unverified Commit 2905b226 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: generic: 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/87v7ewjyrf.wl-kuninori.morimoto.gx@renesas.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fe8112d6
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ 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,
static int test_component_pcm_new(struct snd_soc_component *component,
				  struct snd_soc_pcm_runtime *rtd)
{
	mile_stone(component);
@@ -287,7 +287,7 @@ static int test_component_pcm_construct(struct snd_soc_component *component,
	return 0;
}

static void test_component_pcm_destruct(struct snd_soc_component *component,
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;