https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229969

            Bug ID: 229969
           Summary: mixer_info modify_counter not incremented when are
                    changes made to the mixer
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 195378
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195378&action=edit
Increment the modify_counter when mixer_set is called.

>From  sys/dev/sound/pcm/mixer.c:70
/**
  * Counter is incremented when applications change any of this
  * mixer's controls.  A change in value indicates that persistent
  * mixer applications should update their displays.
  */

But reading the code, it is clear that this is not the case, and the counter
remains 0. It is enough to call m->modify_counter++ in mixer_set on line 327
for example to make persistent mixer applications work correctly. Currently
they have to poll for all mixer controls, even if no changes were made to the
mixer. 

The attached patch solves the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to