diff options
Diffstat (limited to 'sound/soc/codecs/max98090.c')
-rw-r--r-- | sound/soc/codecs/max98090.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index f7b0b37aa858..49d12387ac2f 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -426,7 +426,7 @@ static const unsigned int max98090_rcv_lout_tlv[] = { | |||
426 | static int max98090_get_enab_tlv(struct snd_kcontrol *kcontrol, | 426 | static int max98090_get_enab_tlv(struct snd_kcontrol *kcontrol, |
427 | struct snd_ctl_elem_value *ucontrol) | 427 | struct snd_ctl_elem_value *ucontrol) |
428 | { | 428 | { |
429 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 429 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
430 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); | 430 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); |
431 | struct soc_mixer_control *mc = | 431 | struct soc_mixer_control *mc = |
432 | (struct soc_mixer_control *)kcontrol->private_value; | 432 | (struct soc_mixer_control *)kcontrol->private_value; |
@@ -466,7 +466,7 @@ static int max98090_get_enab_tlv(struct snd_kcontrol *kcontrol, | |||
466 | static int max98090_put_enab_tlv(struct snd_kcontrol *kcontrol, | 466 | static int max98090_put_enab_tlv(struct snd_kcontrol *kcontrol, |
467 | struct snd_ctl_elem_value *ucontrol) | 467 | struct snd_ctl_elem_value *ucontrol) |
468 | { | 468 | { |
469 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 469 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
470 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); | 470 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); |
471 | struct soc_mixer_control *mc = | 471 | struct soc_mixer_control *mc = |
472 | (struct soc_mixer_control *)kcontrol->private_value; | 472 | (struct soc_mixer_control *)kcontrol->private_value; |