aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mixer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mixer.c b/mixer.c
index b6c854f..6f19cff 100644
--- a/mixer.c
+++ b/mixer.c
@@ -383,9 +383,6 @@ int mixer_ctl_set_value(struct mixer_ctl *ctl, unsigned int id, int value)
if (ret < 0)
return ret;
- if (value > mixer_ctl_get_range_max(ctl))
- value = mixer_ctl_get_range_max(ctl);
-
switch (ctl->info->type) {
case SNDRV_CTL_ELEM_TYPE_BOOLEAN:
ev.value.integer.value[id] = !!value;