aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sta350.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-04-19 04:43:56 -0400
committerMark Brown <broonie@linaro.org>2014-04-21 06:20:46 -0400
commit8ab1a06497a1f10ffdcbb8297f0363daaa94e8a4 (patch)
tree3104d3b36eec073f8304bac5ea7381720ade0dee /sound/soc/codecs/sta350.c
parent2439ea1f0f8f4cc98dfae0d1cd5ba88f6c3ee9ad (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/sta350.c b/sound/soc/codecs/sta350.c
index 552e92a6b770..12ebbaf5d95f 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,
309static int sta350_coefficient_get(struct snd_kcontrol *kcontrol, 309static int sta350_coefficient_get(struct snd_kcontrol *kcontrol,
310 struct snd_ctl_elem_value *ucontrol) 310 struct snd_ctl_elem_value *ucontrol)
311{ 311{
312 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); 312 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
313 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); 313 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
314 int numcoef = kcontrol->private_value >> 16; 314 int numcoef = kcontrol->private_value >> 16;
315 int index = kcontrol->private_value & 0xffff; 315 int index = kcontrol->private_value & 0xffff;
@@ -351,7 +351,7 @@ exit_unlock:
351static int sta350_coefficient_put(struct snd_kcontrol *kcontrol, 351static int sta350_coefficient_put(struct snd_kcontrol *kcontrol,
352 struct snd_ctl_elem_value *ucontrol) 352 struct snd_ctl_elem_value *ucontrol)
353{ 353{
354 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); 354 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
355 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); 355 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
356 int numcoef = kcontrol->private_value >> 16; 356 int numcoef = kcontrol->private_value >> 16;
357 int index = kcontrol->private_value & 0xffff; 357 int index = kcontrol->private_value & 0xffff;