diff options
Diffstat (limited to 'sound/soc/codecs/da732x.c')
-rw-r--r-- | sound/soc/codecs/da732x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c index 48f3fef68484..2fae31cb0067 100644 --- a/sound/soc/codecs/da732x.c +++ b/sound/soc/codecs/da732x.c | |||
@@ -332,7 +332,7 @@ static SOC_ENUM_SINGLE_DECL(da732x_adc2_voice_filter_enum, | |||
332 | static int da732x_hpf_set(struct snd_kcontrol *kcontrol, | 332 | static int da732x_hpf_set(struct snd_kcontrol *kcontrol, |
333 | struct snd_ctl_elem_value *ucontrol) | 333 | struct snd_ctl_elem_value *ucontrol) |
334 | { | 334 | { |
335 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 335 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
336 | struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; | 336 | struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; |
337 | unsigned int reg = enum_ctrl->reg; | 337 | unsigned int reg = enum_ctrl->reg; |
338 | unsigned int sel = ucontrol->value.integer.value[0]; | 338 | unsigned int sel = ucontrol->value.integer.value[0]; |
@@ -360,7 +360,7 @@ static int da732x_hpf_set(struct snd_kcontrol *kcontrol, | |||
360 | static int da732x_hpf_get(struct snd_kcontrol *kcontrol, | 360 | static int da732x_hpf_get(struct snd_kcontrol *kcontrol, |
361 | struct snd_ctl_elem_value *ucontrol) | 361 | struct snd_ctl_elem_value *ucontrol) |
362 | { | 362 | { |
363 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 363 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
364 | struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; | 364 | struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; |
365 | unsigned int reg = enum_ctrl->reg; | 365 | unsigned int reg = enum_ctrl->reg; |
366 | int val; | 366 | int val; |