[gstreamer-bugs] [Bug 478512] [alsamixer] volume control slider not working

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Feb 3 13:43:01 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=478512

  GStreamer | gst-plugins-base | Ver: git

Antoine Tremblay changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hexa00 at gmail.com




------- Comment #32 from Antoine Tremblay  2009-02-03 21:43 UTC -------
This is due to race conditions between functions that modified the mixer like
set_volume and snd_mixer_handle_events since the handle_events can now be
called at any time.

Fixed by adding locking around any snd_mixer call since even read functions can
modify the mixer stucture. (Since alsa likes to clear it's values before
reading new ones)

The favorite race condition seemed to be that set_volume called read_elem (in
alsalib) that reset the volumes to 0 and then read them with read_x_volume.
This read looped on each channel and as the race condition occured the channels
value could be anything , most of the time it was 0.. Thus no value was read or
only the value of one channel was and the volume
was reset to 0.

Note that I also cleaned up the poll code...


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=478512.




More information about the Gstreamer-bugs mailing list