diff options
author | Mark Brown <broonie@kernel.org> | 2022-06-14 12:25:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-14 12:25:45 +0200 |
commit | 14cc5849120051caf537f663ec620910503bb719 (patch) | |
tree | f786cd254d3a6dc104976b03e05b381d9fe5cc16 /sound/soc/soc-ops.c | |
parent | ASoC: SOF: Compile and runtime IPC version selection (diff) | |
parent | ASoC: Intel: bytcr_wm5102: Fix GPIO related probe-ordering problem (diff) | |
download | linux-14cc5849120051caf537f663ec620910503bb719.tar.xz linux-14cc5849120051caf537f663ec620910503bb719.zip |
ASoC: Merge fixes
Required for more changes for the ops.
Diffstat (limited to 'sound/soc/soc-ops.c')
-rw-r--r-- | sound/soc/soc-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-ops.c b/sound/soc/soc-ops.c index 2d5910b6ca54..184910ed2d7b 100644 --- a/sound/soc/soc-ops.c +++ b/sound/soc/soc-ops.c @@ -535,7 +535,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, return -EINVAL; if (mc->platform_max && tmp > mc->platform_max) return -EINVAL; - if (tmp > mc->max - mc->min + 1) + if (tmp > mc->max - mc->min) return -EINVAL; if (invert) @@ -556,7 +556,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, return -EINVAL; if (mc->platform_max && tmp > mc->platform_max) return -EINVAL; - if (tmp > mc->max - mc->min + 1) + if (tmp > mc->max - mc->min) return -EINVAL; if (invert) |