alsaequal: init at 0.6

Co-Authored-By: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
ymeister
2020-03-13 13:38:05 +07:00
co-authored by Doron Behar
parent c5e223e120
commit 5de1b169ea
5 changed files with 91 additions and 0 deletions
@@ -0,0 +1,13 @@
--- ./ctl_equal.c
+++ ./ctl_equal.c
@@ -263,8 +263,8 @@
for(i = 0; i < equal->num_input_controls; i++) {
if(equal->control_data->control[i].type == LADSPA_CNTRL_INPUT) {
index = equal->control_data->control[i].index;
- if(equal->klass->PortDescriptors[index] !=
- (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
+ if(equal->klass->PortDescriptors[index] &
+ (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL) == 0) {
SNDERR("Problem with control file %s, %d.", controls, index);
return -1;
}