Commit 88c27465 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: use snd_soc_component_get_dapm()

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6a6dafda
...@@ -3220,7 +3220,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component, ...@@ -3220,7 +3220,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component,
component->pcm_new = component->driver->pcm_new; component->pcm_new = component->driver->pcm_new;
component->pcm_free = component->driver->pcm_free; component->pcm_free = component->driver->pcm_free;
dapm = &component->dapm; dapm = snd_soc_component_get_dapm(component);
dapm->dev = dev; dapm->dev = dev;
dapm->component = component; dapm->component = component;
dapm->bias_level = SND_SOC_BIAS_OFF; dapm->bias_level = SND_SOC_BIAS_OFF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment