ASoC: madera: Fix getting dapm pointer in madera_rate_put
authorStuart Henderson <stuarth@opensource.wolfsonmicro.com>
Thu, 18 May 2017 12:43:49 +0000 (13:43 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:27 +0000 (20:22 +0300)
Change-Id: Id24c139fa5078fee002bf28d6c6b76b0d0600156
Signed-off-by: Stuart Henderson <stuarth@opensource.wolfsonmicro.com>
sound/soc/codecs/madera.c

index c6f289daea9c5684356babcde1ffee06a68f6a15..cdbcb0858154f181d5db81a242a7d9fa9bf2810e 100644 (file)
@@ -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];