diff --git a/alsactl/alsactl_parser.y b/alsactl/alsactl_parser.y index 6895b98..0570a96 100644 --- a/alsactl/alsactl_parser.y +++ b/alsactl/alsactl_parser.y @@ -490,10 +490,8 @@ static void set_switch_boolean(int val) if (sw->type != SND_CTL_SW_TYPE_BOOLEAN) yyerror("Switch '%s' isn't boolean type...", sw->name); xx = val ? 1 : 0; - if (sw->value.enable != xx) { - printf("change!!\n"); + if (sw->value.enable != xx) *Xswitchchange = 1; - } sw->value.enable = xx; printf("name = '%s', sw->value.enable = %i\n", sw->name, xx); }