ASoC: sta350: Use snd_soc_kcontrol_codec()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 19 Apr 2014 08:43:56 +0000 (10:43 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 21 Apr 2014 10:20:46 +0000 (11:20 +0100)
In preparation for componentisation of the kcontrol helpers use
snd_soc_kcontrol_codec() instead of snd_kcontrol_chip().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sta350.c

index 552e92a6b7706091b3f2a8ed18c536f0d2e0a8f1..12ebbaf5d95f72416f62cb5f3058ab25dd5c0461 100644 (file)
@@ -309,7 +309,7 @@ static int sta350_coefficient_info(struct snd_kcontrol *kcontrol,
 static int sta350_coefficient_get(struct snd_kcontrol *kcontrol,
                                  struct snd_ctl_elem_value *ucontrol)
 {
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
        struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
        int numcoef = kcontrol->private_value >> 16;
        int index = kcontrol->private_value & 0xffff;
@@ -351,7 +351,7 @@ exit_unlock:
 static int sta350_coefficient_put(struct snd_kcontrol *kcontrol,
                                  struct snd_ctl_elem_value *ucontrol)
 {
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
        struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
        int numcoef = kcontrol->private_value >> 16;
        int index = kcontrol->private_value & 0xffff;