aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2014-09-04 10:17:27 -0700
committerSimon Wilson <ksattic@gmail.com>2014-09-04 10:17:27 -0700
commitf2a7b6d3d81bd337a540d56704b4aaa7bdb046fe (patch)
tree7a866d117ddfabebc633332988bd3fa52af7d564
parent40baeb10f5868885ec7c7ffedc47049c8e50c8a0 (diff)
parentd6f0dfc6caa1c719c8d805e04e33b8e785c23a40 (diff)
Merge pull request #50 from charleskeepax/master
Revert "mixer: Control input value in mixer_ctl_set_value"
-rw-r--r--mixer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mixer.c b/mixer.c
index 9be8623..78b1a12 100644
--- a/mixer.c
+++ b/mixer.c
@@ -380,9 +380,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;