Skip to content

Commit 8293004

Browse files
tiwaibroonie
authored andcommitted
ASoC: wm8996: Fix enum ctl accesses in a wrong type
"DSP1 EQ Mode" and "DSP2 EQ Mode" ctls in wm8996 codec driver are enum, while the current driver accesses wrongly via value.integer.value[]. They have to be via value.enumerated.item[] instead. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 92e963f commit 8293004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wm8996.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static int wm8996_put_retune_mobile_enum(struct snd_kcontrol *kcontrol,
416416
struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec);
417417
struct wm8996_pdata *pdata = &wm8996->pdata;
418418
int block = wm8996_get_retune_mobile_block(kcontrol->id.name);
419-
int value = ucontrol->value.integer.value[0];
419+
int value = ucontrol->value.enumerated.item[0];
420420

421421
if (block < 0)
422422
return block;

0 commit comments

Comments
 (0)