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 350784 - element alsamixer doesn't respect asoundrc
element alsamixer doesn't respect asoundrc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.9
Other Linux
: Normal normal
: 0.10.10
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-10 17:41 UTC by Ian Turner
Modified: 2006-08-13 14:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ian Turner 2006-08-10 17:41:10 UTC
Although refining the default ALSA device in ~/.asoundrc correctly changes the behavior of alsasink, alsamixer doggedly sticks to hw:0,0 -- even if you ask to set the device to "default".
Comment 1 Tim-Philipp Müller 2006-08-12 10:43:51 UTC
Indeed, the source contains a section that explicitly changes "default" to "hw:0" with a big /* HACK HACK HACK */ comment above it. Almost seems like there might have been a reason for this, but I haven't been able to find out what that was yet (might just have been alsalib being silly and not accepting 'default' in old times; seems to work fine these days, who knows).

Comment 2 Wim Taymans 2006-08-13 14:34:55 UTC
        * ext/alsa/gstalsa.c: (gst_alsa_detect_rates),
        (gst_alsa_detect_channels), (gst_alsa_probe_supported_formats):
        Small code cleanup.

        * ext/alsa/gstalsamixer.c: (gst_alsa_mixer_open),
        (gst_alsa_mixer_new):
        Remove hack that always set the device to hw:0*.
        Properly find the card name for whatever device was configured.
        Do some better debugging.
        Fixes #350784.

        * ext/alsa/gstalsamixerelement.c:
        (gst_alsa_mixer_element_set_property),
        (gst_alsa_mixer_element_change_state):
        Cleanups.
        Handle setting of a NULL device name better.