ASoC: use snd_soc_component_get_dapm()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 25 Aug 2017 01:06:04 +0000 (01:06 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 25 Aug 2017 13:57:13 +0000 (14:57 +0100)
Now we have snd_soc_component_get_dapm(),
and as soc.h say below, let's use it.

/* Don't use these, use snd_soc_component_get_dapm() */
struct snd_soc_dapm_context dapm;

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c

index 74c1706..92e09cb 100644 (file)
@@ -3220,7 +3220,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component,
        component->pcm_new = component->driver->pcm_new;
        component->pcm_free = component->driver->pcm_free;
 
-       dapm = &component->dapm;
+       dapm = snd_soc_component_get_dapm(component);
        dapm->dev = dev;
        dapm->component = component;
        dapm->bias_level = SND_SOC_BIAS_OFF;