diff options
Diffstat (limited to 'sound/soc/codecs/cs4271.c')
-rw-r--r-- | sound/soc/codecs/cs4271.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index aef4965750c7..93cec52f4733 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c | |||
@@ -284,7 +284,7 @@ static int cs4271_set_deemph(struct snd_soc_codec *codec) | |||
284 | static int cs4271_get_deemph(struct snd_kcontrol *kcontrol, | 284 | static int cs4271_get_deemph(struct snd_kcontrol *kcontrol, |
285 | struct snd_ctl_elem_value *ucontrol) | 285 | struct snd_ctl_elem_value *ucontrol) |
286 | { | 286 | { |
287 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 287 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
288 | struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec); | 288 | struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec); |
289 | 289 | ||
290 | ucontrol->value.enumerated.item[0] = cs4271->deemph; | 290 | ucontrol->value.enumerated.item[0] = cs4271->deemph; |
@@ -294,7 +294,7 @@ static int cs4271_get_deemph(struct snd_kcontrol *kcontrol, | |||
294 | static int cs4271_put_deemph(struct snd_kcontrol *kcontrol, | 294 | static int cs4271_put_deemph(struct snd_kcontrol *kcontrol, |
295 | struct snd_ctl_elem_value *ucontrol) | 295 | struct snd_ctl_elem_value *ucontrol) |
296 | { | 296 | { |
297 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 297 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
298 | struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec); | 298 | struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec); |
299 | 299 | ||
300 | cs4271->deemph = ucontrol->value.enumerated.item[0]; | 300 | cs4271->deemph = ucontrol->value.enumerated.item[0]; |