[Bug 229969] mixer_info modify_counter not incremented when are changes made to the mixer

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 22 19:50:08 UTC 2018


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: bugs at FreeBSD.org
          Reporter: aliovx at gmail.com

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.


More information about the freebsd-bugs mailing list