diff options
author | Simon Wilson <ksattic@gmail.com> | 2014-09-04 10:17:27 -0700 |
---|---|---|
committer | Simon Wilson <ksattic@gmail.com> | 2014-09-04 10:17:27 -0700 |
commit | f2a7b6d3d81bd337a540d56704b4aaa7bdb046fe (patch) | |
tree | 7a866d117ddfabebc633332988bd3fa52af7d564 | |
parent | 40baeb10f5868885ec7c7ffedc47049c8e50c8a0 (diff) | |
parent | d6f0dfc6caa1c719c8d805e04e33b8e785c23a40 (diff) |
Merge pull request #50 from charleskeepax/master
Revert "mixer: Control input value in mixer_ctl_set_value"
-rw-r--r-- | mixer.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |