]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/codecs/lm4857.c
Merge remote-tracking branches 'asoc/topic/samsung', 'asoc/topic/sgtl5000', 'asoc...
[karo-tx-linux.git] / sound / soc / codecs / lm4857.c
index 4f048db9f55f1aa0953f4c971c0425a3178a159c..a924bb9d78860c11c84d7420f46c54929d3b7eb8 100644 (file)
@@ -49,7 +49,7 @@ static const struct reg_default lm4857_default_regs[] = {
 static int lm4857_get_mode(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 lm4857 *lm4857 = snd_soc_codec_get_drvdata(codec);
 
        ucontrol->value.integer.value[0] = lm4857->mode;
@@ -60,7 +60,7 @@ static int lm4857_get_mode(struct snd_kcontrol *kcontrol,
 static int lm4857_set_mode(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 lm4857 *lm4857 = snd_soc_codec_get_drvdata(codec);
        uint8_t value = ucontrol->value.integer.value[0];