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 139588 - In Alsa tab, binary value options appear as a slider and cannot be changed.
In Alsa tab, binary value options appear as a slider and cannot be changed.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.0
Other Linux
: Normal normal
: 0.8.5
Assigned To: gnome media maintainers
gnome media maintainers
: 142240 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-09 15:53 UTC by Scott Harmon
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Scott Harmon 2004-04-09 15:53:03 UTC
Options for my sound card, C-Media PCI CMI8738-MC6 [Alsa Mixer], such as 4
speaker mode, 3D mode, etc, appear as slider bars when in gnome-alsa-mixer they
are check-boxes.  Also here they cannot be set, but in gnome-alsa-mixer they can
be set.

Here is an example image: http://amdg.no-ip.org/~scott/screenshots/alsamixer.png
Comment 1 Ronald Bultje 2004-04-09 17:09:17 UTC
Yeah, I know, it needs some prettification.
Comment 2 Ronald Bultje 2004-05-11 01:11:41 UTC
Those aren't binary values, they're switches. I asked on the alsa-devel
mailinglist, this is the reply:

==
At Sat, 08 May 2004 20:32:04 +0200,
Ronald S. Bultje wrote:
> 
> Hi,
> 
> I'm working on properifying the ALSA support in GNOME Volume Control.
> When opening a sound mixer, I noticed that several elements will be both
> a capture and a playback element. Also, there is separate functions for
> setting the playback and the capture volume. How are those functions of
> the element related? If I set the playback volume, does this affect the
> capture volume on a hardware level? And what is the playback or capture
> part of this element supposed to visualize/abstractize?

the playback and the capture are independent.  they shouldn't affect
with eath other, and that's why there are different functions :)

basically, you should provide separated volume bars and toggle
switches for both playback and capture if two of them are provided.

> Also, I see several non-volume elements (switches? Things such as
> External Amplifier Power Down or 3D - switch). What are those? What do
> they do, what's their function, what do they visualize/abstractize on
> the hardware level?

each meaning depends strongly on the chip/driver.

> I'm asking all this to get an idea of how to picture those in GNOME
> Volume Control (for the first question: each function of the element as
> a separate track? Or all functions together as one track?; for the
> second question: as a checkbox? something else? omit completely?).

remember that the ALSA mixer interface doesn't provide the
well-abstracted mixer stuffs (yet).  they are almost as hardware
provides.  obviously we need another higher level abstraction.

IMO, there is no general design of the mixer, except for the very
basic elements like Master, PCM, etc.
look at Windows mixers - they all look differently.

hence, providing the mixer structure with an external db (e.g. via
XML) according to the driver/chip would be the best solution if you
write a "generic" mixer app.
==

I don't want to go that far. If the kernel doesn't provide a sane abstraction,
then sod it. The mixer interface should still provide the switches better than
now (probably as selection menus), and the volume control should - at least in
the default view - just not display them. It could when GConf tells it to be in
'expert mode' or so.

Anyway, this requires interface changes (probably ABI incompatible) and it
requires application changes as well.
Comment 3 Ronald Bultje 2004-06-17 03:49:37 UTC
*** Bug 142240 has been marked as a duplicate of this bug. ***
Comment 4 Ronald Bultje 2004-10-01 11:08:57 UTC
This is fixed now if you use a recent gnome-media and gst-plugins.
Comment 5 Scott Harmon 2004-10-01 14:58:16 UTC
I am using gnome-media-2.8.0 and gst-plugins-0.8.4.  The options are just no
longer present now.  They are still present and work in kmix (the kde mixer).  I
would not consider this fixed.