diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-29 12:01:15 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-29 22:11:42 -0500 |
commit | 8019c0b37cd5a87107808300a496388b777225bf (patch) | |
tree | 8b0dc9748f9cf602eeb5c34d31da76f3433ccd98 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
ASoC: wm8994: Fix enum ctl accesses in a wrong type
The DRC Mode like "AIF1DRC1 Mode" and EQ Mode like "AIF1.1 EQ Mode" in
wm8994 codec driver are enum ctls, 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>
Cc: stable@vger.kernel.org
-rw-r--r-- | sound/soc/codecs/wm8994.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 2ccbb322df77..a18aecb49935 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -362,7 +362,7 @@ static int wm8994_put_drc_enum(struct snd_kcontrol *kcontrol, | |||
362 | struct wm8994 *control = wm8994->wm8994; | 362 | struct wm8994 *control = wm8994->wm8994; |
363 | struct wm8994_pdata *pdata = &control->pdata; | 363 | struct wm8994_pdata *pdata = &control->pdata; |
364 | int drc = wm8994_get_drc(kcontrol->id.name); | 364 | int drc = wm8994_get_drc(kcontrol->id.name); |
365 | int value = ucontrol->value.integer.value[0]; | 365 | int value = ucontrol->value.enumerated.item[0]; |
366 | 366 | ||
367 | if (drc < 0) | 367 | if (drc < 0) |
368 | return drc; | 368 | return drc; |
@@ -469,7 +469,7 @@ static int wm8994_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, | |||
469 | struct wm8994 *control = wm8994->wm8994; | 469 | struct wm8994 *control = wm8994->wm8994; |
470 | struct wm8994_pdata *pdata = &control->pdata; | 470 | struct wm8994_pdata *pdata = &control->pdata; |
471 | int block = wm8994_get_retune_mobile_block(kcontrol->id.name); | 471 | int block = wm8994_get_retune_mobile_block(kcontrol->id.name); |
472 | int value = ucontrol->value.integer.value[0]; | 472 | int value = ucontrol->value.enumerated.item[0]; |
473 | 473 | ||
474 | if (block < 0) | 474 | if (block < 0) |
475 | return block; | 475 | return block; |