}
#define PREALLOC_BUFFER (32 * 1024)
-static int test_component_pcm_construct(struct snd_soc_component *component,
- struct snd_soc_pcm_runtime *rtd)
+static int test_component_pcm_new(struct snd_soc_component *component,
+ struct snd_soc_pcm_runtime *rtd)
{
mile_stone(component);
return 0;
}
-static void test_component_pcm_destruct(struct snd_soc_component *component,
- struct snd_pcm *pcm)
+static void test_component_pcm_free(struct snd_soc_component *component,
+ struct snd_pcm *pcm)
{
mile_stone(component);
}
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;
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;