aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/da732x.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/da732x.c')
-rw-r--r--sound/soc/codecs/da732x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c
index 1d5a89c5164b..461506a4ca6a 100644
--- a/sound/soc/codecs/da732x.c
+++ b/sound/soc/codecs/da732x.c
@@ -334,7 +334,7 @@ static int da732x_hpf_set(struct snd_kcontrol *kcontrol,
334 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); 334 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
335 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; 335 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value;
336 unsigned int reg = enum_ctrl->reg; 336 unsigned int reg = enum_ctrl->reg;
337 unsigned int sel = ucontrol->value.integer.value[0]; 337 unsigned int sel = ucontrol->value.enumerated.item[0];
338 unsigned int bits; 338 unsigned int bits;
339 339
340 switch (sel) { 340 switch (sel) {
@@ -368,13 +368,13 @@ static int da732x_hpf_get(struct snd_kcontrol *kcontrol,
368 368
369 switch (val) { 369 switch (val) {
370 case DA732X_HPF_VOICE_EN: 370 case DA732X_HPF_VOICE_EN:
371 ucontrol->value.integer.value[0] = DA732X_HPF_VOICE; 371 ucontrol->value.enumerated.item[0] = DA732X_HPF_VOICE;
372 break; 372 break;
373 case DA732X_HPF_MUSIC_EN: 373 case DA732X_HPF_MUSIC_EN:
374 ucontrol->value.integer.value[0] = DA732X_HPF_MUSIC; 374 ucontrol->value.enumerated.item[0] = DA732X_HPF_MUSIC;
375 break; 375 break;
376 default: 376 default:
377 ucontrol->value.integer.value[0] = DA732X_HPF_DISABLED; 377 ucontrol->value.enumerated.item[0] = DA732X_HPF_DISABLED;
378 break; 378 break;
379 } 379 }
380 380