From b9c2513cb366698c6f0713061cf4191ce9029d81 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Thu, 18 May 2017 13:43:49 +0100 Subject: [PATCH] ASoC: madera: Fix getting dapm pointer in madera_rate_put Change-Id: Id24c139fa5078fee002bf28d6c6b76b0d0600156 Signed-off-by: Stuart Henderson --- sound/soc/codecs/madera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c index c6f289daea9c..cdbcb0858154 100644 --- a/sound/soc/codecs/madera.c +++ b/sound/soc/codecs/madera.c @@ -1070,8 +1070,7 @@ int madera_rate_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); - struct snd_soc_dapm_context *dapm = - snd_soc_dapm_kcontrol_dapm(kcontrol); + struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); struct madera_priv *priv = snd_soc_codec_get_drvdata(codec); struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; unsigned int item = ucontrol->value.enumerated.item[0]; -- 2.20.1