diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-29 18:08:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-01 12:05:53 +0900 |
commit | 9af39044753d7280fa795528598636fe9c58a54e (patch) | |
tree | f8b993a9859bafb14513228cc394760411f0e1b9 /sound | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | talos-obmc-linux-9af39044753d7280fa795528598636fe9c58a54e.tar.gz talos-obmc-linux-9af39044753d7280fa795528598636fe9c58a54e.zip |
ASoC: max98088: Fix enum ctl accesses in a wrong type
"EQ1 Mode" and "EQ2 Mode" ctls in max98088 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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/max98088.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 20dcc496d39c..fc22804cabc5 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c @@ -1496,7 +1496,7 @@ static int max98088_put_eq_enum(struct snd_kcontrol *kcontrol, struct max98088_pdata *pdata = max98088->pdata; int channel = max98088_get_channel(codec, kcontrol->id.name); struct max98088_cdata *cdata; - int sel = ucontrol->value.integer.value[0]; + int sel = ucontrol->value.enumerated.item[0]; if (channel < 0) return channel; |