From: Stuart Henderson Date: Thu, 18 May 2017 12:43:49 +0000 (+0100) Subject: ASoC: madera: Fix getting dapm pointer in madera_rate_put X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9c2513cb366698c6f0713061cf4191ce9029d81;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: madera: Fix getting dapm pointer in madera_rate_put Change-Id: Id24c139fa5078fee002bf28d6c6b76b0d0600156 Signed-off-by: Stuart Henderson --- 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];