diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-04-19 10:43:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-21 11:20:46 +0100 |
commit | 8ab1a06497a1f10ffdcbb8297f0363daaa94e8a4 (patch) | |
tree | 3104d3b36eec073f8304bac5ea7381720ade0dee /sound/soc/codecs/sta350.c | |
parent | 2439ea1f0f8f4cc98dfae0d1cd5ba88f6c3ee9ad (diff) | |
download | op-kernel-dev-8ab1a06497a1f10ffdcbb8297f0363daaa94e8a4.zip op-kernel-dev-8ab1a06497a1f10ffdcbb8297f0363daaa94e8a4.tar.gz |
ASoC: sta350: Use snd_soc_kcontrol_codec()
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>
Diffstat (limited to 'sound/soc/codecs/sta350.c')
-rw-r--r-- | sound/soc/codecs/sta350.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/sta350.c b/sound/soc/codecs/sta350.c index 552e92a..12ebbaf 100644 --- a/sound/soc/codecs/sta350.c +++ b/sound/soc/codecs/sta350.c @@ -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; |