After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 478498 - [alsamixer] Scale gets out of sync with hardware levels
[alsamixer] Scale gets out of sync with hardware levels
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 509592 557333 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-20 00:13 UTC by Bastien Nocera
Modified: 2011-08-11 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2007-09-20 00:13:33 UTC
+++ This bug was initially created as a clone of Bug #478485 +++

Using the attached patch, which logs get/set on the volume, I can see that log:
** Message: set: volume 0•
** Message: get: volume 0.000000 (scale 0.000000) mute 0 1•
** Message: get: volume 0.000000 (scale 0.000000) mute 0 1•
** Message: set: volume 11•
** Message: set: volume 31•
** Message: get: volume 0.000000 (scale 100.000000) mute 0 1•
** Message: get: volume 0.000000 (scale 100.000000) mute 0 1•

(31 is the upper level of my master track mixer)

This means that the "set 11" and "set 31" failed (GstAlsa has _no_ error checking whatsoever).


The mixer API doesn't allow for failure. Some calls to ALSA might fail, and the volume isn't set or retrieved properly, which means that the applet's state goes completely bonkers when changing the volume quickly (I mean really quickly).
Comment 1 Alexander “weej” Jones 2007-09-20 14:20:16 UTC
Upstream report: https://bugs.launchpad.net/gnome-applets/+bug/136837
Comment 2 Bastien Nocera 2007-09-20 14:40:55 UTC
(In reply to comment #1)
> Upstream report: https://bugs.launchpad.net/gnome-applets/+bug/136837

That's downstream, we're upstream (unless Ubuntu have chosen to start maintaining gnome-applets :)

FYI, the patch above fixed it for Fedora users too:
https://bugzilla.redhat.com/show_bug.cgi?id=295311
Comment 3 Alexander “weej” Jones 2007-09-20 15:15:51 UTC
Whoops, I get confused sometimes. Launchpad and GNOME Bugzilla look the same these days. :P
Comment 4 Alexander “weej” Jones 2008-02-27 14:54:18 UTC
Can we merge the Fedora patch?
Comment 5 Jan Schmidt 2008-02-27 20:46:53 UTC
Can someone who actually knows where the patch is attach it?
Comment 6 Teppo Turtiainen 2008-04-09 18:24:51 UTC
Bug 478512 is very similar to this one.
Comment 7 Bastien Nocera 2008-04-30 15:25:53 UTC
(In reply to comment #5)
> Can someone who actually knows where the patch is attach it?

There's no patch, the patch mentioned is for gnome-applets and lives in bug 478485, this is the actual bug report part:
"
The mixer API doesn't allow for failure. Some calls to ALSA might fail, and the
volume isn't set or retrieved properly, which means that the applet's state
goes completely bonkers when changing the volume quickly (I mean really
quickly).
"
Comment 8 Jens Granseuer 2008-05-04 12:06:44 UTC
*** Bug 509592 has been marked as a duplicate of this bug. ***
Comment 9 Jens Granseuer 2008-10-22 16:41:21 UTC
*** Bug 557333 has been marked as a duplicate of this bug. ***
Comment 10 Sebastian Dröge (slomo) 2011-05-18 20:37:18 UTC
Is there still something to fix here?
Comment 11 Fabio Durán Verdugo 2011-06-29 04:04:24 UTC
any news for this?
Comment 12 Akhil Laddha 2011-08-11 12:49:37 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!