ASoC: smartq: Use card DAPM context to access widgets
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 3 May 2015 17:27:09 +0000 (19:27 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2015 12:51:19 +0000 (13:51 +0100)
The dapm field of the snd_soc_codec struct will eventually be removed
(replaced with the DAPM context from the component embedded inside the
CODEC). Replace its usage with the card's DAPM context. The idea is that
DAPM is hierarchical and with the card at the root it is possible to access
widgets from other contexts through the card context.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/smartq_wm8987.c

index c75f98d4931dd03924fc967ac32b151dca372074..a0fe37fbed9fb8485fd8ab8f103f9d230329950f 100644 (file)
@@ -137,8 +137,7 @@ static const struct snd_soc_dapm_route audio_map[] = {
 
 static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
 {
-       struct snd_soc_codec *codec = rtd->codec;
-       struct snd_soc_dapm_context *dapm = &codec->dapm;
+       struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
        int err = 0;
 
        /* set endpoints to not connected */
This page took 0.025253 seconds and 5 git commands to generate.