diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-12 23:03:59 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-12 23:03:59 +0000 |
commit | b8f861586c9c2433b22f81e933845cb8aaa18d9e (patch) | |
tree | b075dd0c9156ce45da4ab3099b222cae1163d3bc /sound/soc/omap | |
parent | 53a2c4db8cf229047de88b3f1bd41d5a5d2756eb (diff) | |
parent | 6af5263ceaffc9d4403592dc81cd3b197702dc69 (diff) |
Merge remote-tracking branch 'asoc/topic/enum' into asoc-next
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/ams-delta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/ams-delta.c b/sound/soc/omap/ams-delta.c index 5750de197d0d..8a5363674075 100644 --- a/sound/soc/omap/ams-delta.c +++ b/sound/soc/omap/ams-delta.c @@ -103,7 +103,7 @@ static int ams_delta_set_audio_mode(struct snd_kcontrol *kcontrol, if (!codec->hw_write) return -EUNATCH; - if (ucontrol->value.enumerated.item[0] >= control->max) + if (ucontrol->value.enumerated.item[0] >= control->items) return -EINVAL; snd_soc_dapm_mutex_lock(dapm); |